sem_res.adb (Large_Storage_Type): A type is large if it requires as many bits as...
[official-gcc.git] / gcc / ada / ChangeLog
blob4a2da86b26d0d0dad3b5204c3f6c0a4ae3421ab9
1 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
3         * sem_res.adb (Large_Storage_Type): A type is large if it
4         requires as many bits as Positive to store its values and its
5         bounds are known at compile time.
6         * sem_ch13.adb (Minimum_Size): Note that this function returns
7         0 if the size is not known at compile time.
9 2008-06-06  Nicolas Setton  <setton@adacore.com>
10             Olivier Hainque  <hainque@adacore.com>
12         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
13         attribute, parallel descriptive type attached to another
14         type for debug info generation purposes.
15         * utils.c (add_parallel_type): New function, register
16         parallel type to be attached to a type.
17         (get_parallel_type): New function, fetch a registered
18         parallel type, if any.
19         (rest_of_record_type_compilation): Register the parallel
20         type we make for variable size records.
21         * gigi.h (add_parallel_type, get_parallel_type): Declare.
22         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
23         parallel debug types we make.
24         * trans.c (extract_encoding, decode_name): New functions.
25         (gigi): If the DWARF attribute extensions are available, setup
26         to use them.
27         * lang.opt: Register language specific processing request
28         for -gdwarf+.
29         * misc.c (gnat_dwarf_extensions): New global variable. How much
30         do we want of our DWARF extensions. 0 by default.
31         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
32         (gnat_post_options): Map gnat_dwarf_extensions to the
33         commonuse_gnu_debug_info_extensions for later processing.
34         
35 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
37         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
39 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
42         * gnat_ugn.texi (Style Checking)
43         (Adding the Results of Compiler Checks to gnatcheck Output)
44         (Example of Binder Output File): Fix typos.
45         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
46         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
47         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
48         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
49         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
50         sinfo.ads, utils.c: Fix typos in comments.
51         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
53 2008-05-29  Thomas Quinot  <quinot@adacore.com>
55         * sem_eval.adb: Minor reformatting
57 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
59         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
60         is abstract, do not apply abstractness check on subprogram if this is
61         a renaming declaration.
63 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
65         PR ada/864
66         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
67         allow recognition of program suffix in addition to prefix.
68         
69         * gnatchop.adb (Locate_Executable): Add support for prefix.
70         
71         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
72         mlib-utl.adb: Adjust calls to Program_Name.
74 2008-05-29  Robert Dewar  <dewar@adacore.com>
76         * sem_ch3.adb: Minor reformatting
77         * sem_prag.adb: Minor reformatting
78         * sem_res.adb: Minor reformatting
79         * sinput-p.ads: Minor reformatting
81 2008-05-29  Javier Miranda  <miranda@adacore.com>
83         * sem_util.adb:
84         (Abstract_Interface_List): Add missing support for full type-declaration
85         associated with synchronized types.
87 2008-05-29  Robert Dewar  <dewar@adacore.com>
89         * sem_eval.adb (Is_Same_Value): Take care of several more cases
91 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
93         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
94         access type, wrap the expression in a conversion to force an
95         accessibility check.
97         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
98         accessibility checks even when expansion is disabled in order to
99         generate messages in the presence of previous errors or in
100         semantics-only mode.
102 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
104         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
105         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
107 2008-05-28  Vincent Celier  <celier@adacore.com>
109         PR ada/34446
110         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
111         preprocessing expressions
113 2008-05-28  Vincent Celier  <celier@adacore.com>
115         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
116         for preprocessing
117         
118         * sinput-p.ads: Minor comment update and reformatting
120 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
122         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
123         type has a deeper level than any master only when it is the type of an
124         access parameter.
126 2008-05-28  Javier Miranda  <miranda@adacore.com>
128         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
130 2008-05-28  Javier Miranda  <miranda@adacore.com>
132         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
133         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
134         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
135         Add code that was previously located in
136         Find_Overridden_Synchronized_Primitive because it is only used here.
138 2008-05-28  Sergey Rybin  <rybin@adacore.com>
140         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
141         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
143 2008-05-28  Robert Dewar  <dewar@adacore.com>
145         * restrict.ads:
146         Add missing restrictions, and properly label all GNAT defined ones
147         
148         * rtsfind.ads:
149         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
150         Add entry for Ada.Task_Termination.Set_Specific_Handler
151         Add entry for Ada.Task_Termination.Specific_Handler
152         
153         * s-rident.ads:
154         Add missing restrictions and properly mark all gnat defined ones
155         
156         * sem_ch3.adb:
157         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
158         
159         * sem_res.adb:
160         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
162         * gnat_rm.texi: Add missing restrictions, and properly label all
163         GNAT defined ones
165 2008-05-28  Robert Dewar  <dewar@adacore.com>
167         * restrict.adb:
168         (Check_Restriction): violation of restriction No_Finalization is
169         treated as a serious error to stop expansion
171 2008-05-28  Robert Dewar  <dewar@adacore.com>
173         * exp_util.adb: Minor reformatting
174         * exp_util.ads: Minor reformatting.
176 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
178         * Make-lang.in: Remove gprmake.
180         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
182 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
184         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
185         improper progenitor names, and avoid cascaded errors.
187 2008-05-28  Robert Dewar  <dewar@adacore.com>
189         * gnat_rm.texi: Add note on Old giving warning when applied to constant
191         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
192         a constant
194 2008-05-28  Robert Dewar  <dewar@adacore.com>
196         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
197         size
199 2008-05-28  Robert Dewar  <dewar@adacore.com>
201         * exp_ch5.adb:
202         (Expand_Simple_Function_Return): Copy unaligned result into temporary
204 2008-05-28  Javier Miranda  <miranda@adacore.com>
206         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
207         for user-defined predefined primitives.
208         
209         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
210         (Find_Overridden_Synchronized_Primitive): Ditto.
212         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
214 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
216         * a-ststio.adb, s-direio.adb:
217         Further code clean up of previous change.
218         Update comments.
220 2008-05-27  Vincent Celier  <celier@adacore.com>
222         * prj-nmsc.adb: Minor reformatting
224 2008-05-27  Bob Duff  <duff@adacore.com>
226         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
227         untagged private type with a tagged full type, where the full type has
228         a self reference, create the corresponding class-wide type early, in
229         case the self reference is "access T'Class".
231 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
233         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
234         tasks and context is an object declaration. create master entity before
235         expansion.
237 2008-05-27  Robert Dewar  <dewar@adacore.com>
239         * mlib-prj.adb: Minor reformatting
241         * prj-part.adb: Minor reformatting
243         * prj.ads: Minor reformatting
245         * exp_ch3.adb: Minor reformatting.
247         * sem_ch3.ads: Minor reformatting
249         * sem_eval.adb: Minor reformatting
251 2008-05-27  Vincent Celier  <celier@adacore.com>
253         * gnatcmd.adb:
254         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
256 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
258         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
259         tasks, create an activation chain now, before the expansion into
260         assignments and build-in-place calls that require the presence of an
261         activation chain.
262         (Backend_Processing_Possible): If the component type is inherently
263         limited, the aggregate must be expanded into individual built-in-place
264         assignments.
266         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
267         determine whether an allocation extra parameter must be built, to
268         handle case of a private type whose full type is a discriminated type
269         with defaults.
271 2008-05-27  Bob Duff  <duff@adacore.com>
273         * gnat_rm.texi:
274         Document the new behavior regarding trampolines.
276 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
278         * a-direio.adb, a-sequio.adb: Replace address clause by
279         unrestricted_access, simpler and compatible with .NET.
281 2008-05-27  Vincent Celier  <celier@adacore.com>
283         * prj-part.adb:
284         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
285         a project file, so that symbolic links are not resolved.
287 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
289         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
290         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
291         portable across GNAT targets, since this kind of address clause is not
292         supported by VM back-ends (.NET/JGNAT).
294 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
296         * bindgen.adb: Update comments.
297         
298         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
300 2008-05-27  Vincent Celier  <celier@adacore.com>
302         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
303         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
304         mlib-tgt.adb, prj-env.adb, prj-env.ads:
305         (Path_Information): New record type
306         Use component of type Path_Information when there are two paths, one in
307         canonical format and one in display format.
308         Update the project manager to these new components.
310 2008-05-27  Robert Dewar  <dewar@adacore.com>
312         * makeutl.adb: Minor reformatting
313         * prj-nmsc.adb: Minor reformatting
314         * s-stausa.adb: Minor reformatting
315         * s-stausa.ads: Minor reformatting
316         * sem_ch6.adb: Minor reformatting
318 2008-05-27  Thomas Quinot  <quinot@adacore.com>
320         * sem_res.adb: Minor comment fixes
322 2008-05-27  Thomas Quinot  <quinot@adacore.com>
324         * makeutl.adb: Minor code reorganization
326         * exp_aggr.adb: Add ??? comment
327         Fix typo
329         * exp_ch6.adb: Minor reformatting
331 2008-05-27  Quentin Ochem  <ochem@adacore.com>
333         * s-stausa.adb (Initialize): Updated result initialization, and
334         initialization of environment stack.
335         (Fill_Stack): Improved computation of the pattern zone, taking into
336         account already filled at the calling point.
337         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
338         Measure and Overflow_Guard.
339         (Report_Result): Fixed computation of the result using new fields of
340         Stack_Analyzer.
341         
342         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
343         params by more explicit Stack_Size / Max_Pattern_Size params.
344         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
345         Added Stack_Used_When_Filling field.
346         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
347         Min_Measure and Max_Measure fields.
348         
349         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
351 2008-05-27  Vincent Celier  <celier@adacore.com>
353         * prj-nmsc.adb:
354         (Check_File): Make sure that a unit that replaces the same unit in a
355          project being extended is properly processed.
357 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
359         * sem_ch3.adb:
360         (Get_Discr_Value): Remove obsolete code that failed to find the value
361         of a discriminant for an inherited task component appearing in a type
362         extension.
364 2008-05-27  Thomas Quinot  <quinot@adacore.com>
366         (System.File_IO.{Close, Delete, Reset}):
367         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
368         
369         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
370         Pass File parameter by reference.
372 2008-05-27  Vincent Celier  <celier@adacore.com>
374         * prj-nmsc.adb:
375         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
376         sources of the same project that have the same object file name.
377         (Find_Explicit_Sources): Always remove a source exception that was not
378         found.
380 2008-05-27  Thomas Quinot  <quinot@adacore.com>
382         * sem_ch3.adb: Minor reformatting
384 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
386         * sem_ch6.adb:
387         (Is_Interface_Conformant): Handle properly a primitive operation that
388         overrides an interface function with a controlling access result.
389         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
390         inherited and overriding operations, omit as well the conformance check
391         on result types, to prevent spurious errors.
393 2008-05-27  Vincent Celier  <celier@adacore.com>
395         * makeutl.ads, makeutl.adb:
396         (Set_Location): New procedure
397         (Get_Location): New function
398         (Update_Main): New procedure
400 2008-05-27  Vincent Celier  <celier@adacore.com>
402         * prj-nmsc.adb:
403         (Check_Library): Allow standard project to be extended as a static
404         library project.
405         (Get_Mains): Do not inherit attribute Main in an extending library
406         project.
408 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
410         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
411         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
412         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
413         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
414         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
415         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
416         * system-mingw.ads (Always_Compatible_Rep): Likewise.
417         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
418         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
419         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
420         
421 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
423         * sem_attr.adb: add guard to previous patch.
425 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
427         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
428         a synchronized tagged type, do not attempt to build dispatch table for
429         full view. The table is built for the corresponding record type, which
430         has its own declaration.
432 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
434         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
435         to the known type entity E, rather than setting it to Any_Type. Fixes
436         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
437         for objects whose type had an illegal constraint.
439 2008-05-27  Vincent Celier  <celier@adacore.com>
441         * gnat_ugn.texi:
442         Add succinct documentation for attribute Excluded_Source_List_File
444 2008-05-27  Vincent Celier  <celier@adacore.com>
446         * prj-attr.adb: Add new project level attribute Map_File_Option
447         
448         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
449         
450         * prj.ads: Minor reformatting and comment update
451         (Project_Configuration): New component Map_File_Option
452         
453         * snames.adb: New standard name Map_File_Option
454         
455         * snames.ads: New standard name Map_File_Option
457 2008-05-27  Vincent Celier  <celier@adacore.com>
459         * xsnames.adb: Remove unused variable Oname
461 2008-05-27  Doug Rupp  <rupp@adacore.com>
463         * exp_ch6.adb:
464         (Expand_N_Function_Call): Fix comments. Minor reformatting.
466         * exp_vfpt.ads:
467         (Expand_Vax_Foreign_Return): Fix comments.
469 2008-05-27  Thomas Quinot  <quinot@adacore.com>
471         * exp_dist.adb: Minor reformating
473 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
475         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
476         No_Default_Initialization, which is now delayed until the freeze point
477         of the object. Add a comment about deferral of the check.
478         
479         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
480         on objects is moved here.
482 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
484         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
485         (Compare_Array_S16): Adjust for above change.
486         * s-casi32.adb (Uword): Likewise.
487         (Compare_Array_S32): Likewise.
488         * s-casi64.adb (Uword): Likewise.
489         (Compare_Array_S64): Likewise.
490         * s-caun16.adb (Uhalf): Likewise.
491         (Compare_Array_U16): Likewise.
492         * s-caun32.adb (Uword): Likewise.
493         (Compare_Array_U32): Likewise.
494         * s-caun64.adb (Uword): Likewise.
495         (Compare_Array_U64): Likewise.
496         
497 2008-05-26  Robert Dewar  <dewar@adacore.com>
499         * exp_ch6.adb: Add ??? comment for previous change
501         * exp_vfpt.adb: Minor reformatting
503         * exp_vfpt.ads: Add ??? comment for last change
505         * sem_attr.adb: Add some ??? comments for previous change
507         * s-vaflop.ads: Add comments for previous change
509 2008-05-26  Doug Rupp  <rupp@adacore.com>
511         * s-vaflop-vms-alpha.adb:
512         Remove System.IO use clause, to prevent spurious ambiguities when
513         package is access through rtsfind.
515 2008-05-26  Sergey Rybin  <rybin@adacore.com>
517         * tree_io.ads (ASIS_Version_Number): Update because of the changes
518         made in front-end
520 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
522         * sem_attr.adb:
523         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
524         converted to S (A)'address only if A .. B is known to be a non-null
525         range.
527 2008-05-26  Doug Rupp  <rupp@adacore.com>
529         * s-vaflop.adb:
530         (Return_D, Return_F, Return_G): New functions.
532         * s-vaflop.ads:
533         (Return_D, Return_F, Return_G): New functions.
535         * exp_vfpt.adb:
536         (Expand_Vax_Foreign_Return): New procedure
538         * exp_vfpt.ads:
539         (Expand_Vax_Foreign_Return): New procedure
541         * rtsfind.ads:
542         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
543         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
545         * exp_ch6.adb:
546         Import Exp_Vfpt
547         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
549         * s-vaflop-vms-alpha.adb:
550         (Return_D, Return_F, Return_G): New functions.
552 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
554         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
555         init proc entity when there is actual default initialization associated
556         with the component type, to avoid spurious errors on objects of scalar
557         array types that are marked Is_Public when No_Default_Initialization
558         applies.
560 2008-05-26  Thomas Quinot  <quinot@adacore.com>
562         * rtsfind.ads, rtsfind.adb:
563         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
564         (Check_RPC): Support per-PCS-kind API versioning.
565         
566         exp_dist.ads, exp_dist.adb:
567         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
568         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
569          library function Get_RACW.
570         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
571         library function Get_Reference.
572         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
573         through an intermediate Any.
574         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
575         going through an intermediate Any.
576         
577         * sem_dist.adb: Minor reformatting.
579 2008-05-26  Javier Miranda  <miranda@adacore.com>
581         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
582         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
583         (Is_Internal): Adding documentation on internal entities that have
584         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
586         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
587         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
588         Added assertion to force entities with this attribute to have
589         attribute Is_Internal set to True.
590         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
592         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
593         renamed as Derive_Progenitor_Subprograms. In addition, its code is
594         a new implementation.
595         (Add_Interface_Tag_Components): Remove special management of
596         synchronized interfaces.
597         (Analyze_Interface_Declaration): Minor reformating
598         (Build_Derived_Record_Type): Minor reformating
599         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
600         predefined primitive inherited from interface type because the body of
601         internally generated predefined primitives of tagged types are generated
602         later by Freeze_Type
603         (Derive_Subprogram): Avoid generating an internal name if the parent
604         subprogram overrides an interface primitive.
605         (Derive_Subprograms): New implementation that keeps separate the
606         management of tagged types not implementing interfaces, from tagged
607         types that implement interfaces.
608         (Is_Progenitor): New implementation.
609         (Process_Full_View): Add documentation
610         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
611         by call to Derive_Progenitor_Subprograms.
613         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
614         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
615         Skip_Controlling_Formals.
617         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
618         (Check_Conventions): New implementation. Remove local subprogram
619         Skip_Check. Remove formal Search_From of routine Check_Convention.
620         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
621         Skip_Controlling_Formals.
622         (New_Overloaded_Entity): Enable addition of predefined dispatching
623         operations.
625         * sem_disp.ads
626         (Find_Primitive_Covering_Interface): New subprogram.
628         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
629         the task body procedure as a primitive of the corresponding tagged
630         type.
631         (Check_Operation_From_Private_Type): Avoid adding twice an entity
632         to the list of primitives.
633         (Find_Primitive_Covering_Interface): New subprogram.
634         (Override_Dispatching_Operation): Add documentation.
636         * sem_type.adb (Covers): Minor reformatings
638         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
639         Collect_Interfaces.
640         Rename formal.
641         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
642         (Implements_Interface): New subprogram.
643         (Is_Parent): Removed.
644         (Primitive_Names_Match): New subprogram.
645         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
646         (Ultimate_Alias): New subprogram.
648         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
649         Collect_Interfaces.
650         Remove special management for synchronized types. Rename formal. Remove
651         internal subprograms Interface_Present_In_Parent and Add_Interface.
652         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
653         on non-record types by code to return false in such case.
654         (Implements_Interface): New subprogram.
655         (Is_Parent): Removed. No special management is now required for
656         synchronized types covering interfaces.
657         (Primitive_Names_Match): New subprogram.
658         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
659         (Ultimate_Alias): New subprogram.
661         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
662         Add internal entities associated with secondary dispatch tables to
663         the list of tagged type primitives that are not interfaces.
664         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
665         (Make_Predefined_Primitive_Specs): Code reorganization to improve
666         the management of predefined equality operator. In addition, if
667         the type has an equality function corresponding with a primitive
668         defined in an interface type, the inherited equality is abstract
669         as well, and no body can be created for it.
671         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
672         exp_util to exp_disp.
673         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
674         an entity corresponds with one of the predefined primitives required
675         to implement interfaces.
676         Update copyright notice.
678         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
679         final check on abstract subprograms all the primitives associated with
680         interface primitives because they must be visible in the public and
681         private part.
682         (Write_DT): Use Find_Dispatching_Type to locate the name of the
683         interface type. This allows the use of this routine, for debugging
684         purposes, when the tagged type is not fully decorated.
685         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
686         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
687         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
688         entity corresponds with one of the predefined primitives required to
689         implement interfaces.
691         * exp_util.adb (Find_Interface_ADT): New implementation
692         (Find_Interface): Removed.
694         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
695         list of interfaces associated with nodes
696         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
698 2008-05-26  Thomas Quinot  <quinot@adacore.com>
700         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
701         condition for assignment to temporary.
703 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
705         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
706         checks on the upper bound if the index type is a modular type, to
707         prevent wrap-around computations when size is close to upper bound of
708         type.
710 2008-05-26  Robert Dewar  <dewar@adacore.com>
712         * sem_ch3.adb: Minor reformatting
714 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
716         * sem_ch12.adb (Remove_Parent): Use specification of instance
717         to retrieve generic parent,
718         to handle properly the case where the instance is a child unit.
719         Add guard to handle properly wrapper packages.
720         Minor reformatting
722 2008-05-26  Thomas Quinot  <quinot@adacore.com>
724         * sinfo.ads: Minor reformatting
726 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
728         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
729         Generate a tag check when the result subtype of a function, defined by
730         an access definition, designates a specific tagged type.
731         (Make_Tag_Check): New routine.
733 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
735         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
737 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
739         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
740         (builtin_decl_for): Likewise.
741         * trans.c (gigi): Likewise.
742         * utils.c (def_builtin_1): Fix formatting.
744 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
746         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
747         Create the statements which map a string name to protected or task
748         entry indix.
750         * exp_ch9.adb: Add with and use clause for Stringt.
751         Minor code reformatting.
752         (Build_Entry_Names): New routine.
753         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
754         for flag Build_Entry_Names which controls the allocation of the data
755         structure for the string names of entries.
757         * exp_ch9.ads (Build_Entry_Names): New subprogram.
759         * exp_util.adb (Entry_Names_OK): New function.
761         * exp_util.ads (Entry_Names_OK): New function.
763         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
764         enumerations RE_Id and RE_Unit_Table.
766         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
767         (Free_Entry_Names_Array): New routine.
769         * s-taskin.ads: Comment reformatting.
770         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
771         Add component Entry_Names to record Ada_Task_Control_Block.
772         (Free_Entry_Names_Array): New routine.
774         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
775         dynamically allocate an array
776         of string pointers. This structure holds string entry names.
777         (Free_Entry_Names): New routine.
778         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
779         (Set_Entry_Names): New routine.
781         * s-tassta.ads:
782         (Create_Task): Add formal Build_Entry_Names. The flag is used to
783         control the allocation of the data structure which stores entry names.
784         (Set_Entry_Name): New routine.
786         * s-tpoben.adb:
787         Add with and use clause for Ada.Unchecked_Conversion.
788         (Finalize): Deallocate the entry names array.
789         (Free_Entry_Names): New routine.
790         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
791         create an array of string pointers to hold the entry names.
792         (Set_Entry_Name): New routine.
794         * s-tpoben.ads:
795         Add field Entry_Names to record Protection_Entries.
796         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
797         (Set_Entry_Name): New routine.
799 2008-05-26  Vincent Celier  <celier@adacore.com>
801         * prj-nmsc.adb:
802         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
804         * prj.ads:
805         (Project_Configuration): New component Shared_Lib_Driver
807 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
809         * inline.adb:
810         (Cleanup_Scopes): For a protected operation, transfer finalization list
811         to protected body subprogram, to force cleanup actions when needed.
813 2008-05-26  Robert Dewar  <dewar@adacore.com>
815         * sem_cat.adb: Minor reformatting
817         * gnatname.adb: Minor reformatting
819         * osint.ads: Minor reformatting
821         * s-carun8.ads: Minor reformatting
823         * g-heasor.ads: Minor comment fix (unit is now pure)
825 2008-05-26  Robert Dewar  <dewar@adacore.com>
827         * exp_ch2.adb:
828         (Expand_Current_Value): Properly type generated integer literal
830 2008-05-26  Sergey Rybin  <rybin@adacore.com>
832         * gnat_ugn.texi: Add description for the new gnatcheck rule -
833         Separate_Numeric_Error_Handlers.
835 2008-05-26  Pascal Obry  <obry@adacore.com>
837         * sem_aggr.adb: Minor reformatting.
839 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
841         * s-osinte-aix.adb:
842         (To_Target_Priority): Setting the time slice value to 0 or greater sets
843         the scheduling policy to FIFO within priorities or round-robin
844         respectively.
845         Hence, the priority must be set in this case to the one selected by the
846         user.
847         
848 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
850         * sem_ch12.adb:
851         (Remove_Parent): If the enclosing scope is an instance whose generic
852         parent is declared within some parent scope of the just completed
853         instance, make full views of the entities in that parent visible, when
854         applicable.
855         
856 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
858         * mingw32.h (STD_MINGW): Set to true for target w64.
860 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
862         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
863         instead of TREE_STATIC on the ADDR_EXPR.
865 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
867         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
868         (Sloc_to_locus): Do not overwrite known GCC locations when translating
869         GNAT standard locations.
871 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
873         * gigi.h (mark_visited): Declare.
874         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
875         only the topmost node of expressions.
876         (elaborate_expression_1): Look deeper for read-only variables.
877         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
878         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
879         (mark_visited_r): New function.
881 2008-05-23  Vincent Celier  <celier@adacore.com>
883         * snames.adb: New standard name Excluded_Source_List_File.
885         * snames.ads: New standard name Excluded_Source_List_File.
887         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
889         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
890         Get excluded sources from
891         file indicated by attribute Excluded_Source_List_File, when present and
892         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
894 2008-05-23  Robert Dewar  <dewar@adacore.com>
896         * exp_dist.adb: Minor reformatting
898 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
900         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
901         slice, convert it to an indexed component, which is equivalent, more
902         efficient, and usable even if the slice itself is not addressable.
904 2008-05-23  Olivier Hainque  <hainque@adacore.com>
906         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
907         convention also allows access to named compiler built-in subprograms
908         such as the GCC __builtin family.
910 2008-05-23  Vincent Celier  <celier@adacore.com>
912         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
913         sep. If there are several possibilities, choose the one with the
914         longer prefix.
916 2008-05-23  Vincent Celier  <celier@adacore.com>
918         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
919         back end switches when executable specified with --GCC= is same as
920         default, even if there are additional options.
922         * gnat_ugn.texi:
923         Document when the back end switches from the ALI file are taken into
924         account when gnatlink is invoked with --GCC=
926 2008-05-23  Thomas Quinot  <quinot@adacore.com>
928         * s-os_lib.adb:
929         (copy_File): Do not open destination file if source file is unreadable.
931 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
933         * utils.c (handle_type_generic_attribute): Adjust to accept
934         fixed arguments before an elipsis.
936 2008-05-21  Thomas Quinot  <quinot@adacore.com>
938         * g-sothco.ads, g-sothco.adb: New files.
940 2008-05-20  Thomas Quinot  <quinot@adacore.com>
942         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
944         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
945         Add missing "with" of Ada.Unchecked_Conversion
947         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads, 
948         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads, 
949         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads, 
950         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads, 
951         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads, 
952         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads: 
953         Move common code out of GNAT.Sockets.Thin implementations and into
954         Thin_Common.
955         New constant SIZEOF_fd_set
956         New flag Has_Sockaddr_Len
957         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
959         * g-stsifd-sockets.adb
960         (Create): Remove call to Set_Length; use Set_Family to set the family
961         and (on appropriate platforms) length fields in struct sockaddr.
963         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb, 
964         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb, 
965         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
966         Move common code out of GNAT.Sockets.Thin implementations and into
967         Thin_Common.
969         * g-socket.ads, g-socket.adb: 
970         Move common code out of GNAT.Sockets.Thin implementations and into
971         Thin_Common.
972         (Connect_Socket, Accept_Socket): Provide new versions of these two
973         routines that operate with a user specified timeout.
974         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
975         this is now handled automatically by Set_Family on platforms that
976         require it.
978         * gen-soccon.c: 
979         Move common code out of GNAT.Sockets.Thin implementations and into
980         Thin_Common.
981         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
982         this constant to 0 (not -1) because we use it to initialize an
983         unsigned_char value.
984         Align values for numeric constants only.
985         Handle the case of systems that do not support AF_INET6.
986         New constant SIZEOF_fd_set
987         New flag Has_Sockaddr_Len
988         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
990         * gsocket.h: New flag Has_Sockaddr_Len
991         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
993 2008-05-20  Santiago Uruena  <uruena@adacore.com>
995         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
997 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
999         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
1000         the underlying issue with malloc/free has been fixed. Remove associated
1001         comments.
1002         Minor reformatting.
1003         Related to PR ada/24533
1005 2008-05-20  Robert Dewar  <dewar@adacore.com>
1007         * ali.adb: Correct casing of ASCII.NUL
1009         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
1010         properly.
1012 2008-05-20  Robert Dewar  <dewar@adacore.com>
1013             Gary Dismukes  <dismukes@adacore.com>
1015         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
1016         overflow if result converted to wider integer type.
1017         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
1018         discriminated types when discriminant checks are suppressed.
1020 2008-05-20  Vincent Celier  <celier@adacore.com>
1022         * cstand.adb (Print_Standard): Issue the correct Size clause for type
1023         Wide_Wide_Character.
1025 2008-05-20  Tristan Gingold  <gingold@adacore.com>
1027         * decl.c: Do not emit a variable for a object that has an address
1028         representation clause whose value is known at compile time.
1029         When a variable has an address clause whose value is known at compile
1030         time, refer to this variable by using directly the address instead of
1031         dereferencing a pointer.
1033 2008-05-20  Robert Dewar  <dewar@adacore.com>
1035         PR ada/30740
1036         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
1037         subtypes, always False for non-modular types.
1038         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
1039         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
1040         for Shared_Storage package.
1041         (Is_RACW_Stub_Type): New entity flag.
1043         * exp_ch4.adb
1044         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
1045         case where we have a modular type with a non-binary modules.
1046         Comments reformattings.
1048         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
1049         all types.
1051 2008-05-20  Javier Miranda  <miranda@adacore.com>
1053         * exp_aggr.adb
1054         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
1055         tests did not covered the case in which the type of the aggregate has
1056         no progenitors but some its parents has progenitors.
1058 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
1059             Hristian Kirtchev  <kirtchev@adacore.com>
1061         * exp_ch3.adb
1062         (Expand_N_Object_Declaration): Correct the condition which triggers the
1063         generation of a call to Displace when initializing a class-wide object.
1064         (Build_Dcheck_Functions): Build discriminant-checking for null variants
1065         when Frontend_Layout_On_Target is true to ensure that they're available
1066         for calling when a record variant size function is built in Layout.
1068 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1070         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1071         procedure for a derived type retrieve the discriminant values from the
1072         parent using the corresponding discriminant.
1073         (Expand_N_Assignment_Statement): Skip generation of implicit
1074         if-statement associated with controlled types if we are
1075         compiling with restriction No_Finalization.
1077 2008-05-20  Vincent Celier  <celier@adacore.com>
1079         * prj.adb (Hash (Project_Id)): New function
1080         (Project_Empty): Add new component Interfaces_Defined
1082         * prj.ads (Source_Data): New component Object_Linked
1083         (Language_Config): New components Object_Generated and Objects_Linked
1084         (Hash (Project_Id)): New function
1085         (Source_Data): New Boolean components In_Interfaces and
1086         Declared_In_Interfaces.
1087         (Project_Data): New Boolean component Interfaces_Defined
1089         * prj-attr.adb: 
1090         New project level attribute Object_Generated and Objects_Linked
1091         Add new project level attribute Interfaces
1093         * prj-dect.adb: Use functions Present and No throughout
1094         (Parse_Variable_Declaration): If a string type is specified as a simple
1095         name and is not found in the current project, look for it also in the
1096         ancestors of the project.
1098         * prj-makr.adb: 
1099         Replace procedure Make with procedures Initialize, Process and Finalize
1100         to implement H414-023: process different directories with different
1101         patterns.
1102         Use functions Present and No throughout
1104         * prj-makr.ads: 
1105         Replace procedure Make with procedures Initialize, Process and Finalize
1107         * prj-nmsc.adb
1108         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
1109         the language configuration.
1110         (Process_Project_Level_Array_Attributes): Process new attributes
1111         Object_Generated and Object_Linked.
1112         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
1113         False, to indicate that the erreor/warning is a continuation.
1114         (Check): Call Report_No_Sources with Contnuation = True after the first
1115         call.
1116         (Error_Msg): Process successively contnuation character and warning
1117         character.
1118         (Find_Explicit_Sources): Check that all declared sources have been found
1119         (Check_File): Indicate in hash table Source_Names when a declared source
1120         is found.
1121         (Check_File): Set Other_Part when found
1122         (Find_Explicit_Sources): In multi language mode, check if all exceptions
1123         to the naming scheme have been found. For Ada, report an error if an
1124         exception has not been found. Otherwise, disregard the exception.
1125         (Check_Interfaces): New procedure
1126         (Add_Source): When Other_Part is defined, set mutual pointers in spec
1127         and body.
1128         (Check): In multi-language mode, call Check_Interfaces
1129         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
1130         for an excluded source.
1131         (Remove_Source): A source replacing a source in the interfaces is also
1132         in the interfaces.
1134         * prj-pars.adb: Use function Present
1136         * prj-part.adb: Use functions Present and No throughout
1137         (Parse_Single_Project): Set the parent project for child projects
1138         (Create_Virtual_Extending_Project): Register project with no qualifier
1139         (Parse_Single_Project): Allow an abstract project to be extend several
1140         times. Do not allow an abstract project to extend a non abstract
1141         project.
1143         * prj-pp.adb: Use functions Present and No throughout
1144         (Print): Take into account the full associative array attribute
1145         declarations.
1147         * prj-proc.adb: Use functions Present and No throughout
1148         (Expression): Call itself with the same From_Project_Node for the
1149         default value of an external reference.
1151         * prj-strt.adb: Use functions Present and No throughout
1152         (Parse_Variable_Reference): If a variable is specified as a simple name
1153         and is not found in the current project, look for it also in the
1154         ancestors of the project.
1156         * prj-tree.ads, prj-tree.adb (Present): New function
1157         (No): New function
1158         Use functions Present and No throughout
1159         (Parent_Project_Of): New function
1160         (Set_Parent_Project_Of): New procedure
1162         * snames.ads, snames.adb: 
1163         Add new standard names Object_Generated and Objects_Linked
1165 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
1167         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
1168         and the derived type are of the same kind.
1169         (Expand_Call): Generate type conversions for actuals of
1170         record or array types when the parent and the derived types differ in
1171         size and/or packed status.
1173 2008-05-20  Javier Miranda  <miranda@adacore.com>
1174             Ed Schonberg  <schonberg@adacore.com>
1176         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
1177         generating dispatch tables of locally defined tagged types statically.
1178         Remove implicit if-statement that is no longer required.
1179         (Expand_Dispatching_Call): If this is a call to an instance of the
1180         generic dispatching constructor, the type of the first argument may be
1181         a subtype of Tag, so always use the base type to recognize this case.
1183 2008-05-20  Thomas Quinot  <quinot@adacore.com>
1185         * exp_dist.adb
1186         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
1187         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
1188         assigning NULL into the result, to avoid a spurious warning.
1189         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
1190         is not frozen.
1191         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
1192         type.
1193         (Build_From_Any_Function, Build_To_Any_Function,
1194         Build_TypeCode_Function): For a type that has user-specified stream
1195         attributes, use an opaque sequence of octets as the representation.
1197 2008-05-20  Kevin Pouget  <pouget@adacore.com>
1199         * exp_smem.ads, exp_smem.adb: Construction of access and assign
1200         routines has been replaced by an instantiation of
1201         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
1202         shared variable declaration.
1203         Calls to access and assign routines have been replaced by calls to
1204         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
1205         instantiated package.
1206         
1207         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
1208         It identifies the new generic package added in s-shasto.
1210         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
1211         is instantiated for each shared passive variable. It provides
1212         supporting procedures called upon each read or write access by the
1213         expanded code.
1215         * sem_attr.adb:
1216         For this runtime unit (always compiled in GNAT mode), we allow
1217         stream attributes references for limited types for the case where
1218         shared passive objects are implemented using stream attributes,
1219         which is the default in GNAT's persistent storage implementation.
1221 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1223         * freeze.adb
1224         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
1225         convention from its base type, do not set the type to that of integer,
1226         because it may inherit a size clause.
1227         Warn on a size clause with a size different
1228         from that of Integer, if the type has convention C.
1230 2008-05-20  Vincent Celier  <celier@adacore.com>
1232         * gnatname.adb
1233         (Scan_Args): Rewrite to take into account new switch --and to separate
1234         arguments into sections.
1235         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
1236         section, then Finalize.
1238 2008-05-20  Tristan Gingold  <gingold@adacore.com>
1240         * init.c: Enable stack probing on ppc-linux.
1242         * tracebak.c: Add symbolic traceback for ppc-linux.
1244         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
1246 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
1248         * Makefile.in
1249         (common-tools): New rule, to avoid parallel build failure on gnat tools.
1250         Reenable parallel builds on this Makefile.
1252         * Make-lang.in: Update dependencies.
1254 2008-05-20  Robert Dewar  <dewar@adacore.com>
1256         * opt.ads (Treat_Restrictions_As_Warnings): New switch
1258         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
1259         Treat_Restrictions_As_Warnings.
1261         * switch-c.adb: Recognize new switch -gnatr
1263         * usage.adb: Add line for -gnatr
1265 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
1267         * par-ch3.adb
1268         (P_Access_Definition): Change the error message when parsing "access
1269         all" in Ada 95 mode. The message no longer forces the user to recompile
1270         in 05 mode only to discover that anonymous access types are not allowed
1271         to have "all".
1273 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
1275         * par-ch9.adb
1276         (P_Protected): Update the error message on missing "-gnat05" switch when
1277         using interfaces in conjunction with protected types. Remove the
1278         incorrect error message associated with the presence of "private" after
1279         a "with".
1281 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1283         * sem_aggr.adb: Update comments.
1284         Improve previous change for PR ada/17985
1286 2008-05-20  Thomas Quinot  <quinot@adacore.com>
1288         * sem_cat.adb
1289         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
1290         the visible part of the spec of a remote types unit.
1291         (Validate_Remote_Access_Object_Type_Declaration):
1292         New local subprogram Is_Valid_Remote_Object_Type, replaces
1293         Is_Recursively_Limited_Private.
1294         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
1295         non-controlling formals (and the return type, even though this is not
1296         explicit in the standard) must support external streaming.
1297         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
1298         as above for of RAS types and RCI subprograms. (The return type is not
1299         checked yet).
1300         Update comments related to RACWs designating limited interfaces per
1301         ARG ruling on AI05-060.
1303         * sem_util.ads, sem_util.adb
1304         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
1305         Is_Remote_Call_Interface to identify RACW types in a stable and
1306         consistent way. We used to rely in this predicate on the privateness of
1307         the designated type and its ancestors, but depending on the currently
1308         visible private parts, this caused false negatives. We now uniformly
1309         rely on checks made at the point where the RACW type is declared.
1310         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
1312 2008-05-20  Javier Miranda  <miranda@adacore.com>
1313             Ed Schonberg  <schonberg@adacore.com>
1314             Hristian Kirtchev  <kirtchev@adacore.com>
1316         * sem_ch3.adb
1317         (Analyze_Object_Declaration): Fix over-conservative condition
1318         restricting use of predefined assignment with tagged types that have
1319         convention CPP.
1320         (Analyze_Object_Declaration): Relax the check regarding deferred
1321         constants declared in scopes other than packages since they can be
1322         completed with pragma Import.
1323         Add missing escaping of all-caps word 'CPP' in error messages.
1324         (Build_Discriminated_Subtype): Do not inherit representation clauses
1325         from parent type if subtype already carries them, because they are
1326         inherited earlier during derivation and already include those that may
1327         come from a partial view.
1329         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
1330         Check the declarations of a subprogram body for proper deferred
1331         constant completion.
1333         * sem_ch7.ads, sem_ch7.adb
1334         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
1336 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1337             Thomas Quinot  <quinot@adacore.com>
1339         * sem_ch4.adb
1340         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
1341         F is a parameterless function that returns an array, and S is a subtype
1342         mark.
1343         (Analyze_Call): Insert dereference when the prefix is a parameterless
1344         function that returns an access to subprogram and the call has
1345         parameters.
1346         Reject a non-overloaded call whose name resolves to denote
1347         a primitive operation of the stub type generated to support a remote
1348         access-to-class-wide type.
1350 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1352         * sem_ch8.adb
1353         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
1354         when there is a use clause for the same entity in the context.
1355         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
1356         created for a stream attribute of an abstract type or interface type.
1358 2008-05-20  Thomas Quinot  <quinot@adacore.com>
1360         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
1361         subprogram.
1363         * sem_type.adb
1364         (Add_One_Interp): Ignore any interpretation that is a primitive
1365         operation of an RACW stub type (these primitives are only executed
1366         through dispatching, never through static calls).
1367         (Collect_Interps): When only one interpretation has been found, set N's
1368         Entity and Etype to that interpretation, otherwise Entity and Etype may
1369         still refer to an interpretation that was ignored by Add_One_Interp,
1370         in which case would end up with being marked as not overloaded but with
1371         an Entity attribute not pointing to its (unique) correct interpretation.
1373 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1375         * sem_eval.adb
1376         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
1377         denotes the whole array of its prefix.
1379 2008-05-20  Robert Dewar  <dewar@adacore.com>
1381         * sem_res.adb (Resolve_Op_Not): Warn on double negation
1383 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1385         * sprint.adb
1386         (Print_Itype): Do not modify the sloc of the component type of a
1387         (packed) array itype, because it is an unrelated type whose source
1388         location is independent of the point of creation of the itype itself.
1390 2008-05-20  Thomas Quinot  <quinot@adacore.com>
1392         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
1393         Append.
1395 2008-05-20  Robert Dewar  <dewar@adacore.com>
1396             Vincent Celier  <celier@adacore.com>
1398         * vms_data.ads: Add entry for -gnatr
1399         Put GNAT SYNC section in proper alpha order
1400         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
1402         * gnat_ugn.texi: Add documentation for new gnatname switch --and
1403         Update the style checks section
1404         Add documentation of -gnatr
1405         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
1406         subsection the explanation how compiler checks should be disabled for
1407         gnatcheck.
1408         Update the list of Ada 95 reserved words used by in the project language
1409         Add documentation for project qualifiers.
1410         Document that abstract projects may be extended by different projects in
1411         the same project tree.
1412         Add documentation for gnatmake switch -d
1414         * ug_words: Add -gnatyy VMS equivalence string.
1415         Add entry for -gnatr
1417 2008-05-20  Bob Duff  <duff@adacore.com>
1419         * a-rttiev.adb
1420         (Set_Handler): Remove code from both of these that implements
1421         RM-D.15(15/2), because it causes a race condition and potential
1422         deadlock.
1423         (Process_Queued_Events): Add comment explaining "exception when others
1424         => null". Add clarifying ".all", even though implicit .all is legal
1425         here.
1427 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
1429         * s-winext.ads: Replace representation clause by pragma Pack. Gives
1430         equivalent representation, but has the advantage of allowing
1431         compilation of this file under 64 bits platforms.
1433         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
1435         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
1437         * adaint.c: 
1438         Don't define dummy implementation of convert_addresses on ppc-linux.
1440 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1442         * exp_ch7.adb
1443         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
1444         if expression is aggregate component.
1446 2008-05-20  Robert Dewar  <dewar@adacore.com>
1448         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
1449         sem_ch12.adb: Update comments. Minor reformatting.
1451         * exp_ch2.adb: Typo
1453         * s-unstyp.ads: Fixed some typos in comments.
1455 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
1457         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
1458         type/constant.
1460         * g-socthi-vxworks.ads: Update to latest socket changes.
1462         * a-caldel-vms.adb: Resync with a-caldel spec.
1464         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
1465         Update comments.
1467 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
1469         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
1470         for dummy types pointed to by the converted pointer types.
1472 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
1474         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
1475         of records and unions.
1476         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
1478 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
1479             Robert Dewar <dewar@adacore.com>
1481         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
1482         restrictions to the prefix of 'Old.
1483         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
1484         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
1485         variables.
1487 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
1489         PR ada/24880
1490         PR ada/26635
1491         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
1492         expression to an integral type with lower precision, use NOP_EXPR
1493         directly in a couple of special cases.
1495 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
1496             Ed Schonberg <schonberg@adacore.com>
1498         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
1499         constraint expressions.
1501 2008-05-12  Tomas Bily  <tbily@suse.cz>
1503         * utils2.c (known_alignment, contains_save_expr_p)
1504         (gnat_mark_addressable): Use CASE_CONVERT.
1505         * decl.c (annotate_value): Likewise.
1506         * trans.c (maybe_stabilize_reference): Likewise.
1507         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
1508         * utils.c (rest_of_record_type_compilation): Likewise.
1509         * trans.c (protect_multiple_eval, Attribute_to_gnu)
1510         (protect_multiple_eval): Likewise.
1512 2008-05-08  Andreas Schwab  <schwab@suse.de>
1514         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
1515         DECL_IS_PURE to DECL_PURE_P.
1517 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1519         * decl.c (maybe_pad_type): Add ??? comment.
1521 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1523         * decl.c (components_to_record): Zero the alignment of the qualified
1524         union built for the variant part upon creating it.
1526 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1528         * decl.c (maybe_pad_type): Try to get a form of the type with integral
1529         mode even if the alignment is not a factor of the original size.  But
1530         make sure to create the inner field with the original size.  Reorder.
1531         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
1532         record as always addressable.
1533         * utils.c (convert): Deal specially with conversions between original
1534         and packable versions of a record type.
1535         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
1536         recognizing an assignment between padded objects.
1538 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
1540         * decl.c (make_packable_type): Resize the last component to its RM size
1541         only if it is of an aggregate type.
1542         * trans.c (call_to_gnu): Fix nit in comment.
1543         (gnat_to_gnu): Likewise.
1545 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
1547         * Makefile.in: Adapt sh4-linux target.
1549 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
1551         PR ada/35792
1552         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
1553         tagged type by an untagged protected or task type.
1555 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
1556             Tristan Gingold  <gingold@adacore.com>
1558         PR ada/36007
1559         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
1560         of aliased objects with an unconstrained nominal subtype.
1561         Cap the promotion to the effective alignment of the word mode.
1563 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1565         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
1566         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
1567         Use '&&' instead of ';'.
1569 2008-04-24  Olivier Hainque  <hainque@adacore.com>
1571         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
1572         doesn't require signed arithmetic anymore.
1574 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
1576         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
1577         (call_to_gnu): Don't set TREE_INVARIANT.
1578         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
1580 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
1582         * s-osinte-rtems.adb: Add sigalstack function.
1583         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
1584         function. Add Alternate_Stack and Alternate_Stack_Size.
1585         Add missing process_shared field to pthread_condattr_t
1586         and change ss_low_priority to int from timespec.
1588 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
1590         * i-forbla.adb: Link against -llapack and -lblas by default
1591         instead of the private -lgnalasup.
1593 2008-04-21  Olivier Hainque  <hainque@adacore.com>
1595         Access to most C builtins from Ada
1596         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
1597         (handle_pure_attribute, handle_novops_attribute,
1598         handle_nonnull_attribute, handle_sentinel_attribute,
1599         handle_noreturn_attribute, handle_malloc_attribute,
1600         handle_type_generic_attribute): New attribute handlers, from C fe.
1601         (gnat_internal_attribute_table): Map the new handlers.
1602         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
1603         (init_gigi_decls): ... here.
1604         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
1605         Move to a section dedicated to builtins processing.
1606         (build_void_list_node, builtin_type_for_size): New functions.
1607         (def_fn_type, get_nonnull_operand): Likewise.
1608         (install_builtin_elementary_type, install_builtin_function_types,
1609         install_builtin_attributes): Likewise.
1610         (fake_attribute_handler): Fake handler for attributes we don't
1611         support in Ada.
1612         (def_builtin_1): New function, worker for DEF_BUILTIN.
1613         (install_builtin_functions): New function.
1614         (gnat_install_builtins): Move to the builtins processing section.
1615         Now calling the newly introduced installers.
1617 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
1619         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
1620         constant objects, but not exceptions.
1621         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
1622         compatibility test.
1623         * utils.c (create_var_decl_1): Likewise.
1624         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
1625         the type when copying to padded object and the source is a constructor.
1627 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1629         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
1630         alignment, reset it to zero if it would end up not being greater
1631         than that of the type.
1633 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1635         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
1636         the padded type has a variable size.
1638 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1640         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
1641         target pointer mechanism as soon as the size is not constant.
1643 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1645         * gigi.h (create_var_decl_1): Declare.
1646         (create_var_decl): Turn into a macro invoking create_var_decl_1.
1647         (create_true_var_decl): Likewise.
1648         * utils.c (create_var_decl_1): Make global and reorder parameters.
1649         (create_var_decl): Delete.
1650         (create_true_var_decl): Likewise.
1652 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
1654         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
1655         objects by default.
1656         * fe.h (Debug_Flag_Dot_A): Delete.
1657         * debug.adb (-gnatd.a): Update documentation.
1659 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
1661         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
1662         "not null" parameter.
1664 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
1666         * g-socket.adb: Add a message "IPv6 not supported" to the
1667         Socket_Error exception.
1669 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
1671         PR ada/29015
1672         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
1673         the type is known instead of the underlying type.
1675 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
1677         PR ada/22387
1678         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1679         procedure for a derived type retrieve the discriminant values from
1680         the parent using the corresponding discriminant.
1682 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
1683             Gary Dismukes  <dismukes@adacore.com>
1685         PR ada/28733
1686         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
1687         which is not an entity (and hence not a package).
1688         (End_Use_Package): Ditto.
1690 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
1692         PR ada/16086
1693         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
1694         protected operation that matches the signature, not only an entry, a
1695         regular subprogram or a literal.
1697 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1699         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
1700         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
1701         if a size or alignment is specified.  Do not take into account
1702         alignment promotions for the computation of the object's size.
1703         <type>: Call maybe_pad_type only if a size or alignment is specified.
1704         (maybe_pad_type): Really reuse the RM_Size of the original type if
1705         requested.
1706         * trans.c (Attribute_to_gnu): Fix a couple of nits.
1707         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
1708         statements.  Use the padded view of the type when copying between
1709         padded objects of the same underlying type.
1711 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1713         * vms_data.ads: Fix typo in constant.
1714         * gen-soccon.c: Fix typo in error string.
1715         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
1716         Fix typos.
1717         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
1718         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
1719         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
1720         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
1721         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
1722         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
1723         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
1724         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
1725         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
1726         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
1727         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
1728         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
1729         sinfo.ads: Fix typos in comments.
1731 2008-04-14  Robert Dewar  <dewar@adacore.com>
1733         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
1734         to every non-object and change error message.
1736 2008-04-14  Robert Dewar  <dewar@adacore.com>
1738         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
1739         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
1740         directly.
1742 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
1744         PR ada/18680
1745         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
1746         apply pragma Linker_Section on type.
1748 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
1750         PR ada/16098
1751         * sem_prag.adb (Error_Pragma_Ref): New.
1752         (Process_Convention): Specialized message for non-local
1753         subprogram renaming. Detect the problem in homonyms as well.
1755 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
1757         PR ada/15915
1758         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
1759         * sem_ch12.adb (Instantiate_Object): Use it.
1760         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
1761         storage pool denotes a variable as per RM 13.11(15).
1763 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
1765         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
1766         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
1768 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
1770         PR ada/20822
1771         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
1772         line endings even on non-Unix platforms.
1774 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
1776         PR ada/35050
1777         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
1778         renaming information.
1780 2008-04-13  Samuel Tardieu  <sam@rfc1149.net> 
1782         PR ada/17985
1783         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
1784         itself.
1786 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1788         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
1789         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
1790         snames.ads, sprint.adb, stand.ads, stringt.ads,
1791         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
1792         switch.ads, sysdep.c, table.adb, table.ads,
1793         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
1794         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
1795         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
1796         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
1797         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
1798         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
1799         Fix comment typos.
1801         * sem_ch10.adb, sem_ch10.ads,
1802         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
1803         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
1804         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
1805         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
1806         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
1807         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
1808         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
1809         sem_warn.ads: Fix comment typos.
1811         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
1812         s-soflin.ads, s-stalib.ads, s-stausa.adb,
1813         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
1814         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
1815         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
1816         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
1817         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
1818         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
1819         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
1820         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
1821         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
1822         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
1823         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
1824         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
1825         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
1826         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
1827         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
1828         sem_cat.adb, sem_cat.ads: Fix comment typos.
1830 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
1832         PR ada/35825
1833         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
1835 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
1837         * s-linux-hppa.ads: Fix syntax errors.
1839 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1841         * gnat_ugn.texi: Fix typos.
1842         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
1843         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
1844         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
1845         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
1846         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
1847         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
1848         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
1849         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
1850         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
1851         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
1852         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
1853         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
1854         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
1855         s-osinte-darwin.ads, s-osinte-freebsd.ads,
1856         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
1857         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
1858         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
1859         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
1860         s-parame-hpux.ads, s-parame-vms-alpha.ads,
1861         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
1862         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
1863         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
1864         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
1865         s-rident.ads: Fix comment typos.
1867 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
1869         PR ada/28305
1870         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
1871         environment if generic instance is a top-level one.
1873 2008-04-09  Doug Rupp  <rupp@adacore.com>
1875         * decl.c (validate_size): Set minimum size for fat pointers same as
1876         access types. Code clean ups.
1878         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
1879         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
1881         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
1883         * s-crtl.ads (malloc32) New function, alias for malloc
1884         (realloc32) New function, alias for realloc
1886         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
1888         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
1889         allocator size is 32 and default pointer size is 64.
1890         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
1891         lhs type if smaller, whatever the modes.
1893         * gigi.h (malloc32_decl): New macro definition
1895         * utils.c (init_gigi_decls): New malloc32_decl
1896         Various code clean ups.
1898         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
1899         Task_Address vice System.Address.
1901         * s-taspri-vms.ads: Import System.Aux_DEC
1902         (Task_Address): New subtype of System.Aux_DEC.Short_Address
1903         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
1905         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
1906         Task_Address vice System.Address.
1908         * s-inmaop-vms.adb: Import System.Task_Primitives
1909         (To_Address): Unchecked convert to Task_Address vice System.Address
1911         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
1912         expires now.
1913         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
1914         (To_Address) Unchecked convert to Task_Address vice System.Address
1916         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
1918         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
1920 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1922         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
1923         (fdesc_type_node): Define.
1924         (null_fdesc_node): Likewise.
1925         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
1926         uses descriptors for vtables and the type comes from a dispatch table,
1927         return the descriptor type.
1928         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
1929         uses descriptors for vtables and the type comes from a dispatch table,
1930         build a descriptor in the static case and copy the existing one in the
1931         non-static case.
1932         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
1933         the type is a pointer-to-subprogram coming from a dispatch table,
1934         return the null descriptor.
1935         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
1936         vtables, the source type is the descriptor type and the target type
1937         is a pointer type, first build the pointer.
1938         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
1939         build the descriptor type and the null descriptor.
1941 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1943         * decl.c (prepend_attributes): Fix typo.
1944         * trans.c (Pragma_to_gnu): Likewise.
1945         * utils.c (gnat_genericize): Likewise.
1947 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1948             Richard Kenner  <kenner@adacore.com>
1950         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
1951         * decl.c (gnat_to_gnu_entity): Adjust for above change.
1952         <E_Record_Type>: Try to get a better form of the component for
1953         packing, even if it has an integral mode.
1954         <E_Record_Subtype>: Likewise.
1955         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
1956         exception suppressing the final conversion between record types.
1958 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1960         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
1961         alignment for space, promote the alignment of non-scalar variables with
1962         no size and alignment.
1963         * gigi.h (gnat_types_compatible_p): Declare.
1964         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
1965         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
1966         * utils.c (gnat_types_compatible_p) : New predicate.
1967         (convert): Use it throughout to test for cases where a mere view
1968         conversion is sufficient.
1969         * utils2.c (build_binary_op): Minor tweaks.
1970         (build_unary_op): Likewise.
1972 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1974         * decl.c (adjust_packed): Expand comment.
1976 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
1978         * s-tasuti.ads: Use Task_Address instead of System.Address.
1980         * makeutl.adb (Path_Or_File_Name): New function
1982         * nlists.ads, itypes.ads: Update comments.
1984         * s-crtl.ads (malloc32, realloc32): New functions.
1986         * s-auxdec.ads (Short_Address_Size): New constant.
1988         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
1990         * s-ststop.ads, s-ststop.adb: New file.
1992         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
1993         Minor reformatting.
1995 2008-04-08  Pascal Obry  <obry@adacore.com>
1997         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
1998         (Stop_Bits_Number): New type.
1999         (Parity_Check): Likewise.
2000         (Set): Add parameter to set the number of stop bits and
2001         the parity. Parameter timeout is now a duration instead
2002         of a plain integer.
2004         * g-sercom-linux.adb:
2005         Implement the stop bits and parity support for GNU/Linux.
2006         Fix handling of timeout, it must be given in tenth of seconds.
2007         
2008         * g-sercom-mingw.adb:
2009         Implement the stop bits and parity support for Windows.
2010         Use new s-win32.ads unit instead of declaring Win32 services
2011         directly into this body.
2012         Update handling of timeout as now a duration.
2014         * s-win32.ads, s-winext.ads: New files.
2016 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2017             Arnaud Charlet  <charlet@adacore.com>
2019         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
2021         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
2022         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
2024         * s-osinte-lynxos-3.ads,
2025         (Alternate_Stack): Remove when not needed. Simplify declaration
2026         otherwise.
2027         (Alternate_Stack_Size): New constant.
2029         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
2030         'Unrestricted_Access.
2032         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
2033         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
2034         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
2035         s-osinte-solaris.ads, s-osinte-vms.ads
2036         (SA_ONSTACK): New constant.
2037         (stack_t): New record type.
2038         (sigaltstack): New imported function.
2039         (Alternate_Stack): New imported variable.
2040         (Alternate_Stack_Size): New constant.
2042         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
2044         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
2045         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
2046         s-taspri-vms.ads (Task_Address): New subtype of System.Address
2047         (Task_Address_Size): New constant size of System.Address
2048         (Alternate_Stack_Size): New constant.
2050         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
2051         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
2052         Establish the alternate stack if the platform makes use of n alternate
2053         signal stack for stack overflows.
2054         (Create_Task): Take into account the alternate stack in the stack size.
2055         (Initialize): Save the address of the alternate stack into the ATCB for
2056         the environment task.
2057         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
2059         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
2061         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
2063         * s-intman-posix.adb: 
2064         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
2065         alternate signal stack for stack overflows.
2067         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
2068         x86-64, adjust the saved value of the stack pointer if the signal was
2069         raised by a stack checking probe.
2070         (HP-UX section): Use global __gnat_alternate_stack as signal handler
2071         stack and only for SIGSEGV.
2072         (Linux section): Likewise on x86 and x86-64.
2073         [VxWorks section]
2074         (__gnat_map_signal): Now static.
2075         (__gnat_error_handler): Not static any more.
2076         (__gnat_adjust_context_for_raise): New function. Signal context
2077         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
2078         propagation circuitry.
2079         (__gnat_error_handler): Second argument of a sigaction handler is a
2080         pointer, not an int, and is unused.
2081         Adjust signal context before mapping to exception.
2082         Install signal handlers for LynxOS case.
2084         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
2085         (Task_Id): Set size to Task_Address_Size
2086         (To_Task_id): Unchecked convert from Task_Address vice System.Address
2087         (To_Address): Unchecked convert to Task_Address vice System.Address
2089         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
2090         address into the ATCB if the platform makes use of an alternate signal
2091         stack for stack overflows.
2092         (Free_Task): Add call to Finalize_Attributes_Link.
2093         Add argument Relative_Deadline to pass the value specified for
2094         the task. This is not yet used for any target.
2096         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
2097         the value specified for the task.
2099 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
2101         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
2102         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
2103         s-vxwext-rtp.adb): New files.
2105         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
2106         Minor updates to accomodate changes above.
2108 2008-04-08  Pascal Obry  <obry@adacore.com>
2110         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
2111         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
2112         Use new s-win32.ads unit instead of declaration
2113         from s-osinte-mingw.ads.
2114         
2115         * s-osinte-mingw.ads:
2116         Move all non tasking based interface to s-win32.ads.
2117         
2118         * s-osprim-mingw.adb:
2119         Remove duplicated declarations and use s-win32.ads
2120         unit instead.
2122 2008-04-08  Vincent Celier  <celier@adacore.com>
2123             Arnaud Charlet  <charlet@adacore.com>
2125         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
2126         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
2127         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
2128         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2129         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
2131         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
2132         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
2133         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
2134         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
2135         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
2136         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
2137         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
2138         mlib-tgt-specific-mingw.adb: New names.
2140         * Makefile.in: 
2141         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
2142         Get rid of gnatbl.
2143         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
2144         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
2145         Minor updates for VMS
2147         * gnatbl.c: Removed.
2149 2008-04-08  Thomas Quinot  <quinot@adacore.com>
2151         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
2152         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
2153         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
2154         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
2155         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
2156         ASCII.NUL throughout.
2158 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
2159             Matthew Heaney  <heaney@adacore.com>
2161         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
2162         renaming.
2164         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,  
2165         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
2166         to convention for non-RM specs.
2167         Add descriptive header, and documented each operation
2168         document each operation
2170 2008-04-08  Robert Dewar  <dewar@adacore.com>
2171             Bob Duff  <duff@adacore.com>
2172             Gary Dismukes  <dismukes@adacore.com>
2173             Ed Schonberg  <schonberg@adacore.com>
2175         * alloc.ads: Add entries for Obsolescent_Warnings table
2177         * einfo.ads, einfo.adb: Minor reformatting.
2178         (Is_Discriminal): New subprogram.
2179         (Is_Prival): New subprogram.
2180         (Is_Protected_Component): New subprogram.
2181         (Is_Protected_Private): Removed.
2182         (Object_Ref, Set_Object_Ref): Removed.
2183         (Prival, Set_Prival): Change assertion.
2184         (Privals_Chain, Set_Privals_Chain): Removed.
2185         (Prival_Link, Set_Prival_Link): New subprogram.
2186         (Protected_Operation, Set_Protected_Operation): Removed.
2187         (Protection_Object, Set_Protection_Object): New subprogram.
2188         (Write_Field17_Name): Remove case for Object_Ref.
2189         (Write_Field20_Name): Add case for Prival_Link.
2190         (Write_Field22_Name): Remove case for Protected_Operation,
2191         Privals_Chain.
2192         Add case for Protection_Object.
2193         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
2194         so clients
2195         (Overlays_Constant): New flag
2196         (Is_Constant_Object): New predicate
2197         (Is_Standard_Character_Type): New predicate
2198         (Optimize_Alignment_Space): New flag
2199         (Optimize_Alignment_Time): New flag
2200         (Has_Postconditions): New flag
2201         (Obsolescent_Warrning): Field removed
2202         (Spec_PPC_List): New field
2203         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
2204         subprograms to get and set the relative deadline associated to a task.
2206         * exp_attr.adb (May_Be_External_Call): Account for the case where the
2207         Access attribute is part of a named parameter association.
2208         (Expand_Access_To_Protected_Op): Test for the attribute occurring
2209         within an init proc and use that directly as the scope rather than
2210         traversing up to the protected operation's enclosing scope. Only apply
2211         assertion on Is_Open_Scopes in the case the scope traversal is done.
2212         For the init proc case use the address of the first formal (_init) as
2213         the protected object reference.
2214         Implement Invalid_Value attribute
2215         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
2216         contents of the dispatch table there is no need to duplicate the
2217         itypes associated with record types (i.e. the implicit full view
2218         of private types).
2219         Implement Enum_Val attribute
2220         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
2221         within _Postconditions procedure
2222         (Expand_N_Attribute_Reference, case Result): Implement new attribute
2224         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
2225         a return statement calls a function that is not available in
2226         configurable runtime.
2227         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
2228         (Expand_Non_Function_Return): Generate call to _Postconditions proc
2229         (Expand_Simple_Function_Return): Ditto
2231         * frontend.adb: Add call to Sem_Aux.Initialize
2233         * sem_aux.ads, sem_aux.adb: New file.
2235         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
2236         Add new Pragma_Relative_Deadline.
2237         Add support for pragmas Check and Check_Policy
2239         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
2240         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
2241         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
2242         missing check because they are not allowed in CPP tagged types.
2243         Add Sure parameter to Note_Possible_Modification calls
2244         Add implementation of Invalid_Value attribute
2245         Implement new attribute Has_Tagged_Values
2246         Implement Enum_Val attribute
2247         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
2248         generated attributes.
2249         (Analyze_Attribute, case Result): If prefix of the attribute is
2250         overloaded, it always resolves to the enclosing function.
2251         (Analyze_Attribute, case Result): Properly deal with analysis when
2252         Postconditions are not active.
2253         (Resolve_Attribute, case Result): Properly deal with appearence during
2254         preanalysis in spec.
2255         Add processing for attribute Result
2257         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
2258         for operators.
2259         (Analyze_Subprogram_Body): Install private_with_clauses when the body
2260         acts as a spec.
2261         (Check_Inline_Pragma): recognize an inline pragma that appears within
2262         the subprogram body to which it applies.
2263         (Analyze_Function_Return): Check that type of the expression of a return
2264         statement in a function with a class-wide result is not declared at a
2265         deeper level than the function.
2266         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
2267         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
2268         user- defined operators.
2269         (Install_Formals): Moved to spec to allow use from Sem_Prag for
2270         analysis of precondition/postcondition pragmas.
2271         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
2272         Last_Formal, along with lots of comments on what this is about
2273         (Analyze_Subprogram_Body): Fix case where we move entities from the
2274         spec to the body when there are no body entities (now possible with
2275         precondition and postcondition pragmas).
2276         (Process_PPCs): New procedure
2277         (Analyze_Subprogram_Body): Add call to Process_PPCs
2279         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
2280         clause.
2281         (Pop_Scope): Restore Check_Policy_List on scope exit
2282         (Push_Scope): Save Check_Policy_List on scope entry
2283         Change name In_Default_Expression      => In_Spec_Expression
2284         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2285         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
2286         (Analyze_Object_Renaming): Allow 'Reference as object
2287         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
2288         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
2289         of restriction identifier.
2290         Add Sure parameter to Note_Possible_Modication calls
2292         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
2293         Don't check for primitive operations when calling Rep_Item_Too_Late.
2294         (Process_Import_Or_Interface): Do not place flag on formal
2295         subprograms.
2296         (Analyze_Pragma, case Export): If the entity is a deferred constant,
2297         propagate information to full view, which is the one elaborated by the
2298         back-end.
2299         (Make_Inline): the pragma is effective if it applies to an internally
2300         generated subprogram declaration for a body that carries the pragma.
2301         (Analyze_Pragma, case Optimize_Alignment): Set new flag
2302         Optimize_Alignment_Local.
2303         (Analyze_PPC_In_Decl_Part): New procedure
2304         (Get_Pragma_Arg): Moved to outer level
2305         (Check_Precondition_Postcondition): Change to allow new visibility
2306         rules for package spec
2307         (Analyze_Pragma, case Check_Policy): Change placement rules to be
2308         same as pragma Suppress/Unsuppress.
2309         Change name In_Default_Expression      => In_Spec_Expression
2310         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2311         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
2312         (Check_Precondition_Postcondition): Do proper visibility preanalysis
2313         for the case of these pragmas appearing in the spec.
2314         (Check_Enabled): New function
2315         (Initialize): New procedure
2316         (Tree_Read): New procedure
2317         (Tree_Write): New procedure
2318         (Check_Precondition_Postcondition): New procedure
2319         Implement pragmas Check and Check_Policy
2320         Merge Assert processing with Check
2322         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
2323         New warning flag -gnatw.e
2325         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
2326         returning whether a task (or main procedure) has a pragma
2327         Relative_Deadline.
2328         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
2329         (or main procedure) has a pragma Relative_Deadline.
2330         Add Next_Pragma field to N_Pragma node
2331         (PPC_Enabled): New flag
2332         (Next_Pragma): Now used for Pre/Postcondition processing
2334         * snames.h, snames.ads, snames.adb: New standard name
2335         Inherit_Source_Path
2336         Add entry for 'Invalid_Value attribute
2337         Add entry for new attribute Has_Tagged_Values
2338         Add entry for Enum_Val attribute
2339         Add new standard names Aggregate, Configuration and Library.
2340         Add _Postconditions
2341         Add _Result
2342         Add Pragma_Precondition
2343         Add Pragma_Postcondition
2344         Add Attribute_Result
2345         New standard name Archive_Builder_Append_Option
2346         (Preset_Names): Add _relative_deadline and relative_deadline definitions
2347         There was also a missing non_preemptive_within_priorities.
2348         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
2349         Relative_Deadline.
2350         Add support for pragmas Check and Check_Policy
2352         * tree_gen.adb: Call Sem_Aux.Tree_Write
2354         * tree_in.adb: Call Sem_Aux.Tree_Read
2356         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
2357         sequence
2359         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
2360         sequence
2362         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
2363         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
2364         Relative_Deadline.
2365         (Expand_Pragma_Check): New procedure
2367         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
2368         buffer.
2370         * sinfo.adb (PPC_Enabled): New flag
2372 2008-04-08  Robert Dewar  <dewar@adacore.com>
2373             Gary Dismukes  <dismukes@adacore.com>
2374             Javier Miranda  <miranda@adacore.com>
2375             Ed Schonberg  <schonberg@adacore.com>
2377         * fe.h: Remove global Optimize_Alignment flag, no longer used
2379         * layout.adb: Test Optimize_Alignment flags rather than global switch
2381         * lib.ads, lib.adb: New OA_Setting field in library record
2383         * lib-load.adb: New OA_Setting field in library record
2385         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
2386         units mentioned in limited_with_ clauses in the ali file, with an
2387         'Y' marker.
2388         New Ox fields in U line
2390         * opt.adb: New flag Optimize_Alignment_Local
2391         (Check_Policy_List[_Config]): New flags
2393         * opt.ads (Invalid_Value_Used): New flag
2394         New switch Optimize_Alignment_Local
2395         (Warn_On_Parameter_Order): New flag
2396         (Check_Policy_List[_Config]): New flags
2398         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
2399         limited_with clauses.
2400         New data structures for Optimize_Alignment
2402         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
2403         New procedure
2404         (Check_Consistent_Optimize_Alignment): Rework for new structure
2405         (Check_Consistent_Restrictions): Fix incorrect error message
2407         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
2408         created class-wide type (to the Parent field of the specific type).
2409         (Install_Siblings): Handle properly private_with_clauses on subprogram
2410         bodies and on generic units.
2411         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
2412         illegal limited_with_clause that names a non-existent package.
2413         (Check_Body_Required): Determine whether a unit named a limited_with
2414         clause needs a body.
2415         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
2416         Capture Optimize_Alignment settings to set new OA_Setting field in
2417         library record.
2418         (Build_Limited_Views): Include task and protected type declarations.
2420         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
2421         case of a possible constant redeclaration where the current object is
2422         an entry index constant.
2423         (Analyze_Object_Declaration): Generate an error in case of CPP
2424         class-wide object initialization.
2425         (Analyze_Object_Declaration): Add extra information on warnings for
2426         declaration of unconstrained objects.
2427         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
2428         conflicts with the setting of Stored_Constraint in the case where the
2429         access type entity has already been created as an E_Incomplete_Type due
2430         to a limited with clause.
2431         Use new Is_Standard_Character_Type predicate
2432         (Analyze_Object_Declaration): Apply access_constant check only after
2433         expression has been resolved, given that it may be overloaded with
2434         several access types.
2435         (Constant_Redeclaration): Additional legality checks for deferred
2436         constant declarations tha involve anonymous access types and/or null
2437         exclusion indicators.
2438         (Analyze_Type_Declaration): Set Optimize_Alignment flags
2439         (Analyze_Subtype_Declaration): Ditto
2440         (Analyze_Object_Declaration): Ditto
2441         (Analyze_Object_Declaration): Don't count tasks in generics
2442         Change name In_Default_Expression      => In_Spec_Expression
2443         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2444         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
2445         (Process_Discriminants): Additional check for illegal use of default
2446         expressions in access discriminant specifications in a type that is not
2447         explicitly limited.
2448         (Check_Abstract_Overriding): If an inherited function dispaches on an
2449         access result, it must be overridden, even if the type is a null
2450         extension.
2451         (Derive_Subprogram): The formals of the derived subprogram have the
2452         names and defaults of the parent subprogram, even if the type is
2453         obtained from the actual subprogram.
2454         (Derive_Subprogram): In the presence of interfaces, a formal of an
2455         inherited operation has the derived type not only if it descends from
2456         the type of the formal of the parent operation, but also if it
2457         implements it. This is relevant for the renamings created for the
2458         primitive operations of the actual for a formal derived type.
2459         (Is_Progenitor): New predicate, to determine whether the type of a
2460         formal in the parent operation must be replaced by the derived type.
2462         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
2463         predicate recursive to handle components that have a user-defined
2464         Initialize procedure. Handle controlled derived types whose ancestor
2465         has a user-defined Initialize procedured.
2466         (Note_Possible_Modification): Add Sure parameter, generate warning if
2467         sure modification of constant
2468         Use new Is_Standard_Character_Type predicate
2469         (Find_Parameter_Type): when determining whether a protected operation
2470         implements an interface operation, retrieve the type of the formal from
2471         the entity when the formal is an access parameter or an
2472         anonymous-access-to-subprogram.
2473         Move Copy_Parameter_List to sem_util, for use when building stubbed
2474         subprogram bodies.
2475         (Has_Access_Values): Tagged types now return False
2476         (Within_HSS_Or_If): New procedure
2477         (Set_Optimize_Alignment_Flags): New procedure
2478         Change name In_Default_Expression      => In_Spec_Expression
2479         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2480         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
2482 2008-04-08  Tristan Gingold  <gingold@adacore.com>
2484         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
2486 2008-04-08  Tristan Gingold  <gingold@adacore.com>
2488 PR ada/10768
2490         * cuintp.c: Fix 16 bits issue for AVR.
2491         On AVR, integer is 16 bits, so it can't be used to do math with
2492         Base (=32768).
2493         So use long_integer instead.
2495 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
2497         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
2498         System.OS_Primitives.
2499         Change type of various constants, parameters and local variables from
2500         Time to representation type OS_Time.
2501         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
2502         Remove the declaration of constant Mili_F from several routines. New
2503         body for internal package Conversions_Operations.
2504         (Time_Of): Add default parameters for several formals.
2506         * a-caldel.adb: Minor reformatting
2508         * a-calend.ads, a-calend.adb: New body for internal package
2509         Conversions_Operations.
2510         (Time_Of): Add default parameters for several formals.
2512         * Makefile.rtl: Add a-ststop
2513         Add Ada.Calendar.Conversions to the list of runtime files.
2514         Add g-timsta
2516         * a-calcon.adb, a-calcon.ads: New files.
2518 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
2519             Tristan Gingold  <gingold@adacore.com>
2521         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
2522         (Install_Restricted_Handlers): New procedure
2523         which is a simplified version of Install_Handlers that does not store
2524         previously installed.
2526         * s-interr-vxworks.adb: Fix ACATS cxc3001
2527         On VxWorks interrupts can't be detached.
2528         (Install_Restricted_Handlers): New procedure.
2530         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
2531         procedure.
2533 2008-04-08  Olivier Hainque  <hainque@adacore.com>
2535         * s-intman-vxworks.ads, s-intman-vxworks.adb
2536         (Map_And_Raise_Exception): Remove. Was an import of only part of the
2537         required services already implemented elsewhere.
2538         (Notify_Exception): Delete body, import __gnat_error_handler instead.
2539         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
2540         argument passed to the handler, which we need for ZCX propagation
2541         purposes.
2543 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
2545         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
2547         * g-timsta.adb, g-timsta.ads: New files.
2549 2008-04-08  Robert Dewar  <dewar@adacore.com>
2551         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
2552         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
2553         (Raise_Exception_Always): Fix documentation accordingly
2555 2008-04-08  Robert Dewar  <dewar@adacore.com>
2557         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
2558         Stream_Convert)
2560         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
2561         FOnly
2563 2008-04-08  Javier Miranda  <miranda@adacore.com>
2564             Robert Dewar  <dewar@adacore.com>
2565             Ed Schonberg  <schonberg@adacore.com>
2567         * a-tags.adb (Register_Interface_Offset): New subprogram.
2568         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
2569         (To_Predef_Prims_Table_Ptr): Removed.
2570         (Acc_Size): Removed.
2571         (To_Acc_Size): Removed.
2572         (Parent_Size): Modified to the call the subprogram returning the size of
2573         the parent by means of the new TSD component Size_Func.
2575         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
2576         (DT_Offset_To_Top_Offset): New constant value that is used to generate
2577         code referencing the Offset_To_Top component of the dispatch table's
2578         prologue.
2579         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
2580         use of 'address to initialize dispatch table slots.
2581         (Size_Func): New component of the TSD. Used by the run-time to call the
2582         size primitive of the tagged type.
2584         * checks.adb (Apply_Access_Check): Avoid check when accessing the
2585         Offset_To_Top component of a dispatch table.
2586         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
2587         deferred constant declaration. do not add a null expression, to prevent
2588         spurious errors when full declaration is analyzed.
2589         (Apply_Discriminant_Check): If both discriminant constraints share a
2590         node which is not static but has no side effects, do not generate a
2591         check for that discriminant.
2592         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
2593         subexpr, since the prefix of an attribute is a name.
2595         * checks.ads: Fix nit in comment.
2597         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
2598         and body of predefined primitives in case of CPP tagged type
2599         derivations.
2600         (Freeze_Type): Deal properly with no storage pool case
2601         (Make_Predefined_Primitive_Specs): Generate specification of abstract
2602         primitive Deep_Adjust if a nonlimited interface is derived from a
2603         limited interface.
2604         (Build_Dcheck_Functions): Create discriminant-checking functions only
2605         for variants that have some component(s).
2606         (Build_Slice_Assignment): In expanded code for slice assignment, handle
2607         properly the case where the slice bounds extend to the last value of the
2608         underlying representation.
2609         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
2610         (Is_Variable_Size_Record): An array component has a static size if
2611         index bounds are enumeration literals.
2613         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
2614         an external tag has been specified for the type.
2615         (Building_Static_DT): Add missing support for private types.
2616         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
2617         to the entity associated with the parent of Typ. This is done to
2618         avoid wrong access when the parent is a private type.
2619         (Expand_Interface_Conversion): Improve error message when the
2620         configurable runtime has no support for dynamic interface conversion.
2621         (Expand_Interface_Thunk): Add missing support to interface types in
2622         configurable runtime.
2623         (Expand_Dispatching_Call): remove obsolete code.
2624         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
2625         ensure that all subtypes and aggregates associated with dispatch
2626         tables have the attribute Is_Dispatch_Table_Entity set to true.
2627         (Register_Primitive): Rename one variable to improve code reading.
2628         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
2629         of the pointer to the 'size primitive in the TSD.
2631         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
2632         (RE_Offset_To_Top_Ptr): New entity.
2633         (RE_Register_Interface_Offset): New entity.
2634         (RE_Set_Dynamic_Offset_To_Top): New entity.
2635         (RE_Set_Offset_To_Top): Removed entity.
2636         (RE_Prim_Ptr): New entity
2637         (RE_Size_Func): New entity
2638         (RE_Size_Ptr): New entity
2639         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
2640         (Ada_Dispatching_Child): Define this new subrange.
2641         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
2642          RE_Time_Span, and RE_Time_Span_Zero).
2643         (RE_Unit_Table): Add new required run-time calls
2645         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
2646         children.
2648         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
2649         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
2650          initializes the Offset_To_Top component of a dispatch table.
2651         (Build_Predef_Prims): Removed.
2652         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
2653          its actual code.
2654         (Build_Set_Size_Function): New subprogram.
2656         * exp_ch13.adb: Do not generate storage variable for storage_size zero
2657         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
2659 2008-04-08  Robert Dewar  <dewar@adacore.com>
2661         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
2662         computing Fore when Exp > 0
2664 2008-04-08  Robert Dewar  <dewar@adacore.com>
2666         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
2668         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
2669         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
2671         * fmap.adb: Remove Big_String declarations (now in Types)
2672         (No_Mapping_File): New Boolean global variable
2673         (Initialize): When mapping file cannot be read, set No_Mapping_File to
2674         False.
2675         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
2676         tables were empty before adding entries, open the mapping file
2677         with Truncate = True, instead of delete/re-create.
2679         * fname-sf.adb: Remove Big_String declarations (now in Types)
2681         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
2682         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
2683         big pointer types
2685         * table.ads: Add for Table_Ptr'Storage_Size use 0
2687         * types.ads: Add Big_String declarations
2688         Add Size_Clause of zero for big pointer types
2690 2008-04-08  Vincent Celier  <celier@adacore.com>
2692         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
2693         (Usage): Add line for switch --subdirs=
2694         Add new switch -eL, to follow symbolic links when processing project
2695         files.
2697         * gnatcmd.adb: Process switches -eL and --subdirs=
2698         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
2699         Program_Name to get proper tool names when AAMP_On_Target is set.
2700         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
2701         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
2702         Osint.Program_Name).
2704         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
2705         (Usage): Add lines for switches -eL and --subdirs=
2707         * makeusg.adb: Add line for switch --subdirs=
2709         * prj.ads: 
2710         (Source_Data): New Boolean component Compiled, defaulted to True
2711         (Empty_File_Name: New global variable in private part, initialized in
2712         procedure Initialize.
2713         (Subdirs_Option): New constant string
2714         (Subdirs): New String_Ptr global variable
2715         (Language_Config): New component Include_Compatible_Languages
2716         (Project_Qualifier): New type for project qualifiers
2717         (Project_Data): New component Qualifier
2718         (Project_Configuration): New component Archive_Builder_Append_Option
2720         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
2721         another imported project indicate the name of this imported project.
2722         (Check_File): When a unit is in two project files, indicate the project
2723         names and the paths of the source files for each project.
2724         (Add_Source): Set Compiled to False if compiler driver is empty. Only
2725         set object, dependency and switches file names if Compiled is True.
2726         (Process_Compiler): Allow the empty string for value of attribute Driver
2727         (Get_Directories): When Subdirs is not null and Object_Dir is not
2728          specified, locate and create if necessary the actual object dir.
2729         (Locate_Directory): When Subdirs is not empty and Create is not the
2730         empty string, locate and create if necessary the actual directory
2731         as a subdirectory of directory Name.
2732         (Check_Library_Attributes.Check_Library): Allow a project where the only
2733         "sources" are header files of file based languages to be imported by
2734         library projects, in multi-language mode (gprbuild).
2735         (Check_Library_Attributes.Check_Library): In multi-language mode
2736         (gprbuild), allow a library project to import a project with no
2737         sources, even when this is not declared explicitly.
2738         (Check_If_Externally_Built): A virtual project extending an externally
2739         built project is also externally built.
2740         (Check_Library_Attributes): For a virtual project extending a library
2741         project, inherit the library directory.
2742         (Process_Project_Level_Array_Attributes): Process new attribute
2743         Inherit_Source_Path.
2744         For projects with specified qualifiers "standard", "library" or
2745         "abstract", check that the project conforms to the qualifier.
2746         (Process_Project_Level_Simple_Attributes): Process new attribute
2747          Archive_Builder_Append_Option.
2749         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
2750         (Normalize_Compiler_Switches): Only keep compiler switches that are
2751         passed to gnat1 by the gcc driver and that are stored in the ALI file
2752         by gnat1.
2753         Do not take into account switc -save-temps
2755         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
2756         gprmake is called with -eL.
2757         (Scan_Arg): Recognize switch -eL
2758         (Usage): Add line for switch -eL
2760         * prj.adb (Initialize): Initialize Empty_File_Name
2761         (Project_Empty): New component Qualifier
2763         * prj-attr.ads, prj-attr.adb: New project level attribute
2764         Inherit_Source_Path.
2765         New project level attribute Archive_Builder_Append_Option
2767         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
2769         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
2770         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
2771         upward compatibility.
2773         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
2774         each Trying ..." on different lines.
2775         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
2776         is "configuration" when not in configuration. Fail when in configuration
2777         when a specified qualifier is other than "configuration".
2779         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
2780         full associative array together.
2781         (Recursive_Process): Put the project qualifier in the project data
2782         
2783         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
2784         (Set_Project_Qualifier_Of): New procedure
2786 2008-04-08  Robert Dewar  <dewar@adacore.com>
2788         * errout.ads: Update comments for new handling of info: messages
2790         * erroutc.adb (Matches): New procedure
2791         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
2792         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
2793          info messages as well as style messages.
2795         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
2797         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
2798         subprograms.
2799         (Check_A_Call): Special "info: " warnings now have ? in the text
2800         (Elab_Warning): Use info message in static case
2802 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
2804         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
2805         whether an array aggregate with static bounds and scalar components
2806         should be expanded into a static constant.
2808 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
2809             Ed Schonberg  <schonberg@adacore.com>
2810             Robert Dewar  <dewar@adacore.com>
2812         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
2813         Has_Stream_Attribute_ Definition when checking for available stream
2814         attributes on parameters of a limited type in Ada 2005. Necessary for
2815         proper recognition of visible stream attribute clauses.
2816         (Has_Stream_Attribute_Definition): If the type is derived from a
2817         private type, then use the derived type's underlying type for checking
2818         whether it has stream attributes.
2819         (Validate_Object_Declaration): The check for a user-defined Initialize
2820         procedure applies also to types with controlled components or a
2821         controlled ancestor.
2822         Reject an object declaration in a preelaborated unit if the type is a
2823         controlled type with an overriding Initialize procedure.
2824         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
2825         checking when the parent of a dereference is a selected component and
2826         the name has not been analyzed.
2828         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
2829         prefixes that are invalid explicit dereferences of remote
2830         access-to-class-wide values, first checking whether the selected
2831         component is a prefixed form of call to a tagged operation.
2832         (Analyze_Call): Remove code that issues an error for limited function
2833         calls in illegal contexts, as we now support all of the contexts that
2834         were forbidden here.
2835         Allow a function call that returns a task.and appears as the
2836         prefix of a selected component.
2837         (Analyze_Reference): Give error message if we try to make a 'Reference
2838         for an object that is atomic/aliased without its type having the
2839         corresponding attribute.
2840         (Analyze_Call): Remove condition checking for attributes to allow
2841         calls to functions with inherently limited results as prefixes of
2842         attributes. Remove related comment about Class attributes.
2843         (Analyze_Selected_Component): If the prefix is a remote type, check
2844         whether this is a prefixed call before reporting an error.
2845         (Complete_Object_Operation): If the controlling formal is an access to
2846         variable reject an actual that is a constant or an access to one.
2847         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
2848         primitive operations from base type.
2850         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
2851         build-in-place
2852         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
2853         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
2854         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
2855         (Expand_N_Slice): Test for prefix that is a build-in-place function call
2856         and call Make_Build_In_Place_Call_In_Anonymous_Context.
2857         (Analyze_Call): Remove code that issues an error for limited function
2858         calls in illegal contexts, as we now support all of the contexts that
2859         were forbidden here.
2860         New calling sequence for Get_Simple_Init_Val
2861         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
2862         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
2864 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
2865             Ed Schonberg  <schonberg@adacore.com>
2866             Robert Dewar  <dewar@adacore.com>
2868         * exp_ch2.adb: Minor reformatting.
2869         (Expand_Entry_Index_Parameter): Set the type of the identifier.
2870         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
2871         (Expand_Protected_Component): New routine.
2872         (Expand_Protected_Private): Removed.
2873         Add Sure parameter to Note_Possible_Modification calls
2875         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
2876         generated subprogram declaration must inherit the overriding indicator
2877         from the instantiation node.
2878         (Validate_Access_Type_Instance): If the designated type of the actual is
2879         a limited view, use the available view in all cases, not only if the
2880         type is an incomplete type.
2881         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
2882         and the actual subtype does not exclude null.
2883         (Process_Default): Handle properly abstract formal subprograms.
2884         (Check_Formal_Package_Instance): Handle properly defaulted formal
2885         subprograms in a partially parameterized formal package.
2886         Add Sure parameter to Note_Possible_Modification calls
2887         (Validate_Derived_Type_Instance): if the formal is non-limited, the
2888         actual cannot be limited.
2889         (Collect_Previous_Instances): Generate instance bodies for subprograms
2890         as well.
2892         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
2893         try to set RM_Size.
2894         Add Sure parameter to Note_Possible_Modification calls
2895         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
2896         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
2897         constant overlaid by variable and issue warning.
2898         Use new Is_Standard_Character_Type predicate
2899         (Analyze_Record_Representation_Clause): Check that the specified
2900         Last_Bit is not less than First_Bit - 1.
2901         (Analyze_Attribute_Definition_Clause, case Address): Check for
2902         self-referential address clause
2904         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
2905         detection mechanism when the lhs is a prival.
2906         (Analyze_Assignment): Call Check_Unprotected_Access to detect
2907         assignment of a pointer to protected data, to an object declared
2908         outside of the protected object.
2909         (Analyze_Loop_Statement): Check for unreachable code after loop
2910         Add Sure parameter to Note_Possible_Modication calls
2911         Protect analysis from previous syntax error such as a scope mismatch
2912         or a missing begin.
2913         (Analyze_Assignment_Statement): The assignment is illegal if the
2914         left-hand is an interface.
2916         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
2917         violation of restriction No_Implicit_Conditionals
2918         Add Sure parameter to Note_Possible_Modication calls
2919         Use new Is_Standard_Character_Type predicate
2920         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
2921         call as operator. Fixes problems (e.g. validity checking) which
2922         come from the result looking as though it does not come from source).
2923         (Resolve_Call): Check case of name in named parameter if style checks
2924         are enabled.
2925         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
2926         from the checking that such calls should not occur from an entry body.
2927         (Resolve_Call): If the return type of an Inline_Always function
2928         requires the secondary stack, create a transient scope for the call
2929         if the body of the function is not available for inlining.
2930         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
2931         that are actuals for in-out formals.
2932         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
2933         primitive operations from base type.
2934         (Analyze_Selected_Component): If the context is a call to a protected
2935         operation the parent may be an indexed component prior to expansion.
2936         (Resolve_Actuals): If an actual is of a protected subtype, use its
2937         base type to determine whether a conversion to the corresponding record
2938         is needed.
2939         (Resolve_Short_Circuit): Handle pragma Check
2941         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
2942         Use new Is_Standard_Character_Type predicate
2943         (Eval_Relational_Op): Catch more cases of string comparison
2945 2008-04-08  Robert Dewar  <dewar@adacore.com>
2946             Gary Dismukes  <dismukes@adacore.com>
2948         * s-rident.ads: Add No_Default_Initialization restriction
2950         * exp_tss.adb: 
2951         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
2952         (Set_TSS): Handle No_Default_Initialization case
2954         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
2955         No_Default_Initialization
2956         (Expand_N_Subprogram_Body): Remove redundant initialization of out
2957         parameters when Normalize_Scalars is active.
2958         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
2959         Fix casing error in formal parameter name in call
2960         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
2961         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
2962         dispatching call on VM targets.
2964 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
2965             Thomas Quinot  <quinot@adacore.com>
2967         * exp_ch7.adb (Find_Final_List): Change the test for generating a
2968         selected component from an access type's Associated_Final_Chain to
2969         check for the presence of that field, rather than assuming it exists
2970         for all named access types.
2971         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
2972         procedure to call at the end of the generated cleanup procedure.
2973         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
2974         and an At_End_Proc already exists in the handled sequence of statements
2975         for which cleanup actions are being expanded, the original cleanup
2976         action must be preserved.
2978 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
2979             Ed Schonberg  <schonberg@adacore.com>
2980             Robert Dewar  <dewar@adacore.com>
2981             Gary Dismukes  <dismukes@adacore.com>
2983         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
2984         Build_Unprotected_Subprogram_Body): Generate debug info for
2985         declarations related to the handling of private data in task and
2986         protected types.
2987         (Debug_Private_Data_Declarations): New subprogram.
2988         (Install_Private_Data_Declarations): Remove all debug info flagging.
2989         This is now done by Debug_Private_Data_Declarations at the correct
2990         stage of expansion.
2991         (Build_Simple_Entry_Call): If the task name is a function call, expand
2992         the prefix into an object declaration, and make the surrounding block a
2993         task master.
2994         (Build_Master_Entity): An internal block is a master if it wraps a call.
2995         Code reformatting, update comments. Code clean up.
2996         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
2997         (Replicate_Entry_Formals): If the formal is an access parameter or
2998         anonymous access to subprogram, copy the original tree to create new
2999         entities for the formals of the subprogram.
3000         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
3001         for tasks to store the value passed using pragma Relative_Deadline.
3002         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
3003         run-time call to create a task.
3004         (Build_Wrapper_Spec): If the controlling argument of the interface
3005         operation is an access parameter with a non-null indicator, use the
3006         non-null indicator on the wrapper.
3008         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
3009         present, which it may not be in the case where the type entity is an
3010         incomplete view brought in by a limited with.
3011         (Analyze_Task_Type): Only retrieve the full view when present, which it
3012         may not be in the case where the type entity is an incomplete view brought
3013         in by a limited with.
3014         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
3015         private components of a protected type, to prevent the generation of freeze
3016         nodes for which there is no proper scope of elaboration.
3018         * exp_util.ads, exp_util.adb
3019         (Remove_Side_Effects): If the expression is a function call that returns a
3020         task, expand into a declaration to invoke the build_in_place machinery.
3021         (Find_Protection_Object): New routine.
3022         (Remove_Side_Effects): Also make a copy of the value
3023         for attributes whose result is of an elementary type.
3024         (Silly_Boolean_Array_Not_Test): New procedure
3025         (Silly_Boolean_Array_Xor_Test): New procedure
3026         (Is_Volatile_Reference): New function
3027         (Remove_Side_Effects): Use Is_Volatile_Reference
3028         (Possible_Bit_Aligned_Component): Handle slice case properly
3030         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
3031         case test to Exp_Util
3032         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
3034 2008-04-08  Thomas Quinot  <quinot@adacore.com>
3036         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
3037         in call
3038         (Add_RACW_Features): When processing an RACW in another unit than the
3039         main unit, set Body_Decls to No_List to indicate that the bodies of
3040         the type's TSS must not be generated.
3041         (GARLIC_Support.Add_RACW_Read_Attribute,
3042         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
3043         Body_Decls is No_List.
3044         (PolyORB_Support.Add_RACW_Read_Attribute,
3045         PolyORB_Support.Add_RACW_Write_Attribute,
3046         PolyORB_Support.Add_RACW_From_Any,
3047         PolyORB_Support.Add_RACW_To_Any,
3048         PolyORB_Support.Add_RACW_TypeCode): Same.
3049         (Transmit_As_Unconstrained): New function.
3050         (Build_Ordered_Parameters_List): Use the above to order parameters.
3051         (GARLIC_Support.Build_General_Calling_Stubs):
3052         Use the above to determine which parameters to unmarshall using 'Input
3053         at the point where their temporary is declared (as opposed to later on
3054         with a 'Read call).
3055         (PolyORB_Support.Build_General_Calling_Stubs):
3056         Use the above to determine which parameters to unmarshall using From_Any
3057         at the point where their temporary is declared (as opposed to later on
3058         with an assignment).
3060 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
3062         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
3063         an Input function for an access type, do not perform default
3064         initialization on the local variable that receives the value, to
3065         prevent spurious warnings when the type is null-excluding.
3067 2008-04-08  Robert Dewar  <dewar@adacore.com>
3068             Ed Schonberg  <schonberg@adacore.com>
3070         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
3071         units.
3072         (Size_Known): Generic formal scalar types have known at compile
3073         time size, so remove check.
3074         Fix casing error in formal parameter name in call
3075         (Freeze_Subprogram): If the subprogram is a user-defined operator,
3076         recheck its overriding indication.
3078 2008-04-08  Vincent Celier  <celier@adacore.com>
3080         * gnat1drv.adb: Send all messages indicating an error to standard error
3082 2008-04-08  Robert Dewar  <dewar@adacore.com>
3084         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
3085         (List_Applicable_Restrictions): Do not list existing restrictions
3087 2008-04-08  Thomas Quinot  <quinot@adacore.com>
3089         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
3090         add a pointer to generic sockets literature
3091         do not mention that the given example is "typical" usage.
3092         Remove obsolete comment about multicast not being supported on Windows.
3093         (Connect_Socket): Make Server mode IN rather than IN OUT
3094         since this formal is never modified.
3096 2008-04-08  Robert Dewar  <dewar@adacore.com>
3098         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
3099         the declaration for some different entity.
3100         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
3101         list is precent (following the parent subtype indication), display
3102         appropriate "and" keyword.
3104         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
3105         Remove unnecessary calls to Init_Size_Align and Init_Esize.
3106         Add notes on use of Parent field of an Itype
3108 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
3109             Robert Dewar  <dewar@adacore.com>
3110             Gary Dismukes  <dismukes@adacore.com>
3112         * lib-xref.adb (Is_On_LHS): Remove dead code
3113         (Output_Overriden_Op): If the overridden operation is itself inherited,
3114         list the ancestor operation, which is the one whose body or absstract
3115         specification is actually being overridden. For source navigation
3116         purposes.
3118         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
3119         operation is primitive for the type.
3120         (Declare_Inherited_Private_Subprograms): If the new operation overrides
3121         an inherited private subprogram, set properly the Overridden_Operation
3122         attribute, for better cross-reference information.
3123         (Analyze_Package_Specification): Do late analysis of spec PPCs
3124         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
3125         properly the full view and underlying full views of a private type in a
3126         child unit, whose full view is derived from a private type in a parent
3127         unit, and whose own full view becomes visible in the child body.
3129         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
3130         primitive operation after the type has been frozen, add an explicit
3131         reference to the type and the operation, because other primitive
3132         references have been emitted already.
3133         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3134         dispatching call on VM targets.
3136 2008-04-08  Vincent Celier  <celier@adacore.com>
3137             Thomas Quinot  <quinot@adacore.com>
3139         * make.adb: (Gnatmake_Called): Remove, no longer necessary
3140         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
3141         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
3142         (Insert_Project_Sources): Take into account index in multi-unit source
3143         files.
3144         After building a library project, delete all temporary files.
3145         (Initialize): Reset current output after parsing project file.
3146         (Collect_Arguments_And_Compile): Never insert in the queue the sources
3147         of library projects that are externally built.
3148         Put file name in error and inform messages if -df is used
3149         (Display): If invoked with -d7, do not display path names, but only
3150         file names.
3152         * makeutl.ads (Path_Or_File_Name): New function
3153         (Path_Or_File_Name): New function
3155 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
3157         * Make-lang.in: Disable warnings during first stage of bootstrap
3158         Get rid of gnatbl.
3159         Update dependencies.
3161 2008-04-08  Vincent Celier  <celier@adacore.com>
3163         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
3164         case to decide if ALI object file is included in library.
3165         (Build_Library): Never attempt to build a library if the project is
3166         externally built.
3168 2008-04-08  Thomas Quinot  <quinot@adacore.com>
3170         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
3171         (No_List) is defined to return Empty.
3173 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
3175         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
3176         documentation.
3177         Update comments.
3178         (Read_Default_Search_Dirs): Do not consider spaces as path separators
3179         because spaces may be part of legal paths.
3181 2008-04-08  Robert Dewar  <dewar@adacore.com>
3183         * par-ch11.adb (P_Exception_Handler): Check indentation level for
3184         handler
3186 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
3188         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
3189         in a type declaration, if this is not an interface declaration or
3190         private type extension.
3192 2008-04-08  Vincent Celier  <celier@adacore.com>
3194         * prj-util.adb (Executable_Of): New String parameter Language. When
3195         Ada_Main is False and Language is not empty, attempt to remove the body
3196         suffix or the spec suffix of the language to get the base of the
3197         executable file name.
3198         (Put): New Boolean parameter Lower_Case, defauilted to False. When
3199         Lower_Case is True, put the value in lower case in the name list.
3200         (Executable_Of): If there is no executable suffix in the configuration,
3201         then do not modify Executable_Extension_On_Target.
3203         * prj-util.ads (Executable_Of): New String parameter Language,
3204         defaulted to the empty string.
3205         (Put): New Boolean parameter Lower_Case, defauilted to False
3207 2008-04-08  Robert Dewar  <dewar@adacore.com>
3209         * scng.adb (Scan_Identifier): Handle case of identifier starting with
3210         wide character using UTF-8 encoding.
3212 2008-04-08  Javier Miranda  <miranda@adacore.com>
3214         * sem.adb (Analyze): Consider case in which we analyze an empty node
3215         that was generated by a call to a runtime function that is not
3216         available under the configurable runtime.
3218         * sem.ads (Inside_Freezing_Actions): New flag.
3219         (Save_Check_Policy_List): New field in scope stack entry
3221 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
3222             Robert Dewar  <dewar@adacore.com>
3224         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
3225         the ancestor part of an extension aggregate for a limited type.
3226         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
3227         enumeration index bounds.
3228         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
3229         when array is too short.
3230         (Check_Expr_OK_In_Limited_Aggregate): Move function
3231         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
3232         change name).
3233         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
3234         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
3235         component associations.
3236         (Check_Non_Limited_Type): Moved to outer level and renamed.
3237         (Resolve_Record_Aggregate): In an extension aggregate, an association
3238         with a box initialization can only designate a component of the
3239         extension, not a component inherited from the given ancestor
3241         * sem_case.adb: Use new Is_Standard_Character_Type predicate
3243 2008-04-08  Robert Dewar  <dewar@adacore.com>
3245         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
3246         negative scale
3247         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
3248         Properly handle case where Aft > Scale and input number is less than
3249         one.
3251 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
3253         * s-stoele.ads, s-soflin.ads: Move the location of
3254         Dummy_Communication_Block from System.Storage_Elements to
3255         System.Soft_Links.
3257         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
3258         emulate Communication_Block in certain scenarios.
3260 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
3262         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
3263         subprogram.
3264         Add new subtype S_WWC, unchecked conversion routines From_WWC and
3265         To_WWC.
3266         (I_WWC, O_WWC): New routines for input and output of
3267         Wide_Wide_Character.
3269 2008-04-08  Robert Dewar  <dewar@adacore.com>
3271         * stringt.adb (Write_String_Table_Entry): Handle wide characters
3272         properly
3274 2008-04-08  Robert Dewar  <dewar@adacore.com>
3276         * styleg.adb (Check_Comment): Allow special char after -- in
3277         non-end-of-line case
3279 2008-04-08  Robert Dewar  <dewar@adacore.com>
3281         * stylesw.adb: Implement -gnaty + - y options
3282         (Set_GNAT_Style_Check_Options): Includ I in style check string
3284         * stylesw.ads: Add comments for new style switch options
3286 2008-04-08  Sergey Rybin  <rybin@adacore.com>
3288         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
3289         to the set of the GNAT components needed by ASIS.
3291 2008-04-08  Bob Duff  <duff@adacore.com>
3293         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
3295 2008-04-08  Tristan Gingold  <gingold@adacore.com>
3297         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
3298         Improve error message generation.
3300 2008-04-08  Vincent Celier  <celier@adacore.com>
3302         * a-direct.adb (Start_Search): Check for Name_Error before checking for
3303         Use_Error, as specified in the RM. Check if directory is open and raise
3304         Use_Error if it is not.
3306 2008-04-08  Vincent Celier  <celier@adacore.com>
3307             Robert Dewar  <dewar@adacore.com>
3309         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
3310         AAMP_On_Target is set.
3312         * vms_data.ads: Add NOxxx to style check switch list
3313         Add entry COMPONENTS for -gnatVe
3314         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
3315         (/SUBDIRS=).
3316         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
3317         Add qualifiers for gnatmetric coupling options
3318         Add note that -gnata enables all checks
3319         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
3320         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
3321         New warning flag -gnatw.e
3323         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
3324         Add entry for -gnatyN (forgotten before)
3325         Line for new warning switch -gnatw.p
3326         New warning flag -gnatw.e
3328         * gnat_ugn.texi: Add documentation fpr project file switch -aP
3329         Document -gnaty - + y
3330         Replace occurences of "package specification" with "package spec"
3331         Define preprocessing symbols in documentation of gnatprep
3332         Clarify reason for distinguishing overflow checking
3333         Add documentation for project-aware tool switches -eL and --subdirs=
3334         Complete list of configuration pragmas
3335         Specify that, even when gnatmake switch -x is used, mains on the command
3336         line need to be sources of project files.
3337         Editing of gnatcheck/gnatmetric doc.
3338         Add documentation for -gnatw.p/-gnatw.P
3339         Add missing documentation for -fno-inline-functions.
3340         Add documentation for -gnatw.e
3342         * gnat_rm.texi: Add documentation for No_Default_Initialization
3343         Replace occurences of "package specification" with "package spec"
3344         Document use of * in Warnings Off string
3345         Update documentation of alignment/component clauses.
3346         Add documentation for Invalid_Value
3347         Document new consistency rule for Optimize_Alignment
3348         Add documentation for Precondition and Postcondition pragmas
3349         Add documentation for Check and Check_Policy pragmas
3350         Document new Enum_Val attribute
3351         Remove requirement for static string in pragma Assert
3352         Add documentation on GNAT.Time_Stamp
3354         * ug_words: add entry for -gnatVe
3355         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
3356         Add entry for -gnatw.e
3358         * debug.adb: Add missing documentation for d.a flag
3359         Document new -gnatd.a switch.
3360         Add documentation for new gnatmake debug switch -df
3362 2008-04-08  Thomas Quinot  <quinot@adacore.com>
3364         * gen-soccon.c: Bump year in copyright notices.
3366         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
3368 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3370         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
3371         Minor reformatting.
3373 2008-04-08  Robert Dewar  <dewar@adacore.com>
3374             Bob Duff  <duff@adacore.com>
3376         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
3377         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
3379         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
3381         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
3383         * g-trasym.ads: Minor comment improvements
3385         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
3387         * a-sequio.ads, a-direio.ads: improve message for tagged type
3389         * a-strunb.ads: Minor reformatting
3391         * a-tifiio.adb: Minor reformatting
3393         * atree.adb (Fix_Parents): Use clearer names for formals
3394         Cleanup and simplify code
3395         Use named notation in calls
3397         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
3398         confusing calls
3400         * uintp.adb: Used named notation for some confusing calls
3402         * bindusg.adb: Minor change in one line of output
3404         * cstand.adb: Minor reformatting of src representation of Standard
3406         * a-assert.ads: Add comment.
3408         * g-decstr.adb: Fix bad indentation
3410         * expander.ads, expander.adb: Code clean up.
3412         * sem_dist.ads: Minor comment improvement
3414         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
3415         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
3417         * i-cstrin.adb: Fix casing error in formal parameter name in call
3419 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
3421         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
3422         mentioned in limited_with_clauses to do create semantic dependencies
3423         even though they appear in the ali file.
3425 2008-04-08  Emmanuel Briot  <briot@adacore.com>
3427         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
3428         statement.
3429         (Get_Configuration): New subprogram.
3431         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
3432         These optional parameters help preserve the casing of the project's name
3433         when pretty-printing.
3435 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
3436             Arnaud Charlet  <charlet@adacore.com>
3438         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
3439         then use __gnat_set_exit_status to report the returned status code.
3441         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
3442         messages on .NET, since some constructs of the language are not
3443         properly supported.
3445         * gnatlink.adb (Gnatlink): In case the command line is too long for the
3446         .NET linker, gnatlink now concatenate all .il files and pass this to
3447         ilasm.
3449 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
3450             Xavier Grave  <grave@ipno.in2p3.fr>
3452         * Makefile.in: Add make ifeq define for mips/mipsel support.
3453         * g-soccon-linux-mips.ads, system-linux-mipsel.ads, 
3454         system-linux-mips.ads: New files.
3456 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
3458         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
3459         detect systems using GNU libc.
3460         * gsocket.h: ditto.
3461         * socket.c: ditto.
3462         * adaint.c: ditto.
3463         * link.c: ditto.
3465 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
3467         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New 
3468         constant constant for sysconf call.
3469         (bit_field): New packed boolean type used by cpu_set_t.
3470         (cpu_set_t): New type corresponding to the C type with
3471         the same name. Note that on the Ada side we use a bit
3472         field array for the affinity mask. There is not need
3473         for the C macro for setting individual bit.
3474         (pthread_setaffinity_np): New imported routine.
3475         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
3476         on GNU/kFreeBSD.
3478 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3480         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
3482 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3484         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
3485         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
3486         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
3487         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
3488         Return by Depressed Stack Pointer.
3490 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3492         * decl.c (is_variable_size): Do not unconditionally return false
3493         on non-strict alignment platforms.
3495 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3497         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
3498         used to process all the variants of the specified type.
3499         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
3500         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
3501         (rest_of_type_decl_compilation): Likewise.
3502         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
3504 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
3506         * gigi.h (insert_block): Kill.
3507         * utils.c (insert_block): Kill.
3509 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
3511         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
3512         type has self-referential size, get the size from the initializing
3513         expression directly if it is also a constant whose nominal type
3514         has self-referential size.
3516 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3518         PR ada/33688
3519         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
3521         PR ada/33857
3522         * env.c: Always include crt_externs.h if __APPLE__ is defined.
3523         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
3525 2008-04-01  Andreas Jaeger  <aj@suse.de>
3527         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
3528         IP_PKTINFO.
3530 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3532         * g-table.adb, g-tasloc.adb, g-traceb.ads,
3533         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
3534         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
3535         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
3536         gnatlink.adb, gnatmem.adb, gprep.adb,
3537         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
3538         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
3539         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
3540         lib-xref.ads, lib.adb, link.c, live.ads,
3541         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
3542         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
3543         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
3544         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
3545         namet.adb, namet.h, nlists.adb, nlists.ads,
3546         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
3547         osint-c.ads, osint.adb, osint.ads, output.ads,
3548         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
3549         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
3550         par-endh.adb, par-labl.adb, par-prag.adb,
3551         par-sync.adb, par-tchk.adb, par-util.adb,
3552         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
3553         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3554         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
3555         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
3557 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3559         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
3560         size if it has overflowed.
3562 2008-03-31  Olivier Hainque  <hainque@adacore.com>
3563             Eric Botcazou  <ebotcazou@adacore.com>
3565         * utils2.c (find_common_type): Document assumption on t1/t2 vs
3566         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
3568 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3570         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
3571         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
3572         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
3573         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
3574         exp_tss.ads, exp_util.adb, exp_util.ads,
3575         exp_vfpt.adb, freeze.adb, freeze.ads,
3576         frontend.adb, g-alleve.adb, g-altcon.adb,
3577         g-altive.ads, g-alveop.ads, g-alvevi.ads,
3578         g-arrspl.adb, g-busorg.ads, g-calend.adb,
3579         g-calend.ads, g-casuti.ads, g-cgideb.adb,
3580         g-comlin.adb, g-comlin.ads, g-curexc.ads,
3581         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
3582         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
3583         g-dyntab.adb, g-encstr.ads, g-excact.ads,
3584         g-except.ads, g-expect.ads, g-heasor.adb,
3585         g-hesora.adb, g-hesorg.adb, g-htable.ads,
3586         g-locfil.ads, g-md5.adb, g-md5.ads,
3587         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
3588         g-pehage.adb, g-pehage.ads, g-regexp.adb,
3589         g-regexp.ads, g-regpat.adb, g-regpat.ads,
3590         g-soccon-aix.ads, g-soccon-darwin.ads,
3591         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
3592         g-soccon-hpux.ads, g-soccon-irix.ads,
3593         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
3594         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
3595         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
3596         g-soccon-solaris.ads, g-soccon-tru64.ads,
3597         g-soccon-vms.ads, g-soccon-vxworks.ads,
3598         g-soccon.ads, g-socket.adb, g-socket.ads,
3599         g-socthi-mingw.adb, g-socthi-vms.adb,
3600         g-socthi-vxworks.adb, g-soliop-mingw.ads,
3601         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
3602         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
3603         typos.
3605 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
3607         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
3608         if the procedure is imported.
3610 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3612         * adaint.c: Fix warnings.
3614 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3616         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
3618 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3620         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
3621         Fix problem of status check for null file
3623 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3625         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
3626         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
3627         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
3628         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
3629         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
3630         comments.
3632 2008-03-26  Thomas Quinot  <quinot@adacore.com>
3634         PR ada/33688
3635         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
3636         Get_Socket_Option): Add support for Receive_Packet_Info.
3638         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3639         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3640         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
3641         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
3642         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
3643         new constants SO_REUSEPORT and IP_PKTINFO
3645 2008-03-26  Robert Dewar  <dewar@adacore.com>
3647         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
3648         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
3649         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
3650         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
3651         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
3652         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
3653         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
3654         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
3655         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
3656         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
3657         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
3658         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
3659         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
3660         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
3661         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
3662         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
3663         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
3664         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
3665         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
3666         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
3667         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
3668         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
3669         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
3670         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
3671         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
3672         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
3673         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
3674         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
3675         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
3676         s-tasloc.adb: Minor reformatting.
3677         Update comments.
3678         Remove "used for" sections from comments.
3680 2008-03-26  Robert Dewar  <dewar@adacore.com>
3682         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
3683         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
3684         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
3685         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
3686         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
3687         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
3688         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
3689         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
3690         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
3691         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
3692         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
3693         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
3694         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
3695         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
3696         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
3697         double spaced if it fits on one line and otherwise single spaced.
3699 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3701         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb, 
3702         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb, 
3703         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
3704         or task info if the thread could not be created.
3706 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3708         * gnatvsn.ads (Library_Version): Bump to 4.4.
3709         (Current_Year): Bump to 2008.
3711 2008-03-26  Robert Dewar  <dewar@adacore.com>
3713         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
3715         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
3717         * debug.adb: Add debug flags d.r and d.v
3718         Add debug flag .T (Optimize_Alignment (Time))
3719         Add debug flag .S (Optimize_Alignment (Space))
3721         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
3722         depending on setting of relevant debug flags.
3723         Replace use of Warnings_Off by Has_Warnings_Off
3724         (Freeze_Entity): In circuit for warning on suspicious convention
3725         actuals, do not give warning if subprogram has same entity as formal
3726         type, or if subprogram does not come from source.
3727         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
3728         if Optimize_Alignment set to Space.
3730         * frontend.adb: Add call to Sem_Warn.Initialize
3731         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
3732         Reset Optimize_Alignment mode from debug switches .S and .T
3734         * layout.adb (Layout_Composite_Object): Rewritten for
3735         Optimize_Aligment pragma.
3737         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
3738         mode.
3740         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
3742         * par-prag.adb (N_Pragma): Chars field removed, use Chars
3743         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
3744         this change. Add entry for pragma Optimize_Alignment
3746         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
3747         (Pragma_Identifier (..
3748         instead, adjustments throughout to accomodate this change.
3749         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
3750         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
3751         Add implementation of pragma Optimize_Alignment
3753 2008-03-26  Vincent Celier  <celier@adacore.com>
3755         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
3756         Improve memory usage to avoid use of stack.
3758 2008-03-26  Robert Dewar  <dewar@adacore.com>
3760         * a-teioed.ads: Correct value of Default_Fill
3762         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
3764 2008-03-26  Robert Dewar  <dewar@adacore.com>
3766         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
3767         with Current_Output (introduce Self).
3769 2008-03-26  Robert Dewar  <dewar@adacore.com>
3771         * checks.adb (Ensure_Valid): Capture valid status if possible
3772         (eliminate checks)
3774 2008-03-26  Robert Dewar  <dewar@adacore.com>
3776         * stand.ads: Deal with reordering of package standard declarations
3778         * cstand.adb: Put package Standard declarations in proper order
3780 2008-03-26  Robert Dewar  <dewar@adacore.com>
3782         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
3783         (Pragma_Identifier (.. instead.
3784         (OK_To_Reorder_Components): New flag
3785         (Has_Entries): Code cleanup.
3786         (Warnings_Off_Used): New flag
3787         (Warnings_Off_Used_Unmodified): New flag
3788         (Warnings_Off_Used_Unreferenced): New flag
3789         (Has_Warnings_Off): New function
3790         (Has_Unmodified): New function
3791         (Has_Unreferenced): New function
3792         (Is_Trivial_Subprogram): New flag
3793         (Is_Static_Dispatch_Table_Entity): New attribute.
3794         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
3795         (more consistent with other similar names)
3796         (Access_Subprogram_Type): New classification function
3798 2008-03-26  Robert Dewar  <dewar@adacore.com>
3800         * errout.ads: Document new !! insertion sequence
3802         * errout.adb (N_Pragma): Chars field removed, use Chars
3803         (Pragma_Identifier (..  instead.
3804         Replace use of Warnings_Off by Has_Warnings_Off
3805         (Error_Msg_Internal): Don't delete warning ending in !!
3807 2008-03-26  Robert Dewar  <dewar@adacore.com>
3809         * par.adb (Check_No_Right_Paren): Removed no longer used
3811         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
3812         (Pragma_Identifier (..  instead.
3814         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
3816         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
3817         par-ch4.adb: Minor improvements in error recovery and messages.
3819         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
3820         non-serious
3822         * par-ch9.adb: Minor improvements in error recovery and messages
3823         (P_Protected): Better error recovery for "protected type x;"
3825         * par-util.adb: Minor improvements in error recovery and messages
3826         (Check_No_Right_Paren): Removed no longer used
3828 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
3830         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
3831         that the prefix of an attribute is the type of the aggregate being
3832         expanded.
3834 2008-03-26  Javier Miranda  <miranda@adacore.com>
3835             Robert Dewar  <dewar@adacore.com>
3837         * exp_attr.adb (N_Pragma): Chars field removed.
3838         (Expand_N_Attribute_Reference): If the designated type associated with
3839         attribute 'Unrestricted_Access is a subprogram entity then replace it
3840         by an E_Subprogram_Type itype.
3841         Implement attribute Old
3843         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
3845         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
3846         Replace call to
3847         New_Internal_Entity by call to Create_Itype to centralize calls
3848         building itypes, ad propagate the convention of the designated
3849         subprogram. In addition, disable the machinery cleaning constant
3850         indications from all entities in current scope when 'Unrestricted_Access
3851         corresponds with a node initializing a dispatch table slot.
3852         (Analyze_Attribute): Parameterless attributes returning a string or a
3853         type will not be called with improper arguments, so we can remove junk
3854         code that was dealing with this case.
3855         Implement attribute Old
3857         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
3858         Add entry for pragma Optimize_Alignment
3859         New standard names Sync and Synchronize
3861 2008-03-26  Robert Dewar  <dewar@adacore.com>
3862             Arnaud Charlet  <charlet@adacore.com>
3864         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
3865         stmt.
3866         (No_Exception_Propagation_Active): New function.
3867         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
3868         Update comments, and review all uses of No_Exception_Propagation, which
3869         are now correct and in sync with what gigi expects.
3871         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
3872         function.
3873         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
3874         Update comments, and review all uses of No_Exception_Propagation, which
3875         are now correct and in sync with what gigi expects.
3877 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
3879         * sem_ch3.adb (Access_Definition): If the access type is the return
3880         result of a protected function, create an itype reference for it
3881         because usage will be in an inner scope from the point of declaration.
3882         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
3883         OK_To_Reorder_Components.
3884         (Make_Index): If an overloaded range includes a universal integer
3885         interpretation, resolve to Standard.Integer.
3886         (Analyze_Subtype_Indication): Copy Convention to subtype
3887         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
3888         limited an synchronized progenitors in type declaration and private
3889         extension declarations.
3891         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
3892         protected subprogram body, determine proper scope from subprogram
3893         declaration.
3895 2008-03-26  Robert Dewar  <dewar@adacore.com>
3897         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
3898         No_Run_Time_Mode
3900 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
3902         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
3903         of a heap allocator for a limited unconstrained function return when
3904         resstriction No_Allocators is active.
3905         (Analyze_Allocator): The restriction No_Allocators is now only checked
3906         on allocators that have Comes_From_Source set, as per RM-H.4(7).
3908         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
3909         of a heap allocator for a limited unconstrained function return when
3910         resstriction No_Allocators is active.
3911         (Analyze_Allocator): The restriction No_Allocators is now only checked
3912         on allocators that have Comes_From_Source set, as per RM-H.4(7).
3913         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
3914         operands are fixed-point types, the universal_fixed predefined operation
3915         is used, regardless of whether the operand type (s) have a primitive
3916         operation of the same name.
3918 2008-03-26  Javier Miranda  <miranda@adacore.com>
3920         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
3921         Is_Static_Dispatch_Table
3922         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
3923         to Exchange_Declarations to exchange the private and full-view. Bug
3924         found working in this issue.
3925         (Expand_Dispatching_Call): Propagate the convention of the subprogram
3926         to the subprogram pointer type.
3927         (Make_Secondary_DT): Replace generation of Prim'Address by
3928         Address (Prim'Unrestricted_Access)
3929         (Make_DT): Replace generation of Prim'Address by
3930         Address (Prim'Unrestricted_Access)
3931         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
3932         simple call form for single entry.
3933         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
3934         tables of predefined primitives).
3935         (Make_Secondary_DT): Add support to handle access to dispatch tables of
3936         predefined primitives.
3937         (Make_Tags): Add entities to Access_Dispatch_Table associated with
3938         access to dispatch tables containing predefined primitives.
3940         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
3941         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
3942         this change.
3943         (Register_Predefined_DT_Entry): Updated to handle the new contents
3944         of attribute Access_Disp_Table (pointers to dispatch tables containing
3945         predefined primitives).
3947         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
3948         subprogram.
3949         (Find_Interface_ADT): Updated to skip the new contents of attribute
3950         Access_Dispatch_Table (pointers to dispatch tables containing predefined
3951         primitives).
3953         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
3954         concurrent types.
3955         (Set_Convention): Use new function Is_Access_Subprogram_Type
3956         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
3957         Access_Dispatch_Table (pointers to dispatch tables containing predefined
3958         primitives).
3960         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
3961         expanded code avoiding calls to Build_Predef_Prims.
3962         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
3963         call to Build_Get_Predefined_Prim_Op_Address.
3965 2008-03-26  Javier Miranda  <miranda@adacore.com>
3967         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
3968         subprogram Corresponding_Runtime_Package to know the runtime package
3969         that will provide support to a given protected type.
3971         * exp_ch9.adb (Add_Private_Declarations,
3972         Build_Protected_Subprogram_Call,
3973         Build_Protected_Entry, Build_Simple_Entry_Call,
3974         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
3975         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
3976         cleanup using the new centralized subprogram Corresponding_Runtime
3977         Package to know the runtime package that provides support to
3978         a given protected type.
3980 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
3982         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
3983         assignment is within the initialization procedure for a packed array,
3984         and Initialize_Scalars is enabled, compile right-hand side with checks
3985         off, because the value is purposely out of range.
3987 2008-03-26  Vincent Celier  <celier@adacore.com>
3989         * gnatcmd.adb: Add processing for GNAT SYNC
3991         * vms_conv.ads: (Command_Type): Add command Sync
3993         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
3995         * vms_data.ads: Add entries for -gnatw.w
3996         Add qualifier for gnatstub --header-file option
3997         Add switches for GNAT SYNC
3999         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
4000         (Add_Package_Name): New procedure
4001         (Package_Name_List): New function
4002         (Initialize): Add known package names to the list
4003         (Register_New_Package): Add the new package name to the list
4005 2008-03-26  Robert Dewar  <dewar@adacore.com>
4007         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
4008         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
4009         Raise_Exception by "raise with" construct.
4011 2008-03-26  Pascal Obry  <obry@adacore.com>
4013         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
4014         supported platforms.
4015         
4016         * Makefile.rtl: Add g-sercom.o.
4017         
4018         * impunit.adb: Add g-sercom.adb.
4019         
4020         * s-crtl.ads (open): New routine.
4021         (close): Likewise.
4022         (write): Likewise.
4023         
4024         * s-osinte-mingw.ads (BYTE): New type.
4025         (CHAR): Likewise.
4026         (OVERLAPPED): Likewise.
4027         (GENERIC_READ): New constant.
4028         (GENERIC_WRITE): Likewise.
4029         (OPEN_EXISTING): Likewise.
4030         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
4031         type instead.
4032         (CreateFile): New routine.
4033         (WriteFile): Likewise.
4034         (ReadFile): Likewise.
4035         (CloseHandle): Move next to the other file oriented routines.
4037         * g-sercom.ads: New unit.
4039         * g-sercom.adb: Default implementation, calls to this unit will raise
4040         a program error exception.
4041         
4042         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
4043         GNU/Linux implementations.
4045 2008-03-26  Robert Dewar  <dewar@adacore.com>
4047         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
4049         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
4050         unchecked conversion for different conventions only for subprogram
4051         pointers or on VMS.
4053 2008-03-26  Vincent Celier  <celier@adacore.com>
4055         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
4056         to check if the specified object file is correct.
4058 2008-03-26  Thomas Quinot  <quinot@adacore.com>
4060         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
4061         Comes_From_Source to exclude primitives from being checked. We want to
4062         exclude predefined primitives only, so use the appropriate specific
4063         predicate. Also, flag a formal parameter of an anonymous
4064         access-to-subprogram type as illegal for a primitive operation of a
4065         remote access to class-wide type.
4067 2008-03-26  Vincent Celier  <celier@adacore.com>
4069         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
4070         known, check if it may be a missspelling of a known package name. In
4071         not verbose, not mode, issue warnings only if the package name is a
4072         possible misspelling.
4073         In verbose mode, always issue a warning for a not known package name,
4074         plus a warning if the name is a misspelling of a known package name.
4076         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
4077         limited withs or limited withs are parse during one call.
4078         (Parse_Single_Project): Post parse context clause in two passes: non
4079         limited withs before current project and limited withs after current
4080         project.
4082         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
4083         project with the name With_Name, even if it is only extended indirectly.
4084         (Recursive_Process): Process projects in order: first single withs, then
4085         current project, then limited withs.
4087         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
4088         project with the name With_Name, even if it is only extended indirectly.
4090 2008-03-26  Robert Dewar  <dewar@adacore.com>
4092         * scn.adb (Initialize_Scanner): Format messages belong on standard error
4094 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
4096         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
4097         a generic subprogram that is imported, do not attempt to compile
4098         non-existent body.
4100         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
4101         imported, do not generate a raise_program_error for the non-existent
4102         body.
4103         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
4104         perform minimal name resolution on the generic to avoid spurious
4105         warnings.
4106         (Find_Actual_Type): the designated type of the actual in a child unit
4107         may be declared in a parent unit without being an actual.
4109 2008-03-26  Robert Dewar  <dewar@adacore.com>
4111         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
4112         * sinfo.ads, sinfo.adb (From_At_End): New flag
4114 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
4116         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
4117         operations that have an interface parameter.
4118         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
4119         Don't treat No_Return call as raise.
4121         * sem_disp.adb (Check_Dispatching_Operations): apply check for
4122         non-primitive interface primitives to access parameters, not to all
4123         parameters of an access type.
4125 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
4127         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
4128         declarations of a parent unit are made visible when compiling a child
4129         instance, the parent is not a hidden open scope, even though it may
4130         contain other pending instance.
4131         
4132         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
4133         hidden open scope for some child instance, it does affect the
4134         visibility status of other stach entries.
4135         (Analyze_Object_Renaming): Check that a class-wide object cannot be
4136         renamed as an object of a specific type.
4138 2008-03-26  Robert Dewar  <dewar@adacore.com>
4140         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
4141         recursion and raise SE directly.
4142         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
4143         set for formal type for IN mode parameter.
4145 2008-03-26  Robert Dewar  <dewar@adacore.com>
4147         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
4148         (Initialize): New procedure
4149         (Output_Warnings_Off_Warnings): New procedure
4150         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
4151         (Output_Non_Modifed_In_Out_Warnings): Ditto
4152         (Warn_On_Unreferenced_Entity): Ditto
4154 2008-03-26  Vincent Celier  <celier@adacore.com>
4156         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
4157         readable.
4159 2008-03-26  Matthew Heaney  <heaney@adacore.com>
4161         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads, 
4162         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
4163         Marked with clauses as private, and controlled operations as overriding
4165 2008-03-26  Robert Dewar  <dewar@adacore.com>
4167         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
4169 2008-03-26  Robert Dewar  <dewar@adacore.com>
4171         * back_end.adb, back_end.ads: Minor reformatting
4173         * bindgen.adb: Minor clarification of comments
4175         * fname.ads: Minor comment fixes
4177         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
4178         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
4180         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
4181         xsnames.adb: Remove warnings off pragma no longer needed
4183         * a-catizo.ads, a-calari.ads, a-calfor.adb,
4184         a-calfor.ads: Fix header.
4186 2008-03-26  Tristan Gingold  <gingold@adacore.com>
4188         * init.c: Do not adjust pc for HPARITH on alpha/vms.
4190 2008-03-26  Robert Dewar  <dewar@adacore.com>
4192         * lib-xref.adb: (OK_To_Set_Reference): New function
4193         (Generate_Reference): Don't set referenced from occurrence in Warnings,
4194         Unmodified, or Unreferenced pragma
4196 2008-03-26  Robert Dewar  <dewar@adacore.com>
4198         * alloc.ads: Add entries for Warnings_Off_Pragmas table
4200 2008-03-26  GNAT Script  <nobody@adacore.com>
4202         * Make-lang.in: Makefile automatically updated
4204 2008-03-26  Robert Dewar  <dewar@adacore.com>
4206         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
4207         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
4208         removed, use Chars (Pragma_Identifier (..  instead, adjustments
4209         throughout to accomodate this change.
4211         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
4213         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
4214         Einfo.Set_Needs_Debug_Info)
4216 2008-03-26  Robert Dewar  <dewar@adacore.com>
4218         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
4219         Add description for the new gnatstub option '--header-file'
4220         clarification of -gnatwz/-gnatwZ
4221         Add a "Irix-Specific Considerations" section to document the need to
4222         set LD_LIBRARY_PATH when using the default shared runtime library.
4223         Added documentation for both gcov and gprof.
4225         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
4226         messages that are not suppressed when clients are compiled.
4227         Add documentation of s-pooglo s-pooloc
4228         Document the new GNAT.Serial_Communications API.
4229         Add documentation for 'Old attribute
4230         Add description of pragma Optimize_Alignment
4232         * ug_words: Add entries for -gnatw.w -gnatw.W
4234         * usage.adb: Add line for -gnatw.w (warn on warnings off)
4236 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
4238         Revert
4239         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
4240         PR ada/35186
4241         * decl.c (maybe_pad_type): Avoid padding an integral type when
4242         bumping its alignment is sufficient.
4244 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
4246         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
4247         Fix wrong formatting (lines too long)
4249 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4251         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
4252         a-calend-vms.adb, a-calend.adb, a-calend.ads,
4253         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
4254         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
4255         a-cohama.ads, a-comlin.ads, a-coorse.adb,
4256         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
4257         a-except-2005.ads, a-except.adb, a-except.ads,
4258         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
4259         a-exextr.adb, a-filico.ads, a-finali.ads,
4260         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
4261         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
4262         a-sequio.ads, a-strbou.ads, a-strfix.adb,
4263         checks.adb, exp_ch3.adb, exp_ch4.adb,
4264         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
4265         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
4266         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
4267         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
4268         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
4270 2008-03-24  Robert Dewar  <dewar@adacore.com>
4272         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
4273         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
4274         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
4275         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
4276         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
4277         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4278         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4279         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
4280         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
4281         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
4282         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
4283         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
4284         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
4285         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
4286         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
4287         double spaced if it fits on one line and otherwise single spaced.
4289 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4291         PR documentation/15479
4292         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
4293         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
4294         (doc/gnat_ugn.info): Renamed from ...
4295         (doc/gnat_ugn_unw.info): ... this.
4296         (doc/gnat_ugn.dvi): Renamed from ...
4297         (doc/gnat_ugn_unw.dvi): ... this.
4298         (doc/gnat_ugn.pdf): Renamed from ...
4299         (doc/gnat_ugn_unw.pdf): ... this.
4300         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
4301         Adjusted.
4302         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
4303         unconditionally to gnat_ugn.info.  Fix cross references to the
4304         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
4305         and GNU make manuals to be proper texinfo links.
4306         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
4308 2008-03-21  Olivier Hainque  <hainque@adacore.com>
4310         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
4311         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
4313 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
4315         * trans.c (addressable_p): Add notes on addressability issues.
4317 2008-03-21  Olivier Hainque  <hainque@adacore.com>
4318             Ed Schonberg  <schonberg@adacore.com>
4320         * trans.c (addressable_p): Accept COND_EXPR when both arms
4321         are addressable.
4322         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
4323         (call_to_gnu): Do not use name reference in the error message
4324         for a misaligned by_reference_parameter. The actual may be a
4325         general expression.
4327 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
4329         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
4331 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4333         * gnat_rm.texi (Implementation Defined Characteristics)
4334         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
4335         appropriate.
4336         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
4337         (Switches for gnatchop, Installing a library): Likewise.
4339 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
4341         * trans.c (emit_range_check): Do not emit the check if the base type
4342         of the expression is the type against which its range must be checked.
4344 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4346         * decl.c (maybe_pad_type): Use value_factor_p.
4348 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4350         * lang.opt (nostdlib): Move around.
4351         * misc.c (gnat_handle_option): Fix formatting.
4352         (gnat_dwarf_name): Move around.
4353         * trans.c (Case_Statement_to_gnu): Fix formatting.
4354         (gnat_to_gnu): Likewise.
4355         * utils.c (aggregate_type_contains_array_p): Likewise.
4356         (create_subprog_decl): Likewise.
4358 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4360         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
4361         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
4363 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4365         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
4366         BIGGEST_ALIGNMENT when capping the alignment of records with
4367         strict alignment and size clause.
4369 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4371         * lang-specs.h: Pass -gnatwa if -Wall is passed.
4372         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
4373         and -Wuninitialized.
4374         (gnat_post_options): Clear warn_unused_parameter.
4376 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4378         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
4379         aligned bit-fields, bumping the alignment of the record type if deemed
4380         profitable.
4381         (value_factor_p): Return false instead of 0.
4383 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4385         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
4386         for scalar types with small alignment.
4388 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4390         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
4391         from that of the front-end's end label.
4392         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
4393         from that of the loop label.
4395 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
4397         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
4398         comment for the packed array type case.
4399         * utils.c (build_template): Use a loop to strip padding or
4400         containing records for justified modular types.
4402 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
4404         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
4405         large alignments specified for types.
4406         (validate_alignment): Minor cleanup.
4408 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
4410         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
4411         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
4412         the component for packing, if possible, as well as if a component
4413         size clause is specified.
4414         <E_Record_Subtype>: For an array type used to implement a packed
4415         array, get the component type from the original array type.
4416         Try to get a smaller form of the component for packing, if possible,
4417         as well as if a component size clause is specified.
4418         (round_up_to_align): New function.
4419         (make_packable_type): Add in_record parameter.
4420         For a padding record, preserve the size.  If not in_record and the
4421         size is too large for an integral mode, attempt to shrink the size
4422         by lowering the alignment.
4423         Ditch the padding bits of the last component.
4424         Compute sizes and mode manually, and propagate the RM size.
4425         Return a BLKmode record type if its size has shrunk.
4426         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
4427         Use Original_Array_Type to retrieve the type in case of an error.
4428         Adjust call to make_packable_type.
4429         (gnat_to_gnu_field): Likewise.
4430         (concat_id_with_name): Minor tweak.
4431         * trans.c (larger_record_type_p): New predicate.
4432         (call_to_gnu): Compute the nominal type of the object only if the
4433         parameter is by-reference.  Do the conversion actual type -> nominal
4434         type if the nominal type is a larger record.
4435         (gnat_to_gnu): Do not require integral modes on the source type to
4436         avoid the conversion for types with identical names.
4437         (addressable_p): Add gnu_type parameter.  If it is specified, do not
4438         return true if the expression is not addressable in gnu_type.
4439         Adjust recursive calls.
4440         * utils.c (finish_record_type): Remove dead code.
4442 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
4444         PR ada/35186
4445         * decl.c (maybe_pad_type): Avoid padding an integral type when
4446         bumping its alignment is sufficient.
4448 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4450         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
4451         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
4452         statement.
4453         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
4454         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
4455         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
4456         code output strings.
4457         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
4458         system-vms_64.ads: Fix typos in ada source code comments.
4459         * sinfo-cn.adb: Remove incomplete sentence.
4461         PR documentation/15479
4462         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
4464 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
4466         PR ada/22255
4467         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
4469 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
4471         PR ada/34799
4472         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
4473         that underlying type is present.
4475 2008-02-26  Tom Tromey  <tromey@redhat.com>
4477         * misc.c (internal_error_function): Remove test of
4478         USE_MAPPED_LOCATION.
4479         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
4480         (Sloc_to_locus): Remove old location code.
4482 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4484         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
4485         `i.e.' by adding comma or `@:' as appropriate.
4486         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
4487         plain characters `C', use `@samp{C}'.
4488         * gnat_ugn.texi (File Naming Rules, About gnatkr)
4489         (Krunching Method): Likewise.
4491         * gnat_ugn.texi (Conventions): List environment variables and
4492         metasyntactic variables.
4493         (Compiling Programs): Fix notation of metasyntactic variables.
4494         Add @file where appropriate.  Use @file for file extensions,
4495         @samp for strings.
4496         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
4497         instead of @file, @env instead of @code.
4499 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4501         PR documentation/15479
4502         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
4503         and `...' with `@dots{}' or `@enddots{}'.
4505         PR documentation/15479
4506         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
4507         use @command instead of @code, @option instead of @samp or @code,
4508         @code instead of @var, @samp instead of @file.
4510         PR documentation/15479
4511         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
4512         in Makefile rules, by using `&&' rather than `;'.
4514 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4516         PR documentation/15479
4517         * gnat_ugn.texi: In non-code, avoid space before colon.
4518         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
4519         (Examples of gnatxref Usage): Use @command{vi} instead of
4520         @file{vi}.
4521         (Character Set Control): Do not use @code for UTF-8.
4522         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
4523         use @code for IEEE.
4524         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
4525         sample.
4526         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
4528 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
4530         PR ada/35143
4531         * env.c: Add __rtems__ to if defined.
4532         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
4533         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
4534         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
4535         pragma Convention as required.
4536         * gsocket.h: Make compile in and out of RTS.
4537         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
4538         Use g-soccon-rtems.ads.
4539         * g-soccon-rtems.ads, system-rtems.ads: New files.
4541 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4543         PR other/35107
4544         * Make-lang.in (gnat1): Add $(GMPLIBS).
4546 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
4548         * decl.c (components_to_record): Improve comment.
4550 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
4552         * decl.c (components_to_record): Do not reuse the empty union type
4553         if there is a representation clause on the record.
4554         * trans.c (addressable_p): Return true for INTEGER_CST.
4556 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
4558         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
4559         in pointer arithmetics.
4560         * utils2.c (build_allocator): Likewise.
4562 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
4564         * utils.c (build_function_stub): Properly build the call expression.
4566 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
4568         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
4569         before converting the expression to the type of the object.
4570         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
4571         Stabilize constructors for special wrapping types.
4573 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
4575         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
4576         when necessary.  Merge some conditional statements.  Update comments.
4577         Rename unchecked_convert_p local variable to suppress_type_conversion.
4578         Do not suppress conversions in the In case.
4579         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
4580         into account on non strict-alignment platforms.
4582 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
4584         * utils.c (aggregate_type_contains_array_p): New predicate.
4585         (create_field_decl): In a packed record, force byte alignment
4586         for fields without specified position that contain an array.
4588 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
4590         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
4592 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
4594         PR ada/34466
4595         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
4596         sysconf call.
4597         (bit_field): New packed boolean type used by cpu_set_t.
4598         (cpu_set_t): New type corresponding to the C type with
4599         the same name. Note that on the Ada side we use a bit
4600         field array for the affinity mask. There is not need
4601         for the C macro for setting individual bit.
4602         (pthread_setaffinity_np): New imported routine.
4604 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
4606         PR ada/34647
4607         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4608         on OpenBSD as is done on other BSD systems.
4610         PR ada/34645
4611         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
4612         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
4613         I/O.
4615         PR ada/34644
4616         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
4617         clearenv().
4619         PR ada/34646
4620         * init.c (__gnat_error_handler, __gnat_install_handler,
4621         __gnat_init_float): Define for OpenBSD.
4623         * initialize.c (__gnat_initialize): Define for OpenBSD.
4625 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
4627         PR ada/34553
4628         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4629         instead of mktemp() or tmpnam() on NetBSD.
4631 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
4633         * trans.c (call_to_gnu): Make the temporary for non-addressable
4634         In parameters passed by reference.
4635         (addressable_p): Return true for STRING_CST and CALL_EXPR.
4637 2007-12-19  Robert Dewar  <dewar@adacore.com>
4639         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb: 
4640         Add pragma Warnings (Off) for unassigned IN OUT arguments
4642         * sem_warn.adb (Output_Reference): Suppress messages for internal names
4643         (Check_References): Extensive changes to tune up warnings
4644         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
4645         (Has_Pragma_Unmodifed_Check_Spec): New function
4646         (Check_References): Implement pragma Unmodified
4647         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
4649         * par-prag.adb: Dummy entry for pragma Unmodified
4651         * sem_prag.adb: Implement pragma Unmodified
4653         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
4654         (Proc_Next_Component_Or_Discriminant): Fix typo.
4655         Update comments.
4657         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
4658         Unmodified.
4659         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
4660         because the former already takes care of discarding the result.
4661         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
4662         Add comment.
4664         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
4666 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
4668         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
4669         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
4670         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
4671         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
4672         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4673         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
4674         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
4675         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
4676         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4677         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
4678         (Dynamic_Trampolines_Used): Delete.
4680         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
4681         Turn on stack probing mechanism on LynxOS.
4683 2007-12-19  Bob Duff  <duff@adacore.com>
4685         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
4686         the resulting tail recursion by hand. This prevents running out of
4687         memory on deeply nested concatenations, since Field2 is where the left
4688         operand of concatenations is stored.
4689         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
4690         clarify that it can only return OK or Abandon.
4692         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
4693         operand by iteration, in order to avoid running out of memory on
4694         deeply-nested concatenations. Use the Parent pointer to get back up the
4695         tree.
4696         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
4697          Resolve_Op_Concat_Rest): New procedures split out of
4698         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
4699         clearer.
4701         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
4702         Traverse_Func, because the former already takes care of discarding the
4703         result.
4705         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
4706         because the former already takes care of discarding the result.
4707         (Remove_Warning_Messages): Use appropriate subtype for Status and
4708         Discard 
4710 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
4712         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
4713         discriminants forces expansion of the aggregate into assignments.
4714         (Init_Record_Controller):  If the type of the aggregate is untagged and
4715         is not inherently limited, the record controller is not limited either.
4717 2007-12-19  Robert Dewar  <dewar@adacore.com>
4719         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
4720         handling compile time known size of record or array (case of front end
4721         layout active, e.g. in GNAAMP).
4723 2007-12-19  Javier Miranda  <miranda@adacore.com>
4725         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
4726         that forces the construction of static dispatch tables in case of
4727         record subtypes.
4729 2007-12-19  Robert Dewar  <dewar@adacore.com>
4731         * exp_ch9.adb (Null_Statements): Moved to library level
4732         (Trivial_Accept_OK): New function
4733         (Expand_Accept_Declaration): Use Trivial_Accept_OK
4734         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
4736 2007-12-19  Robert Dewar  <dewar@adacore.com>
4738         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
4739         in complex case where array is Volatile.
4741 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
4743         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
4744         properly the Ada2005 rules concerning when the current instance of a
4745         record type is aliased.
4747 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
4749         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
4750         mangled declaration
4751         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
4752         declarations.
4753         (P_Variant_Part): Cleaner patch for parenthesized discriminant
4755 2007-12-19  Vincent Celier  <celier@adacore.com>
4757         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
4758         package is not known
4760         * prj-attr.ads (Unknown_Package): New constant
4761         Do not crash when an unknown package is in several projects
4763         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
4764         ignored
4766         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
4767         existing package Language_Processing.
4769 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
4770             Gary Dismukes  <dismukes@adacore.com>
4771             Samuel Tardieu  <sam@rfc1149.net>
4773         PR ada/15803, ada/15805
4774         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
4775         illegal access subtypes when there is a constrained partial view.
4776         (Check_For_Premature_Usage): New procedure inside
4777         Access_Subprogram_Declaration for checking that an access-to-subprogram
4778         type doesn't reference its own name within any formal parameters or
4779         result type (including within nested anonymous access types).
4780         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
4781         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
4782         context is an access_to_variable, the expression cannot be an
4783         access_to_constant.
4785 2007-12-19  Bob Duff  <duff@adacore.com>
4787         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
4788         (Analyze_Concatenation): Use iteration instead of recursion in order
4789         to avoid running out of stack space for deeply nested concatenations.
4791 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
4792             Gary Dismukes  <dismukes@adacore.com>
4794         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
4795         whose renamed entity is a subprogram that requires overriding.
4796         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
4797         issuing an error for premature usage and issue a message that says
4798         'type' rather than 'object'.
4800 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
4802         PR ada/34149
4803         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
4804         presence of a statically tagged operand (Present (Static_Tag)) with
4805         test for Indeterm_Ancestor_Call when determining whether to propagate
4806         the static tag to tag-indeterminate operands (which forces dispatching
4807         on such calls).
4808         (Check_Controlling_Formals): Ada2005, access parameters can have
4809         defaults.
4810         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
4811         not insert subprogram in list of primitive operations if already there.
4813 2007-12-19  Tristan Gingold  <gingold@adacore.com>
4815         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
4816         global variable.
4818 2007-12-19  Thomas Quinot  <quinot@adacore.com>
4820         Part of PR ada/33688
4821         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
4822         datagram info on Linux.
4824 2007-12-19  Vincent Celier  <celier@adacore.com>
4826         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
4827         that the source path name is always found in the dependencies.
4829 2007-12-19  Robert Dewar  <dewar@adacore.com>
4831         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
4832         Fix name of Wide_Wide_Latin_1/9 file names
4833         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
4834         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
4835         Add missing documentation for Ada.Command_Line.Response_File
4836         Update list of warning letters for Warnings pragma
4837         Add documentation for pragma Unmodified
4839 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
4841         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
4843 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
4845         * s-vxwork-alpha.ads: Removed, no longer used.
4847 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
4849         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
4851 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
4853         PR ada/34360
4854         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
4855         mlib-tgt-specific.adb.
4857 2007-12-13  Bob Duff  <duff@adacore.com>
4859         * trans.c (Attribute_to_gnu): Check for violations of the
4860         No_Implicit_Dynamic_Code restriction. This checking used to be done in
4861         the front end, but is moved here so we can make it more accurate.
4863 2007-12-13  Pascal Obry  <obry@adacore.com>
4865         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
4866          version is provided for older GNU/Linux distribution not
4867          supporting thread affinity sets.
4868         
4869         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
4870         call.
4871         (bit_field): New packed boolean type used by cpu_set_t.
4872         (cpu_set_t): New type corresponding to the C type with
4873         the same name. Note that on the Ada side we use a bit
4874         field array for the affinity mask. There is not need
4875         for the C macro for setting individual bit.
4876         (pthread_setaffinity_np): New imported routine.
4877         
4878         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
4879         no null.
4880         (Create_Task): Set the processor affinity mask if information
4881         is present.
4882         
4883         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
4884         
4885 2007-12-13  Robert Dewar  <dewar@adacore.com>
4887         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, 
4888         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, 
4889         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, 
4890         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
4891         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
4892         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, 
4893         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, 
4894         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
4895         for subprogram pointers.
4897         * g-ctrl_c.adb: New file.
4899         * g-ctrl_c.ads (Install_Handler): New body.
4901         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
4902         instead of obsolete function Is_Always_Inlined.
4903         (Freeze_Entity): check for tagged type in imported C subprogram
4904         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
4905         (Freeze_Entity): check for convention Ada subprogram pointer in
4906         imported C subprogram.
4907         (Freeze_Fixed_Point_Type): In the case of a base type where the low
4908         bound would be chopped off and go from negative to zero, force
4909         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
4910         bound) so that the size computation for the base type will take
4911         negative values into account.
4913 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
4914             Bob Duff  <duff@adacore.com>
4915             Tristan Gingold  <gingold@adacore.com>
4917         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
4918         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
4919         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
4920         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
4921         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
4922         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
4923         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
4924         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
4925         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
4926         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
4927         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
4928         (Always_Compatible_Rep): New flag to control trampolines globally.
4929         (Dynamic_Trampolines_Used): New flag for implementing the
4930         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
4931         and not yet set correctly for some targets).
4933         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
4934         Simply indirectly call s-stchop when a task is created.
4936         * ali.ads: 
4937         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
4938         appears as an argument (entries A) in an ALI file.
4940         * fe.h (Stack_Check_Limits): Declare new target parameter.
4941         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
4943         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
4944         This variable is declared in C to be sure not subject to elaboration
4945         code.
4946         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
4947         Storage_Error.
4949         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
4950         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
4952         * s-stchop.ads: Add comments.
4954         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
4955         limit method of stack checking.
4957         * s-stchop-limit.ads: New file.
4959 2007-12-13  Robert Dewar  <dewar@adacore.com>
4961         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, 
4962         a-cihama.adb, g-awk.adb, 
4963         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
4964         warnings
4966         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
4968         * sem.adb: Update handling of assigned value/unreferenced warnings
4970         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
4972         * lib-xref.ads: Improve documentation for k xref type
4974         * lib-xref.adb: 
4975         Update handling of assigned value/unreferenced warnings
4976         (Generate_Reference): Warning for reference to entity for which a
4977         pragma Unreferenced has been given should be unconditional.
4978         If the entity is a discriminal, mark the original
4979         discriminant as referenced.
4981         * sem_warn.ads, sem_warn.adb
4982         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
4983         no entities referenced in package
4984         (Check_One_Unit): Don't give message about no entities referenced in
4985         a package if a pragma Unreferenced has appeared.
4986         Handle new warning flag -gnatw.a/-gnatw.A
4987         Update handling of assigned value/unreferenced warnings
4989         * atree.h: Add flags up to Flag247
4990         (Flag231): New macro.
4992 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
4994         * adaint.h: (__gnat_plist_init): Not defined for RTX.
4996         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
4997         RTX systems.
4999         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
5000         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
5001         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
5002         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
5004         * mingw32.h: 
5005         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
5007         * sysdep.c (winflush_function for RTX): Procedure that does nothing
5008         since we only have problems with Windows 95/98, which are not
5009         supported by RTX.
5010         (__gnat_ttyname): Return the empty string on Nucleus, just as
5011         done on vxworks.
5013 2007-12-13  Robert Dewar  <dewar@adacore.com>
5015         * a-textio.adb, a-textio.ads: 
5016         Extensive changes to private part for wide character encoding
5018         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
5019         (Look_Ahead): Fix mishandling of encoded sequences
5020         Move declaration of Wch_Con to private part (should not be visible)
5022         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
5023         UTF-8. Probably this is never used, but if it is, brackets is
5024         clearly correct.
5026         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
5027         setting wide character encoding for no main program case and when
5028         encoding is specified using -W?
5029         Initialize stack limit of environment task if stack limit method of
5030         stack checking is enabled.
5031         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
5032         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
5033         (Get_Main_Unit_Name): New function.
5034         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
5035         (Gen_Output_File): Set Bind_Main_Program to True for .NET
5037         * bindusg.adb: Add line for -Wx switch
5039         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
5040         Add comments
5041         Add new useful constant WC_Longest_Sequences
5043         * switch-b.adb: Clean up handling of -Wx switch
5044         For -gnatWx, set Wide_Character_Encoding_Method_Specified
5046         * switch-c.adb: -gnatg activates warning on assertion errors
5047         For -gnatWx, set Wide_Character_Encoding_Method_Specified
5049         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
5051 2007-12-13  Robert Dewar  <dewar@adacore.com>
5052             Ed Schonberg  <schonberg@adacore.com>
5054         * a-ngcoty.adb: New pragma Fast_Math
5056         * opt.adb: New pragma Fast_Math
5058         * par-prag.adb: 
5059         Add Implemented_By_Entry to the list of pragmas which do not require any
5060         special processing.
5061         (Favor_Top_Level): New pragma.
5062         New pragma Fast_Math
5064         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
5065         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5066         Expand_Allocator_Expression): Take into account VM_Target
5067         (Expand_Attribute, case 'Identity):  Handle properly the case where
5068         the prefix is a task interface.
5069         New pragma Fast_Math
5071         * par.adb (Next_Token_Is): New function
5072         (P_Pragma): Add Skipping parameter
5073         (U_Left_Paren): New procedure
5074         (U_Right_Paren): New procedure
5075         New pragma Fast_Math
5077         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
5078         subunit
5079         New pragma Fast_Math
5081         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
5082         Implemented_By_Entry.
5083         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
5084         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
5085         items, since it can apply to more than one overloadable entity. Set
5086         new flag Has_Pragma_Inline_Always for Inline_Always case.
5087         (Analyze_Pragma, case Complex_Representation): Improve error message.
5088         (Analyze_Pragma, case Assert): When assertions are disabled build the
5089         rewritten code with Sloc of expression rather than pragma, so new
5090         warning about failing is not deleted.
5091         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
5092         protected types and update error message to reflect that. Test whether
5093         the protected type is allowed for the pragma (an error is issued if the
5094         type has any entries, or components that do not have preelaborable
5095         initialization).
5096         New pragma Fast_Math
5097         (Analyze_Pragma, case No_Return): Handle generic instance
5099         * snames.h, snames.ads, snames.adb: 
5100         Add new predefined name for interface primitive _Disp_Requeue.
5101         New pragma Fast_Math
5103         * a-tags.ads, a-tags.adb: New calling sequence for
5104         String_To_Wide_[Wide_]String
5105         (Secondary_Tag): New subprogram.
5107         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
5108         from Exp_Attr
5109         New calling sequence for String_To_Wide_[Wide_]String
5110         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
5111         the use of the secondary stack for image routines.
5113         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
5114         calling sequence for String_To_Wide_[Wide_]String
5116         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
5117         Ada 95 mode
5118         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
5119         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5121         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
5122         (P_Formal_Part): Use Skipping parameter in P_Pragma call
5123         to improve error recovery
5125         * par-util.adb (Next_Token_Is): New function
5126         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
5128         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
5129         semicolon if missing
5130         (P_Pragma): Implement new Skipping parameter
5131         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5132         Fix location of flag for unrecognized pragma message
5134         * par-tchk.adb (U_Left_Paren): New procedure
5135         (U_Right_Paren): New procedure
5137 2007-12-13  Geert Bosch  <bosch@adacore.com>
5139         * a-tifiio.adb: 
5140         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
5141         the second or later Scaled_Divide would omit leading zeroes,
5142         resulting in too few digits produced and a Layout_Error as result.
5143         (Put): Initialize Pos.
5145 2007-12-13  Robert Dewar  <dewar@adacore.com>
5147         atree.ads, atree.adb (Flag231..Flag247): New functions
5148         (Set_Flag231..Set_Flag247): New procedures
5149         (Basic_Set_Convention): Rename Set_Convention to be
5150         Basic_Set_Convention
5151         (Nkind_In): New functions
5152         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5154         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
5155         instead
5156          of obsolete function Is_Always_Inlined
5157         (Register_Predefined_DT_Entry): Initialize slots of the second
5158         secondary dispatch table.
5159         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5160         (Expand_N_Function_Call): Remove special provision for stack checking.
5162         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
5163         Include _Disp_Requeue in the list of predefined operations.
5164         (Find_Interface_ADT): Modified to fulfill the new specification.
5165         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5167         * par-ch4.adb, nlists.ads, nlists.adb: 
5168         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5170         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
5171         Fix location of flag for unrecognized pragma message
5173         * sem_ch7.adb: Use Nkind_In
5175 2007-12-13  Vincent Celier  <celier@adacore.com>
5177         * opt.ads: 
5178         Indicate what flags are used by the Project Manager, gprbuild and
5179         gprclean.
5180         (Opt.Follow_Links_For_Dirs): New flag
5181         (Warn_On_Assertion_Failure): New flag
5182         (Wide_Character_Encoding_Method_Specified): New flag
5183         (Suppress_All_Inlining): New switch set by -fno-inline
5184         (Real_VMS_Target): New flag
5185         New pragma Fast_Math
5187 2007-12-13  Robert Dewar  <dewar@adacore.com>
5189         * back_end.adb: Recognize -fno-inline
5191 2007-12-13  Robert Dewar  <dewar@adacore.com>
5193         * checks.adb: Fix optimization problem with short-circuited form
5195 2007-12-13  Bob Duff  <duff@adacore.com>
5197         * clean.adb (Usage): Add line for -aP
5198         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
5199         with a parameter "procedure Usage", instead of passing a pointer to a
5200         procedure. This is to eliminate trampolines (since the Usage procedure
5201         is often nested in a main procedure, and it would be inconvenient to
5202         unnest it).
5204         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
5205         to be generic, with a parameter "procedure Callback (...)", instead of
5206         passing a pointer to a procedure. This is to eliminate trampolines
5207         (since the Callback procedure is usually nested).
5209         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, 
5210         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
5211         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
5213         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
5214         Use the generic Heap_Sort_G instead of Heap_Sort_A.
5216 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5218         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
5219         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
5220         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
5221         (Renamed_In_Spec): New flag
5222         (Has_Pragma_Inline_Always): New flag
5223         Add missing doc for pragma Obsolescent_Warning
5224         Add missing doc for 17 additional unused flags (230-247)
5225         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
5226         Alphabetize with clauses.
5227         Separate Is_Thunk and Has_Thunks flags
5228         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
5229         (Related_Interface): Renamed to Related_Type.
5230         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
5231         (Set_Is_Flag): Restrict the assertion.
5233 2007-12-13  Vincent Celier  <celier@adacore.com>
5235         * errout.adb (Output_Source_Line): Do not keep a trailing space after
5236         the source line number if the source line is empty.
5238 2007-12-13  Geert Bosch  <bosch@adacore.com>
5240         * eval_fat.adb (Decompose_Int): Handle argument of zero.
5241         (Compose): Remove special casing of zero.
5242         (Exponent): Likewise.
5243         (Fraction): Likewise.
5244         (Machine): Likewise.
5245         (Decompose): Update comment.
5247 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
5249         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
5250         limited ancestor part, initialize controllers of enclosing record
5251         before expanding ancestor aggregate.
5252         (Gen_Assign): If a component of the aggregate is box-initialized, add
5253         code to call Initialize if the component is controlled, and explicit
5254         assignment of null if the component is an access type.
5256         Handle properly aggregates for limited types that appear in object
5257         declarations when the aggregate contains controlled values such as
5258         protected types.
5259         When expanding limited aggregates into individual components, do not
5260         call Adjust on controlled components that are limited.
5262 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
5264         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
5266 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5268         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
5269         predefined primitive _Disp_Requeue.
5270         (Make_Predefined_Primitive_Specs): Create the spec for predefined
5271         primitive _Disp_Requeue.
5272         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
5273         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
5274         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
5275         an interface type. In case of limited interfaces we now declare all the
5276         predefined primitives associated with synchronized interfaces as
5277         abstract.
5278         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
5279         declarations.
5280         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
5281         tagged type is an interface type and there is no user-defined equality
5282         function.
5283         Add also bodies of predefined primitives associated with synchronized
5284         interfaces.
5285         (Freeze_Record_Type): Do not build bodies of predefined primitives of
5286         interface types because they are now defined abstract.
5287         Add missing documentation.
5288         (Expand_Record_Controller): Update occurrence of Related_Interface
5289         to Related_Type.
5290         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
5291         (Expand_N_Object_Declaration): Take into account VM_Target when handling
5292         class wide interface object declaration.
5293         (Expand_Previous_Access_Type): Do not create a duplicate master entity
5294         if the access type already has one.
5295         (Expand_N_Object_Declaration): Defend against attempt to validity check
5296         generic types. Noticed for -gnatVcf specified with previous errors.
5298 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
5300         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5301         Expand_Allocator_Expression): Take into account VM_Target
5303         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
5304         secondary stack when VM_Target /= No_VM
5306 2007-12-13  Javier Miranda  <miranda@adacore.com>
5307             Ed Schonberg  <schonberg@adacore.com>
5309         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
5310         Is_Complation_Unit by Is_Library_Level_Entity in the code
5311         that decides if the static dispatch tables need to be built.
5312         (Wrap_Transient_Declaration): Do not generate a finalization call if
5313         this is a renaming declaration and the renamed object is a component
5314         of a controlled type.
5316 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
5318         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
5319         In the case where the renamed subprogram is a dereference, call
5320         Force_Evaluation on the prefix.
5322 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5323             Ed Schonberg  <schonberg@adacore.com>
5325         * exp_ch9.adb (Expand_N_Asynchronous_Select,
5326         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
5327         comment reformatting.
5328         (Set_Privals): Inherit aliased flag from formal. From code reading.
5329         (Build_Simple_Entry_Call): Out parameters of an access type are passed
5330         by copy and initialized from the actual. This includes entry parameters.
5331         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
5332         and Ada 2005 models of requeue.
5333         (Null_Statements): Still connsider do-end block null if it contains
5334         Unreferenced and Warnings pragmas.
5335         (Expand_N_Accept_Statement): Do not optimize away null do end if
5336         dispatching policy is other than defaulted.
5337         (Expand_N_Timed_Entry_Call): When the triggering statement is a
5338         dispatching call, manually analyze the delay statement.
5339         (Find_Parameter_Type): Move subprogram to Sem_Util.
5341 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5342             Javier Miranda  <miranda@adacore.com>
5344         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
5345         _Disp_Requeue occupies dispatch table slot number 15. Move
5346         _Disp_Timed_Select to slot 16.
5347         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
5348         generate the spec and body of _Disp_Reqeueue.
5349         (Make_DT): Build and initialize the second dispatch table.
5350         Handle initialization of RC_Offset when the parent
5351         is a private type with variable size components.
5352         (Make_Secondary_DT): Complete documentation. Add support to
5353         initialize the second dispatch table.
5354         (Make_Tags): Generate the tag of the second dispatch table.
5355         (Register_Primitive): Add support to register primitives in the
5356         second dispatch table.
5358 2007-12-13  Pascal Obry  <obry@adacore.com>
5360         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
5361         Windows. This signal is used by gnatmake to kill child processes for
5362         example.
5364 2007-12-13  Javier Miranda  <miranda@adacore.com>
5366         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
5367         support for generic dispatching constructor calls in which we need to
5368         locate the tag of a secondary dispatch table associated with an
5369         interface type to properly dispatch the call.
5370         (Expand_N_Attribute_Reference [case Address],
5371         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
5372         handling of VM targets.
5374 2007-12-13  Robert Dewar  <dewar@adacore.com>
5375             Ed Schonberg  <schonberg@adacore.com>
5377         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
5378         assert fail
5380         * ug_words: Add entries for -gnatw.a -gnatw.A
5382         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
5383         literal is a subtype with non-static constraints, use the base type of
5384         the context as the base of the string subtype, to prevent type
5385         mismatches in gigi.
5386         (Resolve_Actuals): If the actual is an entity name, generate a
5387         reference before the actual is resolved and expanded, to prevent
5388         spurious warnings on formals of enclosing protected operations.
5389         (Analyze_Overloaded_Selected_Component): If type of prefix if
5390         class-wide, use visible components of base type.
5391         (Resolve_Selected_Component): Ditto.
5392         (Resolve_Short_Circuit): Detect case of pragma Assert argument
5393         evaluating to False, and issue warning message.
5395         * usage.adb: Add lines for -gnatw.a and -gnatw.A
5397 2007-12-13  Emmanuel Briot  <briot@adacore.com>
5399         * g-calend.ads (No_Time): New constant, to represent an uninitialized
5400         time value
5402         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
5403         formats.
5404         (Month_Name_To_Number): New subprogram
5406         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
5407         letter to upper-case.
5409 2007-12-13  Robert Dewar  <dewar@adacore.com>
5410             Ed Schonberg  <schonberg@adacore.com>
5412         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
5414         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
5415         context is a limited view, use non-limited view when available. If the
5416         non-limited view is an unconstrained array, this enforces consistency
5417         requirements in 3.10.2 (27).
5418         (Layout_Type): For an access type whose designated type is a limited
5419         view, examine its declaration to determine if it is an unconstrained
5420         array, and size the access type accordingly.
5421         (Layout_Type): Do not force 32-bits for convention c subprogram
5422         pointers in -gnatdm mode, only if real vms target.
5424         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
5425         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5426         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
5427         violations of the No_Implicit_Dynamic_Code restriction.
5428         (Resolve_Attribute, case 'Access): If designated type of context is a
5429         limited view, use non-limited view when available. If the non-limited
5430         view is an unconstrained array, this enforces consistency requirements
5431         in 3.10.2 (27).
5432         (Layout_Type): For an access type whose designated type is a limited
5433         view, examine its declaration to determine if it is an unconstrained
5434         array, and size the access type accordingly.
5436 2007-12-13  Vincent Celier  <celier@adacore.com>
5438         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
5439         object directory of main project does not exist.
5440         On VMS, correctly set then environment variable for the source
5441         directories.
5443 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
5445         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
5446         set to True this procedure will create the value of type REG_EXPAND_SZ.
5447         It was only possible to create REG_SZ values before.
5449 2007-12-13  Robert Dewar  <dewar@adacore.com>
5451         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
5452         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
5453         namet-sp.adb, namet-sp.ads: New files.
5455         * g-speche.adb: Use generic routine in g-spchge
5457         * s-wchcnv.ads, s-wchcnv.adb: 
5458         Minor code cleanup (make formal type consistent with spec)
5460         * namet.adb: Update comments.
5462         * par-endh.adb (Evaluate_End_Entry): Use new
5463         Namet.Sp.Is_Bad_Spelling_Of function
5465         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
5467         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
5468         ancestor is an access type initialized with a box, set its type
5469         explicitly, for use in subsequent expansion.
5470         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
5471         function
5473 2007-12-13  Robert Dewar  <dewar@adacore.com>
5475         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
5476         access Vstring)
5478 2007-12-13  Robert Dewar  <dewar@adacore.com>
5480         * inline.adb (Back_End_Cannot_Inline): Use new flag
5481         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5483         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
5484         Has_Pragma_Inline_Always instead.
5485         of obsolete function Is_Always_Inlined
5486         (Build_Body_To_Inline): Same change
5487         (Cannot_Inline): Same change
5488         Do not give warning on exception raise in No_Return function
5490         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
5491         component has two inconsistent component clauses in the same record
5492         representation clause, favor the message that complains about
5493         duplication rather than inconsistency.
5494         Update comments.
5495         (Record_Representation_Clause): Do not warn on missing component
5496         clauses for inherited components of a type extension.
5497         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
5498         an overloadable item if it is a pragma that can apply to multiple
5499         overloadable entities (e.g. Inline) because a pragma cannot be on
5500         more than one chain at a time.
5501         (Validate_Unchecked_Conversion): Add code to warn on unchecked
5502         conversion where one of the operands is Ada.Calendar.Time.
5503         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
5504         For now, ignore Component_Size clause on VM targets, as done for
5505         pragma Pack.
5507 2007-12-13  Emmanuel Briot  <briot@adacore.com>
5508             Vincent Celier  <celier@adacore.com>
5510         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
5511         string
5512         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
5513         prj.ads
5514         (Hash): Move instantiation of System.HTable.Hash from spec to body
5515         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
5516         systems, since we do not need to recompute the Name_Id for the canonical
5517         file name.
5518         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5519         as a parameter. This parameter is in fact always "ada" in all calls, and
5520         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
5521         while loading a project with 40000 files
5523         * prj-attr.adb: Fix name of attribute Dependency_Driver
5524         Change the kind of indexing for attribute Root
5526         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
5527         variables already declared, in case constructions.
5529         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
5530         Current_Object_Path_File to No_Path.
5532         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
5533         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
5535         * prj-makr.adb: new parameter Current_Dir
5537         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
5538         Ada sources when language is not Ada.
5539         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5540         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
5541         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
5542         (Locate_Directory): Always resolve links when computing Canonical_Path
5543         (Look_For_Sources): Make sure that Name_Buffer contains the file name
5544         in Source_Files before checking for the presence of a directory
5545         separator.
5546         Optimize calls to Name_Find when on case sensitive systems.
5547         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5548         as a parameter.
5549         (Prj.Nmsc.Check): new parameter Current_Dir
5550         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
5551         cannot be empty and the spec suffix cannot be the same as the body or
5552         separate suffix.
5553         (Get_Unit): When a file name can be of several unit kinds (spec, body or
5554         subunit), always consider the longest suffix.
5555         (Check_Configuration): Do not issue an error if there is no compiler
5556         for a language. Just issue a warning and ignore the sources for the
5557         language.
5558         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
5559         not empty.
5560         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
5561         (Unit_Exceptions): New hash table
5562         (Check_Naming_Schemes): Check if a file that could be a unit because of
5563         the naming scheme is not in fact a source because there is an exception
5564         for the unit.
5565         (Look_For_Sources): Put the unit exceptions in hash table
5566         Unit_Exceptions
5567         (Get_Unit_Exceptions): Give initial value No_Source to local variable
5568         Other_Part to avoid exception when code is compiled with validity
5569         checking.
5570         (Get_Sources_From_File): Check that there is no directory information
5571         in the file names.
5572         (Look_For_Sources): Check that there is no directory information in the
5573         list of file names in Source_Files.
5574         (Look_For_Sources): In multi-language mode, do not allow exception file
5575         names that are excluded.
5576         (Excluded_Sources_Htable): New hash table
5577         (Search_Directories.Check_File): New procedure to simplify
5578         Search_Directories.
5579         (Search_Directories): Do not consider excluded sources
5580         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
5581         Search_Directories.
5582         (Get_Exceptions): Set component Lang_Kind of Source_Data
5583         (Get_Unit_Exceptions): Ditto
5584         (Search_Directories): Ditto
5586         * prj-pars.adb: new parameter Current_Dir
5588         * prj-part.ads, prj-part.adb: 
5589         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5590         (Opt.Follow_Links_For_Dirs): New flag
5591         (Project_Path_Name_Of): Cache information returned by this routine as
5592         Locate_Regular_File is a costly routine. The code to output a log
5593         information and the effective call to Locate_Regular_File is now
5594         factorized into a routine (code clean-up).
5595         (Parse, Parse_Single_Project): new parameter Current_Dir
5596         When main project file cannot be found, indicate in the error
5597         message the project path that was used to do the search.
5599         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
5600         (Prj.Proc.Process*): new parameter Current_Dir
5602         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
5604 2007-12-13  Bob Duff  <duff@adacore.com>
5606         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
5607         procedure to be called from the back end to check the
5608         No_Implicit_Dynamic_Code restriction.
5610 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
5612         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
5613         Fixes another case where RTE_Available_Call was ignored instead of being
5614         taken into account.
5615         (Load_Fail): Ditto.
5617         * rtsfind.ads: Add new entries.
5619 2007-12-13  Robert Dewar  <dewar@adacore.com>
5621         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
5622         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
5624         * scn.adb: Implement BOM recognition
5626 2007-12-13  Thomas Quinot  <quinot@adacore.com>
5627             Ed Schonberg  <schonberg@adacore.com>
5629         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
5630         subprogram body that acts as its own spec may not have a non-private
5631         WITH clause on a private sibling.
5632         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
5633         child unit is a renaming, create an implicit with_clause on that
5634         parent, and not on the unit it renames, to prevent visibility errors
5635         in the current unit.
5637 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
5639         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
5640         renaming declaration, use the Slocs of the formal parameters from the
5641         declaration of the formal subprogram when creating the formal parameter
5642         entities in the renaming declaration.
5643         (Analyze_Formal_Type_Declaration): Change the placement of the error
5644         message concerning illegal known discriminants. It is now posted on the
5645         type rather than on the first discriminant. This change ensures early
5646         error report.
5647         (Freeze_Subprogram_Body): If the generic subprogram is nested within
5648         the package body that contains the instance, do not generate an
5649         out-of-place freeze node for the enclosing package.
5650         (Collect_Previous_Instantiations): Ignore internal instantiations
5651         generated for formal packages.
5652         (Validate_Derived_Type_Instance): Add a check that when a formal
5653         derived type is Known_To_Have_Preelab_Init then the actual type must
5654         have preelaborable initialization, and issue an error when this
5655         condition is violated.
5657 2007-12-13  Robert Dewar  <dewar@adacore.com>
5659         * s-imenne.adb, s-imenne.ads: New files.
5661         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, 
5662         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, 
5663         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, 
5664         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, 
5665         s-imgwch.ads: New calling sequence for Image routines to avoid sec
5666         stack usage.
5668 2007-12-13  Javier Miranda  <miranda@adacore.com>
5669             Ed Schonberg  <schonberg@adacore.com>
5671         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
5672         generation of spurious error if parent is an interface type; caused
5673         because predefined primitive bodies will be generated later by
5674         Freeze_Record_Type.
5675         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
5676         flag.
5677         (Derive_Subprograms): Handle derivations of predefined primitives
5678         after all the user-defined primitives to ensure that they are
5679         found in proper order in instantiations.
5680         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
5681         of Related_Interface to Related_Type.
5682         (Record_Type_Declaration): Minor reordering of calls to decorate the
5683         Tag component because the entity must have set its Ekind attribute
5684         before setting its Is_Tag attribute.
5685         (Analyze_Subtype_Declaration): In the case of subtypes with
5686         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
5688 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5689             Ed Schonberg  <schonberg@adacore.com>
5691         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
5692         statement to the list of contexts where a selected component with a
5693         concurrent tagged type prefix should yield a primitive operation.
5694         (Find_Primitive_Operation): Handle case of class-wide types.
5695         (Analyze_Overloaded_Selected_Component): If type of prefix is
5696         class-wide, use visible components of base type.
5697         (Resolve_Selected_Component): Ditto.
5698         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
5699         formal of a generic subprogram. find candidate interpretations by
5700         scanning the list of generic formal declarations.:
5701         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
5702         type from a limited_with_clause, and the full view is available, use it
5703         for subsequent semantic checks.
5704         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
5705         (Find_Primitive_Operation): New function.
5706         (Analyze_Overloaded_Selected_Component): insert explicit dereference
5707         only once if several interpretations of the prefix yield an access type.
5708         (Try_Object_Operation): Code and comment cleanup.
5709         (Analyze_Selected_Component): Reorder local variables. Minot comment and
5710         code reformatting. When the type of the prefix is tagged concurrent, a
5711         correct interpretation might be available in the primitive and
5712         class-wide operations of the type.
5714 2007-12-13  Robert Dewar  <dewar@adacore.com>
5715             Ed Schonberg  <schonberg@adacore.com>
5717         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
5718         renaming entry as subprogram using rename-as-body if subprogram spec
5719         frozen.
5720         (Use_One_Type): The clause is legal on an access type whose designated
5721         type has a limited view.
5722         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5723         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5724         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
5725         operation denoted by a selected component.
5726         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
5727         it can be an expression, possibly overloaded, that returns a task or
5728         an access to one.
5730 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5731             Gary Dismukes  <dismukes@adacore.com>
5733         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
5734         requeue statement is dispatching. Do not emit an error when the name is
5735         not an entry and the context is a dispatching select. Add code to
5736         perform subtype conformance between the formals of the current entry
5737         and those of the target interface primitive.
5738         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
5739         Timed_Entry_Call): Analyze the triggering statement as the first step of
5740         the processing. If this is a dispatching select, postpone the analysis
5741         of all select statements until the Expander transforms the select. This
5742         approach avoids generating duplicate identifiers after the Expander has
5743         replicated some of the select statements. In case the Expander is
5744         disabled, perform regular analysis.
5745         (Check_Triggering_Statement): New routine.
5746         (Analyze_Requeue): Exclude any interpretations that are not entries when
5747         checking overloaded names in a requeue. Also test type conformance for
5748         matching interpretations rather than requiring subtype conformance at
5749         that point to conform with the RM's resolution rule for requeues.
5751 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
5753         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
5754         inherited operation is a defaulted tag-indeterminate call, and there is
5755         a statically tagged actual, use the static tag as a controlling actual
5756         for the defaulted actual.
5758 2007-12-13  Geert Bosch  <bosch@adacore.com>
5760         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
5761         context, so do not call Check_Non_Static_Context.
5763 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5765         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
5766         whether formal E is an entity which may have parameters.
5768 2007-12-13  Bob Duff  <duff@adacore.com>
5769             Javier Miranda  <miranda@adacore.com>
5770             Robert Dewar  <dewar@adacore.com>
5772         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
5773         (Set_Convention): New procedure to set the Convention flag, and in
5774         addition make sure the Favor_Top_Level flag is kept in sync (all
5775         foreign-language conventions require Favor_Top_Level = True).
5776         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
5777         to Related_Type.
5778         (Collect_Interfaces_Info): Minor update to handle the two secondary
5779         dispatch tables. Update occurrence of Related_Interface to Related_Type.
5780         (Generate_Parent_Ref): Add parameter to specify entity to check
5781         (Is_Preelaborable_Expression): Allow the name of a discriminant to
5782         initialize a component of a type with preelaborable initialization.
5783         This includes the case of a discriminal used in such a context.
5784         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
5785         latest Ada 2005 rules about renaming and 'Access of
5786         discriminant-dependent components.
5787         (Check_Nested_Access): Add handling when there are no enclosing
5788         subprograms (e.g. case of a package body).
5789         (Find_Parameter_Type): Factor routine from several other compiler files.
5790         Remove routine from Find_Overridden_Synchronized_Primitive.
5792 2007-12-13  Thomas Quinot  <quinot@adacore.com>
5794         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
5795         an invalid access to an uninitialized slot in the
5796         Source_File_Index_Table.
5798 2007-12-13  Thomas Quinot  <quinot@adacore.com>
5800         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
5802 2007-12-13  Bob Duff  <duff@adacore.com>
5804         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
5805         access-to-subprogram types in this package.
5807 2007-12-13  Olivier Hainque  <hainque@adacore.com>
5809         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
5810         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
5811         Stack_Overlay_Address and document that we are using an internal
5812         abstraction.
5813         (Byte_Size, Unsigned_32_Size): Remove, now useless.
5814         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
5815         consistently throughout the various implementation pieces.
5817         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
5818         overlay we are using to fill the stack area with patterns.
5819         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
5820         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
5821         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
5823 2007-12-13  Robert Dewar  <dewar@adacore.com>
5825         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
5827 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
5829         * s-tassta.adb: 
5830         (Create_Task): Take into account tasks created by foreign threads.
5831         Code clean up: use constants instead of hard coded values.
5833 2007-12-13  Robert Dewar  <dewar@adacore.com>
5835         * styleg.adb (Check_Comment): More liberal rules for comment placement
5837 2007-12-13  Olivier Hainque  <hainque@adacore.com>
5839         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
5840         of Procedure Value instead of Frame Pointer as the invocation
5841         identifier associated with the instruction pointer in each traceback
5842         entry.
5844         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
5845         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
5846         Pointer as the invocation identifier passed to tbk$symbolize.
5848         * s-traent-vms.ads, s-traent-vms.adb
5849         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
5850         Procedure Value instead of Frame Pointer as the invocation identifier
5851         passed to tbk$symbolize.
5853 2007-12-13  Robert Dewar  <dewar@adacore.com>
5855         * tbuild.ads, tbuild.adb: 
5856         Fix location of flag for unrecognized pragma message
5858 2007-12-13  Robert Dewar  <dewar@adacore.com>
5860         * treepr.ads, treepr.adb: (pl): implement use of positive value
5861         shorthands
5863 2007-12-13  Robert Dewar  <dewar@adacore.com>
5865         * xeinfo.adb: Remove warnings
5866         * xnmake.adb: Remove warnings
5867         * xsinfo.adb: Remove warnings
5868         * xtreeprs.adb: Remove warnings
5869         * xsnames.adb: Remove warnings
5871         * a-ngcoar.adb: Fix typo.
5872         * s-interr.adb: Minor reformatting
5873         * env.c: Minor reformatting.
5874         * g-bytswa.adb: Minor reformatting.
5875         * g-rannum.ads: Minor documentation improvements
5876         * s-tasinf-mingw.adb: Minor header fix
5877         * a-clrefi.adb: Minor reformatting
5878         * g-sttsne.ads: Minor documentation improvement
5879         * g-sttsne-locking.ads: Minor documentation improvement
5880         * g-soliop-solaris.ads: Minor documentation improvement
5881         * g-soliop-mingw.ads: Minor documentation improvement
5882         * g-soliop.ads: Minor documentation improvement
5883         * exp_aggr.ads: Minor reformatting
5884         * debug.adb: Add documentation for the gprbuild debug flags
5885         * exp_ch2.adb: Use Nkind_In to simplify code throughout
5886         * exp_pakd.adb: Minor reformatting
5888         * g-altive.ads, g-alleve.adb: Remove assertions.
5889         Add comment about minor differences between targets regarding
5890         floating-point operations.
5892         * g-thread.adb: Remove pragma unreferenced.
5893         * lib.ads: Minor reformatting
5894         * par-ch9.adb: Minor reformatting of error messages
5895         * sem_case.adb: Minor reformatting
5896         * s-fileio.adb: Minor reformattinng
5897         * s-vmexta.ads: Minor typo
5898         * vxaddr2line.adb: 
5899         Take into account 'Success' value as per new GNAT warning.
5901 2007-12-13  Vincent Celier  <celier@adacore.com>
5903         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
5904         even on Windows
5906 2007-12-13  Robert Dewar  <dewar@adacore.com>
5907             Bob Duff  <duff@adacore.com>
5909         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
5910         Document that suffixes may be terminations of each others
5911         Add doc for -gnatw.a and -gnatw.A
5912         Document gnatbind -Wx switch
5913         Document BOM recognition
5914         Document pragma Implemented_By_Entry.
5915         Document new units.
5917         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
5918         Add doc for pragma Unreferenced suppressing no entities referenced msg
5919         Add documentation of GNAT.Directory_Operations.Iteration
5920         Add documentation of GNAT.Random_Numbers
5921         Add documentation for pragma Shared.
5922         Correct documentation for Bit_Order
5923         Add documentation for the Pool_Address attribute.
5924         Fix and improve documentation of pragma machine_attribute.
5925         New pragma Fast_Math
5926         Document BOM recognition
5928         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
5929         Add /Wide_Character_Encoding for binder
5930         Add qualifier for the new gnatpp option --no-separate-loop-then
5932 2007-12-13  Matthew Heaney  <heaney@adacore.com>
5934         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
5935         which generic formal operations are called for each operation.
5937 2007-12-13  Olivier Hainque  <hainque@adacore.com>
5939         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
5940         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
5942 2007-12-13  Emmanuel Briot  <briot@adacore.com>
5944         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
5945         Reference_Dir unless we actually need it.
5947 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
5948             Tristan Gingold  <gingold@adacore.com>
5950         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
5952         * s-osprim-vms.adb,
5953         a-calend-vms.adb: Remove pragma warning off and add pragma
5954         unreferenced.
5956 2007-12-13  Robert Dewar  <dewar@adacore.com>
5958         * impunit.adb: Add entries for missing units
5960         * Makefile.rtl: Add new run-time units.
5962         * Make-lang.in:  Update dependencies.
5964 2007-12-13  Bob Duff  <duff@adacore.com>
5966         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
5967         types, set Can_Use_Internal_Rep appropriately, based on
5968         Always_Compatible_Rep_On_Target.
5970 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
5971             Arnaud Charlet  <charlet@adacore.com>
5973         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
5974         it to the front end and setting the aamp_target environment variable
5975         to the switch's argument to ensure that gnaampbind and gnaamplink will
5976         take the specified library into account.
5977         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
5978         target, since the CIL compiler supports an "object" file (.il files).
5980 2007-12-13  Vincent Celier  <celier@adacore.com>
5982         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
5983         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
5985 2007-12-13  Geert Bosch  <bosch@adacore.com>
5987         * s-parame-vxworks.adb: 
5988         Update comments to reflect usage of this package by Nucleus.
5990 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
5992         * i-vxwork.ads: Kill new warning on Convention C, since changing the
5993         spec would break code.
5995         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
5997         * system-vxworks-alpha.ads: Removed.
5999 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
6001         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
6003 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
6005         PR ada/34366
6006         * sem_ch3.adb (Designates_T): New function.
6007         (Mentions_T): Factor reusable part of the logic into Designates_T.
6008         Consider non-access parameters and access and non-access result.
6009         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
6010         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
6012         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
6014 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
6016         PR ada/34361
6017         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
6018         the new implementation of target-specific calls.
6020 2007-12-07  Olivier Hainque  <hainque@adacore.com>
6022         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
6023         the designated full view, only follow a second level Full_View link
6024         for Non_Limited_Views of from_limited_with references.
6025         
6026 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
6028         PR ada/15805
6029         * sem_ch6.adb (Process_Formals): Prevent an access type formal
6030         to be initialized with an access to constant object.
6032         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
6033         when an access to constant is used to initialize an access
6034         value.
6036         PR ada/21346
6037         * a-direct.adb (Compose): Containing_Directory can be an empty string.
6039 2007-12-07  Olivier Hainque  <hainque@adacore.com>
6041         PR ada/34173
6042         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
6043         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
6044         this is from an alignment clause on the GNAT entity.
6045         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
6046         to distinguish the case where we set it from the type's alignment.
6047         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
6048         whether this alignment was set from an explicit alignment clause.
6050 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
6052         * decl.c (make_packable_type): Revert last change.
6053         (gnat_to_gnu_field): Avoid setting size and position multiple times.
6054         * utils.c (finish_record_type): Retrieve the real name of the type.
6056 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
6058         * trans.c (lvalue_required_p): Take base node directly instead
6059         of its parent.  Rename second parameter to 'gnu_type'.
6060         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
6061         <N_Slice>: Likewise.
6062         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
6063         Adjust calls to lvalue_required_p.
6065 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
6067         PR ada/21489
6068         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
6069         parameters of an entry call.
6071 2007-12-03  Robert Dewar  <dewar@adacore.com>
6072             Samuel Tardieu  <sam@rfc1149.net>
6074         PR ada/34287
6075         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
6076         of variables declared in a library-level package.
6077     
6078 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
6080         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
6081         of Empty_String'Unchecked_Access.
6083         * Makefile.in: Add support for sh4-linux.
6085         * system-linux-sh4.ads: New file.
6087 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
6089         PR ada/33722
6090         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
6091         and its argument must not be free()ed.
6093 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
6095         * decl.c (make_packable_type): Retrieve the real name of the type.
6096         (maybe_pad_type): Simplify similar code.
6098 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
6100         PR ada/15804
6101         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
6102         than an identifier is used after "case" in a variant_part.
6104         PR ada/17318
6105         * par-ch4.adb (Is_Parameterless_Attribute): New map.
6106         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
6107         attribute name or not depending on the new map.
6109         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
6110         returning a string or a type will not be called with improper
6111         arguments.
6113         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
6115         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
6117         PR ada/32792
6118         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
6119         Signal an error when attribute argument is a fixed-point value of
6120         an unknown type.
6122         PR ada/22559
6123         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
6124         a derived ordinary fixed point type.
6126         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
6127         RM_Size when a Small clause is found.
6129 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
6131         PR 34081/C++
6132         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
6133         Pass 'false' for the new allocate_struct_function parameter.
6134         * utils.c (build_function_stub): Likewise.
6136 2007-11-25  Richard Guenther  <rguenther@suse.de>
6138         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
6139         (gnat_poplevel): Likewise.
6141 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
6143         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
6144         strict alignment, no alignment clause and a known static size, cap
6145         the type alignment to the greatest power of 2 factor of the size.
6146         (gnat_to_gnu_field): If the field has a component clause, is aliased
6147         or of a type with strict alignment, require that its size be equal to
6148         that of the type.
6149         (validate_size): Use the type size as the minimum size for a type with
6150         strict alignment.
6152 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
6154         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
6155         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
6156         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
6157         Use 'Access instead of 'Unchecked_Access in second and third
6158         arguments of pthread_sigmask.
6160 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
6162         * decl.c (ceil_alignment): New function.
6163         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
6164         (make_packable_type): Likewise.
6166 2007-11-22  Olivier Hainque  <hainque@adacore.com>
6168         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
6169         to fit in 80 columns.
6171 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
6173         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
6174         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
6176 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
6178         PR ada/34098
6179         * misc.c (gnat_adjust_rli): Delete.
6180         (gnat_init): Do not initialize the translation code here.
6181         Do not call set_lang_adjust_rli.
6182         * trans.c (init_code_table): Make static.
6183         (gnat_init_stmt_group): Delete.
6184         (gigi): Initialize the translation code entirely here.
6185         Emit debug info for the common types here instead of...
6186         * utils.c (gnat_init_decl_processing): ...here.
6187         * gigi.h (init_code_table): Delete.
6188         (gnat_init_stmt_group): Likewise.
6190 2007-11-16  Olivier Hainque  <hainque@adacore.com>
6192         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
6193         retrieving an allocator return value from a super-aligned address from
6194         here to ...
6195         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
6196         expect a super-aligned address for a fat or thin pointer.
6197         
6198 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
6200         * trans.c (call_to_gnu): Always set the source location on the call
6201         expression.  If the function returns-by-target, also set it on the
6202         address expression.
6204 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
6206         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
6207         sections of non-supported Interix target.
6209         * s-osinte-interix.ads: Removed.
6211         * i-cstrin.ads (chars_ptr): Make it a C convention type.
6213 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
6215         * a-tasatt.adb: Add a comment at the beginning of the package
6216         explaining why in general 'Unchecked_Access must be used instead
6217         of 'Access.
6219         * sem_prag.adb (Process_Convention): Move the test for the
6220         entity on which the Convention pragma applies down to also
6221         forbid pragma Convention on enumeration literals reached
6222         through renamings.
6224 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
6226         * a-tasatt.adb: Revert previous change for this file as it will
6227         generate an error when this package is instantiated from a
6228         local context.
6230 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
6232         * a-tasatt.adb: Type Wrapper should be declared in comment instead
6233         of already declared type Node_Access.
6234         Use 'Access instead of 'Unchecked_Access when applicable. Local
6235         lifetime is the one of the package.
6236         (Set_Value): W is allocated on the heap.
6238         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
6239         applicable.
6240         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
6241         access type.
6242         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
6243         access type.
6245         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
6246         applicable.
6247         (elaboration code): Timer_Queue lifetime is the one of the
6248         package.
6250         * tracebak.c (i386 alternative): Remove useless comparaison
6251         which is always false; LOWEST_ADDRESS is 0 and is never greater
6252         than an unsigned integer.
6254         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
6255         embedded check for "Ada_Version >= Ada_05".
6257 2007-11-07  Olivier Hainque  <hainque@adacore.com>
6259         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
6260         craft and expand comment.
6262 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
6264         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
6266 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
6268         * misc.c (gnat_handle_option): Replace call to abort with
6269         call to gcc_unreachable.
6270         (gnat_init): Likewise.
6271         (gnat_expand_expr): Likewise.
6272         (fp_prec_to_size): Likewise.
6273         (fp_size_to_prec): Likewise.
6275 2007-10-23  Richard Guenther  <rguenther@suse.de>
6277         PR bootstrap/33608
6278         * tracebak.c: #undef abort after including system.h.
6280 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
6282         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
6283         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
6284         for win32 targets.
6285         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
6287 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
6289         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
6290         Set the protection status of the guard page based on the value of On.
6292         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
6294         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
6295         (Exit_Task): Pass False to Hide_Yellow_Zone.
6297 2007-10-15  Robert Dewar  <dewar@adacore.com>
6299         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
6300         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
6301         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
6302         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
6303         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
6304         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
6305         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
6306         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
6307         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
6308         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
6309         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
6310         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
6311         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
6312         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
6313         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
6314         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
6315         Minor reformatting.
6316         Add Unreferenced and Warnings (Off) pragmas for cases of
6317         variables modified calls where they are IN OUT or OUT parameters and
6318         the resulting values are not subsequently referenced. In a few cases,
6319         we also remove redundant code found by the new warnings.
6321         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
6322         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
6323         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
6324         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
6325         warning controlled by -gnatw.o that warns on cases of out parameter
6326         values being ignored.
6328 2007-10-15  Geert Bosch  <bosch@adacore.com>
6330         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
6332         * expect.c: Initial port to arm-mentor-nucleus.
6333         Use kill for __gnat_kill() on VMS.
6335 2007-10-15  Emmanuel Briot  <briot@adacore.com>
6337         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
6338         value.
6339         (Xref_Record): Change type for Line, since in the case of a reference to
6340         a predefined entity (as happens for array index types), the line is set
6341         to 0.
6342         Add support for parsing multiple array index types info, or
6343         multiple inherited interfaces info. This information cannot be stored
6344         in Xref_Entity_Record, which only supports a single instance of Tref_*,
6345         and is therefore stored in the list of references instead. It has a
6346         special treatement later on in tools that use this information.
6348 2007-10-15  Tristan Gingold  <gingold@adacore.com>
6350         * debug.adb: Document use of -gnatd.a and -gnatd.I
6352         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
6354 2007-10-15  Javier Miranda  <miranda@adacore.com>
6356         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
6357         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
6358         care of access to class-wide interface types plus removal of bizarre
6359         conversion of tagged object to access type (reported by Gary
6360         Dismukes). After this patch there is no need to perform any
6361         additional management on these nodes in Expand_Interface_Actuals.
6363         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
6364         that handles use of 'Access and 'Unchecked_Access applied to
6365         actuals covering interface types. Such code is now
6366         centralized in Expand_N_Attribute_Reference.
6368 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
6370         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
6371         of tagged types whose ultimate ancestor is a CPP type.
6372         (Freeze_Array_Type): For a packed array type, generate an initialization
6373         procedure if the type is public, to handle properly a client that
6374         specifies Normalize_Scalars.
6376 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
6378         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
6379         inside a generic body, retrieve the full view of the entry family
6380         discrete subtype if available.
6382 2007-10-15  Thomas Quinot  <quinot@adacore.com>
6384         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
6385         attempt to generate stubs for hidden primitive operations.
6387 2007-10-15  Vincent Celier  <celier@adacore.com>
6389         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
6390         returning None, used when there is no platform specific body for
6391         MLib.Tgt.Specific.
6393 2007-10-15  Bob Duff  <duff@adacore.com>
6395         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
6396         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
6397         the generic Heap_Sort_G, in order to avoid trampolines.
6399 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
6400             Jose Ruiz  <ruiz@adacore.com>
6402         * vx_stack_info.c: New file.
6404         * i-forbla-unimplemented.ads: New file.
6406         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
6407         for unsupported configurations; use it on VMS targets instead of the
6408         real one.
6409         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
6410         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
6411         used by VxWorks targets to have access to task-specific data and be
6412         able to extract the stack boundaries for stack checking.
6413         Use system-vms-ia64.ads on ivms.
6415         * Make-lang.in: Update dependencies.
6417         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
6418         (vx_stack_info.c).
6420 2007-10-15  Vincent Celier  <celier@adacore.com>
6422         * snames.adb, snames.ads: Add new standard name runtime_library_dir
6424         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
6426         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
6428         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
6429         the source is unknown.
6431         * prj-ext.adb: Spelling error fix
6433         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
6434         95 reserved word in its name.
6435         (Process_Project_Level_Array_Attributes): Process new attribute
6436         Runtime_Library_Dir.
6438         * prj-part.adb (Parse_Single_Project): Do not check the name of the
6439         config project against the user project names.
6441         * prj-proc.adb (Expression): In multi-language mode, indexes that do
6442         not include a dot are always case insensitive.
6443         (Process_Declarative_Items): Ditto
6444         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
6445         detected.
6447         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
6448         True, compare both indexes in lower case.
6450 2007-10-15  Robert Dewar  <dewar@adacore.com>
6452         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
6454 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
6456         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
6457         association for an access component, add an association with null as
6458         the expression. Remove testing for array subtypes and the setting in
6459         that case of Ctyp to the array component type, which prevented proper
6460         inclusion of an association for null-initialized arrays. Collapse
6461         condition that tests for array subtypes into just a test of
6462         Is_Partially_Initialized_Type (which already covers arrays anyway).
6464 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
6466         * sem_ch12.adb: Minor code reformatting.
6467         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
6468         find the parent package which may have been hidden by local
6469         declarations.
6471 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
6473         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
6474         flag of derived concurrent types, taking into account the flag setting
6475         on the parent subtype and any new set of discriminants.
6477 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
6479         * sem_ch4.adb: Minor code and comment reformatting.
6480         (Analyze_Allocator): When the designated type of an unconstrained
6481         allocator is a record with unknown discriminants or an array with
6482         unknown range bounds, emit a detailed error message depending on the
6483         compilation mode and whether the designated type is limited.
6485 2007-10-15  Tristan Gingold  <gingold@adacore.com>
6487         * system-vms-ia64.ads: New file.
6489         * system-vms_64.ads: Minor comment fix.
6491 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
6493         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
6494         body generated for a function with a controlling result that is a null
6495         extension, discard the generated body in favor of the current explicit
6496         one.
6498 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
6500         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
6501         examining its original form, to handle properly operator calls that
6502         have been rewritten.
6504 2007-10-15  Olivier Hainque  <hainque@adacore.com>
6506         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
6507         instead of a procedure value in each traceback entry.
6509         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
6510         instead of procedure value to TBK$SYMBOLIZE.
6512         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
6513         field.
6514         (TB_Entry_For): Account for the PV/FP renaming.
6516         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
6517         add comment.
6518         (Null_TB_Entry): Account for change of component name.
6519         (PV_For): Rename as FP_For.
6521 2007-10-15  Tristan Gingold  <gingold@adacore.com>
6523         * trans.c (gnat_to_gnu): Remove the padding structure more often.
6524         This optimize assignment to over-aligned record.
6526 2007-10-15  Emmanuel Briot  <briot@adacore.com>
6528         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
6529         interfaces.
6531         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
6532         type, for dispatching calls.
6534 2007-10-15  Vincent Celier  <celier@adacore.com>
6535             Robert Dewar  <dewar@adacore.com>
6537         * gnat_ugn.texi: Add documentation for switches --version and --help
6538         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
6539         gnatxref, gnatfind, gnatls, and gnatclean.
6540         Document -gnatw.o.
6541         Mention attribute Excluded_Source_Dirs
6542         Replace obsolescent attribute Locally_Removed_Files with attribute
6543         Excluded_Source_Files.
6544         Improve documentation of -u (gnatbind)
6545         Document how to do reliable stack checking for the environmental task
6546         on iVMS.
6548         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
6549         Document attribute Excluded_Source_Files and indicate that attribute
6550         Locally_Removed_Files is obsolescent.
6552 2007-10-15  Thomas Quinot  <quinot@adacore.com>
6554         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
6556         * gen-soccon.c: 
6557         Update documentation to note that OpenVMS 8.3 or later must be used
6558         to generate g-soccon-vms.ads.
6560         * atree.adb: Add ??? comment
6562         * exp_util.adb: Minor reformatting.
6563         Add ??? comment in Kill_Dead_Code.
6565 2007-10-15  Robert Dewar  <dewar@adacore.com>
6567         * errout.ads: Comment clarification
6569         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
6570         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
6572         * lib.ads: Comment update
6574         * init.c: Minor reformatting.
6576         * sem_attr.adb: Minor formatting
6578         * osint-b.ads: Minor reformatting
6580         * sem_ch9.adb: Implement -gnatd.I switch
6582         * g-comlin.adb: (Start): Fix handling of empty command line.
6584         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
6585         even when -rules follows the -cargs section.
6587 2007-10-08  Ollie Wild  <aaw@google.com>
6589         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
6590         gnat_return_tree.
6591         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
6592         gnat_return_tree.
6593         (gnat_eh_runtime_type): Removed.
6594         (gnat_return_tree): New function.
6596 2007-10-08  Ben Elliston  <bje@au.ibm.com>
6598         PR ada/33454
6599         Revert:
6600         2007-08-31  Ben Elliston  <bje@au.ibm.com>
6602         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
6603         when compiling for powerpc64-*-linux.
6604         * system-linux-ppc64.ads: New file.
6606 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
6608         Mapped location support
6609         * back_end.adb (Call_Back_End): Pass information about source
6610         files instead of units to gigi.
6611         * gigi.h (struct File_Info_Type): New.
6612         (gigi): Rename and change type of number_units parameter, change
6613         type of file_info_ptr parameter.
6614         * trans.c (number_files): New global variable.
6615         (gigi): Rename and change type of number_units parameter, change
6616         type of file_info_ptr parameter.
6617         If mapped location support is enabled, create the isomorphic mapping
6618         between source files and line maps.
6619         (Sloc_to_locus): If mapped location support is enabled, translate
6620         source location into mapped location.
6621         (annotate_with_node): Rename into set_expr_location_from_node.
6622         Call set_expr_location instead of annotate_with_locus.
6623         (Pragma_to_gnu): Adjust for above change.
6624         (Loop_Statement_to_gnu): Likewise.
6625         (call_to_gnu): Likewise.
6626         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
6627         (gnat_to_gnu): Likewise.
6628         (add_stmt_with_node): Likewise.
6629         (add_cleanup): Likewise.
6630         * utils.c (gnat_init_decl_processing): Do not set input_line.
6632 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
6634         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
6635         (Applicable_Use): Emit a warning when a package tries to use itself.
6636         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
6637         is already in use or the package where it is declared is in use or is
6638         declared in the current package.
6639         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
6641         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
6642         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
6643         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
6645 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
6647         * a-calend-vms.adb, a-calend.adb: 
6648         Add a section on leap seconds control along with two entities used to
6649         enable and disable leap seconds support. The array Leap_Second_Times is
6650         now constant and contains hard time values pre-generated. Remove
6651         all elaboration code used to populate the table of leap seconds.
6653         * bindgen.adb: 
6654         Add entity Leap_Seconds_Support to the list of global run-time variables
6655         along with a comment on its usage and values.
6656         (Gen_Adainit_Ada): Add code to generate the declaration and import of
6657         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
6658         or one (enabled) depending on the presence of binder switch "-y".
6659         (Gen_Adainit_C): Add code to generate the declaration of external int
6660         __gl_leap_seconds_support. Set is value to zero (disabled) or one
6661         (enabled) depending on the presence of binder switch "-y".
6663         * init.c: Add __gl_leap_seconds_support to the list of global values
6664         computed by the binder.
6666 2007-09-26  Jerome Guitton  <guitton@adacore.com>
6668         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
6669         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
6670          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
6671         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
6673         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
6675         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
6676         function which can be called by the debugger to interrupt the tasks of
6677         an Ada application asynchronously, as needed on VxWorks.
6678         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
6680         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
6681         renamed from Stop_All_Tasks. Update comments.
6682         (Stop_All_tasks): New function declaration.
6684 2007-09-26  Olivier Hainque  <hainque@adacore.com>
6686         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
6687         #include <utime.h> and #define GCC_RESOURCE_H before
6688         #include <sys/wait.h>.
6689         Add more protections in __gnat_translate_vms.
6691         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
6692         #include <sys/wait.h>.
6694 2007-09-26  Thomas Quinot  <quinot@adacore.com>
6695             Sergey Rybin  <rybin@adacore.com>
6697         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
6699         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6700         where it belongs.
6702         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6704         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6705         where it belongs.
6707         * sem_dist.ads: Minor comment fix
6709         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6711 2007-09-26  Javier Miranda  <miranda@adacore.com>
6712             Eric Botcazou  <ebotcazou@adacore.com>
6714         * a-tags.adb: 
6715         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
6716          indirection added to the HT_Link component of the TSD. This is required
6717          to statically allocate the TSD.
6719         * a-tags.ads: 
6720         Minor reordering of the declarations in the private part. Required to
6721         add a level of indirection to the contents of the TSD component HT_Link.
6722         This is required to statically allocate the TSD.
6724         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
6725         Is_Statically_Allocated set from constant objects.
6726         Do not make exported constants created by the compiler volatile.
6727         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
6728         as read-only.
6730         * trans.c (Identifier_to_gnu): For constants, unshare initializers
6731         before returning them.
6733         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
6734         public part of the package.
6735         (Make_DT): Move HT_Link component out of the TSD record. For this
6736         purpose Make_DT now declares a separate object that stores the
6737         HT_Link value, and initializes the TSD component with the address
6738         of this new object. The addition of this level of indirection is
6739         required to statically allocate the TSD because the TSD cannot
6740         have variable components.
6741         (Expand_Interface_Conversion): Improve the expanded code.
6742         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
6744         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
6745         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
6746         if we are building static dispatch tables then we must not generate
6747         extra code to register the primitive because the dispatch table will
6748         be built at the end of the library package; otherwise we notify that
6749         we cannot build the static dispatch table.
6751 2007-09-26  Robert Dewar  <dewar@adacore.com>
6753         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
6754         overlays.
6756         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
6757         (Analyze_Record_Representation_Clause): Suppress junk warning for
6758         missing component clause.
6759         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
6760         tests for controlled type overlay to composites with controlled
6761         components.
6762         (Analyze_Record_Representation_Clause): Add reference for component name
6764 2007-09-26  Javier Miranda  <miranda@adacore.com>
6765             Gary Dismukes  <dismukes@adacore.com>
6767         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
6768         for thunks associated with interface types.
6770         * einfo.ads: Improve documentatation of Is_Internal
6771         (Is_Thunk): New attribute applicable to subprograms. True for thunks
6772         associated with interface types.
6773         Extensive comment fixes regarding flags that appear in all entities. The
6774         documentation is now consistent for all such flags (there were a number
6775         of errors in the documentation in this regard).
6777         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
6779         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
6780         of these procedures are passed a function call that already has
6781         build-in-place actuals (testing new flag
6782         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
6783         the case where processing continues.
6784         (Expand_Call): If the call is generated from a thunk body then we
6785         propagate the extra actuals associated with the accessibility
6786         level of the access type actuals.
6788         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
6789         of each extra formal of a protected operation to reference the
6790         corresponding extra formal of the subprogram denoted by the
6791         operation's Protected_Body_Subprogram.
6792         
6793         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
6794         N_Function_Call nodes.
6796 2007-09-26  Robert Dewar  <dewar@adacore.com>
6798         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
6800         * debug.adb: Add d.s flag.
6802 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
6804         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
6805         debug variable so that it won't be initialized when pragma
6806         Initialize_Scalars is in effect.
6808 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
6810         * freeze.adb (Freeze_Entity): Remove check for preelaborable
6811         initialization of a full view. This is moved to
6812         Analyze_Package_Specification.
6814         * sem_ch7.adb (Analyze_Package_Specification): Add check for
6815         preelaborable initialization of a full view in entity loop.
6816         (Uninstall_Declarations): If entity is a use-visible compilation unit,
6817         its child units are use-visible only if they are visible child units.
6819         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
6820         whether an expression can be used within a type declaration that
6821         requires preelaborable init.
6822         (Check_Components): Replace inline code that does partial checking for
6823         preelaborable default expressions with call to
6824         Is_Preelaborable_Expression.
6825         (Has_Preelaborable_Initialization): In the case of a generic actual
6826         subtype, (that is, Is_Generic_Actual is True), return the result of
6827         applying Has_Preelaborable_Initialization to the generic actual's base
6828         type.
6830 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
6832         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
6833         call to Jan_1_Day _Of_Week to optimize its performance.
6834         (Is_Leap): Move the routine to the scope of Week_In_Year.
6835         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
6836         weekday on which January 1 falls of Year - 1 and Year + 1. This function
6837         avoids calling Time_Of and Split, thus making it more efficent.
6838         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
6840         * g-calend.ads (Week_In_Year): Change comment to reflect new
6841         implementation.
6843 2007-09-26  Emmanuel Briot  <briot@adacore.com>
6845         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
6846         Command_Line): New types
6847         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
6848         support for defining how switches can be grouped on a command line (as
6849         is the case for -gnatw... for GNAT), and how simple switches can be
6850         used as aliases for more complex switches (-gnatwa is same as
6851         -gnatwbcef...)
6852         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
6853         (Start, Current_*): New subprograms
6854         Added support for parsing an array of strings in addition to the real
6855         command line.
6856         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
6857          be moved from the body to the private part of the spec.
6858         (*): All subprograms now have an extra parameter with default value to
6859         specify which parser should be used. For backward compatibility, it
6860         defaults to parsing the command line of the application. They were also
6861         modified to properly handle cases where each of the argument does not
6862         start at index 1 (which is always true for Ada.Command_Line, but not
6863         when processing any Argument_List).
6864         (Free): New subprogram
6865         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
6866         Argument): New subprograms
6867         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
6868         special characters like ':', '=',... are now handled in a single place,
6869         which makes the code more extensible eventually.
6870         (Getopt, Full_Switch): When the switch was returned as part of the
6871         special character '*', make sure it is prepended by the switch character
6872         ('-' in general), so that the application knows whether "foo" or "-foo"
6873         was specified on the command line.
6875 2007-09-26  Florian Villoing  <villoing@adacore.com>
6877         * g-dirope.adb (Remove_Dir): In case we are removing directories
6878         recursively, make sure that if an exception is raised during the
6879         processing, the current working directory is reset to its initial
6880         value before propagating the exception.
6882 2007-09-26  Vincent Celier  <celier@adacore.com>
6884         * gnatbind.adb: If there are several ALI files specified and there is
6885         a main program to bind, the first ALI is expected to contain the main
6886         subprogram and the names of the binder generated files will be derived
6887         from the first ALI file name.
6888         (Gnatbind): Fix insertion character in invocation of Error_Msg
6890 2007-09-26  Vincent Celier  <celier@adacore.com>
6892         * gnatcmd.adb (Check_Files): Do not include sources that have been
6893         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
6895 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
6897         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
6898         information about each of its index types, following the type
6899         reference for its component type.
6901 2007-09-26  Vincent Celier  <celier@adacore.com>
6903         * make.adb: (Kill): New procedure (__gnat_kill imported)
6904         (Running_Compile, Outstanding_Compiles): Global variables that
6905         were previously local to procedure Compile_Sources.
6906         (Sigint_Intercepted): Send signal SIGINT to all outstanding
6907         compilation processes.
6909         (Gnatmake): If project files are used, create the mapping of all the
6910         sources, so that the correct paths will be found.
6912         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
6914 2007-09-26  Vincent Celier  <celier@adacore.com>
6916         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
6918         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
6919         Replace components Compiler_Min_Options and Binder_Min_Options with
6920         Compiler_Required_Switches and Binder_Required_Switches in record
6921         Language_Config.
6922         Remove components Default_Language and Config in Project_Tree_Data,
6923         no longer used.
6925         * prj-attr.adb: New attributes Required_Switches (<language>) in
6926         packages Compiler and Binder.
6928         * prj-nmsc.adb: Major rewrite of the processing of configuration
6929         attributes for gprbuild. No impact on GNAT tools.
6931         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
6932         process configuration attributes: this is done in Prj.Nmsc.Check.
6933         (Recursive_Process): Make a full copy of packages inherited from project
6934         being extended, instead of a shallow copy.
6935         (Process_Project_Tree_Phase_1): New procedure
6936         (Process_Project_Tree_Phase_1): New procedure
6937         (Process): Implementation now uses the two new procedures
6939         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
6940         from the project config, not the tree config that no longer exists.
6942 2007-09-26  Vincent Celier  <celier@adacore.com>
6944         * Make-lang.in: Update dependencies..
6946 2007-09-26  Vincent Celier  <celier@adacore.com>
6948         * osint.adb, osint.ads: Minor reformatting
6950         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
6952 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
6954         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
6955         message to cite use of <> in aggregate component associations rather
6956         than wrongly indicating use of limited aggregates.
6958 2007-09-26  Robert Dewar  <dewar@adacore.com>
6960         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
6961         Address_Taken.
6963 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
6965         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
6966         ancestor of the derived type, the operations are inherited from the
6967         primary dispatch table of the parent.
6968         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
6969         when the context is an explicit type conversion.
6971 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
6973         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
6974         rule for qualified expressions properly, to detect improper conversions
6975         and resolve some cases of overloading.
6977 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
6979         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
6980         proper kind of reference to the primitive operation, for better source
6981         navigation.
6982         (Valid_Conversion): A tagged conversion is legal if both operands are
6983         tagged.
6985 2007-09-26  Robert Dewar  <dewar@adacore.com>
6987         * sem_warn.adb (Check_References): Catch more cases of unreferenced
6988         packages.
6990 2007-09-26  Vincent Celier  <celier@adacore.com>
6992         * snames.adb, snames.ads: Change Include_Option to Include_Switches
6994 2007-09-26  Robert Dewar  <dewar@adacore.com>
6996         * s-wchstw.adb: provide messages for run time unit exceptions
6998         * a-witeio.adb: Minor reformatting
7000         * exp_ch13.adb: Minor reformatting
7002 2007-09-26  Sergey Rybin  <rybin@adacore.com>
7004         * vms_data.ads: Revise gnatmetric qualifiers.
7005         Add qualified for the new gnatbind option '-y'
7007         * gnat_ugn.texi: Revise the gnatmetric section.
7008         Add entry for new gnatbind option '-y'.
7010         * gnat_rm.texi: Minor spelling correction.
7011         Document restriction on overlaying controlled types
7013 2007-09-26  Vincent Celier  <celier@adacore.com>
7015         * makegpr.adb (Link_Executables): Do not fail when the root project has
7016         no sources, but is an extending project.
7018 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
7020         * trans.c: Fix misplaced #define.
7022 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
7024         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
7025         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
7027 2007-09-21  Olivier Hainque  <hainque@adacore.com>
7029         * utils.c (type_for_nonaliased_component_p): Return false for
7030         all AGGREGATE_TYPEs.
7032 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
7034         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
7035         object covered by 13.3(19) volatile.
7037 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
7039         PR ada/26797
7040         PR ada/32407
7041         * utils.c (unchecked_convert): Use a subtype as the intermediate type
7042         in the special VIEW_CONVERT_EXPR case.
7044 2007-09-12  Robert Dewar  <dewar@adacore.com>
7046         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
7048         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
7049         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
7050         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
7051         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
7052         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
7053         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
7054         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
7055         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
7056         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
7057         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
7058         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
7059         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
7060         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
7061         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
7062         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
7063         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
7064         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
7065         pragma Compiler_Unit and adds it to relevant library units.
7067 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
7069         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
7070         a box need not correspond to any component.
7072 2007-09-12  Robert Dewar  <dewar@adacore.com>
7074         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
7075         the tasking version of the Ada run time when foreign threads are
7076         present and there are no explicit Ada tasks or tasking constructs.
7078         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
7080 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
7082         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
7083         the usage of switch -y.
7085         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
7086         when switch -y is present.
7088         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
7089         leap seconds in Ada.Calendar and its children.
7091 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
7093         * a-extiti.ads (Timer): The discriminant is a "not null access
7094         constant" in the Reference Manual.
7095         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
7097 2007-09-12  Robert Dewar  <dewar@adacore.com>
7099         * a-swuwha.adb: Remove junk RM header
7101 2007-09-12  Vincent Celier  <celier@adacore.com>
7103         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
7104         indicator
7106         * g-bytswa.ads: Minor reformatting
7108 2007-09-12  Thomas Quinot  <quinot@adacore.com>
7110         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
7111         Add new constant Thread_Blocking_IO, always True by default, set False
7112         on a per-runtime basis.
7113         (Need_Netdb_Buffer): New constant.
7115 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
7117         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
7118         Added renames for corresponding functions in System.Partition_Interface.
7120 2007-09-12  Doug Rupp  <rupp@adacore.com>
7122         * Makefile.in: Remove VMS specific System.CRTL packages which are no
7123         longer needed.
7125         * s-crtl-vms64.ads: Removed.
7127 2007-09-12  Olivier Hainque  <hainque@adacore.com>
7129         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
7130         with discriminant constraints, generalize the code for BIT_FIELDs
7131         to PACKED fields of constant size and propagate DECL_PACKED.
7133 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
7135         * decl.c (array_type_has_nonaliased_component): New predicate.
7136         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
7137         set the TYPE_NONALIASED_COMPONENT flag on the type.
7138         <E_Array_Subtype>: Likewise.
7139         * gigi.h (type_for_nonaliased_component_p): Declare.
7140         * utils.c (type_for_nonaliased_component_p): New predicate.
7141         (create_field_decl): Invoke the above predicate to set the
7142         DECL_NONADDRESSABLE_P flag on the field.
7144 2007-09-11  Javier Miranda  <miranda@adacore.com>
7146         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
7147         in library level record type entities if we are generating statically
7148         allocated dispatch tables.
7150         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
7151         importing/exporting the _tag declaration by new code
7152         importing/exporting the dispatch table wrapper. This change allows us
7153         to statically allocate of the TSD.
7154         (Make_DT.Export_DT): New procedure.
7155         (Build_Static_DT): New function.
7156         (Has_DT): New function.
7158         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
7159         True_Constant and Current_Value. Required to statically
7160         allocate the dispatch tables.
7161         (Check_Allocator): Make function iterative instead of recursive.
7162         Also return inner allocator node, when present, so that we do not have
7163         to look for that node again in the caller.
7165 2007-09-11  Jan Hubicka  <jh@suse.cz>
7167         * misc.c (gnat_expand_body): Kill.
7168         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
7170 2007-09-10  Robert Dewar  <dewar@adacore.com>
7172         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
7173         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
7174         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
7175         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
7176         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
7177         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
7178         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
7179         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
7180         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
7181         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
7182         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
7183         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
7184         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
7185         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
7186         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
7187         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
7188         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
7189         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
7190         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
7191         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
7192         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
7193         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
7194         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
7195         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
7196         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
7197         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
7198         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
7199         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
7200         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
7201         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
7202         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
7203         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
7204         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
7205         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
7206         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
7207         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
7208         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
7209         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
7210         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
7211         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
7212         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
7213         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
7214         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
7215         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
7216         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
7217         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
7218         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
7219         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
7220         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
7221         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
7222         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
7223         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
7224         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
7225         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
7226         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
7227         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
7228         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
7229         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
7230         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
7231         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
7232         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
7233         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
7234         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
7235         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
7236         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
7237         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
7238         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
7239         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
7240         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
7241         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
7242         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
7243         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
7244         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
7245         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
7246         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
7247         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
7248         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
7249         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
7250         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
7251         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
7252         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
7253         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
7254         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
7256 2007-09-10  Emmanuel Briot  <briot@adacore.com>
7258         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
7259         classes ("[]").
7261 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
7263         * adaint.c (__gnat_translate_vms): new function.
7265 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
7266             Thomas Quinot  <quinot@adacore.com>
7268         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
7269         create an abstract subprogram in the case of 'Input. For 'Output we now
7270         create a real spec/body when the type is abstract, since it can
7271         potentially be called.
7272         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
7273         body for 'Output when the type is abstract (only the creation of the
7274         body for 'Input is excluded when the type is abstract).
7275         (Stream_Operation_OK): Add an additional condition in the return
7276         statement, so that False will be returned for TTS_Stream_Input if the
7277         associated tagged type is an abstract extension. Add comments for
7278         return statement.
7279         (Expand_N_Object_Declaration): For the case of a shared passive
7280         variable, insert init proc call only after the shared variable
7281         procedures have been processed, because the IP call needs to undergo
7282         shared passive variable reference expansion, which requires these
7283         procedures to be available (and elaborated).
7285 2007-09-10  Vincent Celier  <celier@adacore.com>
7287         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
7288         parameter Runtime_Project.
7290 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
7292         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
7293         given a box association, the type of the component is discriminated,
7294         and the value of the discriminant is the discriminant of the enclosing
7295         type, retrieve its value from the aggregate itself, where it must have
7296         been supplied.
7298         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
7299         to remove other spurious ambiguities on arithmetic operations involving
7300         literals and addresses, on systems where Address is a visible integer
7301         type, when the operator is called in functional notation.
7302         (Try_Primitive_Operation): Within an instance, a call in prefixed form
7303         is legal when the types match, even if the operation is currently
7304         hidden.
7306 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
7308         * sem_ch12.adb (Build_Local_Package): A formal package with no
7309         associations is legal if all formals have defaults. It is not
7310         equivalent to a formal declared with a box.
7312 2007-09-10  Sergey Rybin  <rybin@adacore.com>
7314         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
7316 2007-09-10  Sergey Rybin  <rybin@adacore.com>
7318         * gnat_ugn.texi: Add description of the new '-lratio' option
7319         Update 7.3.1 section about availability of the feature.
7321 2007-09-10  Thomas Quinot  <quinot@adacore.com>
7323         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
7324         inserted node.
7326 2007-09-10  Olivier Hainque  <hainque@adacore.com>
7328         * Makefile.in: (mips-irix section): Activate build of libgmem.
7330 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
7332         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
7333         x87 registers.
7335 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
7337         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
7338         a debug renaming declaration specially.
7340 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
7342         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
7343         which a constant renaming is treated as a normal object declaration.
7344         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
7345         the N_Indexed_Component case.
7346         <N_Indexed_Component>: Fall through to above case.
7347         <N_Object_Renaming_Declaration>: Return true for all composite types.
7349 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
7351         * decl.c (make_packable_type): If the new type has been given BLKmode,
7352         try again to get an integral mode for it.
7354 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
7356         Re-apply accidentally reverted change:
7358         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
7360         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
7361         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
7362         and _Unwind_SWord with _sleb128_t.
7364 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
7366         * trans.c (convert_with_check): Update call to real_2expN.
7368 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
7370         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
7371         * utils.c (end_subprog_body): Likewise.
7373 2007-09-03  Nick Clifton  <nickc@redhat.com>
7375         * Make-lang.in: Change copyright header to refer to version 3 of
7376         the GNU General Public License and to point readers at the
7377         COPYING3 file and the FSF's license web page.
7378         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
7379         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
7380         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
7381         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
7382         Likewise.
7384 2007-08-31  Vincent Celier  <celier@adacore.com>
7386         PR ada/4720
7388         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
7389         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
7390         (Check_Version_And_Help): New procedure in package Switch to process
7391         switches --version and --help.
7392         Use Check_Version_And_Help in GNAT tools
7394         * make.adb:  Ditto.
7395         (Compile_Sources): Make sure that sources that are "excluded" are not
7396         compiled.
7397         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
7398         project file is used.
7399         (Version_Switch): Remove, moved to Switch
7400         (Help_Switch): Remove, moved to Switch
7401         (Display_Version): Remove, moved to Switch
7403         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
7404         package Switch to process switches --version and --help.
7405         (Display_Version): New procedure
7407         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
7409 2007-08-31  Javier Miranda  <miranda@adacore.com>
7411         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
7412         internal tags.
7414 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
7416         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
7417         (Mark_Non_Null): If the node for which we just generated an access check
7418         is a reference to an *in* parameter and the reference appears in the
7419         declarative part of a subprogram body, mark the node as known non null.
7421 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
7423         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
7424         structure of E_Exception to reflect the new flag.
7425         (Is_Raised, Set_Is_Raised): New inlined routines.
7426         Update the usage of available flag to reflect the addition of Is_Raised.
7427         (Is_Raised, Set_Is_Raised): Bodies of new routines.
7428         (Write_Entity_Flags): Write the status of flag Is_Raised.
7429         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
7430         spurious ambiguities when integer literals appear in the context of an
7431         address type that is a visible integer type.
7433         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
7434         exceptions never being raised.
7435         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
7436         explicitly raised.
7438 2007-08-31  Javier Miranda  <miranda@adacore.com>
7440         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
7441         statement when compiling under restriction No_Exceptions_Proparation.
7443 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
7445         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
7446         initialization aggregate for the type, generate itype references for
7447         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
7449 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
7451         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
7452         library-level package renaming, pass the declaration associated with
7453         the renaming's special debug variable to Qualify_Entity_Names to ensure
7454         that its encoded name is properly qualified.
7456         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
7457         occurring in the list of entities to qualify, and do not attempt to
7458         traverse an entity list in that case. Variables associated with
7459 `       library-level package renamings can now occur in the table.
7461         * exp_dbug.ads: Revise documentation of the encoding for renaming
7462         declarations.
7464 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7466         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
7467         access type points to an unconstrained array.
7469 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
7471         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
7472         conversion.
7474         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
7475         simple redundant qualifications. The check is performed whenever the
7476         expression is a non-overloaded identifier.
7477         (Resolve_Type_Conversion): Enchance the redundant type conversion check
7478         to include loop parameters.
7479         (Valid_Conversion): Avoid generation of spurious error message.
7481 2007-08-31  Bob Duff  <duff@adacore.com>
7483         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
7484         concatenations of string literals into a single literal, in order to
7485         avoid very deep recursion in the front end, which was causing stack
7486         overflow.
7488         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
7489         string, and the right operand is a string literal (the case of "" &
7490         "..."), optimize by avoiding copying the right operand -- just use the
7491         value of the right operand directly.
7493         * stringt.adb (Store_String_Chars): Optimize by growing the
7494         String_Chars table all at once, rather than appending characters one by
7495         one.
7496         (Write_String_Table_Entry): If the string to be printed is very long,
7497         just print the first few characters, followed by the length. Otherwise,
7498         doing "pn(n)" in the debugger can take an extremely long time.
7500         * sem_prag.adb (Process_Interface_Name): Replace loop doing
7501         Store_String_Char with Store_String_Chars.
7503 2007-08-31  Vincent Celier  <celier@adacore.com>
7505         * prj-attr.adb: Add new attribute Excluded_Source_Files
7507         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
7508         Locally_Removed_Files.
7510         * snames.ads, snames.adb: New standard name Excluded_Source_Files
7512 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
7514         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
7515         clauses of subunits, ignore limited_with_clauses that are illegal and
7516         have not been fully analyzed.
7518 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
7520         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
7521         flag, for effiency. It is called when analyzing arithmetic operators
7522         and also for actuals in calls that are universal_integers. The flag is
7523         set for the predefined type address, and for any type or subtype
7524         derived from it.
7526         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
7527         Universal_Integer, when the formal is a descendent of address and the
7528         call appears in user code.
7529         (Analyze_Selected_Component): if the prefix is a private extension, the
7530         tag component is visible.
7532         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
7533         entity flag.
7535 2007-08-31  Robert Dewar  <dewar@adacore.com>
7537         * s-fileio.adb (Open): Normalize file name to lower case in non-case
7538         sensitive file name systems to avoid unexpected mismatch in Vista.
7540 2007-08-31  Vincent Celier  <celier@adacore.com>
7542         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
7544 2007-08-31  Vincent Celier  <celier@adacore.com>
7546         * symbols-vms.adb (Initialize): Read symbol files with continuation
7547         lines
7548         (Finalize): If symbol is long, split the line
7550 2007-08-31  Vincent Celier  <celier@adacore.com>
7552         * fmap.ads: Minor comment updates
7554 2007-08-31  GNAT Script  <nobody@adacore.com>
7556         * Make-lang.in: Makefile automatically updated
7558 2007-08-31  Bob Duff  <duff@adacore.com>
7560         * sinfo.ads: Minor comment fix.
7562 2007-08-31  Thomas Quinot  <quinot@adacore.com>
7564         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
7565         with implementation.
7566         Documentation cleanup only.
7568 2007-08-31  Sergey Rybin  <rybin@adacore.com>
7570         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
7571         gnatpp '--separate-stmt-name' option.
7572         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
7573         option.
7575         * gnat_ugn.texi: Add description for the new gnatpp
7576         '--separate-stmt-name' and '--use-on-new-line' options.
7578 2007-08-31  Ben Elliston  <bje@au.ibm.com>
7580         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
7581         when compiling for powerpc64-*-linux.
7582         * system-linux-ppc64.ads: New file.
7584 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
7586         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
7587         NetBSD.
7589 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7591         * misc.c (gnat_type_max_size): Constify.
7593 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
7595         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
7596         associated with Standard_Debug_Renaming_Type, to be used as the type of
7597         the special variables whose names provide debugger encodings for
7598         renaming declarations.
7600         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
7601         (Set_Debug_Renaming_Link): Change to set Node25.
7602         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
7603         (Write_Field25_Name): Add case for E_Variable to output
7604         "Debug_Renaming_Link".
7605         (Write_Field23_Name): Correct the output string for "Limited_View".
7607         * exp_dbug.adb: Add with and use of Tbuild.
7608         (Debug_Renaming_Declaration): Replace creation of an enumeration type
7609         and literal with creation of a variable of type
7610         Standard_Debug_Renaming_Type whose name encodes both the renamed object
7611         and the entity of the renaming declaration.
7612         (Qualify_Entity_Name): Add the delayed qualification of the entity name
7613         part of the name of a variable that has a Debug_Renaming_Link.
7615         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
7616         special type to be associated with variables that provide debugger
7617         encodings for renaming declarations.
7619 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
7620             Ed Schonberg  <schonberg@adacore.com>
7621             Javier Miranda  <miranda@adacore.com>
7623         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
7624         ancestor part given by an aggregate to test for an unchecked conversion,
7625         since this can occur in some cases when the ancestor part is a function
7626         call, and we don't want to fall into the recursive call to this
7627         procedure in that case.
7629         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
7630         stream attributes on limited types to account for user-specified
7631         attributes as well as whether Input (resp. Output) becomes available
7632         due to Read (resp. Write) being available for the type. Change Boolean
7633         variable to the more accurate name
7634         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
7635         double-"not" predicate at beginning of return statement to more
7636         understandable form.
7638         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
7639         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
7640         in a block statement and use that as the first statement of the
7641         expanded return rather than incorrectly using the handled sequence as
7642         the first statement.
7644         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
7645         operation, generate an explicit freeze node for it rather than
7646         generating extra formals, to ensure that gigi has the proper order of
7647         elaboration for anonymous subtypes in the signature of the subprograms.
7648         (Build_In_Place_Formal): Move assertion to beginning of loop.
7649         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
7650         applied to a function call (occurs for some cases of 'Input).
7651         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
7652         applied to a function call (occurs for some cases of 'Input).
7654         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
7655         2005, generate an extended return statement enclosing the result object
7656         and 'Read call.
7658         * freeze.adb (Freeze_Record_Type): Extend the current management of
7659         components that are access type with an allocator as default value: add
7660         missing support to the use of qualified expressions of the
7661         allocator (which also cause freezing of the designated type!)
7662         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
7663         dispatching operation, since extra formals may be needed by calls to
7664         build-in-place functions (such as stream 'Input).
7666         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
7667         formals for 'Constrained and accessibility level in the case of a
7668         predefined dispatching operation.
7670         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
7671         point, no need to find the parent node.
7673 2007-08-16  Javier Miranda  <miranda@adacore.com>
7675         * exp_attr.adb (Attribute_Priority): Add missing support for entries
7676         and entry barriers.
7678 2007-08-16  Javier Miranda  <miranda@adacore.com>
7680         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
7681         is not really required and can introduce regression with the debugger.
7682         The original problem is fixed with the patch written for checks.adb.
7684 2007-08-16  Thomas Quinot  <quinot@adacore.com>
7686         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
7687         Range_Check on Allocated_Table.
7689 2007-08-16  Vincent Celier  <celier@adacore.com>
7691         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
7692         Including_Non_Switch set to False.
7693         (Gnatmake): For the compiler, call Test_If_Relative_Path with
7694         Including_Non_Switch set to False.
7696         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
7697         parameter Including_Non_Switch, defaulted to True. When
7698         Including_Non_Switch is False, options that are not switches and
7699         appear as relative path are not converted to absolute paths.
7701 2007-08-16  Nicolas Roche  <roche@adacore.com>
7703         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
7704         makefiles
7706         * Make-lang.in: Update dependencies
7708 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
7710         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
7711         currently inspected is a selected component, retrieve the entity of
7712         its selector.
7713         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
7714         from the immediate ancestor of Main_Unit_Entity.
7715         (Install_Limited_Withed_Unit): Do not install the limited view of
7716         package P if P is reachable through an ancestor chain from package C
7717         and C also has a with clause for P in its body.
7718         (Has_Limited_With_Clause): New routine.
7719         (Has_With_Clause): New routine.
7721 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
7723         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
7724         generic for an enclosing instance is a global reference, even though
7725         its scope is the enclosing instance.
7727 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
7728             Javier Miranda  <miranda@adacore.com>
7730         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
7731         initialize a limited object.
7732         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
7733         13/2 and 14/2.
7734         Make sure Has_Complex_Representation is inherited by derived type.
7736 2007-08-16  Robert Dewar  <dewar@adacore.com>
7738         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
7739         exception case
7741 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
7743         * sem_disp.adb (Check_Dispatching_Operation): If the operation
7744         implements an operation inherited from a progenitor interface, verify
7745         that they are subtype-conformant.
7747 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
7748             Bob Duff  <duff@adacore.com>
7749             Nicolas Setton  <setton@adacore.com>
7751         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
7752         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
7753         the statement which is being resolved comes from a predefined library
7754         unit, all non-predefined library interpretations are skipped.
7755         (Resolve_Op_Concat): If string concatenation was folded in the parser,
7756         but the "&" is user defined, give an error, because the folding would
7757         be wrong.
7759         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
7760         the parser has folded a long sequence of concatenations of string
7761         literals.
7763         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
7764         and "JMP_BUF" variables as artificial.
7765         (N_String_Literal): Do not use alloca for very long string literals. Use
7766         xmalloc/free instead. Otherwise the stack might overflow.
7768         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
7769         compiler.
7771 2007-08-16  Vincent Celier  <celier@adacore.com>
7773         * vms_conv.adb (Process_Argument): Ensure that project related options
7774         are not put in the -cargs section when using GNAT COMPILE.
7776 2007-08-16  Robert Dewar  <dewar@adacore.com>
7778         * gnat_ugn.texi: Add note on preprocessing (output file not written)
7780 2007-08-16  Thomas Quinot  <quinot@adacore.com>
7782         * a-tags.adb: Minor reformatting.
7784 2007-08-16  Bob Duff  <duff@adacore.com>
7786         * sem_type.ads, sem_ch4.adb: Minor reformatting.
7788 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7790         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
7791         s-osinte-interix.ads, system-interix.ads: Removed.
7793 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
7795         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
7796         calls to Check_Within_Time_Bounds.
7797         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
7798         (Difference): Account for possible rounding of the resulting difference
7800 2007-08-14  Robert Dewar  <dewar@adacore.com>
7802         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
7803         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
7804         s-osinte-solaris.adb, s-osinte-solaris.ads,
7805         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
7807         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
7808         switch -gnatyS. Enable -gnatyS in GNAT style check mode
7810 2007-08-14  Robert Dewar  <dewar@adacore.com>
7811             Ed Schonberg  <schonberg@adacore.com>
7813         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
7814         Suppress unmodified in-out parameter warning in some cases
7815         This patch is a also fairly significant change to the way suppressible
7816         checks are handled.
7818         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
7819         needed for access to concurrent record types generated by the expander.
7820         (Generate_Range_Check): When generating a temporary to capture the
7821         value of a conversion that requires a range check, set the type of the
7822         temporary before rewriting the node, so that the type is always
7823         properly placed for back-end use.
7824         (Apply_Float_Conversion_Check): Handle case where the conversion is
7825         truncating.
7826         (Get_Discriminal): Code reformatting. Climb the scope stack looking
7827         for a protected type in order to examine its discriminants.
7829 2007-08-14  Robert Dewar  <dewar@adacore.com>
7830             Gary Dismukes  <dismukes@adacore.com>
7831             Ed Schonberg  <schonberg@adacore.com>
7832             Thomas Quinot  <quinot@adacore.com>
7834         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
7835         a-stwisu.adb, a-strsup.adb: Fix warnings for range
7836         tests optimized out.
7838         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
7839         (Get_Allocator_Final_List): For the case of an anonymous access type
7840         that has a specified Associated_Final_Chain, do not go up to the
7841         enclosing scope.
7842         (Expand_N_Type_Conversion): Test for the case of renamings of access
7843         parameters when deciding whether to apply a run-time accessibility
7844         check.
7845         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
7846         aggregate code before allocator, and ahead of declaration for
7847         temporary, to prevent access before elaboration when the allocator is
7848         an actual for an access parameter.
7849         (Expand_N_Type_Conversion): On an access type conversion involving an
7850         access parameter, do not apply an accessibility check when the
7851         operand's original node was an attribute other than 'Access. We now
7852         create access conversions for the expansion of 'Unchecked_Access and
7853         'Unrestricted_Access in certain cases and clearly accessibility should
7854         not be checked for those.
7856         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
7857         includes a type conversion of a packed component that has been expanded,
7858         recover the original expression for the object, and use this expression
7859         in the post-call assignment statement, so that the assignment is made
7860         to the object and not to a back-end temporary.
7861         (Freeze_Subprogram): In case of primitives of tagged types not defined
7862         at the library level force generation of code to register the primitive
7863         in the dispatch table. In addition some code reorganization has been
7864         done to leave the implementation clear.
7865         (Expand_Call): When expanding an inherited implicit conversion,
7866         preserve the type of the inherited function after the intrinsic
7867         operation has been expanded.
7869         * exp_ch2.ads, exp_ch2.adb
7870         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
7871         of an entry formal appearing in an assignment statement does not assign
7872         to the formal.
7873         (Expand_Current_Value): Instead of calling a routine to determine
7874         whether the prefix of an attribute reference should be optimized or
7875         not, prevent the optimization of such prefixes all together.
7877         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
7878         component whose prefix is known to be of an access type is an implicit
7879         dereference and does not assign to the prefix.
7881 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7882             Robert Dewar  <dewar@adacore.com>
7884         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
7885         itype is visited, make an entry into table to link associated node and
7886         new itype.
7887         Add comments and correct harmless error in Build_NCT_Hash_Tables
7888         (Array_Aggr_Subtype): Associate each itype created for an index type to
7889         the corresponding range construct, and not to the aggregate itself. to
7890         maintain a one-to-one correspondence between itype and its associated
7891         node, to prevent errors when complex expression is copied.
7892         Fix mishandling of multiple levels of parens
7894         * sem_aggr.adb: Create a limited view of an incomplete type, to make
7895         treatment of limited views uniform for all visible declarations in a
7896         limited_withed package.
7897         (New_Copy_Tree): If hash table is being used and itype is visited,
7898         make an entry into table to link associated node and new itype.
7899         (Resolve_Record_Aggregate): Do not add an others box association for a
7900         discriminated record component that has only discriminants, when there
7901         is a box association for the component itself.
7903         * par-ch4.adb: Fix mishandling of multiple levels of parens
7905 2007-08-14  Robert Dewar  <dewar@adacore.com>
7907         * comperr.adb: Fix problem with suppressing warning messages from gigi
7909         * erroutc.ads, erroutc.adb, errout.ads, 
7910         errout.adb (Write_Eol): Remove trailing spaces before writing the line
7911         (Write_Eol_Keep_Blanks): New procedure to write a line, including
7912         possible trailing spaces.
7913         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
7914         Fix problem with suppressing warning messages from back end
7915         Improve handling of deleted warnings
7917         * gnat1drv.adb: 
7918         Fix problem with suppressing warning messages from back end
7919         Handle setting of Static_Dispatch_Tables flag.
7921         * prepcomp.adb: 
7922         Fix problem with suppressing warning messages from back end
7924         * exp_intr.adb: Improve handling of deleted warnings
7926 2007-08-14  Robert Dewar  <dewar@adacore.com>
7928         * debug.adb: Improve -gnatdI to cover all cases of serialization
7929         Add documentation of dZ, d.t
7931         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
7932         serialization.
7933         (Sprint_Node_Actual): Generate new output associated with implicit
7934         importation and implicit exportation of object declarations.
7936 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7937             Robert Dewar  <dewar@adacore.com>
7938             Javier Miranda  <miranda@adacore.com>
7939             Gary Dismukes  <dismukes@adacore.com>
7941         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
7942         to make treatment of limited views uniform for all visible declarations
7943         in a limited_withed package.
7944         Improve warnings for in out parameters
7945         (Set_Related_Interaface/Related_Interface): Allow the use of this
7946         attribute with constants.
7947         (Write_Field26_Name): Handle attribute Related_Interface in constants.
7948         Warn on duplicate pragma Preelaborable_Initialialization
7950         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
7951         generation of a freezing node to ensure proper management of null
7952         excluding access types in the backend.
7953         (Create_Extra_Formals): Test base type of the formal when checking for
7954         the need to add an extra accessibility-level formal. Pass the entity E
7955         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
7956         originally being done in a couple of cases), to ensure that the
7957         Extra_Formals list gets set on the entity E when the first entity is
7958         added.
7959         (Conforming_Types): Add missing calls to Base_Type to the code that
7960         handles anonymous access types. This is required to handle the
7961         general case because Process_Formals builds internal subtype entities
7962         to handle null-excluding access types.
7963         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
7964         functions that need it, even when not marked Requires_Overriding.
7965         Improve warnings for in out parameters
7966         (Analyze_Function_Return): Warn for disallowed null return
7967         Warn on return from procedure with unset out parameter
7968         Ensure consistent use of # in error messages
7969         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
7970         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
7971         the implicit conversion of the expression done for anonymous access
7972         types. This is required to generate the code of the null excluding
7973         check (if required).
7975         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
7976         A formal parameter is never publicly referenceable outside of its body.
7977         (Check_References): For an unreferenced formal parameter in an accept
7978         statement, use the same warning circuitry as for subprogram formal
7979         parameters.
7980         (Warn_On_Unreferenced_Entity): New subprogram, taken from
7981         Output_Unreferenced_Messages, containing the part of that routine that
7982         is now reused for entry formals as described above.
7983         (Goto_Spec_Entity): New function
7984         (Check_References): Do not give IN OUT warning for dispatching operation
7985         Improve warnings for in out parameters
7986         (Test_Ref): Check that the entity is not undefinite before calling
7987         Scope_Within, in order to avoid infinite loops.
7988         Warn on return from procedure with unset out parameter
7989         Improved warnings for unused variables
7991 2007-08-14  Robert Dewar  <dewar@adacore.com>
7992             Javier Miranda  <miranda@adacore.com>
7993             Gary Dismukes  <dismukes@adacore.com>
7995         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
7996         (Expand_N_Attribute_Reference): Further unify the handling of the
7997         three forms of access attributes, using common code now for all three
7998         cases. Add a test for the case of applying an access attribute to
7999         an explicit dereference when the context is an access-to-interface
8000         type. In that case we need to apply the conversion to the prefix
8001         of the explicit dereference rather than the prefix of the attribute.
8002         (Attribute_Version, UET_Address): Set entity as internal to ensure
8003         proper dg output of implicit importation.
8004         (Expand_Access_To_Type): Removed.
8005         (Expand_N_Attribute_Reference): Merge the code from the three cases
8006         of access attributes, since the processing is largely identical for
8007         these cases. The substantive fix here is to process the case of a
8008         type name prefix (current instance case) before handling the case
8009         of interface prefixes.
8011 2007-08-14  Thomas Quinot  <quinot@adacore.com>
8012             Ed Schonberg  <schonberg@adacore.com>
8013             Javier Miranda  <miranda@adacore.com>
8014             Robert Dewar  <dewar@adacore.com>
8016         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
8017         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
8018         type that is an anonymous access to controlled object, establish
8019         an associated finalization chain to avoid corrupting the global
8020         finalization list when a dynamically allocated object designated
8021         by such a component is deallocated.
8022         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
8023         functions that need it, even when not marked Requires_Overriding.
8024         (Initialize_Tag): Replace call to has_discriminants by call to
8025         Is_Variable_Size_Record in the circuitry that handles the
8026         initialization of secondary tags.
8027         (Is_Variable_Size_Record): New implementation.
8028         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
8029         Suppress_Initialization pragma for a derived type.
8030         (Is_Variable_Size_Record): New subprogram.
8031         (Build_Offset_To_Top_Functions): New implementation that simplifies the
8032         initial version of this routine and also fixes problems causing
8033         incomplete initialization of the table of interfaces.
8034         (Build_Init_Procedure): Improve the generation of code to initialize the
8035         the tag components of secondary dispatch tables.
8036         (Init_Secondary_Tags): New implementation that simplifies the previous
8037         version of this routine.
8038         (Make_DT): Add parameter to indicate when type has been frozen by an
8039         object declaration, for diagnostic purposes.
8040         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
8041         diagnose attemps to freeze a subprogram when some untagged type of its
8042         profile is a private type whose full view has not been analyzed yet.
8043         (Freeze_Array_Type): Generate init proc for packed array if either
8044         Initialize or Normalize_Scalars is set.
8045         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
8046         constructing the new profile, copy the null_exclusion indicator for each
8047         parameter, to ensure full conformance of the new body with the spec.
8049         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
8050         Create wrappers for constructor functions that need it, even when not
8051         marked Requires_Overriding.
8052         (Covers): Handle properly designated types of anonymous access types,
8053         whose non-limited views are themselves incomplete types.
8054         (Add_Entry): Use an entity to store the abstract operation which hides
8055         an interpretation.
8056         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
8057         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
8058         initialization aggregate.
8059         (Function_Interp_May_Be_Hidden): Rename to
8060         Function_Interp_Has_Abstract_Op.
8061         (Has_Compatible_Type): Remove machinery that skips interpretations if
8062         they are labeled as potentially hidden by an abstract operator.
8063         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
8064         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
8065         (Write_Overloads): Output the abstract operator if present.
8066         (Add_Entry): Before inserting a new entry into the interpretation table
8067         for a node, determine whether the entry will be disabled by an abstract
8068         operator.
8069         (Binary_Op_Interp_May_Be_Hidden): New routine.
8070         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
8071         aggregate.
8072         (Function_Interp_May_Be_Hidden): New routine.
8073         (Has_Compatible_Type): Do not consider interpretations hidden by
8074         abstract operators when trying to determine whether two types are
8075         compatible.
8076         (Has_Hidden_Interp): New routine.
8077         (Set_May_Be_Hidden_Interp): New routine.
8078         (Write_Overloads): Write the status of flag May_Be_Hidden.
8080 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8081             Javier Miranda  <miranda@adacore.com>
8083         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
8084         types declared in the declarative part of a nested package body or in
8085         the proper body of a stub.
8086         (Set_All_DT_Position): Add missing check to avoid wrong assignation
8087         of the same dispatch table slot to renamed primitives.
8088         (Make_Select_Specific_Data_Table): Handle private types.
8089         (Tagged_Kind): Handle private types.
8090         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
8091         output of implicit importation and exportation.
8092         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
8093         first formal of the thunk is always associated with the controlling
8094         type. In addition perform the following code cleanup: remove formal
8095         Thunk_Alias which is no longer required, cleanup evaluation of the
8096         the controlling type, and update the documentation.
8097         Replace occurrence of Default_Prim_Op_Count by
8098         Max_Predef_Prims. Addition of compile-time check to verify
8099         that the value of Max_Predef_Prims is correct.
8100         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
8101         (Make_DT): Add parameter to indicate when type has been frozen by an
8102         object declaration, for diagnostic purposes.
8103         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
8104         construction of statically allocated dispatch tables.
8105         (Make_DT): In case of library-level tagged types export the declaration
8106         of the primary tag. Remove generation of tags (now done by Make_Tags).
8107         Additional modifications to handle non-static generation of dispatch
8108         tables. Take care of building tables for asynchronous interface types
8109         (Make_Tags): New subprogram that generates the entities associated with
8110         the primary and secondary tags of Typ and fills the contents of Access_
8111         Disp_Table. In case of library-level tagged types imports the forward
8112         declaration of the primary tag that will be declared later by Make_DT.
8113         (Expand_Interface_Conversion): In case of access types to interfaces
8114         replace an itype declaration by an explicit type declaration to avoid
8115         problems associated with the scope of such itype in transient blocks.
8117 2007-08-14  Robert Dewar  <dewar@adacore.com>
8118             Ed Schonberg  <schonberg@adacore.com>
8119             Javier Miranda  <miranda@adacore.com>
8121         * exp_util.ads, exp_util.adb: 
8122         This patch replaces a number of occurrences of explicit tests for N_Null
8123         with calls to Known_Null. This improves tracking of null values, since
8124         Known_Null also catches null constants, and variables currently known to
8125         be null, so we get better tracking.
8126         (Ensure_Defined): create an itype reference only in the scope of the
8127         itype.
8128         (Side_Effect_Free): A selected component of an access type that
8129         denotes a component with a rep clause must be treated as not
8130         side-effect free, because if it is part of a linked structure its
8131         value may be affected by a renaming.
8132         (Expand_Subtype_From_Expr): For limited objects initialized with build
8133         in place function calls, do nothing; otherwise we prematurely introduce
8134         an N_Reference node in the expression initializing the object, which
8135         breaks the circuitry that detects and adds the additional arguments to
8136         the called function. Bug found working in the new patch for statically
8137         allocated dispatch tables.
8138         (Is_Library_Level_Tagged_Type): New subprogram.
8139         (Remove_Side_Effects): If the expression of an elementary type is an
8140         operator treat as a function call.
8141         (Make_Literal_Range): If the index type of the array is not integer, use
8142         attributes properly to compute the constraint on the resulting aggregate
8143         which is a string.
8145         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
8146         class-wide type whose base type is an incomplete private type, leave
8147         class-wide type unfrozen so that freeze nodes can be generated
8148         properly at a later point.
8149         (Freeze_Entity, array case): Handle case of pragma Pack and component
8150         size attributre clause for same array.
8152 2007-08-14  Vincent Celier  <celier@adacore.com>
8154         * prj.ads, prj.adb: Update Project Manager to new attribute names for
8155         gprbuild.
8156         Allow all valid declarations in configuration project files
8157         (Reset): Initialize all tables and hash tables in the project tree data
8158         Major update of the Project Manager and of the project aware tools,
8159         including gprmake, so that the same sources in the GNAT repository
8160         can be used by gprbuild.
8161         (Slash_Id): Change type to be Path_Name_Type
8162         (Slash): Return a Path_Name_Type instead of a File_Name_Type
8164         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
8165         gprbuild.
8166         Update Project Manager to new attribute names for ghprbuild
8167         Allow all valid declarations in configuration project files
8168         Major update of the Project Manager and of the project aware tools,
8169         including gprmake, so that the same sources in the GNAT repository
8170         can be used by gprbuild.
8172         * prj-com.ads: 
8173         Major update of the Project Manager and of the project aware tools,
8174         including gprmake, so that the same sources in the GNAT repository
8175         can be used by gprbuild.
8177         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8178         insensitive flag for attributes with optional index.
8179         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8180         array attribute, put the index in lower case.
8181         Update Project Manager to new attribute names for ghprbuild
8182         Allow all valid declarations in configuration project files
8183         Major update of the Project Manager and of the project aware tools,
8184         including gprmake, so that the same sources in the GNAT repository
8185         can be used by gprbuild.
8187         * prj-env.ads, prj-env.adb: 
8188         Major update of the Project Manager and of the project aware tools,
8189         including gprmake, so that the same sources in the GNAT repository
8190         can be used by gprbuild.
8191         (Get_Reference): Change type of parameter Path to Path_Name_Type
8193         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
8194         removing '-' from the path to start with the first character of the
8195         next directory.
8196         Major update of the Project Manager and of the project aware tools,
8197         including gprmake, so that the same sources in the GNAT repository
8198         can be used by gprbuild.
8199         Major update of the Project Manager and of the project aware tools,
8200         including gprmake, so that the same sources in the GNAT repository
8201         can be used by gprbuild.
8203         * prj-nmsc.ads, prj-nmsc.adb: 
8204         Update Project Manager to new attribute names for ghprbuild
8205         Allow all valid declarations in configuration project files
8206         (Search_Directories): Detect subunits that are specified with an
8207         attribute Body in package Naming. Do not replace a source/unit in the
8208         same project when the order of the source dirs are known. Detect
8209         duplicate sources/units in the same project when the order of the
8210         source dirs are not known.
8211         (Check_Ada_Name): Allow all identifiers that are not reserved words
8212         in Ada 95.
8213         Major update of the Project Manager and of the project aware tools,
8214         including gprmake, so that the same sources in the GNAT repository
8215         can be used by gprbuild.
8216         (Look_For_Sources): If the list of sources is empty, set the object
8217         directory of non extending project to nil.
8218         Change type of path name variables to be Path_Name_Type
8219         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
8220         otherwise creating missing directories will fail.
8222         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
8223         prj-part.ads, prj-part.adb:
8224         Major update of the Project Manager and of the project aware tools,
8225         including gprmake, so that the same sources in the GNAT repository
8226         can be used by gprbuild.
8228         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8229         insensitive flag for attributes with optional index.
8230         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8231         array attribute, put the index in lower case.
8232         (Parse_Variable_Reference): Allow the current project name to be used in
8233         the prefix of an attribute reference.
8235         * prj-util.ads, prj-util.adb
8236         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
8237         defaulted to False. When True, always check against indexes in lower
8238         case.
8240         * snames.ads, snames.h, snames.adb: 
8241         Update Project Manager to new attribute names for gprbuild
8242         Allow all valid declarations in configuration project files
8244 2007-08-14  Robert Dewar  <dewar@adacore.com>
8245             Ed Schonberg  <schonberg@adacore.com>
8247         * opt.ads: Warning for non-local exception propagation now off by
8248         default
8249         New switch -gnatI to disable representation clauses
8250         Implement new pragma Implicit_Packing
8252         * usage.adb: 
8253         Warning for non-local exception propagation now off by default
8254         Add warning for unchecked conversion of pointers wi different
8255         conventions.
8256         New switch -gnatI to disable representation clauses
8258         * usage.adb: new switch -gnatyS
8260         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
8261         note that aggregates of anonymous array types are not flagged.
8262         -gnatwc now includes membership tests optimized away
8263         -gnatw.x warnings are now off by default
8264         Added conditional compilation Appendix
8265         Add documentation of -gnatI
8266         Add documentation for new -gnatyS style check
8267         Update documentation about SAL and auto-init on Windows.
8269         * gnat_rm.texi: 
8270         Add documentation for pragma Check_Name and 'Enabled attribute
8271         Document that Eliminate on dispatching operation is ignored
8272         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
8273         Document pragma Main
8274         Document pragma Implicit_Packing
8276         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
8277         different conventions
8278         New switch -gnatI to disable representation clauses
8280         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
8281         recognized, report the invalid characters including "-gnat" instead of
8282         just the first character in the switch.
8283         New switch -gnatI to disable representation clauses
8284         Set Warn_On_Object_Renames_Function true for -gnatg
8286         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
8287         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
8288         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
8289         to switch -aP (add directory to project search dir).
8291         * par-prag.adb: Implement new pragma Implicit_Packing
8293         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
8294         type as having a non-standard representation, to force expansion on
8295         conversion to related types.
8296         (Analyze_Pragma): Warn on misspelled pragma
8297         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
8298         Ensure consistent use of # in error messages
8299         Implement pragma Implicit_Packing
8301 2007-08-14  Olivier Hainque  <hainque@adacore.com>
8302             Eric Botcazou  <ebotcazou@adacore.com>
8304         * targtyps.c (get_target_maximum_default_alignment): New function.
8305         Maximum alignment
8306         that the compiler might choose by default for a type or object.
8307         (get_target_default_allocator_alignment): New function. Alignment known
8308         to be honored by the target default allocator.
8309         (get_target_maximum_allowed_alignment): New function. Maximum alignment
8310         we might accept for any type or object on the target.
8311         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
8313         * gigi.h (get_target_maximum_default_alignment): Declare new function.
8314         (get_target_default_allocator_alignment): Likewise.
8315         (get_target_maximum_allowed_alignment): Likewise.
8317         PR ada/19037
8318         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
8319         result of a function call, first try to use a stabilized reference for
8320         a constant renaming too.
8321         (validate_alignment): Use target_maximum_allowed_alignment instead of
8322         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
8323         (gnat_to_gnu_entity): Use common nodes directly.
8324         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
8325         alignment and size for the object.
8326         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
8327         and N_Procedure_Call_Statement.
8328         (takes_address): Rename to lvalue_required_p, add third parameter
8329         'aliased' and adjust recursive calls.
8330         <N_Indexed_Component>: Update 'aliased' from the array type.
8331         <N_Selected_Component>: New case.
8332         <N_Object_Renaming_Declaration>: New Likewise.
8333         (Identifier_to_gnu): Adjust for above changes.
8334         (maybe_stabilize_reference) <CONST_DECL>: New case.
8336         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
8337         between type variants.
8338         (build_simple_component_ref): Likewise.
8339         (build_call_alloc_dealloc): Use target_default_allocator_alignment
8340         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
8341         aligning type circuitry for allocations from the default storage pool.
8342         (build_allocator): Likewise.
8343         (build_simple_component_ref): Manually fold the reference for a
8344         constructor if the record type contains a template.
8346         * utils.c (value_zerop): Delete.
8347         (gnat_init_decl_processing): Emit debug info for common types.
8348         (rest_of_record_type_compilation): If a union contains a field
8349         with a non-constant qualifier, treat it as variable-sized.
8350         (finish_record_type): Give the stub TYPE_DECL a name.
8351         (rest_of_record_type_compilation): Likewise.
8352         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
8353         types are equivalent array types.
8354         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
8355         even if the type is not passed by reference.
8356         (static_ctors, static_dtors): Delete.
8357         (end_subprog_body): Do not record constructors and destructors.
8358         (build_global_cdtor): Delete.
8359         (gnat_write_global_declarations): Do not call build_global_cdtor.
8361         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
8362         -fRTS=rtp is specified.
8363         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
8364         specified.
8366         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
8367         of the personality function with SJLJ exceptions.
8369         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
8370         the name of the personality function with SJLJ exceptions.
8372 2007-08-14  Robert Dewar  <dewar@adacore.com>
8373             Ed Schonberg  <schonberg@adacore.com>
8375         * par.ads, par.adb: Improve handling of extra right parens.
8376         (Par): Remove flag From_Limited_With_Clause.
8378         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
8379         Improve handling of extra right parens.
8381 2007-08-14  Robert Dewar  <dewar@adacore.com>
8383         * par-tchk.adb (TF_Semicolon): Improve error recovery
8385 2007-08-14  Robert Dewar  <dewar@adacore.com>
8386             Ed Schonberg  <schonberg@adacore.com>
8388         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
8389         enumeration type, mark all literals as referenced.
8390         (Eval_Attribute, case 'Image): If the argument is an enumeration
8391         literal and names are available, constant-fold but mark nevertheless as
8392         non-static.
8393         Clean up function names.
8394         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
8395         comment.
8396         (Requires_Simple_Name_Prefix): Removed.
8398 2007-08-14  Robert Dewar  <dewar@adacore.com>
8399             Ed Schonberg  <schonberg@adacore.com>
8401         * sem_ch11.adb: Improved warnings for unused variables
8403         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
8404         is a synchronized interface, the derived type is limited.
8405         (Analyze_Object_Declaration): Mark the potential coextensions in the
8406         definition and expression of an object declaration node.
8407         (Build_Derived_Type): For the completion of a private type declaration
8408         with a derived type declaration, chain the parent type's representation
8409         items to the last representation item of the derived type (not the
8410         first one) if they are not present already.
8411         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
8412         object declaration of forward references to tags.
8413         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
8414         subprogram types can appear as access discriminants of synchronized
8415         types.
8416         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
8417         given in prefixed form as a selected component.
8418         (Process_Discriminants): If not all discriminants have defaults, place
8419         error message on a default that is present.
8420         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
8421         extend a synchronized tagged type.
8422         Improved warnings for unused variables
8423         (Is_Visible_Component): Fix a visibility hole on a component inherited
8424         by a private extension when parent is itself declared as a private
8425         extension, and the derivation is in a child unit.
8426         (Find_Hidden_Interface): Move spec from the package body.
8428 2007-08-14  Robert Dewar  <dewar@adacore.com>
8429             Ed Schonberg  <schonberg@adacore.com>
8431         * sem_ch5.adb: Improve warnings on redundant assignments
8433         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
8434         parameter
8435         (Is_Synchronized_Tagged_Type): New subprogram that returns true
8436         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
8437         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
8438         is set to False. Improves handling of Known_[Not_]Null.
8439         (Wrong_Type): Special case address arithmetic attempt
8440         (Collect_Abstract_Interfaces): Add new formal to allow collecting
8441         abstract interfaces just using the partial view of private types.
8442         (Has_Abstract_Interfaces): Add new formal to allow checking types
8443         covering interfaces using the partial view of private types.
8444         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
8445         component still needs to be defined in this case, but is never
8446         initialized as VMs are using other dispatching mechanisms.
8447         (Abstract_Interface_List): For a protected type, use base type to get
8448         proper declaration.
8449         Improve warnings on redundant assignments
8450         (Is_Variable): Handle properly an implicit dereference of a prefixed
8451         function call.
8452         (Build_Actual_Subtype): If this is an actual subtype for an
8453         unconstrained formal parameter, use the sloc of the body for the new
8454         declaration, to prevent anomalises in the debugger.
8456 2007-08-14  Robert Dewar  <dewar@adacore.com>
8458         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
8459         dispatching operation
8461 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8462             Gary Dismukes  <dismukes@adacore.com>
8464         * exp_aggr.ads, 
8465         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
8466         expanded aggregate code before allocator, and ahead of declaration for
8467         temporary, to prevent access before elaboration when the allocator is
8468         an actual for an access parameter.
8469         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
8470         the TSD and the table of interfaces.
8471         (Convert_To_Assignments): Augment the test for delaying aggregate
8472         expansion for limited return statements to include the case of extended
8473         returns, to prevent creation of an unwanted transient scope.
8474         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
8475         (Expand_Array_Aggregate): Handle aggregates associated with
8476         statically allocated dispatch tables.
8477         (Expand_Record_Aggregate): Handle aggregates associated with
8478         statically allocated dispatch tables.
8479         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
8480         of anonymous access type.
8482 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8484         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
8485         is a variable that renames a slice, use the variable itself in the
8486         expannsion when the renamed expression itself may be modified between
8487         the declaration of the renaming and the array assignment.
8489 2007-08-14  Jerome Guitton  <guitton@adacore.com>
8491         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
8492         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
8493         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
8494         New functions; dummy implementations.
8496         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
8497         functions, used to implement the multi-tasks mode routines on VxWorks.
8499         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
8500         New functions, thin
8501         binding to the VxWorks routines which have changed between VxWorks 5
8502         and 6.
8503         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
8504         which are not callable from a RTP.
8506         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
8507         implemented for the multi-tasks mode on VxWorks 5 and 6.
8509         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
8511         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
8512         functions.
8514 2007-08-14  Vincent Celier  <celier@adacore.com>
8516         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
8517         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
8518         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
8519         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
8520         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
8521         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
8522         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
8523         procedure.
8524         (Major_Id_Name): New function.
8525         mlib-tgt.ads/mlib.tgt.adb:
8526         (Library_Major_Minor_Id_Supported): New function, default returns True
8527         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
8528         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
8529         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
8530         Implementation of Library_Major_Minor_Id_Supported returns False
8531         clean.adb:
8532         (Clean_Library_Directory): If major/minor ids are supported, clean all
8533         library files.
8534         Major update of the Project Manager and of the project aware tools,
8535         including gprmake, so that the same sources in the GNAT repository
8536         can be used by gprbuild.
8538 2007-08-14  Olivier Hainque  <hainque@adacore.com>
8540         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
8541         (GCC_ZCX_Support): Switch to True.
8542         
8543         * s-intman-solaris.adb (Notify_Exception): Call
8544         Adjust_Context_For_Raise before raising, as expected for signal
8545         handlers in general.
8546         
8547         * s-intman-posix.adb (Notify_Exception): Remove declaration of
8548         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
8549         to other implementation bodies.
8550         
8551         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
8552         be visible by multiple implementation bodies.
8553         
8554         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
8555         only for conditions coming from hardware.
8556         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
8557         adjustments to signal context prior to exception raise from signal
8558         handler.
8559         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
8560         mode.
8561         Solaris section: (__gnat_adjust_context_for_raise): New function.
8562         Implementation of the machine context adjustments to perform prior to
8563         raise from a signal handler. Version for both sparc and x86.
8564         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
8565         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
8566         prior to raising as expected for any handler, before possible nested
8567         faults to make sure all the contexts in a chain have been adjusted by
8568         the time we propagate.
8570 2007-08-14  Pascal Obry  <obry@adacore.com>
8572         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
8573         (SYSTEM_INFO): New record.
8574         (SetThreadIdealProcessor): New imported routine needed for supporting
8575         task_info pragma on Windows.
8577         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
8578         info can be applied to the current host.
8579         (Create_Task): Set the ideal processor if information is present.
8581         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
8582         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
8584 2007-08-14  Olivier Hainque  <hainque@adacore.com>
8586         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
8587         stack size and initial stack pointer value for a given task.
8588         (Enter_Task): Get the stack attributes of the task we are entering and
8589         let the stack checking engine know about them.
8591         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
8592         Let the stack-checking engine know about the initial sp value and stack
8593         size associated with the current task.
8594         (Set_Stack_Info): If a stack base has been notified for the current
8595         task, honor it. Fallback to the previous less accurate method otherwise.
8597         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
8599 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8601         * sem_ch10.adb: Create a limited view of an incomplete type, to make
8602         treatment of limited views uniform for all visible declarations in a
8603         limited_withed package.
8604         Set flag indicating that a subprogram body for a child unit has a
8605         generated spec.
8606         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
8607         separate declaration, remove the unit name from visibility after
8608         compilation, so that environment is clean for subsequent compilations.
8609         (Install_Limited_Context_Clauses): Do not install a
8610         limited_private_with_clause unless the current unit is a body or a
8611         private child unit.
8612         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
8613         in the same fashion.
8614         (Install_Limited_Withed_Unit): Do not install a limited with clause if
8615         it applies to the declaration of the current package body.
8616         (Remove_Private_With_Clauses): If there is a regular with_clause for
8617         the unit, delete Private_With_Clause from context, to prevent improper
8618         hiding when processing subsequent nested packages and instantiations.
8620 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
8622         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
8623         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
8624         representing absolute path names.
8625         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
8627         * cstreams.c (__gnat_full_name for VxWorks): Use
8628         __gnat_is_absolute_path to detect whether we need to add the current
8629         directory to normalize the path.
8631 2007-08-14  Javier Miranda  <miranda@adacore.com>
8633         * a-tags.ads, 
8634         a-tags.adb (Displace): Associate a message with the raised CE
8635         exception.
8636         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
8637         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
8638         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
8639         spec.
8640         (Default_Prim_Op_Count): Removed.
8641         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
8642         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
8643         Remove pragma Inline_Always.
8645         * rtsfind.ads (Default_Prim_Op_Count): Removed
8646         (Max_Predef_Prims): New entity
8647         (RE_Expanded_Name): Removed
8648         (RE_HT_Link): Removed
8649         (RE_Iface_Tag): Remmoved
8650         (RE_Ifaces_Table): Removed
8651         (RE_Interfaces_Array): Removed
8652         (RE_Interface_Data_Element): Removed
8653         (RE_Nb_Ifaces): Removed
8654         (RE_RC_Offset): Removed
8655         (RE_Static_Offset_To_Top): Removed
8657         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
8658         formal.
8659         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
8660         Prim_Op_Count by Max_Predef_Prims.
8662 2007-08-14  Thomas Quinot  <quinot@adacore.com>
8663             Vincent Celier  <celier@adacore.com>
8665         * binde.adb (Elab_All_Links): Remove unnecessary call to
8666         Generic_Separately_Compiled (if a unit satisfies this predicate, there
8667         won't be an associated Afile).
8668         (Elab_All_Links): Fail if a referenced unit cannot be found
8670         * bindgen.adb: 
8671         Fix comments in bindgen regarding consistency checks done in Bcheck:
8672         the checks are made across units within a partition, not across several
8673         partitions.
8674         Fix generation of C binder file for VxWorks.
8676         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
8677         Generic_May_Lack_ALI, more descriptive of the current use of the
8678         predicate, and update documentation.
8680         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
8681         reorganization and documentation update for the case of predefined
8682         library generics (for which we do not reference an Afile).
8684 2007-08-14  Robert Dewar  <dewar@adacore.com>
8686         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
8687         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
8688         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
8689         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
8690         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
8691         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
8692         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
8693         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
8694         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
8695         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
8696         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
8697         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
8698         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
8699         g-altcon.adb: Minor reformatting
8701         ada-tree.h: Delete empty line.
8703         ali.ads: Minor reformatting
8704         Clarification of comments.
8705         Minor spelling correction
8707         * exp_dbug.adb: Add Warnings Off to suppress new warning
8709         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
8710         formal
8712         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
8713         value
8715         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
8717         * a-textio.ads: Reorder the standard input/output/error declarations
8718         for consistency.
8720         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
8722         * par-ch2.adb: Recognize RM specially in errout
8723         Change 'R'M to RM in all error messages
8725         * scng.adb: Recognize RM specially in errout
8727         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
8728         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
8730         * s-direio.adb: Add missing routine header box.
8732         * sem_attr.ads: Add ??? comments
8734         * sem_eval.adb: Recognize RM specially in errout
8735         Change 'R'M to RM in all error messages
8737         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
8739         * s-tasinf.ads: Fix minor comment typo.
8741         * a-cihama.adb: Minor comment addition
8743         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
8744         formal
8746         * s-tasinf-tru64.ads: Fix minor comment typo.
8748         * itypes.ads: Comment update.
8750         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
8751         anymore.
8753         * argv.c: Added protection against null gnat_argv and gnat_envp.
8755         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
8756         warning message when Tolerate_Consistency_Errors is True.
8758         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
8759         Any_Id, as this subprogram is only applicable to *type* entities (it
8760         sets RM_Size). Instead initialize just Esize and Alignment.
8762 2007-08-14  Bob Duff  <duff@adacore.com>
8764         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
8765         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
8766         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
8767         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
8768         a-coorse.ads (Next): Applied pragma Inline.
8769         Make all Containers packages Remote_Types (unless they are already
8770         Pure).
8771         (Previous): applied pragma Inline
8772         (Elements_Type): is now a record instead of an array
8774 2007-08-14  Thomas Quinot  <quinot@adacore.com>
8776         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
8777         of Set_Item.
8778         (Set_Item): When the new item is an element of the currently allocated
8779         table passed by reference, save a copy on the stack if we're going
8780         to reallocate. Also, in Table.Set_Item, make sure we test the proper
8781         variable to determine whether to call Set_Last.
8783         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
8784         symbols-vms.adb, symbols-processing-vms-alpha.adb,
8785         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
8786         some occurrences of the pattern
8787            T.Increment_Last;
8788            T.Table (T.Last) := Value;
8789         with a cleaner call to
8790            T.Append (Value);
8792 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8793             Gary Dismukes  <dismukes@adacore.com>
8794             Thomas Quinot  <quinot@adacore.com>
8796         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
8797         derived type with interface progenitors use the analyzed formal as the
8798         parent of the actual, to create renamings for all the inherited
8799         operations in Derive_Subprograms.
8800         (Collect_Previous_Instances): new procedure within of
8801         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
8802         unit being loaded, to ensure that the generation of global symbols is
8803         consistent in different compilation modes.
8804         (Is_Tagged_Ancestor): New function testing the ancestor relation that
8805         takes progenitor types into account.
8806         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
8807         traversing over the primitives of the formal and actual types to locate
8808         any abstract subprograms of the actual type that correspond to a
8809         nonabstract subprogram of the formal type's ancestor type(s), and issue
8810         an error if such is found.
8811         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
8812         Instantiate_Package_Body, Instantiate_Subprogram_Body):
8813         Remove bogus guard around calls to Inherit_Context.
8814         (Reset_Entity): If the entity is the selector of a selected component
8815         that denotes a named number, propagate constant-folding to the generic
8816         template only if the named number is global to the generic unit.
8817         (Set_Instance_Env): Only reset the compilation switches when compiling
8818         a predefined or internal unit.
8820 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8822         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
8823         parameter to determine whether operation applies to the prefix.
8824         (Complete_Object_Operation): If actual has an access type and
8825         controlling formal is not an in_parameter, reject the actual if it is
8826         an access_to_constant type.
8827         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
8828         type, the candidate operations are found in the scope of declaration of
8829         the type, because the type has no primitive subprograms.
8830         (Analyze_Selected_Component): If prefix is class-wide, and root type is
8831         a private extension, only examine visible components before trying to
8832         analyze as a prefixed call.
8833         Change Entity_List to Type_To_Use, for better readability.
8834         (Has_Fixed_Op): Use base type when checking whether the type of an
8835         operator has a user-defined multiplication/division
8836         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
8837         user-defined operators are available for fixed-point types.
8839 2007-08-14  Thomas Quinot  <quinot@adacore.com>
8840             Ed Schonberg  <schonberg@adacore.com>
8842         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
8843         formal At_Any_Place indicating, when True, that we want to test for
8844         availability of the stream attribute at any place (as opposed to the
8845         current visibility context only).
8846         (Missing_Read_Write_Attributes): A stream attribute is missing for the
8847         purpose of enforcing E.2.2(8) only if it is not available at any place.
8848         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
8849         when checking the legality of an extension aggregate in a preelaborable
8850         package. Treat the literal null as a valid default expression in a
8851         component declaration for a type with preelaborable initialization.
8852         A limited interface is a legal progenitor for the designated type of a
8853         remote access to class-wide type.
8855 2007-08-14  Thomas Quinot  <quinot@adacore.com>
8856             Ed Schonberg  <schonberg@adacore.com>
8858         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
8859         reference): Use correct entity as denoted entity for the selector of
8860         the rewritten node.
8861         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
8862         setting the Referenced_As_LHS flag for entities that are implicitly
8863         dereferenced.
8864         (Find_Type): If the type is an internally generated incomplete type,
8865         mark the full view as referenced, to prevent spurious warnings.
8866         (Find_Selected_Component, Has_Components): Handle properly non-limited
8867         views that are themselves incomplete types.
8868         Handle interfaces visible through limited-with clauses.
8869         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
8870         subprogram generic actual for which we have generated a renaming.
8871         Warn when the renaming introduces a homonym of
8872         the renamed entity, and the renamed entity is directly visible.
8874 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8875             Hristian Kirtchev  <kirtchev@adacore.com>
8877         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
8878         appear in the subtree to the current allocator if it is not a static
8879         coextension.
8880         (Resolve_Allocator): Perform cleanup if resolution has determined that
8881         the allocator is not a coextension.
8882         (Resolve): Skip an interpretation hidden by an abstract operator only
8883         when the type of the interpretation matches that of the context.
8884         (Resolve): When looping through all possible interpretations of a node,
8885         do not consider those that are hidden by abstract operators.
8886         (Resolve_Actuals): When verifying that an access to class-wide object
8887         is an actual  for a controlling formal, ignore anonymous access to
8888         subprograms whose return type is an access to class_wide type.
8889         (Resolve_Slice): If the prefix of the slice is a selected component
8890         whose type depends on discriminants, build its actual subtype before
8891         applying range checks on the bounds of the slice.
8892         (Valid_Conversion): In an instance or inlined body, compare root types,
8893         to prevent anomalies between private and public views.
8894         (Resolve): Improve error message for ambiguous fixed multiplication
8895         expressions that involve universal_fixed multiplying operations.
8897 2007-08-14  Javier Miranda  <miranda@adacore.com>
8898             Hristian Kirtchev  <kirtchev@adacore.com>
8900         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
8901         location to allow the correct generation of errors in case of
8902         restrictions applied to the expanded code.
8903         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
8904         function if the condition does not reference them.
8905         (Expand_Entry_Body_Declarations): Mark the index constant as having a
8906         valid value.
8908 2007-08-14  Thomas Quinot  <quinot@adacore.com>
8909             Pablo Oliveira  <oliveira@adacore.com>
8911         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
8912         typecode parameters for a union (in a variant record), remove
8913         extraneous layer of Any wrapping for member label.
8914         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
8915         elabration statements, register the package with the name server
8916         at the beginning, not at the end, of the elaboration statements so
8917         that they can create remote access to subprogram values that designate
8918         remote subprograms from the package.
8920 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
8922         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
8923         values to compute the number of seconds since the Unix Epoc in order to
8924         account for Daylight Savings Time. Perform special processing for dates
8925         that are earlier than the Unix Epoc to obtain a negative number.
8927 2007-08-14  Emmanuel Briot  <briot@adacore.com>
8929         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
8930         switches.
8932 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
8934         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
8935         binder-generated file is not in Ada.
8936         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
8937         recorded in the ALI file.
8938         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
8940 2007-08-14  Vincent Celier  <celier@adacore.com>
8942         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
8943         (Output_Source): Do nothing if parameter is No_Sdep_Id
8945         * make.adb (Gnatmake): Do not rebuild an archive simply because a
8946         shared library it imports has a later time stamp.
8947         (Check): Resolve the symbolic links in the path name of the object
8948         directory.
8949         Check that the ALI file is in the correct object directory
8950         Check if a file name does not correspond to the mapping of units
8951         to file names.
8952         (Display_Version): New procedure
8953         (Initialize): Process switches --version and --help
8954         Use type Path_Name_Type for path name
8956 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
8958         * impunit.adb: Re-organize System.Random_Numbers and
8959         GNAT.Random_Numbers and add to builds.
8961         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
8963         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
8965         * a-assert.ads, a-assert.adb: New files.
8967 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
8969         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
8970         if AAMP_On_Target is True, then the size of the type encompasses two
8971         addresses (a static link and a subprogram address), except in the case
8972         of library-level access types.
8974 2007-08-14  Vincent Celier  <celier@adacore.com>
8976         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
8977         writing the line.
8978         (Write_Eol_Keep_Blanks): New procedure to write a line, including
8979         possible trailing spaces.
8980         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
8982 2007-08-14  Javier Miranda  <miranda@adacore.com>
8984         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
8985         null-excluding access types.
8987 2007-08-14  Javier Miranda  <miranda@adacore.com>
8989         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
8990         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
8991         of private types add missing check on matching interfaces in the
8992         partial and full declarations.
8993         (Analyze_Protected_Type): Code cleanup.
8994         (Analyze_Task_Type): Code cleanup.
8996 2007-08-14  Javier Miranda  <miranda@adacore.com>
8998         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
8999         generated interface thunk.
9001 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9003         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
9004         obsolescent warning on application of 'Class to an incomplete type.
9006         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
9007         prevent obsolescent warning on application of 'Class to an incomplete
9008         type.
9010 2007-08-14  Pascal Obry  <obry@adacore.com>
9012         * s-fileio.adb (Is_Open): Add check for usability of the underlying
9013         file stream.
9015 2007-08-14  Cyrille Comar  <comar@adacore.com>
9017         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
9018         since it is potentially used in cases implying double finalization of
9019         the same object.
9021 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
9023         * s-tasini.adb (Get_Stack_Info): Move this function to
9024         System.Soft_Links.Tasking because it is common to the full and the
9025         restricted run times.
9026         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
9027         in SSL.Tasking.Init_Tasking_Soft_Links.
9029         * s-solita.adb (Get_Stack_Info): Function moved from
9030         System.Tasking.Initialization because it is common to the full and the
9031         restricted run times.
9032         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
9034 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
9036         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
9037         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
9038         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
9039         parameter.
9041         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
9042         guard to 12K.
9044 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
9046         * s-veboop.adb (SU): New named number initialized to
9047         System.Storage_Unit.
9048         (True_Val): The initialization expression is revised to use SU (=
9049         Storage_Unit) rather than assuming 8 for the component size of an
9050         unpacked Boolean array.
9052 2007-08-14  Tristan Gingold  <gingold@adacore.com>
9054         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
9056         * tb-ivms.c: New file.
9058         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
9060 2007-08-14  Geert Bosch  <bosch@adacore.com>
9062         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
9063         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
9064         Add required linker pragmas for automatically linking with the gnalasup
9065         linear algebra support library, and the systems math library.
9066         Rename cdot to cdotu and zdot to zdotu.
9067         Update header comment to describe purpose of package.
9069 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9071         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
9072         an explicitly specified Associated_Final_Chain, use that list.
9073         (Expand_N_Package_Body): Build dispatch tables of library level tagged
9074         types.
9075         (Expand_N_Package_Declaration): Build dispatch tables of library level
9076         tagged types. Minor code cleanup.
9078 2007-08-14  Vincent Celier  <celier@adacore.com>
9080         * gnatchop.adb (Terminate_Program): Remove exception and use
9081         Types.Terminate_Program instead.
9083         * osint.ads, osint.adb (Current_Exit_Status): New global variable
9084         (Find_Program_Name): Added protection against empty name.
9085         (OS_Exit_Through_Exception): New procedure
9087         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
9088         (OS_Exit_Default): New procedure that contains the previous
9089         implementation of procedure OS_Exit.
9090         (Final_Value): Remove obsolete Interix stuff.
9092 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9094         * g-socket.ads: Reorganize example code so that it also works on
9095         Windows XP.
9097 2007-08-14  Tristan Gingold  <gingold@adacore.com>
9099         * g-trasym.ads: AIX now supports symbolic backtraces.
9101 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9103         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
9104         units being loaded to detect circularities. A circularity may be
9105         present even if the current chain of pending units to load starts from
9106         a limited_with_clause.
9108         * lib-load.ads: Change profile of Load_Unit to use a with_clause
9109         rather than a boolean flag, in order to detect circularities in
9110         with_clauses.
9112         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
9113         than propagating the From_Limited_With flag, in order to handle
9114         properly circularities involving with_clauses.
9116 2007-08-14  Nicolas Setton  <setton@adacore.com>
9118         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
9119         warnings.
9121 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
9123         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
9124         to build for libgnala.
9125         libgnat: Add rules to build libgnala.a
9126         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
9127         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
9128         Add s-osinte-vxworks-kernel.adb to the target pairs of the
9129         kernel run-time lib for VxWorks 6, which would provide a different
9130         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
9131         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
9132         running ZCX by default.
9133         Add g-sttsne-locking to LynxOS version.
9134         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
9135         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
9137         * system-darwin-x86.ads: New file.
9139         * Make-lang.in: Delete files before copying onto them, so if they are
9140         read-only, the copy won't fail.
9141         Update dependencies
9143 2007-08-14  Pascal Obry  <obry@adacore.com>
9145         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
9146         naming scheme.
9148 2007-08-14  Vincent Celier  <celier@adacore.com>
9150         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
9151         (Gcc): Initialize Gcc_Name at the first call
9153 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9155         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
9156         with_clauses of the enclosing unit when analyzing the package
9157         specification of a nested instance.
9159 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
9161         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
9162         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
9163         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
9164         layout of N_Allocator.
9166 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9168         * rtsfind.adb (Check_RPC): Add PCS version check.
9170         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
9171         (Gnat_Free_Software): New function.
9173         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
9174         the PCS_Version value from s-parint, used to check that it is consistent
9175         with what exp_dist expects.
9177         * s-parint.ads (PCS_Version): New entity for checking consistency
9178         between exp_dist and PCS.
9180         * gen-soccon.c: (SO_REUSEPORT): New constant.
9182 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
9184         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
9185         variable Sub_Second to Duration in order to accomodate a larger range
9186         of arithmetic operations.
9188 2007-08-14  Bob Duff  <duff@adacore.com>
9190         * g-sttsne-locking.ads: Move comments from spec to body.
9191         * g-sttsne-locking.adb: Move comments from spec to body.
9192         * g-sttsne-vxworks.ads: Removed.
9193         * g-sttsne-vxworks.adb: Removed.
9195 2007-08-11  Ian Lance Taylor  <iant@google.com>
9197         * misc.c (gnat_get_alias_set): Change return type to
9198         alias_set_type.
9200 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9202         * decl.c, utils2.c: Fix whitespace in last change.
9204 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9206         * decl.c (compare_field_bitpos): Constify.
9207         * utils2.c (compare_elmt_bitpos): Likewise.
9209 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
9211         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
9212         anonymous access type.
9213         (pthread_sigmask): Now take an access sigset_t.
9215 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
9217         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
9218         
9219 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
9221         PR tree-optimization/25737
9222         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
9224 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9226         * trans.c (Attribute_to_gnu): When subtracting an
9227         offset from a pointer, use POINTER_PLUS_EXPR with
9228         NEGATE_EXPR instead of MINUS_EXPR.
9229         (gnat_to_gnu): Likewise.
9230         * utils.c (convert): When converting between
9231         thin pointers, use POINTER_PLUS_EXPR and sizetype
9232         for the offset.
9233         * utils2.c (known_alignment): POINTER_PLUS_EXPR
9234         have the same semantics as PLUS_EXPR for alignment.
9235         (build_binary_op): Add support for the semantics of
9236         POINTER_PLUS_EXPR's operands.
9237         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
9239 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
9241         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
9242         of get_signed_or_unsigned_type.
9243         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
9245 2007-06-11  Bob Duff  <duff@adacore.com>
9246             Thomas Quinot  <quinot@adacore.com>
9248         * g-stsifd-sockets.adb (Create): Work around strange behavior of
9249         'bind' on windows that causes 'connect' to fail intermittently, by
9250         retrying the 'bind'.
9251         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9253 2007-06-10  Duncan Sands  <baldrick@free.fr>
9255         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
9256         than to void, for the fields when making a new fat pointer type.
9257         (gnat_substitute_in_type): Now substitute_in_type.
9258         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
9259         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
9260         * utils.c (update_pointer_to): Update fat pointers by updating the
9261         dummy node pointers used for the fields.
9263 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9264             Bob Duff  <duff@adacore.com>
9266         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
9267         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
9268         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
9269         constant Thread_Blocking_IO, always True by default, set False
9270         on a per-runtime basis.
9271         (Need_Netdb_Buffer): New constant.
9273         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
9274         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
9275         files.
9277         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
9278         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
9279         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
9280         child package Task_Safe_NetDB
9281         (Host_Error_Messages): Add stub body.
9282         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9284         * g-soccon-mingw.ads: Add Windows-specific constants.
9285         (Need_Netdb_Buffer): New constant.
9286         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
9287         wrapper and import inet_addr(3) from the standard sockets library
9288         directly instead.
9289         (In_Addr): Add alignment clause.
9290         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9292 2007-06-06  Robert Dewar  <dewar@adacore.com>
9294         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
9295         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
9296         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
9297         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
9298         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
9299         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
9300         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
9301         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
9302         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
9303         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
9304         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
9305         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
9306         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
9307         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
9308         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
9309         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
9310         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
9311         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
9312         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
9313         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
9314         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
9315         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
9316         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
9317         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
9318         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
9319         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
9320         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
9321         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
9322         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
9323         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
9324         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
9325         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
9326         Unchecked_* by Ada.Unchecked_*
9328 2007-06-06  Robert Dewar  <dewar@adacore.com>
9330         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
9331         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
9332         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
9333         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
9334         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
9335         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
9337         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
9338         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
9339         s-tasloc.adb, s-tasloc.ads: New files.
9341 2007-06-06  Bob Duff  <duff@adacore.com>
9343         * g-expect-vms.adb: 
9344         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
9345         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
9346         (Send_Signal, Close): Raise Invalid_Process if the process id is
9347         invalid.
9348         (Pattern_Matcher_Access): Is now a general access type to be able to
9349         use aliased string.
9351 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9352             Arnaud Charlet  <charlet@adacore.com>
9354         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
9355         (SIGEMT is now used instead of SIGTERM on AIX).
9357         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
9358         (Time_Slice_Supported): Set to True.
9359         Use SIGEMT instead of SIGTERM as SIGADAABORT.
9361 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
9363         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
9364         (Time, Time)): Use To_Relative_Time rather than manual calculation to
9365         express the bounds of Duration as Time. Raise Time_Error when the
9366         result is greater or equal to the higher bound of Duration (on the
9367         margin case).
9368         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
9369         Ada_High_And_Leaps.
9370         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
9371         Ada_High_And_Leaps.
9372         ("-" (Time, Time)): Reorder code.
9373         (All_Leap_Seconds): Removed.
9374         (Arithmetic_Operations.Add): Remove sign related kludge.
9375         (Arithmetic_Operations.Difference): Control the leaps seconds processing
9376         with flag Leap_Support.
9377         (Arithmetic_Operations.Subtract): Remove sign related kludge.
9378         (Check_Within_Time_Bounds): New procedure.
9379         (Clock): Control the leap seconds processing with flag Leap_Support.
9380         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
9381         (Formatting_Operations.Split): Control the leap seconds processing with
9382         flag Leap_Support.
9383         (Formatting_Operations.Time_Of): Control the leaps seconds processing
9384         with flag Leap_Support. Adjust the year, month and day (if applicable)
9385         when the value of day seconds designates a new day.
9386         (Split): Use parameter associations for better readability. Integrate
9387         flag Is_Ada_05.
9388         (Time_Of): Use parameter associations for better readability. Integrate
9389         flag Is_Ada_05.
9391         * a-calfor.adb (Split): Use parameter associations for better
9392         readability. Integrate flag Is_Ada_05.
9393         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
9394         better readability. Integrate flag Is_Ada_05.
9396 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9398         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
9399         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
9400         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
9401         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
9402         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
9403         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
9404         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
9405         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
9406         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
9407         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
9408         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
9409         time when entering this routine to detect a backward clock setting
9410         (manual setting or DST adjustment), to avoid waiting for a longer delay
9411         than needed.
9412         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
9413         Remove handling of deferred priority change, and replace by setting the
9414         task priority directly, as required by AI-188.
9415         Update comments.
9416         (Max_Task_Image_Length): New constant.
9417         Replace Warnings (Off) by Unreferenced pragma, cleaner.
9418         (Dynamic_Priority_Support): Removed, no longer needed.
9419         (Poll_Base_Priority_Change): Ditto.
9420         (Set_Ceiling): Add this procedure to change the ceiling priority
9421         associated to a lock. This is a dummy implementation because dynamic
9422         priority ceilings are not supported by the underlying system.
9424         * a-dynpri.adb (Set_Priority): Take into account case where Target is
9425         accepting a RV with its priority boosted.
9426         Remove handling of deferred priority change, and replace by setting the
9427         task priority directly, as required by AI-188.
9429         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
9430         Succeeded = True.
9431         Remove handling of deferred priority change, and replace by setting the
9432         task priority directly, as required by AI-188.
9433         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
9434         of Self_Id earlier.
9436         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
9437         (Poll_Base_Priority_Change): Removed.
9438         Code clean up: use SSL.Current_Target_Exception.
9440         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
9441         to run as this is a potentially dispatching point.
9442         (Call_Synchronous): Use Local_Defer_Abort.
9443         (Callable): Relax assertion.
9444         (Selective_Wait): Relax assertion in case abort is not allowed.
9445         Remove handling of deferred priority change, and replace by setting the
9446         task priority directly, as required by AI-188.
9448         * s-tasuti.adb (Make_Passive): Adjust assertions.
9449         Remove handling of deferred priority change, and replace by setting the
9450         task priority directly, as required by AI-188.
9452 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9454         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
9455         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
9456         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
9457         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
9458         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
9459         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
9460         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
9461         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
9462         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
9463         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
9464         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
9465         This patch changes the largest non-binary modulus from 2**31-1 to
9466         2**32-1.
9467         (Compiler_System_Version): Removed, no longer used.
9468         Clean up system files by removing flags only used on a single target.
9469         Also remove obsolete flags, only used during bootstrap from system.ads
9470         (Address): Add a pragma Preelaborable_Initialization.
9472         * system-aix.ads:  Ditto.
9473         (GCC_ZCX_Support): Set to true.
9474         Update priority range on AIX and map Ada priorities to target
9475         priorities appropriately for different scheduling policies.
9477         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
9479 2007-06-06  Vincent Celier  <celier@adacore.com>
9481         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
9482         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
9484         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
9485         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
9486         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
9487         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
9488         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
9489         MLib.Tgt, containing the default versions of the exported subprograms.
9490         For each platform, create a specific version of the body of new child
9491         package MLib.Tgt.Specific that contains only the body of subprograms
9492         that are different from the default.
9493         (Archive_Builder_Append_Options): New function.
9495 2007-06-06  Matthew Gingell  <gingell@adacore.com>
9497         * s-osinte-aix.adb: Map Ada priorities to target priorities
9498         appropriately for different scheduling policies.
9500 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9502         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
9503         its C counterpart.
9504         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
9505         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
9507 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
9509         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
9510         Noop on VMS, added for interface commonality.
9512 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
9513             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9514             Olivier Hainque  <hainque@adacore.com>
9516         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
9517         renamed expression of a full renaming at toplevel.
9518         (gnat_to_gnu_entity, case object): If not defining, do not look inside
9519         the values the constant is initialized to if it is an N_Allocator.
9520         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
9521         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
9522         (make_aligning_type): Accept an extra ROOM argument for storage to be
9523         made available before the aligned field, and an extra BASE_ALIGN
9524         argument for callers to pass the alignment guaranteed to be honored for
9525         the whole aligning object. Avoid call to finish_record_type, which only
9526         interferes with the sizes we want to set.
9527         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
9528         make_aligning_type for super-aligned objects on stack.
9529         (components_to_record): Pass the adjusted size of the type when creating
9530         fields in the qualified union for the variant part.
9531         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
9532         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
9533         packed array type.
9534         (maybe_pad_type): Set TYPE_USER_ALIGN.
9535         (make_aligning_type): Likewise.
9536         ALIGN argument is unsigned int.
9537         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
9538         (gnat_to_gnu_param): Likewise, for parameters.
9539         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
9540         if it is constant and stems from a function call.
9541         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
9542         of the record is specified.  Adjust accordingly.
9543         (adjust_packed): New static function.
9544         (gnat_to_gnu_field): Use it to adjust the packedness setting.
9545         (components_to_record): Likewise.
9546         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
9547         side-effects if the object is deemed constant.
9548         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
9549         type instead of merely finalizing it.  Tidy.
9550         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
9551         <E_Access_Type>: Likewise.
9552         (defer_debug_incomplete_list): Rename to defer_finalize_list.
9553         (defer_debug_level): Delete.
9554         (gnat_to_gnu_entity) <debug_deferred>: Likewise
9555         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
9556         type.
9557         <E_Record_Type>: Do not explicitly defer finalizing the type.
9558         Adjust for write_record_type_debug_info renaming.
9559         <E_Subprogram_Type>: Likewise.
9560         Finalize deferred types right after deferred incomplete types are
9561         expanded.
9562         (rest_of_type_decl_compilation): New global function.
9563         (components_to_record): Rename defer_debug parameter to do_not_finalize.
9564         (components_to_record): Propagate the packedness to the fields of the
9565         qualified union type if there is a variant part.
9566         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
9567         instead of inline code to adjust the XUT field offsets.
9568         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
9569         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
9570         and write the debug info if the type derives from a discriminated one.
9571         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
9572         <E_Array_Subtype>: Likewise.
9573         <E_String_Literal_Subtype>: Likewise.
9574         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
9575         an alignment clause.
9576         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
9577         before giving warning.
9578         (prepend_one_attribute_to): New function, helper to prepend an attribute
9579         to an attribute list.
9580         (gnat_to_gnu_entity) <E_Procedure>: Use it.
9581         (prepend_attributes): Likewise.
9582         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
9583         <E_Array_Type>: Declare the padding type for the element type, if any.
9584         <E_Array_Subtype>: Likewise.
9585         (defer_limited_with): New variable.
9586         (Gigi_Equivalent_Type): New function.
9587         (gnat_to_gnu_entity): Use it at start and use result throughout.
9588         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
9589         Gigi_Equivalent_Type, support Limited_With, allow two levels of
9590         indirection, precompute if unconstrained array to simplify logic, and
9591         use defer_limited_with to defer elaboration of some types from limited
9592         with.
9593         (finalize_from_with_types): New function.
9595 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
9596             Eric Botcazou  <ebotcazou@adacore.com>
9597             Tristan Gingold  <gingold@adacore.com>
9598             Olivier Hainque  <hainque@adacore.com>
9600         * trans.c (Identifier_to_gnu): Change test for deferred constant by
9601         adding guard that the entity is an E_Constant before testing presence
9602         of Full_view (and remove unnecessary test that entity is not a type).
9603         For a CONST_DECL used by reference, manually retrieve
9604         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
9605         (struct language_function): Move from utils.c to here.
9606         (struct parm_attr): New structure.
9607         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
9608         (f_parm_attr_cache): New macro.
9609         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
9610         expressions for the 'First, 'Last and 'Length attributes of the
9611         unconstrained array IN parameters.
9612         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
9613         Allocate the information structure for the function earlier, as well
9614         as the language-specific part.
9615         If the parameter attributes cache has been populated, evaluate the
9616         cached expressions on entry.
9617         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
9618         N_Procedure_Call_Statement and N_Indexed_Component.
9619         (Pragma_to_gnu): Translate inspection_point to an asm statement
9620         containaing a comment and a reference to the object (either its address
9621         for BLKmode or its value).
9622         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
9623         to go to DECL_INITIAL. Together with the size constraint relaxation
9624         in create_var_decl, enlarges the set of situations in which an
9625         identifier may be used as an initializer without implying elaboration
9626         code.
9627         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
9628         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
9629         node.
9630         (maybe_stabilize_reference): Remove lvalues_only parameter.
9631         (gnat_stabilize_reference): Adjust for above change.
9632         (gnat_to_gnu): Do not set location information on the result
9633         if it is a reference.
9634         (add_cleanup): Add gnat_node parameter and set the location of the
9635         cleanup to it.
9636         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
9637         (Exception_Handler_to_gnu_zcx): Likewise.
9638         (gigi): Remove the cgraph node if the elaboration procedure is empty.
9639         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
9640         the former right after the latter.
9641         (start_stmt_group): Make global.
9642         (end_stmt_group): Likewise.
9643         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
9644         vars.
9645         (gnu_program_error_label_stack): Likewise.
9646         (gigi): Initialize them.
9647         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
9648         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
9649         New cases.
9650         (push_exception_label_stack): New function.
9651         (takes_address): New function.
9653         * utils.c (struct language_function): Move to trans.c from here.
9654         (unchecked_convert): Do not wrap up integer constants in
9655         VIEW_CONVERT_EXPRs.
9656         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
9657         the latter for aggregate types, unexpected by later passes, and relax an
9658         arbitrary size constraint on the former.
9659         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
9660         to compare the sizes.
9661         (convert_vms_descriptor): When converting to a fat pointer type, be
9662         prepared for a S descriptor at runtime in spite of a SB specification.
9663         (shift_unc_components_for_thin_pointers): New function.
9664         (write_record_type_debug_info): For variable-sized fields, cap the
9665         alignment of the pointer to the computed alignment.
9666         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
9667         If REP_LEVEL is 2, do not compute the sizes.
9668         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
9669         (build_unc_object_type): Likewise.
9670         (declare_debug_type): New function.
9672         * ada-tree.def: USE_STMT: removed (not emitted anymore).
9674         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
9675         no statement is expandable anymore.
9676         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
9677         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
9678         when the user requested it explicitely.
9679         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
9680         to 0 for Ada.
9681         (get_alias_set): Return alias set 0 for a type if
9682         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
9684         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
9685         (DECL_FUNCTION_STUB): New accessor macro.
9686         (SET_DECL_FUNCTION_STUB): New setter macro.
9688         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
9690         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
9691         declarations.
9693 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
9695         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
9696         Rename to Abort_Task_Interrupt to be able to keep the same interface
9697         as the rest of the targets.
9699         * s-osinte-vxworks.ads s-osinte-vxworks.adb
9700         (To_VxWorks_Priority): Remove explicit "in" mode indicator
9702         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
9703         New files.
9705 2007-06-06  Robert Dewar  <dewar@adacore.com>
9707         * a-chahan.ads: Remove obsolescent pragmas
9709         * a-chlat1.ads: Minor reformatting
9711 2007-06-06  Robert Dewar  <dewar@adacore.com>
9713         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
9714         for Errout
9716         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
9717         implementation
9719         * errout.ads (Finalize): Changed interface
9720         (Output_Messages): New procedure
9721         (Compilation_Errors): New Interface
9723         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
9724         Finalize/Output_Messages interface for Errout
9725         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
9726         Errout.
9728 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9729             Olivier Hainque  <hainque@adacore.com>
9730             Robert Dewar  <dewar@adacore.com>
9732         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
9733         check.
9734         (Raise_Current_Excep): Call Debug_Raise_Exception just before
9735         propagation starts, to let debuggers know about the event in a reliable
9736         fashion.
9737         (Local_Raise): Moved to System.Exceptions
9738         More convenient to have this as a separate unit
9740         * s-except.adb, s-except.ads: New files.
9742         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
9743         Debug_Unhandled_Exception in System.Exceptions where it belongs
9744         together with a couple of other debug helpers.
9745         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
9746         the former Unhandled_Exception.
9748         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
9749         (Warn_No_Exception_Propagation): New procedure
9750         (Warn_If_No_Propagation): Rewritten for new warning generation
9751         (Expand_Exception_Handlers): New warning generation
9752         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
9753         (Add_Exception_Label): Use Special_Exception_Package_Used for test
9754         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
9755         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
9756         even if restriction is set (makes life easier in Check_Returns)
9757         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
9758         checking exception identities.
9759         (Expand_Local_Exception_Handlers): Do not optimize when all others case
9760         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
9761         block for handler (used by Check_Returns)
9762         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
9763         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
9764         remove all exception handlers when optimizing local raise statements.
9765         (Find_Local_Handler): Use Get_Renamed_Entity
9766         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
9767         marked analyzed after expanding exception handlers, do not generate
9768         redundant cleanup actions, because they have been constructed already.
9770 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9772         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
9773         presence of this categorization pragma is mandated by the language.
9774         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
9775         for this type.
9777 2007-06-06  Vincent Celier  <celier@adacore.com>
9778             Robert Dewar  <dewar@adacore.com>
9780         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
9781         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
9782         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
9783         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
9784         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
9785         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
9786         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
9787         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
9788         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
9789         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
9790         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
9791         ali.ads, ali.adb: 
9792         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
9793         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
9794         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
9795         Use variables of types File_Name_Type and Unit_Name_Type in error
9796         messages.
9797         (Get_Name): Add parameter Ignore_Special, and set it reading file name
9798         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
9799         here.
9800         Define flags Flag217-Flag230 with associated subprograms
9801         (Flag_Word5): New record type.
9802         (Flag_Word5_Ptr): New access type.
9803         (To_Flag_Word5): New unchecked conversion.
9804         (To_Flag_Word5_Ptr): Likewise.
9805         (Flag216): New function.
9806         (Set_Flag216): New procedure.
9808 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9810         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
9811         instead of 'Size.
9813         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
9815 2007-06-06  Javier Miranda  <miranda@adacore.com>
9817         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
9818         the package.
9819         (Object_Specific_Data_Array): This is now internal to the package.
9820         (Object_Specific_Data): This is now internal to the package.
9821         (Select_Specific_Data_Element): This is now internal to the package.
9822         (Select_Specific_Data_Array): This is now internal to the package.
9823         (Select_Specific_Data): This is now internal to the package.
9824         (Offset_To_Top_Function_Ptr): This is now public.
9825         (To_Offset_To_Top_Function_Ptr): Removed.
9826         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
9827          local to subprogram Offset_To_Top.
9828         (Predefined_DT): Removed.
9829         (Typeinfo_Ptr): Removed.
9830         (OSD): This function is now internal to this package.
9831         (SSD): This function is now internal to this package.
9832         (DT): New function that displaces the pointer to the table of primitives
9833          to get access to the enclosing wrapper record.
9834         (IW_Membership): Code cleanup.
9835         (Offset_To_Top): Code cleanup.
9836         (Predefined_DT): Removed.
9837         (Register_Interface_Tag): Removed.
9838         (Set_Interface_Table): Removed.
9839         (Set_Offset_Index): Removed.
9840         (Set_Offset_To_Top): Code cleanup.
9841         (Set_OSD): Removed.
9842         (Set_Signature): Removed.
9843         (Set_SSD): Removed.
9844         (Set_Tagged_Kind): Removed.
9845         (Typeinfo_Ptr): Removed.
9846         (TSD): Removed.
9847         (Displace): Add missing check on null actual.
9849         * exp_disp.ads, exp_disp.adb
9850         (Select_Expansion_Utilities): Removed.
9851         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
9852         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
9853         the interface requires a new parameter.
9854         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
9855         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
9856         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
9857         Done to remove package Select_Expansion_Utilities.
9858         (Make_DT): New implementation for statically allocated dispatch tables.
9859         (Make_Secondary_DT): Moved to the scope of Make_DT.
9860         (Register_Primitive): Code cleanup plus incoporate the use of the new
9861         function DT_Address_Attribute.
9862         (Expand_Interface_Thunk): The profile of this subprogram has been
9863         changed to return the Thunk_Id and the corresponding code.
9864         (Fill_DT_Entry): Removed. Its functionality is now provided by
9865         subprogram Register_Primitive.
9866         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
9867         subprogram Register_Primitive.
9868         (Register_Primitive): New subprogram that incorporates the previous
9869         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
9870         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
9871         was only required to call Make_DT_Access_Action, which is now removed.
9872         (Ada_Actions): Removed
9873         (Action_Is_Proc): Removed
9874         (Action_Nb_Arg): Removed
9875         Replace all the calls to Make_DT_Access_Action by direct calls to
9876         Make_Procedure_Call_Statement or Make_Function_Call.
9877         (Set_DTC_Entity_Value): New subprogram.
9878         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
9879         (Expand_Interface_Thunk): Add missing support for primitives that are
9880         functions with a controlling result (case in which there is no need
9881         to generate the thunk).
9883         * exp_atag.ads, exp_atag.adb
9884         (Build_DT): New subprogram that displaces the pointer to reference the
9885         base of the wrapper record.
9886         (Build_Typeinfo_Offset): Removed.
9887         (RTE_Tag_Node): Removed.
9888         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
9889         (Build_Get_RC_Offset): Removed.
9890         (Build_Inherit_Predefined_Prims): Removed.
9891         (Build_Inherit_TSD: Removed.
9892         (Build_New_TSD): Removed.
9893         (Build_Set_External_Tag): Removed.
9894         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
9895         (Build_Set_Prim_Op_Address): Add documentation.
9896         (Build_Set_TSD): Removed.
9898         * rtsfind.ads, rtsfind.adb
9899         (Load_Fail): If load fails and we are not in configurable run-time
9900         mode, then raise Unrecoverable_Error.
9901         (Text_IO_Kludge): Generate an error message if a run-time library is
9902         not available in a given run-time (ie. zfp run-time).
9903         (RTE_Record_Component): Add code to check that the component we search
9904         for is not found in two records in the given run-time package.
9905         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
9906         (RE_DT_Predef_Prims_Offset): New entity
9907         (RE_Static_Offset_To_Top): New entity
9908         (RE_HT_Link): New entity.
9909         (System_Address_Image): Addition of this run-time package.
9910         (RE_Address_Image): New entity.
9911         (RE_Abstract_Interface): Removed.
9912         (RE_Default_Prim_Op_Count): Removed.
9913         (RE_DT_Entry_Size): Removed.
9914         (RE_DT_Min_Prologue_Size): Removed.
9915         (RE_DT_Prologue_Size): Removed.
9916         (RE_Ifaces_Table_Ptr): Removed.
9917         (RE_Interface_Data_Ptr): Removed.
9918         (RE_Type_Specific_Data): Removed.
9919         (RE_Primary_DT): Removed.
9920         (RE_Register_Interface_Tag): Removed.
9921         (RE_Set_Offset_Index): Removed.
9922         (RE_Set_OSD): Removed.
9923         (RE_Set_SSD): Removed.
9924         (RE_Set_Signature): Removed.
9925         (RE_Set_Tagged_Kind): Removed.
9926         (RE_Address_Array): New entity.
9927         (RE_DT): New entity.
9928         (RE_Iface_Tag): New entity.
9929         (RE_Interfaces_Table): New entity.
9930         (RE_No_Dispatch_Table): New entity.
9931         (RE_NDT_Prims_Ptr): New entity.
9932         (RE_NDT_TSD): New entity.
9933         (RE_Num_Prims): New entity.
9934         (RE_Offset_To_Top_Function_Ptr): New entity.
9935         (RE_OSD_Table): New entity.
9936         (RE_OSD_Num_Prims): New entity.
9937         (RE_Predef_Prims): New entity
9938         (RE_Predef_Prims_Table_Ptr): New entity.
9939         (RE_Primary_DT): New entity.
9940         (RE_Signature): New entity.
9941         (RE_SSD): New entity.
9942         (RE_TSD): New entity.
9943         (RE_Type_Specific_Data): New entity.
9944         (RE_Tag_Kind): New entity.
9946 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9948         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
9949         C imported variable.
9950         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
9951         on entry.
9953 2007-06-06  Robert Dewar  <dewar@adacore.com>
9955         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
9956         character
9958 2007-06-06  Vincent Celier  <celier@adacore.com>
9960         * a-tifiio.adb (Put, internal): For negative numbers, check that there
9961         is room for at least one digit and the minus sign.
9962         (Put.Put_Character): Never put a character outside of the range of
9963         string To.
9965 2007-06-06  Olivier Hainque  <hainque@adacore.com>
9966             Eric Botcazou  <ebotcazou@adacore.com>
9968         * utils2.c (build_allocator): Provide the extra arguments to
9969         make_aligning_type for super-aligned objects allocated from the default
9970         pool. Leave enough room for a pointer before the aligning field, and
9971         store the system's allocator return value there.
9972         (build_call_alloc_dealloc): When releasing a super-aligned object,
9973         retrieve the system's allocator return value from where build_allocator
9974         has stored it, just ahead of the adjusted address we are passed.
9975         (build_call_raise): Handle properly the generation of line numbers when
9976         the node is marked No_Location.
9977         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
9978         by using DECL_UID on ties.
9979         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
9980         main variant.
9981         (build_call_raise): Handle converting exception into goto; support new
9982         argument KIND.
9983         (build_component_ref): Add new arg to build_call_raise.
9985 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
9987         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
9988         "." in the case of nnn.xxx when nnn terminates with an underscore.
9989         Parse the remaining "#" or ":" in the case of nnn#.xxx#
9991 2007-06-06  Robert Dewar  <dewar@adacore.com>
9993         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
9995 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9996             Vincent Celier  <celier@adacore.com>
9997             Robert Dewar  <dewar@adacore.com>
9999         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
10000         needed.
10001         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
10002         ((destructor)) for adafinal, even when switch -a is used.
10003         Do not issue pragma Linker_Destructor for adafinal when switch -a is
10004         used.
10005         (Gen_Object_Files_Options): Add formatting of Linker Options, when
10006         Output_Linker_Option_List is set. Suppress this formatting when
10007         Zero_Formatting is set.
10008         Add case for CLI_Target.
10009         (System_Restrictions_Used): New flag, used to avoid generating with of
10010         System_Restrictions and initialization of the data unless there is
10011         some use of System.Restrictions in the partition.
10012         (Check_System_Restrictions_Used): New procedure
10014         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
10015         since we only with this unit in the binder file if it is used elsewhere
10016         in the partition.
10018 2007-06-06  Vincent Celier  <celier@adacore.com>
10020         * bindusg.adb: Add line for @<response file>
10021         Add lines for new switches -R and -Z
10023         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
10024         hierarchy in the list of files of the closure when -R is used
10025         (Gnatbind): Accept arguments starting with '@' to indicate response
10026         files and take the arguments from the response files.
10027         If List_Closure is set, display the referenced files
10029 2007-06-06  Javier Miranda  <miranda@adacore.com>
10030             Robert Dewar  <dewar@adacore.com>
10031             Ed Schonberg  <schonberg@adacore.com>
10033         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
10034         which the address-clause is applied to in-mode actuals (allowed by
10035         13.1(22)).
10036         (Apply_Discriminant_Check): Do not generate a check if the type is
10037         constrained by a current instance.
10038         (Activate_Division_Check): New procedure
10039         (Activate_Overflow_Check): New procedure
10040         (Activate_Range_Check): New procedure
10041         Call these new Activate procedures instead of setting flags directly
10042         (Apply_Array_Size_Check): Removed, no longer needed.
10043         Code clean up: remove obsolete code related to GCC 2.
10044         (Get_E_Length): Protect against bomb in case scope is standard
10045         (Selected_Range_Checks): If the node to be checked is a conversion to
10046         an unconstrained array type, and the expression is a slice, use the
10047         bounds of the slice to construct the required constraint checks.
10048         Improve NOT NULL error messages
10049         (Apply_Constraint_Check): If the context is a null-excluding access
10050         type, diagnose properly the literal null.
10052 2007-06-06  Pascal Obry  <obry@adacore.com>
10054         * clean.adb (Clean_Archive): Use untouched casing for the archive name
10055         and the corresponding .deps file.
10056         (Clean_Interface_Copy_Directory): Use untouched casing for the library
10057         src directory. Minor code-clean-up. Use untouched casing for files
10058         read into the library src dir.
10059         (Clean_Library_Directory): Idem.
10060         (Parse_Cmd_Line): Accept new switch -aP
10062 2007-06-06  Javier Miranda  <miranda@adacore.com>
10063             Ed Schonberg  <schonberg@adacore.com>
10064             Robert Dewar  <dewar@adacore.com>
10065             Eric Botcazou  <ebotcazou@adacore.com>
10066             Arnaud Charlet  <charlet@adacore.com>
10068         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
10069         applicable to types that have the With_Type flag set. Returns the
10070         non-limited view of the type, if available, otherwise the type itself.
10071         For class-wide types, there is no direct link in the tree, so we have
10072         to retrieve the class-wide type of the non-limited view of the Etype.
10073         New attributes Static_Initialization and Static_Elaboration_Desired.
10074         Remove the pragma Thread_Body, and the associated flag
10075         Is_Thread_Body in entities, and all related code.
10076         (Suppress_Value_Tracking_On_Call): New flag
10077         E_Exception has Esize and Alignment fields
10078         (Universal_Aliasing): New function.
10079         (Set_Universal_Aliasing): New procedure.
10080         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
10081         (Check_Nested_Access): New procedure.
10082         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
10083         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10084         (Related_Interface): New attribute. Present in dispatch table pointer
10085         components of records. Set to point to the entity of the corresponding
10086         interface type.
10087         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
10088         (Original_Access_Type): Remove, not needed.
10089         (Root_Type): Handle properly subtypes of class-wide-types.
10090         Update comments.
10092         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
10093         class-wide types visible through limited-with clauses.
10094         (Try_Primitive_Operation): When examining all primitive operations of a
10095         tagged type, do not consider subprograms labeled as hidden unless they
10096         belong to a private generic type with a tagged parent.
10097         (Try_Object_Operation): Extensive rewriting, to handle properly various
10098         overloading cases, when several ancestors may have class-wide operations
10099         that are possible candidates, and when the overloaded functions return
10100         array types and have defaulted parameters so that the call may be
10101         interpreted as an indexing.
10102         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
10103         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
10104         successive actuals before analyzing the call itself.
10105         (Try_Primitive_Operation): A primitive operation is compatible with the
10106         prefix if the prefix has a synchronized type and the type of the formal
10107         is its corresponding record, as can be the case when the primitive
10108         operation is declared outside of the body of the type.
10109         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
10110         perform homonym traversal, looking for class-wide operation matches
10111         (formerly done in statements of Try_Class_Wide_Operation). Matches on
10112         access parameters are now restricted to anonymous access types.
10113         (Mark_Allocator): An allocator with a discriminant association parent is
10114         a coextension.
10115         (Try_One_Prefix_Interpretation): If the type of the object is
10116         incomplete, as can be happen when it is a limited view obtained through
10117         a limited_with_clause, the selected component is not part of a prefixed
10118         call.
10119         (Complete_Object_Operation): Diagnose properly an object that is not
10120         aliased when the corresponding controlling formal is an access
10121         parameter.
10122         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
10123         ambiguous calls in prefixed notation, where two primitives differ only
10124         in that the controlling argument of one is an access parameter.
10126         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
10127         whether a function that returns an unconstrained type can be inlined.
10128         (Process_Formals): Diagnose properly the illegal use of an incomplete
10129         type in the profile of an access_to_subprogram declaration.
10130         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
10131         operations are attached to the corresponding record.
10132         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
10133         When processing a primitive of a concurrent type which implements an
10134         interface change the type of all controlling formals to that of the
10135         corresponding record type.
10136         (Check_Synchronized_Overriding): Relax the conditional logic when trying
10137         to determine the tagged type to which a primitive belongs.
10138         (Check_Conventions): Capture condition to ignore a primitive operation
10139         (which is shared between the loop in Check_Conventions and the one in
10140         Check_Convention) in a new local function Skip_Check.
10141         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
10142         confusion with Check_Conventions' own Prim_Op local variable.
10143         (Create_Extra_Formals): Test for a tagged result type rather than a
10144         controlling result when determining whether to add a BIP_Alloc_Form
10145         formal and a BIP_Final_List formal to the function.
10146         (Check_Conformance); For parameters that are anonymous access types,
10147         subtype conformance requires that the not null and the constant
10148         indicators must match
10149         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
10150         to retrieve the appropriate type when processing a concurrent type
10151         declared within a generic. Minor comment reformatting. Change invocation
10152         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
10153         mitive.
10154         (Analyze_Subprogram_Body): If the return type of a function is an
10155         anonymous access to the limited view of a class-wide type, and the
10156         non-limited view of the type is available, update the type of the
10157         function so that code can be generated.
10158         (Process_Formals): In case of access-subtype itype whose designated
10159         type is also an itype (situation that happens now with access to
10160         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
10161         attribute to avoid backend problems.
10162         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
10163         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
10164         anonymous types' designated types are same before testing
10165         Subtypes_Statically_Match.
10166         (Create_Extra_Formals): Test for a named access parameter that is a
10167         controlling formal as an additional condition for adding an
10168         accessibility level formal. This can occur in the subp type created for
10169         dispatching calls in Expand_Dispatching_Call, and allows calling
10170         Create_Extra_Formals from that procedure rather than special-casing the
10171         extra formals there.
10172         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
10173         when the function has a controlling result.
10174         (Check_Returns): Add much more knowledge of the optimization of local
10175         raise statements to gotos, to retain proper warnings in this case.
10176         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
10177         nodes when looking for last statement.
10179         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
10180         class-wide types visible through limited with clauses.
10181         (Add_One_Interp): If the operands are anonymous access types, the
10182         predefined operator on universal_access is immediately visibles
10183         (Find_Unique_Type): Handle anonymous access to subprogram types just as
10184         other anonymous access types.
10185         (Disambiguate): Take into account CIL convention.
10186         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
10188 2007-06-06  Robert Dewar  <dewar@adacore.com>
10190         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
10191         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
10192         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
10193         Fix lower bound of tables.
10194         Add rep clauses.
10196         * nlists.adb: Ditto.
10197         (Prev_Node, Next_Node): Change index type to Int so that it properly
10198         covers the range First_Node_Id - 1 up.
10200 2007-06-06  Javier Miranda  <miranda@adacore.com>
10201             Ed Schonberg  <schonberg@adacore.com>
10202             Bob Duff  <duff@adacore.com>
10203             Hristian Kirtchev  <kirtchev@adacore.com>
10205         * exp_aggr.ads, exp_aggr.adb: 
10206         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
10207         in extension aggregates.
10208         (Flatten): Other conditions being met, an aggregate is static if the
10209         low bound given by component associations is different from the low
10210         bound of the base index type.
10211         (Packed_Array_Aggregate_Handled): If the component type is itself a
10212         packed array or record, the front-end must expand into assignments.
10213         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
10214         Init_Pr, instead of Ancestor_Is_Expression.
10215         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
10216         coextension chain root, either generate a list controller or use the
10217         already existing one.
10218         (Static_Array_Aggregate): New procedure to construct a positional
10219         aggregate that can be handled by the backend, when all bounds and
10220         components are compile-time known constants.
10221         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
10222         types covering interface types into assignments.
10223         (Replace_Type): move to Build_Record_Aggr_Code.
10224         (Expand_Record_Aggr_Code): if the target of the aggregate is an
10225         interface type, convert to the definite type of the aggregate itself,
10226         so that needed components are visible.
10227         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
10228         components and the context is an extended return statement do not
10229         create a transient block for it, to prevent premature finalization
10230         before the return is executed.
10231         (Gen_Assign): Do not generate a call to deep adjust routine if the
10232         component type is itself an array of controlled (sub)-components
10233         initialized with an inner aggregate.
10234         (Component_Check): New name for Static_Check. This name is now more
10235         appropriate, and documentation is added which was missing.
10236         (Component_Check): Add test for bit aligned component value
10237         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
10238         Tagged_Comps, name is more appropriate given added function below.
10239         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
10241 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
10242             Javier Miranda  <miranda@adacore.com>
10243             Robert Dewar  <dewar@adacore.com>
10245         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
10246         Terminated: Add unchecked type conversion from System.Address to
10247         System.Tasking.Task_Id when calling the predefined primitive
10248         _disp_get_task_id.
10249         Disable new Ada 05 accessibility check for JVM.NET targets, which
10250         cannot be implemented in a practical way.
10251         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
10252         the sources always references the tag of the actual object. Therefore,
10253         if 'Tag is applied in the sources to class-wide interface objects we
10254         generate code that displaces "this" to reference the base of the object.
10255         (Expand_N_Attribute_Reference, case Size): Return specified size if
10256         known to front end.
10257         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
10258         has code that displaces the pointer of the object to manage interface
10259         types. However this code must not be executed when the prefix is a
10260         subprogram. This bug caused the wrong expansion of the internally
10261         generated assignment that fills the dispatch table when the primitive
10262         is a function returning a class-wide interface type.
10263         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
10264         Set_Attribute_Name for Name_Unaligned_Valid.
10266 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10267             Gary Dismukes  <dismukes@adacore.com>
10269         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
10270         If the initialization is the equivalent aggregate of the initialization
10271         procedure of the type, do not remove it.
10272         (Expand_N_Attribute_Definition_Clause): Exclude access variables
10273         initialized to null from having their expression reset to empty and
10274         note this exception in the comment.
10276 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
10277             Robert Dewar  <dewar@adacore.com>
10278             Ed Schonberg  <schonberg@adacore.com>
10279             Gary Dismukes  <dismukes@adacore.com>
10281         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
10282         Add "with" and "use" clauses for Sem_Attr.
10283         (Expand_Current_Value): Do not replace occurences of attribute
10284         references where the prefix must be a simple name.
10286         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
10287         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
10288         Attribute_Requires_Simple_Name_Prefix.
10289         (Name_Modifies_Prefix): Body of new function.
10290         (Requires_Simple_Name_Prefix): Body of new function.
10291         (Resolve_Attribute, case Access): Improve error message for case of
10292         mismatched conventions.
10293         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
10294         incomplete type.
10295         (Analyze_Attribute, case 'Access): If the type of the prefix is a
10296         constrained subtype for a nominal unconstrained type, use its base type
10297         to check for conformance with the context.
10298         (Resolve_Attribute): Remove test of the access type being associated
10299         with a return statement from condition for performing accessibility
10300         checks on access attributes, since this case is now captured by
10301         Is_Local_Anonymous_Access.
10302         (Analyze_Access_Attribute): Set Address_Taken on entity
10303         (Analyze_Attribute, case Address): Set Address_Taken on entity
10304         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
10305         validating an access attribute whose prefix is a current instance.
10306         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
10307         applied to dispatching operations, if freezing is required then we set
10308         the attribute Has_Delayed_Freeze in the prefix's entity.
10309         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
10310         current scope if access of local subprogram taken
10311         (Analyze_Access_Attribute): Check legality of self-reference even if the
10312         expression comes from source, as when a single component association in
10313         an aggregate has a box association.
10314         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
10315         the prefix if it is a protected operation and the attribute is
10316         Unrestricted_Access.
10317         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
10318         reference to the base type of the context, to force a constraint check
10319         when the context is an access subtype with an explicit constraint.
10320         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
10321         node is rewritten as an interface conversion. leave unanalyzed after
10322         resolution, to ensure that type checking against the context will take
10323         place.
10325 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10326             Javier Miranda  <miranda@adacore.com>
10327             Robert Dewar  <dewar@adacore.com>
10329         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
10330         wrapper when the full view of the controlling type of an inherited
10331         function that dispatches on result implements interfaces.
10332         (Expand_N_Object_Declaration): In cases where the type of the
10333         declaration is anonymous access, create finalization list for it.
10334         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
10335         if the object has no explicit initialization, to match description of
10336         functionality of pragam Persistent_BSS.
10337         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
10338         new function to build static aggregates, to replace initialization call
10339         when static initialization is desired.
10340         (Freeze_Type): Generate a list controller for an access type whenever
10341         its designated type has controlled anonymous access discriminants.
10342         (Build_Equivalent_Aggregate): New procedure to compute a static
10343         aggregate to be used as default initialization for composite types,
10344         instead of a generating a call to the initialization procedure for the
10345         type.
10346         (Build_Initialization_Call): When available, replace a call to the
10347         initialization procedure with a copy of the equivalent static aggregate
10348         for the type.
10349         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
10350         declarations for objects of a class-wide interface type, rather than
10351         just identifiers, to prevent visibility problems.
10352         (Expand_N_Object_Declaration): When expanding the declaration for an
10353         object of a class-wide interface type, preserve the homonym chain of
10354         the original entity before exchanging it with that of the generated
10355         renaming declaration.
10356         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
10357         active, because there is no way to handle the exception.
10358         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
10359         to do a minimum decoration of the Access_Disp_Table list.
10360         (Expand_Record_Controller): Avoid the addition of the controller between
10361         the component containing the tag of a secondary dispatch table and its
10362         adjacent component that stores the offset to the base of the object.
10363         This latter component is only generated when the parent type has
10364         discriminants ---documented in Add_Interface_Tag_Components).
10365         (Apply_Array_Size_Check): Removed, no longer needed.
10366         (Expand_N_Full_Type_Declaration): If the type has anonymous access
10367         components, create a Master_Entity for it only if it contains tasks.
10368         (Build_Init_Procedure): Suppress the tag assignment compiling under
10369         no run-time mode.
10370         (Freeze_Record_Type): Remove code associated with creation of dispatch
10371         table.
10372         (Init_Secondary_Tags): Update type of actuals when generating calls to
10373         Ada.Tags.Set_Offset_To_Top
10374         (Stream_Operation_OK): Disable use of streams compiling under no
10375         run-time mode
10376         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
10377         if Has_Init_Expression set.
10378         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
10379         Register_Primitive, which provides the same functionality.
10380         (Requires_Init_Proc): Return false in case of interface types.
10381         (Add_Secondary_Tables): Use the new attribute Related_Interface to
10382         cleanup the code.
10383         (Predefined_Primitive_Freeze): Do not assume that an internal entity
10384         is always associated with a predefined primitive because the internal
10385         entities associated with interface types are not predefined primitives.
10386         Therefore, the call to Is_Internal is replaced by a call to the
10387         function Is_Predefined_Dispatching_Operation.
10388         (Make_Eq_If): When generating the list of comparisons for the
10389         components of a given variant, omit the controller component that is
10390         present if the variant has controlled components.
10392 2007-06-06  Javier Miranda  <miranda@adacore.com>
10393             Hristian Kirtchev  <kirtchev@adacore.com>
10394             Bob Duff  <duff@adacore.com>
10396         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
10397         handle the creation of finalization lists and calls for nested
10398         coextensions when the root of the chains is part of a return statement.
10399         (Inside_A_Return_Statement): New function inside Complete_Coextension_
10400         Finalization.
10401         (Expand_Record_Equality): Skip components that are interface types.
10402         (Displace_Allocator_Pointer): Add missing support for interface subtypes
10403         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
10404         with Rewrite_Coextension. Change the condition for detecting coextension
10405         root nodes.
10406         (Is_Local_Access_Discriminant): Removed.
10407         (Rewrite_Coextension): New routine which rewrites a static coextension
10408         as a temporary and uses its unrestricted access in the construction of
10409         the outer object.
10410         (Complete_Coextension_Finalization): New routine. Generate finalization
10411         attachment calls to all delayed coextensions.
10412         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
10413         the allocator is not a coextension itself and has delayed coextensions.
10414         If the current allocator is controlled, but also a coextension, delay
10415         the generation of the finalization attachment call.
10416         Rename local variable "Node" to "Nod" in order to avoid confusion with
10417         "Elists.Node".
10418         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
10419         limited types that are not inherently limited. Such an allocator is
10420         illegal, but is generated by the expander for a return statement, to
10421         copy the result onto the secondary stack. This is the only case where a
10422         limited object can be copied. Generate code to displace the pointer
10423         to the object if the qualified expression is a class-wide interface
10424         object. Such displacement was missing and hence the copy of the object
10425         was wrong.
10426         (Apply_Accessibility_Check): Handle allocated objects initialized in
10427         place.
10428         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
10429         and Expand_Allocator_Expression. Allocating class-wide interface objects
10430         this routine displaces the pointer to the allocated object to reference
10431         the component referencing the corresponding secondary dispatch table.
10432         Expand_Allocator_Expression): Add missing support to allocate class-wide
10433         interface objects initialized with a qualified expression.
10434         (Get_Allocator_Final_List): Test for an anonymous access type that is a
10435         function result type, and use the finalization list associated with the
10436         function scope in that case (such an anonymous type should not be
10437         treated like an access parameter's type).
10439 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10440             Gary Dismukes  <dismukes@adacore.com>
10441             Javier Miranda  <miranda@adacore.com>
10443         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
10444         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
10445         required exception handler.
10446         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
10447         properly the case of a function whose return type is a limited
10448         class-wide interface type. Modify the code of the accessibility
10449         check to handle class-wide interface objects. In this case we need to
10450         displace "this" to reference the primary dispatch table to get access
10451         to the TSD of the object (to evaluate its accessibility level).
10452         (Expand_N_Extended_Return_Statement): Test for a tagged result type
10453         rather than a controlling result as one of the conditions for
10454         generating tests of the implicit BIP_Alloc_Form formal. The
10455         initialization assignment is also handled according to whether the
10456         result is tagged instead of controlling.
10457         In the case where the init assignment is inserted in the "then" part of
10458         the allocation conditional, rewrite the target to be a dereference of
10459         the implicit BIP_Object_Access formal.
10460         If the returned value is unconstrained and created on the secondary
10461         stack, mark the enclosing block and function so that the secondary
10462         stack is not reclaimed on return.
10463         Treat returns from functions with controlling results similarly to
10464         returns from functions with unconstrained result subtypes.
10465         If the object returned is unconstrained, and an allocator must be
10466         created for it, analyze the allocator once the block for the extended
10467         return is installed, to ensure that finalizable components
10468         of the expression use the proper finalization list. Guard the call to
10469         Move_Final_List with a check that there is something to finalize.
10470         (Make_Tag_Ctrl_Assignment): Use "old" handling
10471         of controlled type assignment for virtual machines, since new code uses
10472         unsupported features (such as direct access to bytes in memory).
10474 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
10475             Ed Schonberg  <schonberg@adacore.com>
10477         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
10478         accessibility actual, check for the case of an aliased object that has
10479         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
10480         we fall into processing for the attribute rather than the name of the
10481         object.
10482         (Expand_Inline_Call): If an actual is a literal, and the corresponding
10483         formal has its address taken in the body, create a temporary to capture
10484         value.  If the return type is a limited interface, do not treat the
10485         return value as Controlled.
10486         (Is_In_Place_Function):  If the return type is a limited interface,
10487         treat as returning in place. The actual returned object may not always
10488         be limited, but the caller has to assume that it is returned in place.
10489         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
10490         context of an allocator, use the correct finalization chain (that is,
10491         the chain belonging to the access type, rather than the chain belonging
10492         to the current scope).
10493         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
10494         result type rather than a controlling result as a precondition for
10495         adding an allocation form actual to a build-in-place call.
10496         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
10497         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
10498         primitive in the dispatch tables. This work is now done by Make_DT when
10499         the type is frozen.
10500         (Register_Predefined_DT_Entry): Removed.
10501         (Add_Return): If end label is not present, use sloc of last statement
10502         for generated return statement in procedure, for better gdb behavior
10503         on expanded code.
10504         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
10505         object address nodes to ensure proper processing by routines like
10506         Insert_After*.
10507         (Expand_Call): Fix generation of validity check for parameter
10508         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
10509         the allocation form parameter if the result subtype is constrained,
10510         except when the function has a controlling result.
10511         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
10512         rather than Is_Controlled and Has_Controlled_Component, since we want to
10513         include class-wide result types in this treatment. Also test for a
10514         controlling result, since that also requires passing a finalization
10515         list.
10516         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
10517         even when the result subtype is constrained, to handle calls involving
10518         controlling results.
10519         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
10520         is now called even when the result subtype is constrained, to handle
10521         calls involving controlling results.
10522         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
10523         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
10524         now performs the test).
10525         (Make_Build_In_Place_Call_In_Object_Declaration):
10526         Add_Alloc_Form_Actual_* is now called even when the result subtype is
10527         constrained, to handle calls involving controlling results.
10528         (Add_Return): Accomodate rewritten pattern from local raise to goto
10529         transformation, so that we still recognize an transfer statement
10530         and do the right thing here in that case.
10531         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
10532         and end of subprogram code.
10533         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
10534         support for primitives that are functions (without formals) with a
10535         controlling result.
10536         (Inherited_From_Formal): If the actual subtype has not generic parent
10537         type, it is not an actual for a formal derived type, and there is no
10538         operation to inherit from the formal.
10540 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10541             Thomas Quinot  <quinot@adacore.com>
10543         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
10544         inserted cleanup code appropriately for GDB use.
10545         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
10546         exception handler for Deep_Adjust or Deep_Finalize.
10547         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
10548         Raise_From_Controlled_Operation is available, use a call to that
10549         subprogram instead of a plain "raise Program_Error" node to raise
10550         Program_Error if an exception is propagated from an Adjust or Finalize
10551         operation.
10552         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
10553         appears in the optional statement list of a triggering alternative, the
10554         scope actions can be inserted directly there, and not in the list that
10555         includes the asynchronous select itself.
10557 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10558             Robert Dewar  <dewar@adacore.com>
10559             Hristian Kirtchev  <kirtchev@adacore.com>
10561         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
10562         generated exception handler appropriately when debugging generated code.
10563         Deal properly with No_Exception_Propagation restriction mode.
10564         (Expand_N_Abort_Statement): Add an unchecked type conversion from
10565         System.Address to System.Tasking.Task_Id when processing the result of
10566         the predefined primitive _disp_get_task_id.
10567         (Expand_N_Asynchronous_Select): Clarify comment.
10568         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
10569         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
10570         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
10571         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
10572         privals and for generated call to Complete_Entry_Body, for better gdb
10573         behavior.
10574         (Copy_Result_Type): Utility to construct a parameter and result profile
10575         for protected functions whose return type is an anonymous access to
10576         subprogram.
10577         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
10578         call the above.
10579         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
10580         point when the local-raise-to-goto transformation has taken place.
10582 2007-06-06  Javier Miranda  <miranda@adacore.com>
10583             Nicolas Setton  <setton@adacore.com>
10585         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
10586         functionality when the backend is generating code.
10587         Otherwise any serious error
10588         reported by the backend calling the frontend routine Error_Msg
10589         changes the Compilation_Mode to Check_Semantics, disables the
10590         functionality of this routine and causes the generation of
10591         spureous additional errors.
10593         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
10594         debugging information now generated by the compiler for fat-pointer
10595         types.
10596         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
10597         DWARF2/3.
10598         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
10600 2007-06-06  Thomas Quinot  <quinot@adacore.com>
10602         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
10603         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
10604         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
10605         For a remote call to a function with a classwide return type, apply an
10606         E.4(18) check to the returned value.
10607         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
10608         stream attributes of the designated type of an RACW, as they are not
10609         dispatching primitive operations.
10611 2007-06-06  Geert Bosch  <bosch@adacore.com>
10613         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
10614         negative literal
10615         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
10616         positive
10617         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
10618         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
10619         positive
10620         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
10622 2007-06-06  Javier Miranda  <miranda@adacore.com>
10624         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
10625         attribute compiling package Ada.Tags under No_Run_Time_Mode.
10627 2007-06-06  Javier Miranda  <miranda@adacore.com>
10629         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
10630         deallocation of class-wide interface objects.
10631         (Expand_Dispatching_Constructor_Call): Take into account that if the
10632         result of the dispatching constructor is an interface type, the
10633         function returns a class-wide interface type; otherwise the returned
10634         object would be actual. The frontend previously accepted returning
10635         interface types because Expand_Interface_Actuals silently performed
10636         the management of the returned type "as if" it were a class-wide
10637         interface type.
10638         (Expand_Dispatching_Constructor_Call): Replace call to
10639         Make_DT_Access_Action by direct call to Make_Function_Call.
10641 2007-06-06  Robert Dewar  <dewar@adacore.com>
10642             Ed Schonberg  <schonberg@adacore.com>
10644         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
10645         compute masking constant, since we now set Esize properly to the
10646         underlying size.
10647         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
10648         to match the alignment.
10649         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
10650         packed arrays of 8 bits or less.
10652         * freeze.adb (Freeze_Entity): When freezing the formals of a
10653         subprogram, freeze the designated type of a parameter of an access type
10654         only if it is an access parameter.
10655         Increase size of C convention enumeration object
10656         (Freeze_Entity, array type case): Make sure Esize value is properly
10657         adjusted for the alignment if it is known.
10658         (Freeze_Entity, array type case): When checking bit packed arrays for
10659         the size being incorrect, check RM_Size, not Esize.
10660         (Freeze_Record_Type): Check for bad discriminated record convention
10661         (In_Exp_Body): Return true if the body is generated for a subprogram
10662         renaming, either an attribute renaming or a renaming as body.
10663         (Check_Itype): If the designated type of an anonymous access component
10664         is a non-protected subprogram type, indicate that it is frozen, to
10665         prevent out-of-scope freeze node at some subsequent call.
10666         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
10667         only if the subprogram is neither imported nor exported, as well as the
10668         NCA descriptor class if the subprogram is exported.
10670 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10671             Arnaud Charlet  <charlet@adacore.com>
10672             Robert Dewar  <dewar@adacore.com>
10673             Gary Dismukes  <dismukes@adacore.com>
10675         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
10676         default initialization on an imported object, when there is no
10677         initialization call generated for it.
10678         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
10679         restriction
10681         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
10682         Static_Elaboration_Desired.
10683         Remove pragma Thread_Body.
10684         Implement a new pragma No_Body
10685         Removes the Explicit_Overriding pragma
10686         Remove Optional_Overriding pragma
10687         (Prag): Deal with Universal_Aliasing.
10688         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
10689         Pragma_CIL_Constructor): New names.
10691         * sem_cat.adb (Validate_Object_Declaration): An initialization that
10692         uses the equivalent aggregate of a type must be treated as an implicit
10693         initialization.
10694         (Get_Categorization): Check a unit for pragma Preelaborate only if it
10695         has none of the other categories.
10696         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
10697         to apply Import to an object renaming declaration.
10699         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
10700         from a C++ class should be declared as limited and that it will be
10701         considererd limited.
10702         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
10703         should be declared as limited and that it will be considererd limited.
10704         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
10705         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
10706         (Analyze_Pragma): Deal with Universal_Aliasing.
10707         (Sig_Flags): Likewise.
10708         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
10709         (Overflow_Checks_Unsuppressed): New flag.
10710         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
10711         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
10712         case of JVM or .NET targets, and compiling user code.
10713         Add debugging convenience routine rv
10715 2007-06-06  Robert Dewar  <dewar@adacore.com>
10717         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
10718         are interface type.
10719         (Build_Elementary_Input_Call): For floating-point use right type in the
10720         absence of strange size or stream size clauses.
10721         (Build_Elementary_Write_Call): Same fix
10722         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
10723         set to value that does not match base type size.
10725 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10727         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
10728         object of a limited type can be initialized with a call to a function
10729         that returns in place. If the limited type has unknown discriminants,
10730         and the underlying type is a constrained composite type, build an actual
10731         subtype from the function call, as is done for private types.
10732         (Side_Effect_Free): An expression that is the renaming of an object or
10733         whose prefix is the renaming of a object, is not side-effect free
10734         because it may be assigned through the renaming and its value must be
10735         captured in a temporary.
10736         (Has_Controlled_Coextensions): New routine.
10737         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
10738         as is done for other limited types.
10739         (Non_Limited_Designated_Type): new predicate.
10740         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
10741         objects.
10742         Remove all handling of with_type clauses.
10744         * par-ch10.adb: Remove all handling of with_type clauses.
10746         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
10747         checksum if the main source could not be parsed.
10748         (Loat_Unit): When processing a child unit, determine properly whether
10749         the parent unit is a renaming when the parent is itself a child unit.
10750         Remove handling of with_type clauses.
10752         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
10753         (Set_Is_Static_Coextension): New procedure.
10754         (Has_Local_Raise): New function
10755         (Set_Has_Local_Raise): New procedure
10756         (Renaming_Exception): New field
10757         (Has_Init_Expression): New flag
10758         (Delay_Finalize_Attach): Remove because flag is obsolete.
10759         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
10760         Remove all handling of with_type clauses.
10761         (Exception_Junk): Can now be set in N_Block_Statement
10763 2007-06-06  Vincent Celier  <celier@adacore.com>
10764             Robert Dewar  <dewar@adacore.com>
10766         * frontend.adb (Frontend): Return immediately if the main source could
10767         not be parsed, because of preprocessing errors.
10769         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
10770         (Gnat1drv): Exit with errors if the main source could not be parsed,
10771         because of preprocessing errors.
10772         (Check_Rep_Info): New procedure
10774 2007-06-06  Robert Dewar  <dewar@adacore.com>
10776         * g-hesorg.ads, g-heasor.ads,
10777         g-busorg.ads, g-bubsor.ads: Update documentation
10778         GNAT.Heap/Bubble_Sort_G is now pure
10780 2007-06-06  Robert Dewar  <dewar@adacore.com>
10782         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
10784 2007-06-06  Robert Dewar  <dewar@adacore.com>
10785             Ed Schonberg  <schonberg@adacore.com>
10787         * g-comlin.ads, g-comlin.adb: 
10788         Add new warning for renaming of function return objects
10790         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
10791         (Tree_Read): Use size of object instead of type'object_size, since the
10792         latter is incorrect for packed array types.
10793         (Tree_Write): Same fix
10795         * opt.ads: Add new warning for renaming of function return objects
10796         (Generating_Code): New boolean variable used to indicate that the
10797         frontend as finished its work and has called the backend to process
10798         the tree and generate the object file.
10799         (GCC_Version): Is now private
10800         (Static_Dispatch_Tables): New constant declaration.
10801         (Overflow_Checks_Unsuppressed): New flag.
10802         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
10803         (List_Closure): New flag for gnatbind (-R)
10804         Zero_Formatting: New flag for gnatbind (-Z)
10805         (Special_Exception_Package_Used): New flag.
10806         (Warn_On_Unrepped_Components): New flag.
10808         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
10809         unit is a compilation unit, rather than relying on its scope, so that
10810         Standard can be renamed.
10811         (Analyze_Object_Renaming): Add new warning for renaming of function
10812         return objects.
10813         Also reject attempt to rename function return object in Ada 83 mode.
10814         (Attribute_Renaming): In case of tagged types, add the body of the
10815         generated function to the freezing actions of the type.
10816         (Find_Type): A protected type is visible right after the reserved word
10817         "is" is encountered in its type declaration. Set the entity and type
10818         rather than emitting an error message.
10819         (New_Scope): Properly propagate Discard_Names to inner scopes
10820         (Check_Nested_Access): New procedure.
10821         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
10822         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10824         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
10825         Add new warning for renaming of function return objects
10826         (Check_References): Suppress warnings for objects whose type or
10827         base type has Warnings suppressed.
10828         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
10829         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
10831 2007-06-06  Vincent Celier  <celier@adacore.com>
10832             Emmanuel Briot  <briot@adacore.com>
10833             Olivier Hainque  <hainque@adacore.com>
10835         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
10836         absolute value of Header.Block_Size when displaying the freed physical
10837         memory in traces.
10838         (Allocate): Compute Storage_Address using Integer_Address, not
10839         Storage_Offset, because the range of Storage_Offset may not be large
10840         enough.
10841         (Configure): New parameter Low_Level_Traces
10842         (Allocate, Deallocation, Free_Physically): Added low-level traces
10843         (Configure): new parameter Errors_To_Stdout.
10844         (Output_File): new subprogram
10845         (Deallocate, Dereference): Send error messages to the proper stream
10846         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
10847         documented. Previous code would send it to the current output file
10848         defined in GNAT.IO, which might not be stdout
10849         (Is_Valid): Adjust comment to mention that a positive reply means that
10850         Header_Of may be used to retrieve the allocation header associated with
10851         the subprogram Storage address argument. Return False early if this
10852         address argument is misaligned.
10854 2007-06-06  Vincent Celier  <celier@adacore.com>
10856         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
10857         switch -P
10858         (ASIS_Main): New global variable
10859         (Get_Closure): New procedure
10860         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
10861         check, metric or pretty. Call Get_Closure in this case.
10862         (Check_Files): For GNAT LIST, check all sources of all projects when
10863         All_Projects is True.
10864         (GNATCmd): Accept -U for GNAT LIST
10866 2007-06-06  Vincent Celier  <celier@adacore.com>
10868         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
10869         has been specified
10870         Correct error message when invocation of the linker fails
10871         Add explicit size clause for the C imported variables
10872         Object_List_File_Supported and Using_GNU_Linker to emphasize that
10873         we expect char size.
10874         Read target parameters earlier, since this is needed to set
10875         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
10876         targets.
10878 2007-06-06  Vincent Celier  <celier@adacore.com>
10880         * gnatls.adb: 
10881         Add 3 spaces before the default project directory when displaying
10882         the project search path.
10883         Add new command line switch '-l' to display license information.
10885 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
10887         * gmem.c: Add support for timestamps on memory operations.
10889         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
10890         operations (not used currently, just foundation for future
10891         enhancements). Add possibility to perform full dump of gmem.out file.
10892         (Print_Back_Traces): Declare accesses to root arrays constants since
10893         they aren't modified.
10894         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
10896 2007-06-06  Vincent Celier  <celier@adacore.com>
10898         * gnatsym.adb: Update Copyright notice
10899         (Parse_Cmd_Line): Accept new switch -D
10900         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
10901          file.
10903         * prj.ads (Policy): New policy Direct
10904         (Yes_No_Unknown): New enumeration type
10905         (Project_Data): New component Libgnarl_Needed
10907         * prj-nmsc.adb (Check_For_Source): When recording a source file make
10908         use the untouched pathname casing.
10909         (Get_Directories): Ensure that the Display_Exec_Directory is using the
10910         proper casing on non case-sensitive platforms like Windows.
10911         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
10912         on all platforms, as it is not possible to know which one is allowed
10913         before processing the project files.
10914         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
10915         specified when symbol policy is Direct. Check that when there is a
10916         symbol file defined (either by default or with attribute
10917         Library_Symbol_File) it is not the same as the reference symbol file.
10918         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
10919         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
10920         extending projects.
10921         (Record_Ada_Source): Record a source that has been locally removed in an
10922         imported project.
10924         * symbols.ads (Policy): New policy Direct
10926         * symbols-vms.adb (Initialize): Take new policy Direct in case
10927         statement
10929 2007-06-06  Vincent Celier  <celier@adacore.com>
10931         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
10932         Correct obvious bug (return Dir; instead of return Directory;).
10933         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
10935 2007-06-06  Thomas Quinot  <quinot@adacore.com>
10937         * g-pehage.adb (Produce): Open output files in Binary mode, so that
10938         they have UNIX line endings (LF only) even on Windows, and thus pass
10939         all GNAT style checks.
10941 2007-06-06  Emmanuel Briot  <briot@adacore.com>
10943         * g-regpat.adb (Quote): Fix improper quoting of '.'
10945 2007-06-06  Thomas Quinot  <quinot@adacore.com>
10947         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
10948         default, set False on a per-runtime basis.
10949         (Need_Netdb_Buffer): New constant.
10951         * g-socket.ads, g-socket.adb: Import new package
10952         GNAT.Sockets.Thin.Task_Safe_NetDB.
10953         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
10954         binding to obtain proper message.
10955         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
10956         Replace various occurrences of Arry (Arry'First)'Address with the
10957         equivalent Arry'Address (GNAT always follows implementation advice from
10958         13.3(14)).
10959         (Get_Host_By_Address, Get_Host_By_Name,
10960         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
10961         instead, rely on platform-specific task safe netdb operations provided
10962         by g-socthi.
10964         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
10965         parameter Process_Blocking_IO.
10966         (Host_Error_Messages): Add stub body.
10967         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10968         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
10969         Safe_Getservbyport): Move functions into new child package
10970         Task_Safe_NetDB.
10971         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
10972         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
10973         (In_Addr): Add alignment clause.
10975 2007-06-06  Robert Dewar  <dewar@adacore.com>
10977         * g-trasym.ads, g-traceb.ads: Update list of supported targets
10978         Add note about symbolic traceback
10980 2007-06-06  Pascal Obry  <obry@adacore.com>
10982         * hostparm.ads (Normalized_CWD): Use the host directory separator
10983         instead of the hardcoded forward slash which is not the proper
10984         character on Windows for example.
10985         (Java_VM): Removed.
10987 2007-06-06  Vincent Celier  <celier@adacore.com>
10988             Arnaud Charlet  <charlet@adacore.com>
10990         * a-clrefi.adb, a-clrefi.ads: New files
10992         * impunit.adb: Add s-os_lib in the list of user visible units.
10993         (Non_Imp_File_Names_95): Add a-clrefi to this list
10994         Remove obsolete run-time entries.
10995         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
10996          "a-exetim" -- Ada.Execution_Time
10997          "a-extiti" -- Ada.Execution_Time.Timers
10999         * mlib-prj.ads, mlib-prj.adb
11000         (Build_Library): Use untouched object dir and library dir. At the
11001         same time makes sure that the checks are done using the canonical
11002         form. Removes hard-coded directory separator and use the proper host
11003         one instead.
11004         (Process_Project): Do not look in object directory to check if libgnarl
11005         is needed for a library, if there is no object directory.
11006         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
11007         linking.
11008         (Build_Library): When invoking gnatbind, use a response file if the
11009         total size of the arguments is too large.
11011         * Makefile.rtl: (g-sttsne): New object file.
11012         Add entry for a-clrefi, s-utf_32, System.Exceptions
11014         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
11015         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
11016         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
11017         Change g-string to s-string, g-os_lib to s-os_lib
11018         Change all g-utf_32 references to s-utf_32
11020 2007-06-06  Tristan Gingold  <gingold@adacore.com>
11021             Olivier Hainque  <hainque@adacore.com>
11023         * init.c: Do not adjust IP of an imported VMS exception of ia64.
11024         LIB$STOP is called to raise an exception and the IP of the exception
11025         is the instruction right after the call.
11026         (__gnat_adjust_context_for_raise, AIX): Implement.
11027         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
11028          adjust_context_for_raise before Raise_From_Signal_Hanler.
11029         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
11030         siginfo is passed to the handler, necessary to let the zcx propagation
11031         engine unwind past it.
11033 2007-06-06  Olivier Hainque  <hainque@adacore.com>
11035         * initialize.c (__gnat_initialize for vxworks):  Update documentation
11036         on the ZCX support, using different sets of crtstuff objects than with
11037         GCC 3.4.
11039 2007-06-06  Robert Dewar  <dewar@adacore.com>
11041         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
11042         spec from body
11043         (Layout_Type): Fix recomputation of size from alignment.
11045 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11046             Javier Miranda  <miranda@adacore.com>
11048         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
11049         association in an instance.
11050         (Copy_Generic_Node): If the node is a string literal, no need to copy
11051         its descendants.
11052         (Is_Generic_Formal): For a formal subprogram, the declaration is the
11053         grandparent of the entity.
11054         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
11055         to simplify handling of formal interfaces that derive from other formal
11056         interfaces.
11057         (Instantiate_Subprogram_Body): The defining unit name of the body of
11058         the instance should be a defining identifier.
11059         (Install_Formal_Packages): make global to the package, for use in
11060         instantiations of child units.
11061         (Analyze_Package_Instantiation): Do not attempt to set information on an
11062         enclosing master of an entry when expansion is disabled.
11063         (Instantiate_Type): If the actual is a tagged synchronized type and the
11064         generic ancestor is an interface, create a generic actual for the
11065         corresponding record.
11066         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
11067         declaration, to ensure that the interface list is processed correctly.
11068         (Inline_Instance_Body): If enclosing scope is an instance body, remove
11069         its entities from visibiility as well.
11070         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
11071         given with a named association, analyze the expression only, not the
11072         discriminant association itself.
11073         (Reset_Entity): If the analysis of a selected component is transformed
11074         into an expanded name in the prefix of a call with parameters, do not
11075         transform the original node into an expanded name, to prevent visibility
11076         errors in the case of nested generics.
11077         (Check_Private_View): For an array type, check whether the index types
11078         may need exchanging.
11080 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11081             Vincent Celier  <celier@adacore.com>
11083         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
11084         since both are separated.
11085         Add support for imported CIL packages.
11086         Add further special handling of "value_type" for CIL.
11087         Add special handling of pragma Import for CIL.
11089         * make.ads, make.adb: When switch -eS is used, direct all outputs to
11090         standard output instead of standard error, except errors.
11091         (Absolute_Path): Use untouched casing for the parent directory.
11092         (Add_Library_Search_Dir): Use the untouched directory name.
11093         (Add_Source_Search_Dir): Idem.
11094         (Change_To_Object_Directory): Update output to use proper casing.
11095         (Create_Binder_Mapping_File): Use the untouched filename to set
11096         ALI_Name.
11097         (Gnatmake): Use untouched library and executable directory names.
11098         (Insert_Project_Sources): Use untouched filename for spec and body.
11099         (Is_In_Object_Directory): Use untouched object directory.
11100         (Mark_Directory): Idem.
11101         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
11102         contains the non-canonical filename in all cases.
11103         (Change_To_Object_Directory): In verbose mode, display the name of the
11104         object directory we're changing to.
11105         (Compile_Sources): Make sure, when a project file is used, to compile
11106         the body of the unit, when there is one, even when only the spec is
11107         recorded in an ALI file.
11108         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
11109         spec to the body.
11110         (Report_Compilation_Failed): New procedure
11111         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
11112         procedures moved from the spec to the body.
11113         (Extract_Failure): Removed, not used
11114         Replace explicit raises of exception Bind_Failed and Link_Failed with
11115         calls to Make_Failed with the proper message.
11116         Replace explicit raises of exception Compilation_Failed with calls to
11117         procedure Report_Compilation_Failed.
11118         (Initialize): Create mapping files unconditionally when using project
11119         files.
11121         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11122         Pragma_CIL_Constructor): New names.
11124         * targparm.ads, targparm.adb
11125         (Compiler_System_Version): Removed, no longer used.
11126         (Get_Target_Parameters): Relax checks on system.ads validity. Add
11127         handling of two new system flags: JVM and CLI.
11129 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
11130             Arnaud Charlet  <charlet@adacore.com>
11132         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
11133         time, use the default s-interr body that provides interrupt support
11134         based on signals.
11135         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
11136         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
11137         g-soccon.ads, and s-taprop.adb for the marte run time.
11138         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
11139         timers are supported on marte.
11140         (EH_MECHANISM for marte): Do not use ZCX.
11141         (THREADSLIB for marte): Use -lmarte.
11142         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
11143         Add mlib-tgt-specific.o to gnatmake objects
11144         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
11145         longer of MLib.Tgt.
11146         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
11147         6, either kernel or rtp, use a specialized version of s-osinte.ads.
11149 2007-06-06  Pascal Obry  <obry@adacore.com>
11151         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
11153 2007-06-06  Vincent Celier  <celier@adacore.com>
11155         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
11156         separator, use instead the proper host directory separator.
11157         (Copy_ALI_Files): Make sure that an already existing ALI file in the
11158         ALI copy dir is writable, before doing the copy.
11160         * mlib-utl.ads, mlib-utl.adb: 
11161         (Gcc): If length of command line is too long, put the list of object
11162         files in a response file, if this is supported by the platform.
11163         (Ar): If invocation of the archive builder is allowed to be done in
11164         chunks and building it in one shot would go above an OS dependent
11165         limit on the number of characters on the command line, build the archive
11166         in chunks.
11168 2007-06-06  Vincent Celier  <celier@adacore.com>
11170         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
11171         of specified object file is not equal to base name of source.
11173 2007-06-06  Javier Miranda  <miranda@adacore.com>
11174             Hristian Kirtchev  <kirtchev@adacore.com>
11175             Ed Schonberg  <schonberg@adacore.com>
11177         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
11178         the full type declaration.
11179         (Analyze_Component_Declaration): Add local variable E to capture the
11180         initialization expression of the declaration. Replace the occurences of
11181         Expression (N) with E.
11182         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
11183         limited interface object with a function call.
11184         (Array_Type_Declaration): If the declaration lacks subtype marks for
11185         indices, create a simple index list to prevent cascaded errors.
11186         (Is_Null_Extension): Ignore internal components created for secondary
11187         tags when checking whether a record extension is a null extension.
11188         (Check_Abstract_Interfaces): Add missing support for interface subtypes
11189         and generic formals.
11190         (Derived_Type_Declaration): Add missing support for interface subtypes
11191         and generic formals.
11192         (Analyze_Object_Declaration): If an initialization expression is
11193         present, traverse its subtree and mark all allocators as static
11194         coextensions.
11195         (Add_Interface_Tag_Component): When looking for components that may be
11196         secondary tags, ignore pragmas that can appear within a record
11197         declaration.
11198         (Check_Abstract_Overriding): an inherited function that dispatches on
11199         result does not need to be overriden if the controlling type is a null
11200         extension.
11201         (Mentions_T): Handle properly a 'class attribute in an anonymous access
11202         component declaration, when the prefix is an expanded name.
11203         (Inherit_Component): If the derivation is for a private extension,
11204         inherited components remain visible and their ekind should not be set
11205         to Void.
11206         (Find_Type_Of_Object): In the case of an access definition, always set
11207         Is_Local_Anonymous_Access. We were previously not marking the anonymous
11208         access type of a return object as a local anonymous type.
11209         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
11210         range with character literal bounds.
11211         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
11212         (Access_Subprogram_Declaration): Indicate that the type declaration
11213         depends on an incomplete type only if the incomplete type is declared
11214         in an open scope.
11215         (Analyze_Subtype_Declaration): Handle properly subtypes of
11216         synchronized types that are tagged, and that may appear as generic
11217         actuals.
11218         (Access_Subprogram_Declaration): An anonymous access to subprogram can
11219         appear as an access discriminant in a private type declaration.
11220         (Add_Interface_Tag_Components): Complete decoration of the component
11221         containing the tag of a secondary dispatch table and the component
11222         containing the offset to the base of the object (this latter component
11223         is only generated when the parent type has discriminants --as documented
11224         in this routine).
11225         (Inherit_Components): Use the new decoration of the tag components to
11226         improve the condition that avoids inheriting the components associated
11227         with secondary tags of the parent.
11228         (Build_Discriminanted_Subtype): Indicate to the backend that the
11229         size of record types associated with dispatch tables is known at
11230         compile time.
11231         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
11232         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
11233         to include task, protected, and synchronized interfaces as limited
11234         interfaces.
11235         (Process_Discriminants): Remove the setting of
11236         Is_Local_Anonymous_Access on the type of (anonymous) access
11237         discriminants of nonlimited types.
11238         (Analyze_Interface_Type_Declaration): Complete the decoration of the
11239         class-wide entity it is is already present. This situation occurs if
11240         the limited-view has been previously built.
11241         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
11242         field.
11243         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
11244         Related_Interface.
11246 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11248         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
11249         of the type that specify the position of interface tags when the type
11250         inherits discriminated array components from the parent type.
11251         If a component is initialized with a box, check for the presence of a
11252         default expression in its declaration before using its default
11253         initialization procedure.
11254         (Resolve_Record_Aggregate): If a component is box-initialized, and the
11255         component type has a discriminants, create a partial aggregate for it
11256         by copying the discriminants of the component subtype.
11257         Reject attempt to initialize a discriminant with a box.
11258         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
11259         associated with dispatch tables is known at compile time.
11260         (Get_Value): If an association in a record aggregate has a box
11261         association, and the corresponding record component has a default
11262         expression, always copy the default expression, even when the
11263         association has a single choice, in order to create a proper
11264         association for the expanded aggregate.
11266 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11267             Robert Dewar  <dewar@adacore.com>
11269         * par-ch12.adb (P_Generic_Associations): The source position of an
11270         Others association is that of the others keyword, not that of the token
11271         that follows the box.
11272         (P_Formal_Type_Definition): Handle formal access types that carry a
11273         not null indicator.
11275         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
11276         multiple identifier are present, save Scan_State before scanning the
11277         colon, to ensure that separate trees are constructed for each
11278         declaration.
11279         (P_Identifier_Declarations): For object declaration, set new flag
11280         Has_Init_Expression if initialization expression present.
11281         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
11282         Improve NOT NULL error messages
11284 2007-06-06  Robert Dewar  <dewar@adacore.com>
11286         * par-ch4.adb: (P_Name): Recover from literal used as name
11288 2007-06-06  Vincent Celier  <celier@adacore.com>
11290         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
11291         defaulted to False.
11292         In the "not" case, recursive call with Complemented set to True.
11293         Do not allow "or" or "and" operators when Complemented is True.
11295 2007-06-06  Vincent Celier  <celier@adacore.com>
11297         * prj.adb (Project_Empty): Gives default value for new component
11298         Libgnarl_Needed
11300         * prj-attr.ads: Minor reformatting
11302         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
11303         directory using the untouched casing.
11304         (For_All_Source_Dirs): Idem.
11306         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
11307         directories specified with switches -aP.
11308         (Add_Search_Project_Directory): New procedure
11309         (Initialize_Project_Path): Put the directories in table
11310         Search_Directories in the project search path.
11311         (Initialize_Project_Path): For VMS, transform into canonical form the
11312         project path.
11314 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11316         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
11317         true if configurable run-time or No_Run_Time is set.
11318         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
11319         processing an unit which is not the one being compiled.
11321 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11323         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
11324         Replace UC by Ada.UC
11326         * s-bitops.adb: Get rid of System.Pure_Exceptions.
11327         Replace UC by Ada.UC
11329 2007-06-06  Robert Dewar  <dewar@adacore.com>
11331         * scng.adb: (Check_End_Of_Line): Deal with very long lines
11333 2007-06-06  Robert Dewar  <dewar@adacore.com>
11335         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
11336         Remove no longer used nodes.
11338 2007-06-06  Javier Miranda  <miranda@adacore.com>
11339             Ed Schonberg  <schonberg@adacore.com>
11340             Robert Dewar  <dewar@adacore.com>
11342         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
11343         on obsolescent withed unit in case of limited-withed units.
11344         (Analyze_Compilation_Unit): Add guard to code that removed an
11345         instantiation from visibility, to prevent compiler aborts when
11346         instantiation is abandoned early on.
11347         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
11348         current unit being analyzed, and Distinguish local incomplete types
11349         from limited views of types declared elsewhere.
11350         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
11351         to state that the class-wide entity is shared by the limited-view
11352         and the full-view.
11353         (Analyze_With_Clause): Improve placement of flag for case of
11354         unimplemented unit.
11355         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
11356         manner similar to GNAT.Current_Exception. This is a violation of
11357         restriction (No_Exception_Propagation), and also inhibits the
11358         optimization of local raise to goto.
11359         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
11360         and if so set Most_Recent_Exception_Used flag in Opt, and also check
11361         for violation of restriction No_Exception_Propagation.
11363 2007-06-06  Javier Miranda  <miranda@adacore.com>
11364             Hristian Kirtchev  <kirtchev@adacore.com>
11365             Gary Dismukes  <dismukes@adacore.com>
11367         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
11368         use of entity Exception_Occurrence if it is not available in the
11369         target run-time.
11371         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
11372         concurrent types are declared within an Ada 2005 generic, build their
11373         corresponding record types since they are needed for overriding-related
11374         semantic checks.
11375         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
11376         protected type does not implement a task interface or a nonlimited
11377         interface.
11378         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
11379         type does not implement a protected interface or a nonlimited interface.
11380         (Single_Task_Declaration, Single_Protected_Declaration): use original
11381         entity for variable declaration, to ensure that debugging information
11382         is correcty generated.
11383         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
11384         routines if the expander is not active.
11385         (Analyze_Task_Body): Mark all handlers to stop optimization of local
11386         raise, since special things happen for task exception handlers.
11388         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
11389         concurrent types declared within a generic.
11390         (Check_Dispatching_Operation): Do not emit warning about late interface
11391         operations in the context of an instance.
11392         (Check_Dispatching_Call): Remove restriction against calling a
11393         dispatching operation with a limited controlling result.
11394         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
11395         Register_Interface_DT_Entry by calls to Register_Primitive.
11396         (Check_Dispatching_Formals): Handle properly a function with a
11397         controlling access result.
11399 2007-06-06  Robert Dewar  <dewar@adacore.com>
11400             Arnaud Charlet  <charlet@adacore.com>
11402         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
11403         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
11404         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
11405         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
11406         message when using a VM, since this attribute is not supported.
11407         (Analyze_Record_Representation_Clause): Give unrepped component warnings
11409         * usage.adb: Add new warning for renaming of function return objects
11410         Indicate that -gnatwp and -gnatwP concern front-end inlining
11411         Add line for -gnatyg
11412         Add usage information for -gnatw.c/C
11414 2007-06-06  Robert Dewar  <dewar@adacore.com>
11415             Ed Schonberg  <schonberg@adacore.com>
11417         * sem_ch5.adb
11418         (Find_Var): Do not consider function call in test for infinite loop
11419         warning if warnings set off for function entity.
11420         (One_Bound): Do not create a temporary for a loop bound if it is a
11421         character literal.
11422         (Analyze_Assignment): Traverse the right hand side of an assignment and
11423         mark all allocators as static coextensions.
11424         (Analyze_Assignment): Exempt assignments involving a dispatching call
11425         to a function with a controlling access result from the check requiring
11426         the target to be class-wide.
11428 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11429             Ed Schonberg  <schonberg@adacore.com>
11430             Robert Dewar  <dewar@adacore.com>
11431             Javier Miranda  <miranda@adacore.com>
11433         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
11434         chain of coextensions when an allocator serves as the root of such a
11435         chain.
11436         (Propagate_Coextensions): Remove the test for the root being an
11437         allocator.
11438         (Resolve_Allocator): Add condition to ensure that all future decoration
11439         occurs on an allocator node. Add processing and cleanup for static
11440         coextensions.
11441         (Valid_Conversion): If the operand type is the limited view of a
11442         class-wide type, use the non-limited view is available to determine
11443         legality of operation.
11444         (Ambiguous_Character): move to spec, for use elsewhere.
11445         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
11446         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
11447         character literals.
11448         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
11449         Do_Division_Check flag explicitly.
11450         (Resolve_Actuals): If the actual is of a synchronized type, and the
11451         formal is of the corresponding record type, this is a call to a
11452         primitive operation of the type, that is declared outside of the type;
11453         the actual must be unchecked-converted to the type of the actual
11454         (Resolve_Call): Kill all current values for any subprogram call if
11455         flag Suppress_Value_Tracking_On_Call is set.
11456         (Resolve_Type_Conversion): Generate error message the the operand
11457         or target of interface conversions come from a limited view.
11458         (Check_Infinite_Recursion): Ignore generated calls
11459         (Check_Allocator_Discrim_Accessibility): New procedure for checking
11460         that an expression that constrains an access discriminant in an
11461         allocator does not denote an object with a deeper level than the
11462         allocator's access type.
11463         (Resolve_Allocator): In the case of an allocator initialized by an
11464         aggregate of a discriminated type, check that associations for any
11465         access discriminants satisfy accessibility requirements by calling
11466         Check_Allocator_Discrim_Accessibility.
11467         (Resolve_Equality_Op): Handle comparisons of anonymous access to
11468         subprogram types in the same fashion as other anonymous access types.
11469         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
11470         message that is not a continuation message.
11471         (Resolve_Type_Conversion): Add missing support for conversion to
11472         interface type.
11473         (Resolve_Actuals): Introduce a transient scope around the call if an
11474         actual is a call to a function returning a limited type, because the
11475         resulting value must be finalized after the call.
11476         (Resolve_Actuals): If the call was given in prefix notations, check
11477         whether an implicit 'Access reference or implicit dereference must be
11478         added to make the actual conform to the controlling formal.
11480 2007-06-06  Robert Dewar  <dewar@adacore.com>
11481             Javier Miranda  <miranda@adacore.com>
11483         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
11484         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
11485         overriding of an inherited private subprogram now there is no need to
11486         inherit its dispatching slot and reduce the size of the dispatch table.
11487         Set_All_DT_Position now ensures that the same slot is now assigned to
11488         both entities. This is required to statically build the dispatch table.
11489         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
11490         of calling Set_All_DT_Position to re-evaluate the position of the
11491         entries in the dispatch table. Such reevaluation is not desired if
11492         the tagged type is already frozen.
11494 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11495             Gary Dismukes  <dismukes@adacore.com>
11496             Robert Dewar  <dewar@adacore.com>
11497             Javier Miranda  <miranda@adacore.com>
11499         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
11500         reference acts as an lvalue when the attribute name modifies the prefix
11501         (Is_Coextension_Root): New routine.
11502         (Mark_Static_Coextensions): New routine.
11503         (Type_Access_Level): Revise code for checking the level of the
11504         anonymous access type of a return object.
11505         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
11506         (Matches_Prefixed_View_Profile): Remove the no longer necessary
11507         retrieval of the corresponding controlling record type.
11508         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
11509         concurrent types declared within a generic as well as class wide types.
11510         Emit a mode incompatibility error whenever a protected entry or routine
11511         override an interface routine whose first parameter is not of mode
11512         "out", "in out" or access to variable.
11513         (Overrides_Synchronized_Primitive): Rename to
11514         Find_Overridden_Synchronized_Primitive.
11515         (Collect_Interface_Components): New subprogram that collects all the
11516         components of a tagged record containing tags of secondary dispatch
11517         tables.
11518         (Add_Global_Declaration): New procedure
11519         (Abstract_Interface_List): Handle properly the case of a subtype of a
11520         private extension.
11521         (Type_Access_Level): In the case of a type whose parent scope is a
11522         return statement, call Type_Access_Level recursively on the enclosing
11523         function's result type to determine the level of the return object's
11524         type.
11525         (Build_Elaboration_Entity): Build name of elaboration entity from the
11526         scope chain of the entity, rather than the unit name of the file name.
11527         (Check_Nested_Access): New procedure.
11528         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
11529         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11530         (Get_Renamed_Entity): Utility routine for performing common operation
11531         of chasing the Renamed_Entity field of an entity.
11533 2007-06-06  Robert Dewar  <dewar@adacore.com>
11535         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
11536         elaboration model
11537         (Check_A_Call): Add check for entry call which was causing blowup
11539 2007-06-06  Olivier Hainque  <hainque@adacore.com>
11541         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
11542         special code on ia64-vms to handle major incompatibilities between the
11543         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
11544         this routine with a very different set of arguments and expectations on
11545         the return value.
11547 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11549         * socket.c (__gnat_close_signalling_fd): New function.
11550         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
11551         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
11552         New supporting functions for task safe Netdb operations.
11554 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11555             Olivier Hainque  <hainque@adacore.com>
11557         * a-except-2005.ads, a-except-2005.adb
11558         (Raise_From_Controlled_Operation): New procedure in
11559         (private part of) Ada.Exceptions (standard runtime version). Used to
11560         provide informational exception message when Program_Error is raised as
11561         a result of an Adjust or Finalize operation propagating an exception.
11562         (Rmsg_28): Fix description for E.4(18) check.
11563         (Raise_Current_Excep): Call Debug_Raise_Exception just before
11564         propagation starts, to let debuggers know about the event in a reliable
11565         fashion.
11566         Take the address of E and dereference to make sure it is homed on stack
11567         and prevent the stores from being deleted, necessary for proper
11568         debugger behavior on "break exception" hits.
11569         (Local_Raise): Moved to System.Exceptions
11571         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
11572         exception message from the current occurrence and raise Program_Error
11573         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
11575 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
11576             Arnaud Charlet  <charlet@adacore.com>
11578         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
11579         lock, if needed.
11581         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
11582         priority associated to a lock.
11584         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
11585         assertion to take into account case of no abort restriction.
11586         (Initialize_Protection_Entries): Add initialization for the field
11587         New_Ceiling associated to the protected object.
11588         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
11589         needed.
11591         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11592         since this function needs to be set consistently with Update_Exception.
11594         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11595         since this function needs to be set consistently with Update_Exception.
11597         * s-taskin.ads: Update comments on
11598         Interrupt_Server_Blocked_On_Event_Flag.
11599         (Unbind_Handler): Fix handling of server_task wakeup
11600         (Server_Task): Set self's state so that Unbind_Handler can take
11601         appropriate actions.
11602         (Common_ATCB): Now use a constant from System.Parameters to determine
11603         the max size of the Task_Image field.
11605         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
11606         Initialize_Analyzer function.
11607         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
11608         take into account case of no abort restriction.
11609         ([Vulnerable_]Complete_Master): Modify assertion.
11611         * s-tataat.adb (Finalize): Use the nestable versions of
11612         Defer/Undefer_Abort.
11614         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
11616         * s-tpobop.ads: Update comments.
11618         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
11619         of locking the object manually, to avoid inconsistencies between
11620         Lock/Unlock_Entry assertions.
11622         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
11623         terminating
11624         application and System.Parameters.No_Abort is True.
11625         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
11626         (Unbind_Handler): Fix handling of server_task wakeup
11627         (Server_Task): Set self's state so that Unbind_Handler can take
11628         appropriate actions.
11630 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11632         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
11633         declarations instead of an explicit null body, for conciseness.
11635 2007-06-06  Robert Dewar  <dewar@adacore.com>
11637         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
11638         illegal aggregate and the type is still Any_Composite.
11639         (Subtypes_Statically_Match): Fix problem of empty discriminant list
11641 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11643         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
11644         to prevent subsequent expansion.
11646 2007-06-06  Robert Dewar  <dewar@adacore.com>
11648         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
11650 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11651             Robert Dewar  <dewar@adacore.com>
11653         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
11654         exceptions.
11655         (Write_Itype): Handle case of string literal subtype, which
11656         comes up in this context.
11657         (Update_Itype): when debugging expanded code, update sloc of itypes
11658         associated with defining_identifiers and ranges, for gdb use.
11659         (Sprint_Node_Actual): Add static keyword to object or exception
11660         declaration output if Is_Statically_Allocated is True.
11661         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
11662         or task body, so that the tree carries the proper Sloc information for
11663         debugging use.
11664         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
11666 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11668         * s-secsta.adb (Chunk): Ensure this object has a static size known at
11669         compile time, to avoid dynamic memory allocation
11670         (Elaboration code): Only use dynamic memory allocation when needed.
11672 2007-06-06  Quentin Ochem  <ochem@adacore.com>
11674         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
11675         "Overflow_Guard".
11676         (Stack_Analyzer): Added field "Overflow_Guard"
11677         (Task_Result): Added field "Overflow_Guard".
11678         (Index_Str): New constant.
11679         (Task_Name_Str): New constant.
11680         (Actual_Size_Str): New constant.
11681         (Pattern_Array_Element_Size): New constant.
11682         (Get_Usage_Range): New subprogram.
11683         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
11684         Now align the output.
11685         Added comments.
11686         (Initialize): Added value for Overflow_Guard.
11687         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
11688         Update the value of the overflow guard according to the actual
11689         beginning of the pattern array.
11690         (Initialize_Analyzer): Added parameter Overflow_Guard.
11691         Take this parameter into accound when computing the max size.
11692         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
11693         (Report_Result): Removed extra useless procedure.
11694         Updated call to Output_Result.
11695         Moved full computation of the Task_Result here.
11697 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11699         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
11700         Thread_Blocking_IO, always True by default, set False on a per-runtime
11701         basis.
11702         Add Windows-specific constants
11703         Add new constant Need_Netdb_Buffer.
11704         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11705         not, whether to use getXXXbyYYY_r.
11707         * gsocket.h: Add new constant Need_Netdb_Buffer.
11708         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11709         not, whether to use getXXXbyYYY_r.
11711 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
11713         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
11714         than their first call.
11715         Add type Dummy_Communication_Block used in the generation of the pre-
11716         defined dispatching primitive _disp_asynchronous_select.
11717         (Storage_Element): Put Pragma Universal_Aliasing on it.
11719 2007-06-06  Vincent Celier  <celier@adacore.com>
11721         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
11722         function.
11724         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
11725         letter if it is not followed by a '/' or a '\'.
11726         (Windows): New Boolean function
11728         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
11729         Ada 2005.
11730         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
11731         drive letter.
11732         (Containing_Directory): Raise Use_Error when the directory is a root
11733         directory.
11734         (Extension): When returning the result, use a conversion to Result_Type,
11735         not a qualification.
11737 2007-06-06  Robert Dewar  <dewar@adacore.com>
11739         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
11740         (Set_Style_Check_Options): Recognize new -gnatyg style switch
11742         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
11743         Warn_On_Non_Local_Exception to False, to turn off warnings for
11744         No_Exception_Propagation in ZFP runtime.
11745         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
11746         back-ends.
11747         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
11749 2007-06-06  Vincent Celier  <celier@adacore.com>
11751         * switch-b.adb (Scan_Binder_Switches): Add processing for new
11752         switches -R and -Z
11754         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
11755         (Scan_Make_Switches): Recognize new switch -aP
11757 2007-06-06  Matthew Gingell  <gingell@adacore.com>
11758             Jose Ruiz  <ruiz@adacore.com>
11760         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
11761         VxWorks task descriptor in the Ada run time, call a C subprogram
11762         (__gnat_get_stack_info) that extracts the required information.
11764         * sysdep.c: Back out temporary lynxos workaround.
11765         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
11766         time the stack information associated to the currently executing task.
11767         Only VxWorks systems require this function.
11769 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
11771         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
11772         add the stack bias if the offset is computed from a frame address.
11773         (__gnat_backtrace): Adjust for above change.
11775 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11777         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
11778         PE_Non_Transportable_Actual.
11779         (By_Descriptor_Last): New constant.
11780         (By_Copy_Return): Likewise.
11782 2007-06-06  Vincent Celier  <celier@adacore.com>
11784         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
11785         is.
11787         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
11788         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
11789         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
11790         Add missing comment for /OPTIMIZE=SPACE
11791         Add entry for OPTIMIZE=SPACE
11792         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
11793         Add documentation for new qualifiers corresponding to -gnatw.c/.C
11795 2007-06-06  Vincent Celier  <celier@adacore.com>
11796             Robert Dewar  <dewar@adacore.com>
11798         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
11799         -gnatw.C)
11801         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
11802         Document gnatbind switch -a
11803         (case Constructions): Document that variables declarations are allowed
11804         for previously declared variables.
11805         Fix external lib project example
11806         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
11807         Indicate that "#if not X or Y then" is not allowed in input files to
11808         gnatprep.
11809         Document gnatw.x and gnatw.X warning flags
11810         Mention -Winline switch to activate warnings when back-end inlining is
11811         ineffective.
11812         Add gnatcheck rule descriptions
11813         Describe how to use the GNAT driver to call a tool on a closure.
11814         Describe how to run project-wide checks or metrics.
11815         Document gnatbind's -R option
11816         Updated to account for Ada 2005 support
11818         * gnat_rm.texi (Case Construction): Allow variable declarations for
11819         previously declared variables.
11820         (Representation Clauses and Pragmas): Lift restriction on alignment
11821         clauses for record types.
11822         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
11823         Document No_Exception_Propagation restriction
11824         Document No_Body pragma
11825         Updated to account for Ada 2005 support; corrected some typos
11826         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
11828         * gnat-style.texi: Make it clear that we never use mode IN for
11829         procedures or functions
11831         * ug_words: Add entries for -gnatw.x and -gnatw.X
11832         Add entries for -gnatw.c/.C
11834 2007-06-06  Pascal Obry  <obry@adacore.com>
11835             Vincent Celier  <celier@adacore.com>
11837         * makegpr.adb (Add_Archive_Path): Use untouched object and library
11838         dirs and library name.
11839         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
11840         comments.
11841         (Build_Library): Idem.
11842         (Compile_Individual_Sources): Idem.
11843         (Compile_Link_With_Gnatmake): Idem.
11844         (Compile_Sources): Idem.
11845         (Get_Imported_Directories): Idem.
11846         (Link_Executables): Idem. Same change for the executable dir.
11847         (Check_Compilation_Needed): C_Source_Path new variable containing
11848         the canonical form of Source_Path to check against the source names
11849         in the dependency file.
11850         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
11851         verbose mode, display the name of the object directory we're changing
11852         to.
11853         (Saved_Switches): New name of table X_Switches
11854         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
11855         (Usage): New line for switch -aP
11856         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
11857         testing if a directory should be added to the search path.
11859 2007-06-06  Javier Miranda  <miranda@adacore.com>
11861         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
11862         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
11863         declaration after freezing point of all its associated tagged types;
11864         otherwise such types are frozen too early.
11866 2007-06-06  Robert Dewar  <dewar@adacore.com>
11868         * a-reatim.adb: Documentation addition
11870         * g-cgideb.adb: Minor code reorganization
11872         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
11873         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
11874         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
11876         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
11877         function.  Change name New_Scope to Push_Scope
11878         (Get_Debug_Flag_K): Remove unused obsolete function.
11880         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
11881         Push_Scope.
11883         * makeusg.adb: Update Copyright notice
11884         Add line for switch -aP
11886         * makeusg.adb: Fix wording of some usage messages
11888         * s-assert.adb (Raise_Assert_Failure): Add call to
11889         Debug_Raise_Assert_Failure.
11891         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
11892         (2, Standard'Alignment) for compatibility with AAMP (where alignment
11893         is restricted to 1).
11895         * s-wchjis.adb: Remove use of System.Pure_Exceptions
11897         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
11898         node location to No_Location when we're not debugging the expanded
11899         code.
11901 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
11903         * misc.c (enumerate_modes): Consider log2_b to always be one.
11905 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
11907         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
11909 2007-05-02  Pascal Obry  <obry@adacore.com>
11911         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
11912         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
11913         encoding support of Stream_IO.
11914         (Write_Unit): Idem.
11916         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
11917         filename and corresponding encoding to match the OS requirement.
11918         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
11919         routine will fail on specific devices like CON: AUX: ...
11921         PR ada/29856: Add missing braces
11923 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11925         PR ada/31660
11926         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
11928 2007-04-21  Jan Hubicka  <jh@suse.cz>
11930         * misc.c (gnat_expand_body): Don't call target for destructors,
11931         avoid redundant check on syntax errors.
11933 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11935         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
11936         instead of checking GIMPLE_STMT_P in chain_next.
11938 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
11940         PR ada/31576
11941         * system-linux-alpha.ads: Disable constant condition warning for the
11942         Default_Bit_Order variable.
11943         * system-linux-s390.ads: Likewise.
11944         * system-linux-s390x.ads: Likewise.
11945         * system-linux-sparc.ads: Likewise.
11947 2007-04-06  Javier Miranda  <miranda@adacore.com>
11948             Matt Heaney  <heaney@adacore.com>
11949             Robert Dewar  <dewar@adacore.com>
11951         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
11952         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
11953         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
11954         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
11955         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
11956         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
11957         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
11958         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
11959         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
11960         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
11961         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
11962         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
11963         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
11964         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
11965         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
11966         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
11967         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
11968         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
11969         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
11970         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
11971         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
11972         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
11973         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
11974         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
11975         s-taprop-tru64.adb, s-taprop-irix.adb,
11976         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
11977         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
11978         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
11979         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
11980         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
11981         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
11982         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
11983         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
11984         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
11985         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
11986         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
11987         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
11988         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
11989         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
11990         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
11991         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
11992         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
11993         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
11994         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
11995         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
11996         access types.
11997         Update documentation.
11998         Minor rewording.
12000 2007-04-06  Robert Dewar  <dewar@adacore.com>
12002         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12003         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
12004         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
12005         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
12006         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
12007         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
12008         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
12009         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
12010         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
12011         system-hpux-ia64.ads, targparm.adb,
12012         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
12014         * system.ads: Move Functions_Return_By_DSP to obsolete section,
12015         kept for bootstrap purposes only.
12017 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
12019         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12020         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
12021         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
12022         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
12024 2007-04-06  Robert Dewar  <dewar@adacore.com>
12026         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
12027         (Local_Raise): New dummy procedure called when a raise is converted
12028         to a local goto. Used for debugger to detect that the exception
12029         is raised.
12031         * debug.adb: Document new d.g flag (expand local raise statements to
12032         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
12034         * exp_sel.adb: Use Make_Implicit_Exception_Handler
12036         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
12037         suppress warnings for unused handlers.
12038         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
12039         warnings for raise statements not handled locally.
12040         (Get_RT_Exception_Entity): New function
12041         (Get_Local_Call_Entity): New function
12042         (Find_Local_Handler): New function
12043         (Warn_If_No_Propagation): New procedure
12044         (Expand_At_End_Handler): Call Make_Implicit_Handler
12045         (Expand_Exception_Handlers): Major additions to deal with local handlers
12046         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
12047         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
12048         for local raise
12050         * exp_ch11.ads (Get_RT_Exception_Entity): New function
12051         (Get_Local_Call_Entity): New function
12053         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
12054         of restrictions that the binder will never suggest adding.
12056         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
12057         to No_Elist.
12059         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
12060         be with'ed in the presence of pragma Restriction
12061         (No_Exception_Propagation).
12063         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
12065         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
12066         parameter, then the handler is not a suitable target for a local raise,
12067         and this is a violation of restriction No_Exception_Propagation.
12068         (Analyze_Handled_Statements): Analyze choice parameters in exception
12069         handlers before analyzing statement sequence (needed for proper
12070         detection of local raise statements).
12071         (Analyze_Raise_Statement): Reraise statement is a violation of the
12072         No_Exception_Propagation restriction.
12074         * s-rident.ads: Add new restriction No_Exception_Propagation
12076         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
12077         function, like Make_Exception_Handler but sets Local_Raise_Statements
12078         to No_List.
12079         (Add_Unique_Serial_Number): Deal with case where this is called during
12080         processing of configuration pragmas.
12082 2007-04-06  Thomas Quinot  <quinot@adacore.com>
12083             Pat Rogers  <rogers@adacore.com>
12084             Pascal Obry  <obry@adacore.com>
12086         * g-stsifd-sockets.adb: New file.
12088         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
12089         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
12090         g-socthi-vms.adb: Move signalling
12091         fd management to a nested package, so that they can conveniently be
12092         moved to a subunit that is shared across Windows, VMS, and VxWorks
12093         (Ada implementation) or completed with imported bodies from socket.c
12094         (UNIX case).
12095         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
12096         subprograms.
12097         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
12098         the signalling file descriptor.
12099         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
12100         signalling file descriptor.
12101         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
12102         instead of creating a pair of sockets for signalling here.
12104         * g-socthi.adb: Ditto.
12105         Set the runtime process to ignore SIGPIPEs on platforms that support
12106         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12108         * g-socthi-mingw.adb: Ditto.
12109         (WS_Version): Use Windows 2.2.
12110         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12112         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
12113         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12115         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
12116         added GNAT byte swapping facility
12117         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
12119         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
12121         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
12122         New subprograms.
12123         (__gnat_create_signalling_fds): New subprogram.
12124         Set the runtime process to ignore SIGPIPEs on platforms that support
12125         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12127 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
12128             Vincent Celier  <celier@adacore.com>
12130         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
12131         New version of Ada.Calendar which supports the new upper bound of Ada
12132         time (2399-12-31 86_399.999999999).
12133         The following modifications have been made to the package:
12134          - New representation of time as count of nanoseconds since the start of
12135            Ada time (1901-1-1 0.0).
12136          - Target independent Split and Time_Of routines which service both
12137            Ada 95 and Ada 2005 code.
12138          - Target independent interface to the Ada 2005 children of Calendar.
12139          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
12140          - Handling of non-leap centenial years.
12141          - Updated clock function.
12142          - Updated arithmetic and comparison operators.
12144         * a-caldel.adb (To_Duration): Add call to target independent routine in
12145         Ada.Calendar to handle the conversion of time to duration.
12147         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
12148         (UTC Offset).
12149         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
12150         set off to 0.
12151         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
12152         targets do not have a natural time zone, GMT is used as a default.
12153         (__gnat_get_task_options): New.
12155         * a-direct.adb (Modification_Time): Add with and use clauses for
12156         Ada.Calendar and Ada.
12157         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
12158         since it is no longer needed.
12159         (Duration_To_Time): Removed.
12160         (OS_Time_To_Long_Integer): Removed.
12161         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
12162         Formatting Time_Of routines which automatically handle time zones,
12163         buffer periods and leap seconds.
12165         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
12166         target independent routines in Ada.Calendar.
12168         * a-calfor.ads, a-calfor.adb: 
12169         Code cleanup and addition of validity checks in various routines.
12170         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
12171         Ada.Calendar.
12173         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
12174         independent routine in Ada.Calendar.
12176 2007-04-06  Olivier Hainque  <hainque@adacore.com>
12178         * adaint.c: 
12179         (convert_addresses): Adjust prototype and dummy definition to expect an
12180          extra file_name argument.
12182         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
12183         filling the now expected file_name argument with the appropriate
12184         argv[0] expansion.
12185         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
12186         (tracebk): Array of void * instead of char *, corresponding to what
12187          convert_addresses expects.
12188         (exename): New static global, to hold the executable file name to be
12189         used in all convert_addresses invocations.
12190         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
12191         change.
12192         (__gnat_gmem_a2l_initialize): Resolve exename.
12193         (__gnat_convert_addresses): Use exename as the convert_addresses
12194         file_name argument.
12196         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
12197         "convert_addresses", now expecting a filename argument. Import the
12198         necessary entities to compute the filename to use and pass it to
12199         convert_addresses.
12201 2007-04-06  Matt Gingell  <gingell@adacore.com>
12203         * system-aix.ads: Back out previous change.
12204         (Functions_Return_By_DSP): Removed
12206 2007-04-06  Pascal Obry  <obry@adacore.com>
12208         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
12209         or the monotonic used by Ada.Real_Time) to compute the sleep duration
12210         on Windows.
12212 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
12214         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
12215         function. Its value changes in different VxWorks versions, and it is
12216         now handled by the function __gnat_get_task_options.
12218         * s-taprop-vxworks.adb (Create_Task): Call the function
12219         __gnat_get_task_options to get the required options for creating a task.
12221 2007-04-06  Pascal Obry  <obry@adacore.com>
12222             Thomas Quinot  <quinot@adacore.com>
12224         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
12225         dealing with filename.
12226         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
12227         filename from a standard string to a wide-string depending on the
12228         encoding value.
12229         (__gnat_freopen): Idem.
12230         (__gnat_current_time): New function (wrapper for time(3) standard C
12231         function).
12233         * g-os_lib.ads (Current_Time): New function. Returns the current
12234         system time as an OS_Time value.
12236         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
12237         (Monotonic_Clock): Same.
12239 2007-04-06  Quentin Ochem  <ochem@adacore.com>
12241         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
12242         not on a natural.
12243         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
12245 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
12247         * a-retide.adb: Add elaboration code to ensure that the tasking run
12248         time is initialized when using delay operations even when no task is
12249         created.
12251 2007-04-06  Javier Miranda  <miranda@adacore.com>
12253         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
12254         component Num_Prim_Ops.
12255         (Set_Num_Prim_Ops): Removed.
12256         Remove all the assertions because all the routines of this
12257         package are inline always.
12258         (Get_Offset_Index): Add support to primary dispatch tables.
12259         Move the documentation about the dispatch table to a-tags.ads
12260         (Set_External_Tag): Removed
12261         (Inherit_TSD): Removed.
12262         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
12263         moved to a-tags.ads
12264         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
12265         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
12266         of the TSD field "Table" because this field has been renamed to
12267         "Ifaces_Table".
12268         (Inherit_CPP_DT): Removed.
12269         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
12270         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
12271         declarations have been moved to a-tags.ads
12272         (Check_Size): Removed.
12273         (Expanded_Name): Updated to get access to the new field of TSD
12274         containing the address of the expanded name.
12275         (Get_Access_Level/Set_Access_Level): Removed.
12276         (Get_Predefined_Prim_Op_Address): Removed.
12277         (Set_Predefined_Prim_Op_Address): Removed.
12278         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
12279         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
12280         (Set_Expanded_Name): Removed.
12281         (Inherit_DT): Removed.
12282         (Inherit_CPP_DT): Removed.
12283         (Set_RC_Offset): Removed.
12284         (Set_TSD): Removed.
12285         (Base_Address): New function that displaces "this" to point to the base
12286         of the object (that is, to point to the primary tag of the object).
12288 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12289             Javier Miranda  <miranda@adacore.com>
12291         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
12292         anonymous access component, do not create a master_id if type already
12293         has one, as may happen if the type is a subcomponent of a packed array
12294         type.
12295         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
12296         Initialize_Tag): Remove code associated with the old CPP pragmas.
12297         CPP_Virtual and CPP_Vtable are no longer supported.
12298         (Build_Offset_To_Top_Internal): Add support for concurrent record types
12299         (Build_Offset_To_Top_Functions): Add support for concurrent record types
12300         (Freeze_Record_Type): Remove call to
12301         Init_Predefined_Interface_Primitives.
12302         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
12303         code required to initialize the tags of the secondary dispatch tables.
12304         This leaves the algoritm more clear.
12305         (Init_Secondary_Tags): Add support for concurrent record types
12306         (Make_Predefined_Primitive_Specs): Code cleanup.
12307         (Predefined_Primitive_Bodies): Code cleanup.
12308         (Build_Master_Renaming): New local subprogram.
12309         (Expand_N_Full_Type_Declaration): Build the master_id associated with
12310         anonymous access to task type components.
12311         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
12312         subtype indication are resolved during analysis, and must not be done
12313         here.
12314         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
12316 2007-04-06  Geert Bosch  <bosch@adacore.com>
12317             Ed Schonberg  <schonberg@adacore.com>
12318             Javier Miranda  <miranda@adacore.com>
12319             Bob Duff  <duff@adacore.com>
12321         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
12322         for conversion of a Float_Type'Truncation to integer.
12324         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
12325         check if a node is an attribute that can be handled directly by the
12326         back end.
12327         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
12328         attributes that can be handled directly by the back end.
12329         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
12330         use new predicate Is_Access_Protected_Subprogram_Type.
12331         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
12332         and Unchecked_Union if it is generated as part of the default  Output
12333         procedure for a type with default discriminants.
12334         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
12335         if we are compiling under restriction No_Dispatching_Calls.
12336         (Constrained): Use Underlying_Type, in case the type is private without
12337         discriminants, but the full type has discriminants.
12338         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
12339         call to Build_Get_Access_Level.
12340         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
12341         interface objects requires a call to the run-time subprogram that
12342         returns the base address of the object.
12343         (Valid_Conversion): Improve error message on illegal attempt to store
12344         an anonymous access to subprogram value into a record component.
12346         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
12347         null".
12348         (Simplify_Type_Conversion): New procedure that performs simplification
12349         of Int_Type (Float_Type'Truncation (X)).
12350         (Resolve_Type_Conversion): Call above procedure after resolving operand
12351         and before performing checks. This replaces the existing ineffective
12352         code in Exp_Ch4.
12353         (Set_String_Literal_Subtype): When creating the internal static lower
12354         bound subtype for a string literal, use a newly created copy of the
12355         subtree representing the lower bound.
12356         (Resolve_Call): Exclude build-in-place function calls from transient
12357         scope treatment. Update comments to describe this exception.
12358         (Resolve_Equality_Op): In case of dispatching call check violation of
12359         restriction No_Dispatching_Calls.
12360         (Resolve_Call): If the call returns an array, the context imposes the
12361         component type of the array, and the function has one non-defaulted
12362         parameter, rewrite the call as the indexing of a call with a single
12363         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
12364         in prefix form.
12365         (Resolve_Actuals): If an actual is an allocator for an access parameter,
12366         the master of the created object is the innermost enclosing statement.
12367         (Remove_Conversions): For a binary operator, check if type of second
12368         formal is numeric, to check if an abstract interpretation is present
12369         in the case of exponentiation as well.
12371 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12372             Bob Duff  <duff@adacore.com>
12374         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
12375         copying a parameter list in a call, set properly the First_Named_Formal
12376         and Next_Named_Formal fields in the new list and in the enclosing call.
12377         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
12378         names, to ease typing in the debugger. Improve comments.
12379         (Watch_Node): New variable, intended to be set in the debugger.
12380         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
12381         called when the watched node is created.
12382         (New_Node_Debugging_Output): Combined version of local procedures
12383         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
12384         with a parameter so that conditional breakpoints like "if Node = 12345"
12385         work.
12386         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
12387         Add Elist1 function
12389 2007-04-06  Thomas Quinot  <quinot@adacore.com>
12390             Ed Schonberg  <schonberg@adacore.com>
12391             Gary Dismukes  <dismukes@adacore.com>
12393         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
12394         required for a conversion between two access-to-unconstrained-array
12395         types.
12396         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
12397         to discriminant constraints on discriminant objects. This rule must
12398         apply as well to discriminants of protected types in private components.
12399         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
12400         object of a null-excluding access type then don't require the
12401         the object declaration to have an expression and don't emit a
12402         run-time check.
12404 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
12405             Eric Botcazou  <botcazou@adacore.com>
12407         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
12408         and made constant.
12410         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
12411         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
12412         carry any.
12414         * fe.h (Compiler_Abort): Add third parameter.
12416         * misc.c (internal_error_function): Build third argument from current
12417         input location and pass it to Compiler_Abort.
12419 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
12421         * cstand.adb (Create_Standard): When the target's storage unit size is
12422         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
12423         Standard_String.
12425 2007-04-06  Nicolas Roche  <roche@adacore.com>
12427         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
12428         absolute path can have the following form: device:/a/b. In this case
12429         '/' should be inserted between the path and the filename.
12431 2007-04-06  Olivier Hainque  <hainque@adacore.com>
12432             Eric Botcazou  <botcazou@adacore.com>
12434         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
12435         VAR_DECL to a CONST_DECL we make for a public constant when we know the
12436         corresponding definition has created the so made visible variable.
12437         Handle anonymous access to protected subprogram.
12438         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
12439         object with an address clause volatile.  Re-enable original fix.
12440         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
12441         too.
12442         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
12443         associated with either the Equivalent or Root type, instead of the
12444         naked type node.
12445         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
12446         subtree for every field of a global record type.
12447         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
12448         discriminants, invoke again variable_size on its newly computed sizes.
12450 2007-04-06  Robert Dewar  <dewar@adacore.com>
12451             Thomas Quinot  <quinot@adacore.com>
12452             Ed Schonberg  <schonberg@adacore.com>
12453             Bob Duff  <duff@adacore.com>
12455         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
12456         (Next_Component_Or_Discriminant): New function and procedure
12457         (First_Index, First_Literal, Master_Id,
12458         Set_First_Index, Set_First_Literal, Set_Master_Id):
12459         Add missing Ekind assertions.
12460         (Is_Access_Protected_Subprogram_Type): New predicate.
12461         (Has_RACW): New entity flag, set on package entities to indicate that
12462         the package contains the declaration of a remote accecss-to-classwide
12463         type.
12464         (E_Return_Statement): This node type has the Finalization_Chain_Entity
12465         attribute, in case the result type has controlled parts.
12466         (Requires_Overriding): Add this new flag, because "requires
12467         overriding" is subtly different from "is abstract" (see AI-228).
12468         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
12469         Is_Abstract_Type. Make sure these are called only when appropriate.
12470         (Has_Pragma_Unreferenced_Objects): New flag
12472         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
12473         class-wide, the tag of the right-hand side must be an exact match, not
12474         an ancestor of that of the object on left-hand side.
12475         (Move_Activation_Chain): New procedure to create the call to
12476         System.Tasking.Stages.Move_Activation_Chain.
12477         (Expand_N_Extended_Return_Statement): Generate code to call
12478         System.Finalization_Implementation.Move_Final_List at the end of a
12479         return statement if the function's result type has controlled parts.
12480         Move asserts to Build_In_Place_Formal.
12481         (Move_Final_List): New function to create the call statement.
12482         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
12483         tagged type, replace generation of call to the run-time subprogram
12484         CW_Membership by call to Build_CW_Membership.
12485         (Expand_N_Return_Statement): Replace generation of call to the run-time
12486         subprogram Get_Access_Level by call to Build_Get_Access_Level.
12487         (Expand_N_Simple_Function_Return): Replace generation of call to the
12488         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
12490         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
12491         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
12492         access to protected operations.
12493         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
12494         master and chain actual parameters to a build-in-place function call
12495         involving tasks.
12496         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
12497         statement.
12498         (Make_Build_In_Place_Call_In_Allocator,
12499         Make_Build_In_Place_Call_In_Anonymous_Context,
12500         Make_Build_In_Place_Call_In_Assignment,
12501         Make_Build_In_Place_Call_In_Object_Declaration): Call
12502         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
12503         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
12504         stubbed procedure with a null body, replace the call with a null
12505         statement without using the full inlining machinery, for efficiency
12506         and to avoid invalid values in source file table entries.
12508         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
12509         renamings of calls to build-in-place functions.
12511         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
12512         provides the functionality of RTE_Available to record components.
12513         (RTU_Entity): The function Entity has been renamed to RTU_Entity
12514         to avoid undesired overloading.
12515         (Entity): New subprogram that returns the entity for the referened
12516         unit. If this unit has not been loaded, it returns Empty.
12517         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
12518         Remove no longer used entities.
12519         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
12520         (RE_Type_Specific_Data): New entity.
12521         (RE_Move_Any_Value): New entity.
12522         (RE_TA_A, RE_Get_Any_Type): New entities.
12523         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
12524          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
12525          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
12526         (Entity): New subprogram that returns the entity for the referened
12527         unit. If this unit has not been loaded, it returns Empty.
12528         (RTE): Addition of a new formal that extends the search to the scopes
12529         of the record types found in the chain of the package.
12531         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
12532         "abstract subprograms must be visible" message, whether or not the type
12533         is an interface; that is, remove the special case for interface types.
12534         (Analyze_Function_Return): Remove error message "return of task objects
12535         is not yet implemented" because this is now implemented.
12536         (Create_Extra_Formals): Add the extra master and activation chain
12537         formals in case the result type has tasks.
12538         Remove error message "return of limited controlled objects is not yet
12539         implemented".
12540         (Create_Extra_Formals): Add the extra caller's finalization list formal
12541         in case the result type has controlled parts.
12542         (Process_Formals): In case of access formal types there is no need
12543         to continue with the analysis of the formals if we already notified
12544         errors.
12545         (Check_Overriding_Indicator): Add code to check overriding of predefined
12546         operators.
12547         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
12548         flags for formals that do not require them,.
12549         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
12550         hidden entity is use visible or directly visible.
12551         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
12552         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
12553         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
12554         New_Overloaded_Entity): Split Is_Abstract flag into
12555         Is_Abstract_Subprogram and Is_Abstract_Type.
12557         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
12558         a return statement's finalization list to the caller's list, used for
12559         build-in-place functions with result type with controlled parts.
12560         Remove no longer used entities.
12562         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
12563         longer needed, because the full type is now limited, and therefore a
12564         pass-by-reference type.
12565         (Foreign_Task_Level): New constant.
12567         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
12568         move tasks from the activation chain belonging to a return statement to
12569         the one passed in by the caller, and update the master to the one
12570         passed in by the caller.
12571         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
12572         of unactivated tasks, so we don't kill the ones that are being returned
12573         by a build-in-place function.
12574         (Create_Task): Ignore AI-280 for foreign threads.
12576 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12577             Robert Dewar  <dewar@adacore.com>
12578             Bob Duff  <duff@adacore.com>
12579             Gary Dismukes  <dismukes@adacore.com>
12581         * errout.adb (Unwind_Internal_Type): Use predicate
12582         Is_Access__Protected_Subprogram_Type.
12584         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
12585         (Freeze_Entity, packed array case): Do not override explicitly set
12586         alignment and size clauses.
12587         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
12588         the enclosing subprogram is a child unit body that acts as a spec.
12589         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
12590         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
12591         Remove all code for DSP option
12593         * layout.adb (Layout_Record_Type): Use First/
12594         Next_Component_Or_Discriminant
12595         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
12596         to handle properly the anonymous access case.
12598         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
12599         for all access attributes, because overload resolution should work the
12600         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
12601         causes the error message for the ambiguous "X'Access = Y'Access" and
12602         "X'Unrestricted_Access = Y'Access" and so forth to match.
12603         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
12604         now that anonymous access to protected operations have their own kind.
12605         (Resolve_Attribute): In case of dispatching call check the violation of
12606         restriction No_Dispatching_Calls.
12607         (Check_Array_Type): Check new -gnatyA array index style option
12609         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
12610         attempt to derive from a synchronized tagged type.
12611         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
12612         type, inherit the class-wide type already created, because it may
12613         already have been used in a self-referential anonymous access component.
12614         (Mentions_T): Recognize self-referential anonymous access components
12615         that use (a subtype of) the class-wide type of the enclosing type.
12616         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
12617         Derived_Type for Prev formal on call to
12618         Check_Anonymous_Access_Components rather than Empty.
12619         (Make_Incomplete_Type_Declaration): Add test for case where the type has
12620         a record extension in deciding whether to create a class-wide type,
12621         rather than just checking Tagged_Present.
12622         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
12623         to stand-alone object declarations as well as component declarations.
12624         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
12625         prevent accidental overwriting when enclosing package appears in
12626         a limited_with_clause.
12627         (Array_Type_Declaration): If the component type is an anonymous access,
12628         the associated_node for the itype is the type declaration itself.
12629         (Add_Interface_Tag_Components): Modified to support concurrent
12630         types with abstract interfaces.
12631         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
12632         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
12633         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
12634         to complete the decoration of synchronized interface types. Add also
12635         a call to Check_Abstract_Interfaces to verify the ARM rules.
12636         (Derive_Interface_Subprograms): Modified to support concurrent types
12637         with abstract interfaces.
12638         (Analyze_Subtype_Indication): Resolve the range with the given subtype
12639         mark, rather than delaying the full resolution depending on context.
12640         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
12641         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
12642         Array_Type_Declaration,Build_Derived_Record_Type,
12643         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
12644         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
12645         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
12646         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
12647         called only when appropriate.
12648         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
12649         to private type.
12650         (Analyze_Subtype_Declaration): For an access subtype declaration, create
12651         an itype reference for the anonymous designated subtype, to prevent
12652         scope anonmalies in gigi.
12653         (Build_Itype_Reference): New utility, to simplify construction of such
12654         references.
12656 2007-04-06  Vincent Celier  <celier@adacore.com>
12658         * errutil.adb (Initialize): Initialize warnings table, if all warnings
12659         are suppressed, supply an initial dummy entry covering all possible
12660         source locations.
12662         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
12663         and start with only one, such as "-RTS=none".
12664         (Collect_Arguments): Do not check for sources outside of projects.
12665         Do not collect arguments if project is externally built.
12666         (Compile_Sources): Do nothing, not even check if the source is up to
12667         date, if its project is externally built.
12668         (Compile): When compiling a predefined source, add -gnatpg
12669         as the second switch, after -c.
12670         (Compile_Sources): Allow compilation of Annex J renames without -a
12671         (Is_In_Object_Directory): Check if the ALI file is in the object
12672         even if there is no project extension.
12673         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
12674         gnatbind if the ALI file effectively exists.
12675         (Initialize): Add the directory where gnatmake is invoked in front of
12676         the path if it is invoked from a bin directory, even without directory
12677         information, so that the correct GNAT tools will be used when spawned
12678         without directory information.
12680         * makeusg.adb: Change switch -S to -eS
12681         Add lines for new switches -we, -wn and -ws
12682         Add line for new switch -p
12684         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
12685         Treat_As_Error and there are warnings.
12687         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
12688         -gnatww Change gnatmake switch -S to -eS
12689         (Scan_Make_Switches): Code reorganisation. Process separately multi
12690         character switches and single character switches.
12691         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
12692         False when switch is not recognized by gnatmake.
12693         (Scan_Make_Switches): Set Setup_Projects True when -p or
12694         --create-missing-dirs is specified.
12696         * fname.adb (Is_Predefined_File_Name): Return True for annex J
12697         renamings Calendar, Machine_Code, Unchecked_Conversion and
12698         Unchecked_Deallocation only when Renamings_Included is True.
12700         * par.adb: Allow library units Calendar, Machine_Code,
12701         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
12702         when -gnatg is not specified.
12703         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
12704         there is no need to generate always a record_definition_node in case
12705         of synchronized interface types.
12706         (SIS_Entry_Active): Initialize global variable to False
12707         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
12708         indicate cases where AI-447 says "not null" is legal.
12710         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
12712         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
12713         files with with several lines starting with the object fileb name.
12714         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
12715         is specified.
12716         (Initialize): Add the directory where gprmake is invoked in front of the
12717         path, if it is invoked from a bin directory or with directory
12718         information, so that the correct GNAT tools will be used when invoked
12719         directly.
12720         (Check_Compilation_Needed): Process correctly backslashes on Windows.
12722         * vms_data.ads: Update switches/qualifiers
12724 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12725             Thomas Quinot  <quinot@adacore.com>
12727         * exp_aggr.adb:
12728         If the array component is a discriminated record, the array aggregate
12729         is non-static even if the component is given by an aggregate with
12730         static components.
12731         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
12732         (Convert_Aggr_In_Allocator): If the allocator is for an access
12733         discriminant and the type is controlled. do not place on a finalization
12734         list at this point. The proper list will be determined from the
12735         enclosing object.
12736         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
12737         initialize record controller if needed, before the components, to ensure
12738         that they are properly finalized.
12739         (Build_Record_Aggr_Code): For the case of an array component that has a
12740         corresponding array aggregate in the record aggregate, perform sliding
12741         if required.
12743 2007-04-06  Javier Miranda  <miranda@adacore.com>
12744             Gary Dismukes  <dismukes@adacore.com>
12745             Ed Schonberg  <schonberg@adacore.com>
12747         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
12748         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
12750         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
12751         accessibility on class-wide allocators if the allocator occurs at the
12752         same scope level as the allocator's type. The check is guaranteed to
12753         succeed in that case, even when the expression originates from a
12754         parameter of the containing subprogram.
12755         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
12756         under No_Dispatching_Calls restriction. During the semantic analysis
12757         we already notified such violation.
12758         (Tagged_Membership): Constant folding. There is no need to check
12759         the tag at run-time if the type of the right operand is non
12760         class-wide abstract.
12761         Replace call to Is_Ancestor by call to Is_Parent
12762         to support concurrent types with interface types.
12763         (Expand_N_Allocator): Add an assertion associated with the generation
12764         of the master_id.
12765         (Expand_N_Slice): Do not enable range check to nodes associated
12766         with the frontend expansion of the dispatch table.
12767         (Is_Local_Access_Discriminant): Subsidiary function to
12768         Expand_N_Allocator.
12769         (Tagged_Membership): Replace generation of call to the run-time
12770         subprogram CW_Membership by call to Build_CW_Membership.
12771         (Expand_Allocator_Expression): Replace generation of call to the
12772         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
12774         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
12775         initialize most the TSD components by means of an aggregate.
12776         Modify the declaration of the object containing the TSD
12777         because we now expand code that has a higher level of abstraction.
12778         The TSD has a discriminant containing the Inheritance Depth Level,
12779         value that is used in the membership test but also to fix the size
12780         of the table of ancestors.
12781         (Expand_Interface_Conversion): Insert function body at the closest place
12782         to the conversion expression, to prevent access-before-elaboration
12783         errors in the backend.
12784         Code improved to reduce the size of the dispatch table if
12785         compiling under restriction No_Dispatching_Calls plus code cleanup.
12786         Code reorganization plus removal of calls to Set_Num_Prim_Ops
12787         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
12788         (Expand_Dispatching_Call): Minor code reorganization plus addition of
12789         code to return immediately if compiling under No_Dispatching_Calls
12790         restriction.
12791         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
12792         CPP_Virtual and CPP_Vtable are no longer supported.
12793         (Expand_Interface_Conversion): Add missing support for interface type
12794         derivations.
12795         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
12796         Is_Parent to support concurrent types with interfaces.
12797         (Init_Predefined_Interface_Primitives): Removed.
12798         (Make_Secondary_DT): Modified to support concurrent record types.
12799         (Set_All_DT_Position): Modified to support concurrent record types.
12800         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
12801         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
12802         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
12803         with CW_Membership.
12804         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
12805         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
12806         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
12807         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
12808         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
12809         (Expand_Dispatching_Call): Replace generation of call to the run-time
12810         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
12811         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
12812         Address.
12813         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
12814         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
12815         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
12816         Build_Set_Prim_Op_Address.
12817         (Get_Remotely_Callable): Subprogram removed.
12818         (Init_Predefined_Interface_Primitives): Replace generation of call to
12819         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
12820         Prims.
12822         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
12823         First (Parameter_Associations ()) with the call to First_Actual that
12824         returns an actual parameter expression for both named and positional
12825         associations.
12827         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
12828         check violation of restriction No_Dispatching_Calls.
12829         (Check_Controlling_Type): A formal of a tagged incomplete type is a
12830         controlling argument.
12832         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
12833         First/Next_Component_Or_Discriminant
12834         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
12835         (Find_Implemented_Interface): Removed. All the calls to this subprogram
12836         specify Any_Limited_Interface, and this functionality is already
12837         provided by the function Has_Abstract_Interfaces.
12838         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
12839         support concurrent types implementing interfaces.
12840         (Find_Implemented_Interface): Removed. All the calls to this subprogram
12841         specify kind Any_Limited_Interface, and this functionality is already
12842         provided by the function Has_Abstract_Interfaces.
12843         (Remove_Side_Effects): replace Controlled_Type by
12844         CW_Or_Controlled_Type whenever the issue is related to
12845         using or not the secondary stack.
12847         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
12848         P_Interface_Type_Definition to fulfill the new interface (the formal
12849         Is_Synchronized is no longer required).
12851         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
12852         Update dependencies.
12854         * exp_atag.ads, exp_atag.adb: New file
12856 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12857             Bob Duff  <duff@adacore.com>
12858             Cyrille Comar  <comar@adacore.com>
12860         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
12861         anonymous, use finalization list of enclosing dynamic scope.
12862         (Expand_N_Package_Declaration): For a library package declaration
12863         without a corresponding body, generate RACW subprogram bodies in the
12864         spec (just as we do for the task activation call).
12865         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
12866         Is_Abstract_Type. Make sure these are called only when appropriate.
12867         Remove all code for DSP option
12868         (CW_Or_Controlled_Type): new subprogram.
12870 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
12871             Ed Schonberg  <schonberg@adacore.com>
12872             Gary Dismukes  <dismukes@adacore.com>
12874         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
12875         parameter. If it is set to true, return a result capped according to
12876         the global upper bound for the index of an entry family.
12877         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
12878         (Build_Find_Body_Index): Adjust for above change.
12879         (Entry_Index_Expression): Likewise.
12880         (Is_Potentially_Large_Family): New function extracted from...
12881         (Collect_Entry_Families): ...here. Call it to detect whether the family
12882         is potentially large.
12883         (Build_Entry_Count_Expression): If the family is potentially large, call
12884         Family_Size with 'Cap' set to true.
12885         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
12886         a protected version of an operation declared in the private part of
12887         a protected object, because they may be invoked through a callback.
12888         (Set_Privals): If the type of a private component is an anonymous access
12889         type, do not create a new itype for each protected body.
12890         If the body of a protected operation creates
12891         controlled types (including allocators for class-widetypes), the
12892         body of the corresponding protected subprogram must include a
12893         finalization list.
12894         (Build_Activation_Chain_Entity): Build the chain entity for extended
12895         return statements.
12896         (Type_Conformant_Parameters): Use common predicate Conforming_Types
12897         to determine whether operation overrides an inherited primitive.
12898         (Build_Wrapper_Spec): Add code to examine the parents while looking
12899         for a possible overriding candidate.
12900         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
12901         hold an actual parameter value since its initialization is separated
12902         from the the declaration. Prevents errors on null-excluding access
12903         formals.
12905 2007-04-06  Thomas Quinot  <quinot@adacore.com>
12906             Pablo Oliveira  <oliveira@adacore.com>
12908         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
12909         Do an Unchecked_Conversion to handle the passage from the Underlying
12910         Type to the Base Type when calling Build_To_Any_Call and
12911         Build_From_Any_Call.
12912         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
12913         E_Constant, depending upon Variable formal.
12914         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
12915         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
12916         parameter that requires an extra constrained parameter, declare
12917         temporary for actual as a variable, not a constant.
12918         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
12919         the unit being compiled is the one that contains the stub type.
12920         Change primitive operation name for the RACW associated with a RAS
12921         from Call to _Call so it cannot clash with any legal identifier.
12922         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
12923         Is_RAS.
12924         (Append_RACW_Bodies): New subprogram.
12925         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
12926         Add_Receiving_Stubs_To_Declarations functions.
12927         When expanding a package body, this list correspond to the
12928         statements in the HSS at the end of the pacakge.
12929         When expanding a package spec, this list correspond to the
12930         spec declarations.
12931         (Add_Receiving_Stubs_To_Declarations): Append the function
12932         registering the receiving stubs at the end of the 'Stmts' list.
12933         (RCI_Package_Locator): Pass the new Version generic formal when
12934         instantiating a RCI_Locator package.
12935         (Build_From_Any_Function): To compute the High bound for an
12936         unconstrained array actual, we add the Low bound with the length.
12937         Thus we must convert the low bound and the length to an appropriate
12938         type before doing the sum.
12939         (Build_Subprogram_Receiving_Stubs, PolyORB):
12940          * Retrieve the extra formals parameters at the
12941            end of the parameter stream.
12942          * Use Move_Any_Value to write back out parameters
12943            after executing the request as it is more efficient
12944            than Copy_Any_Value.
12945          * Build the any containing Extra Formals with the
12946            appropriate typecode.
12947         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
12948         empty Component_List.
12949         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
12950         the tree the declaration for an object that serves as actual parameter
12951         in server-side stubs.
12952         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
12953         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
12954         Use Build_Actual_Object_Declaration to prepare the actuals.
12955         (Add_Parameter_To_NVList): Set the parameter mode to In for
12956         Extra Constrained Parameters.
12957         (Build_General_Calling_Stubs): Set the parameter type to boolean for
12958         Extra Constrained parameters.
12959         (Build_To_Any_Function, Build_From_Any_Function,
12960         Built_TypeCode_Function): When Typ is implicit, call the correct
12961         function with the first not implicit parent type.
12962         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
12963         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
12964         typecode from the Etype. Therefore we retrieve the correct typecode
12965         with a call to Get_Any_Type.
12966         (Copy_Specification): Do controlling formal type substitution based on
12967         Is_Controlling_Formal flag, instead of caller-provided object type.
12968         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
12969         a RACW primitive operation, we might get a subprogram declaration for an
12970         ancestor of the RACW designated type (not for the designated type
12971         itself), in the case where this operation is inherited. In this case we
12972         have no easy means of determining the original tagged type for which
12973         the primitive was declared, so instead we now rely on
12974         Copy_Specification to use the Is_Controlling_Formal flag to determine
12975         which formals require type substitution.
12977 2007-04-06  Robert Dewar  <dewar@adacore.com>
12978             Ed Schonberg  <schonberg@adacore.com>
12980         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
12981         GNAT.Current_Exception are not allowed if pragma Restrictions
12982         (No_Exception_Propagation) is set and in any case make the associated
12983         handler unsuitable as a target for a local raise statement.
12984         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
12985         run-time subprogram CW_Membership by call to Build_CW_Membership.
12986         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
12987         by a function call, a temporary must be created before expanding the
12988         Constructor_Call itself, to prevent out-of-order elaboration in the
12989         back-end when stack checking is enabled..
12991 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12993         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
12994         result are the bounds of the left operand, not the right.
12996 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12998         * exp_strm.adb
12999         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
13000          discriminant defaults.
13001         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
13002         (Make_Component_List_Attributes): Ditto.
13004 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13005             Bob Duff  <duff@adacore.com>
13007         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
13008         an association with a box as providing a value even though the
13009         initialization procedure for the type is not available.
13010         (Resolve_Record_Aggregate): Check that a choice of an association with a
13011         box corresponds to a component of the type.
13012         (Resolve_Record_Aggregate): Split Is_Abstract flag into
13013         Is_Abstract_Subprogram and Is_Abstract_Type.
13015         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
13016         assert.
13018         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
13019         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
13020         called only when appropriate.
13022 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13024         * g-alleve.ads (Low Level Vector type definitions): Map each to the
13025         associated vector view instead of all to the unsigned char view.
13027         * g-altcon.adb (Generic_Conversions): New internal generic package,
13028         offering facilities for all the Vector/View conversion routines
13029         implemented by this unit.
13030         (To_View/To_Vector - all versions): Reimplemented in a systematic
13031         manner, using the internal Generic_Conversions facilities.
13033 2007-04-06  Pascal Obry  <obry@adacore.com>
13035         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
13036         string.
13037         (Create): Free the source string before storing the new one.
13039 2007-04-06  Vincent Celier  <celier@adacore.com>
13041         * g-debpoo.adb (Validity): New package with a complete new
13042         implementation of subprograms Is_Valid and Set_Valid.
13043         (Is_Valid): Move to local package Validity
13044         (Set_Valid): Move to local package Validity
13046 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
13047             Pablo Oliveira  <oliveira@adacore.com>
13049         * g-expect.adb (Get_Command_Output): When expanding the output buffer
13050         we must ensure that there is enough place for the new data we are going
13051         to copy in.
13053 2007-04-06  Thomas Quinot  <quinot@adacore.com>
13055         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
13056         computation.
13058 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
13059             Vincent Celier  <celier@adacore.com>
13061         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
13062         (Stack_String): Add this String that contains the name of the Stack
13063         package in the project file.
13064         (Packages_To_Check_By_Stack): Add this list that contains the packages
13065         to be checked by gnatstack, which are the naming and the stack packages.
13066         (Check_Files): If no .ci files were specified for gnatstack we add all
13067         the .ci files belonging to the projects, including binder generated
13068         files.
13069         (Non_VMS_Usage): Document that gnatstack accept project file switches.
13070         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
13071         Add gnatstack to the list of commands that use project file related
13072         switches, and get the single attribute Switches from the stack package
13073         in a project file when calling gnatstack. Parse the -U flag for
13074         processing files belonging to all projects in the project tree.
13075         Remove all processing for command Setup
13077         * prj-attr.adb: Add new package Stack with single attribute Switches
13079         * vms_conv.ads (Command_Type): Add command Stack.
13080         Move to body declarations that are only used in the body: types Item_Id,
13081         Translation_Type, Item_Ptr, Item and its subtypes.
13083         * vms_conv.adb: (Initialize): Add data for new command Stack.
13084         Add declarations moved from the spec: types Item_Id, Translation_Type,
13085         Item_Ptr, Item and its subtypes.
13086         (Cargs_Buffer): New table
13087         (Cargs): New Boolean global variable
13088         (Process_Buffer): New procedure to create arguments
13089         (Place): Put character in table Buffer or Cargs_Buffer depending on the
13090          value of Cargs.
13091         (Process_Argument): Set Cargs when processing qualifiers for GNAT
13092         COMPILE
13093         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
13094         empty, for table Cargs_Buffer.
13095         (Initialize): Remove component Setup in Command_List
13097 2007-04-06  Vincent Celier  <celier@adacore.com>
13099         * gprep.adb (Process_Files.Process_One_File): Use full file name when
13100         issuing pragma Source_Reference.
13102 2007-04-06  Emmanuel Briot  <briot@adacore.com>
13104         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
13105         [[:xdigit:]] character class.
13106         Also raise an exception when an invalid character class is used.
13108 2007-04-06  Pascal Obry  <obry@adacore.com>
13110         * i-cstrea.ads: (fopen): Add encoding parameter.
13111         (freopen): Idem.
13112         Change reference from a-sysdep.c to sysdep.c in comment.
13113         Update copyright notice.
13114         This set of patch add support for the encoding form parameter.
13116         * mingw32.h (S2WSU): New macro to convert from a string to a
13117         wide-string using the UTF-8 encoding. The S2WS macro supports now only
13118         standard 8bits encoding.
13119         (WS2SU): As above but converting from wide-sring to string.
13120         This is needed as it is necessary to have access to both versions in the
13121         runtime for the form parameter encoding support.
13122         This set of patch add support for the encoding form parameter.
13123         (S2WS): Improve implementation to handle cases where the filename is not
13124         UTF-8 encoded. In this case we default to using the current code page
13125         for the conversion.
13127         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
13128         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
13129         the constants defined in adaint.h.
13130         (fopen): Add encoding parameter.
13131         (freopen): Idem.
13133         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
13134         encoding. This is needed for the Reset routine (freopen low level-call).
13136         * s-fileio.adb (Open): Decode encoding form parameter and set the
13137         corresponding encoding value into AFCB structure.
13138         (Reset): Pass the encoding value to freopen.
13139         (Close): Move the call to Lock_Task to the beginning of the procedure.
13141 2007-04-06  Geert Bosch  <bosch@adacore.com>
13142             Robert Dewar  <dewar@adacore.com>
13144         * i-fortra.ads: Add Double_Complex type.
13146         * impunit.adb: (Is_Known_Unit): New function
13147         Add Gnat.Byte_Swapping
13148         Add GNAT.SHA1
13149         Add new Ada 2005 units
13150         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
13151         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
13152         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
13153         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
13155         * impunit.ads (Is_Known_Unit): New function
13157         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
13158         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
13159         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
13160         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
13161         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
13162         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
13163         New files.
13165         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
13167         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
13169 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
13170             Arnaud Charlet  <charlet@adacore.com>
13172         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
13173         __gnat_adjust_context_for_raise.
13174         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
13175         implementation of floating point operations as native x86 targets.
13176         So the FPU should be initialized in the same way using finit. Fix
13177         floating point operations accuracy issues.
13178         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
13179         member in struct sigaction, so as to avoid warning for incompatible
13180         pointer types.
13182 2007-04-06 Serguei Rybin  <rybin@adacore.com>
13184         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
13185         switches from previously loaded tree
13187 2007-04-06  Thomas Quinot  <quinot@adacore.com>
13189         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
13190         cases where a given dependency has a body or not.
13191         (Write_With_File_Names): New subprogram, common code for the two cases
13192         above.
13194 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13195             Javier Miranda  <miranda@adacore.com>
13197         * lib-xref.ads, lib-xref.adb: 
13198         Modify the loop that collects type references, to include interface
13199         types that the type implements. List each of these interfaces when
13200         building the entry for the type.
13201         (Generate_Definition): Initialize component Def and Typ of new entry
13202         in table Xrefs, to avoid to have these components unitialized.
13203         (Output_References): Split Is_Abstract flag into
13204         Is_Abstract_Subprogram and Is_Abstract_Type.
13205         (Generate_Reference): Add barrier to do not generate the warning
13206         associated with Ada 2005 entities with entities generated by the
13207         expander.
13209 2007-04-06  Robert Dewar  <dewar@adacore.com>
13210             Arnaud Charlet  <charlet@adacore.com>
13211             Vincent Celier  <celier@adacore.com>
13213         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
13214         Update 'Exception Handling Control' chapter which was outdated.
13215         Minor fix to documentation of -gnatwq
13216         Remove section "Adapting the Run Time to a New C++ Compiler" because
13217         it is now obsolete.
13218         Add passage on need of -nostart-files in some non-ada-main cases.
13219         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
13220         Update documentation about Interfacing with C++
13221         Add documentation for new gnatmake switch -p
13222         Add missing protocol part in URLs.
13223         Document -gnatyA
13224         Document pragma Compile_Time_Error
13225         Add documentation for Object_Size indicating that stand alone
13226         objects can have a larger size in some cases.
13227         Add node for GNAT.Byte_Swapping, GNAT.SHA1
13228         Update reference to the Ravenscar profile.
13229         Document pragma Unreferenced_Objects
13231         * gnat-style.texi: Fix typo
13233 2007-04-06  Vincent Celier  <celier@adacore.com>
13235         * mlib.adb (Building_Library): Only output "building a library..." in
13236         verbose mode
13238         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
13239         files in verbose mode.
13241         * mlib-utl.adb (Ar): Only output the first object files when not in
13242         verbose mode.
13243         (Gcc): Do not display all the object files if not in verbose mode, only
13244         the first one.
13246 2007-04-06  Robert Dewar  <dewar@adacore.com>
13248         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
13249         it no longer destroys the contents of Name_Buffer or Name_Len and
13250         non-standard and invalid names are handled better.
13251         (Get_Decoded_Name_String): Improve performance by using
13252         Name_Has_No_Encodings flag in the name table.
13253         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
13254         Used for debugging printouts.
13256 2007-04-06  Robert Dewar  <dewar@adacore.com>
13257             Javier Miranda  <miranda@adacore.com>
13258             Bob Duff  <duff@adacore.com>
13260         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
13261         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
13262         there is no need to generate always a record_definition_node in case
13263         of synchronized interface types.
13264         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
13265         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
13266         illegal in Ada 95, in cases where it is legal. Change the warnings to
13267         errors in other cases. Don't give the error unless the "not null"
13268         parses properly. Correct the source position at which the error occurs.
13269         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
13270         P_Null_Exclusion, to suppress "not null" warnings.
13271         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
13272         associated goto statements.
13274         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
13275         of END RECORD
13277         * scans.ads (Type_Token_Location): New flag
13279         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
13280         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
13281         P_Null_Exclusion, to suppress "not null" warnings.
13283 2007-04-06  Robert Dewar  <dewar@adacore.com>
13284             Javier Miranda  <miranda@adacore.com>
13285             Bob Duff  <duff@adacore.com>
13286             Vincent Celier  <celier@adacore.com>
13288         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
13289         (Extensions_Allowed): No longer sets Ada_Version
13290         Entry for pragma Unreferenced_Objects
13292         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
13293         system.tasking if pragma priority used in a procedure
13294         (Analyze_Pragma, case Warning): Handle dot warning switches
13295         (Process_Compile_Time_Warning_Or_Error): New procedure
13296         (Analyze_Pragma): Add processing for Compile_Time_Error
13297         Add support for extra arguments External_Name and Link_Name.
13298         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
13299         (Process_Import_Or_Interface): Add support for the use of pragma Import
13300         with tagged types.
13301         (Extensions_Allowed): No longer affects Ada_Version
13302         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
13303         Is_Abstract_Type. Make sure these are called only when appropriate.
13304         Add processing for pragma Unreferenced_Objects
13306         * snames.h, snames.ads, snames.adb: Add entry for pragma
13307         Compile_Time_Error
13308         Add new standard name Minimum_Binder_Options for new gprmake
13309         Add new standard names for gprmake: Archive_Suffix,
13310         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
13311         Library_Support, Library_Version_Options,
13312         Shared_Library_Minimum_Options,
13313         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
13314         Change Name_Call to Name_uCall so that it cannot clash with a legal
13315         subprogram name.
13316         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
13317         Append C_Plus_Plus to convention identifiers as synonym for CPP
13318         Add new standard names Stack and Builder_Switches
13319         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
13320         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
13321         Run_Path_Option, Toolchain_Version.
13322         Entry for pragma Unreferenced_Objects
13324         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
13325         switches, without repetition of "eD". Make sure that last character of
13326         -gnatep= switch is not taken as -gnat switch character.
13327         Complete rewrite of circuit for handling saving compilation options
13328         Occasioned by need to support dot switchs for -gnatw, but cleans up
13329         things in general.
13330         -gnatX does not affect Ada_Version
13331         Include -gnatyA in -gnatg style switches
13333         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
13334         warnings on return objects.
13335         (Warn_On_Useless_Assignment): Exclude warnings on return objects
13336         (Set_Dot_Warning_Switch): New procedure
13337         (Check_References): Add missing case of test for
13338         Has_Pragma_Unreferenced_Objects
13339         (Output_Unreferenced_Messages): Implement effect of new pragma
13340         Unreferenced_Objects, remove special casing of limited controlled
13341         variables.
13343 2007-04-06  Vincent Celier  <celier@adacore.com>
13345         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
13346         the default project path, initially done during elaboration of the
13347         package.
13348         If the prefix returned by Sdefault is null, get the prefix from a call
13349         to Executable_Prefix_Path.
13350         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
13351         null.
13353         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
13354         canonical directory name to open the directory from which files are
13355         retrieved.
13356         (Record_Other_Sources): Idem.
13357         (Locate_Directory): Add the possibility to create automatically missing
13358         directories when Setup_Projects is True.
13359         Call Locate_Directory so that the directory will be created when
13360         Setup_Projects is True, for object dir, library dir, library ALI dir,
13361         library source copy dir and exec dir.
13363         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
13364         versions of GNAT.
13366 2007-04-06  Robert Dewar  <dewar@adacore.com>
13368         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
13369         Use First/Next_Component_Or_Discriminant
13370         (Analyze_Record_Representation_Clause):
13371         Use First/Next_Component_Or_Discriminant
13372         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
13373         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
13374         definition if type is unconstrained.
13375         (Adjust_Record_For_Reverse_Bit_Order): New procedure
13376         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
13377         Is_Abstract_Subprogram and Is_Abstract_Type.
13378         (Adjust_Record_For_Reverse_Bit_Order): New procedure
13380         * repinfo.adb (List_Record_Info): Use First/
13381         Next_Component_Or_Discriminant.
13383         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
13384         New procedure.
13386         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
13387         Include -gnatyA in default switches
13389         * opt.ads: (Warn_On_Non_Local_Exception): New flag
13390         (Warn_On_Reverse_Bit_Order): New flag
13391         (Extensions_Allowed): Update the documentation.
13392         (Warn_On_Questionable_Missing_Parens): Now on by default
13394         * usage.adb: Add documentation of -gnatw.x/X switches
13395         Document new -gnatyA style switch
13396         -gnatq warnings are on by default
13398 2007-04-06  Ed Falis  <falis@adacore.com>
13400         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
13401         full word is no longer compared twice.
13403 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13405         * sem_ch10.adb (Install_Limited_Context_Clauses.
13406         Expand_Limited_With_Clause): Use a new copy of selector name in the
13407         call to Make_With_Clause. This fixes the tree structure for ASIS
13408         purposes. Nothing is changed in the compiler behaviour.
13409         (Process_Body_Clauses): Handle properly use clauses whose prefix is
13410         a package renaming.
13411         (Install_Limited_With_Clauses): Do not install non-limited view when it
13412         is still incomplete.
13414 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13415             Gary Dismukes  <dismukes@adacore.com>
13417         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
13418         when capturing size information, instead of base type, which for a
13419         formal array type will be the unconstrained type.
13420         (Analyze_Formal_Object_Declaration): Add check for illegal default
13421         expressions for a formal in object of a limited type.
13422         (Instantiate_Object): Ditto.
13423         (Check_Formal_Package_Instance): Skip entities that are formal objects,
13424         because they were defaulted in the formal package and no check applies
13425         to them.
13426         (Check_Formal_Package_Instance): Extend conformance check to other
13427         discrete types beyond Integer.
13428         (Process_Default): Copy directly the unmatched formal. A generic copy
13429         has already been performed in Analyze_Formal_Package.
13430         (Analyze_Associations): If a formal subprogram has no match, check for
13431         partial parametrization before looking for a default, to prevent
13432         spurious errors.
13433         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
13434         not set the instantiation environment before analyzing the actuals.
13435         Fixes regression on 8515-003 with implementation of AI-133.
13436         Set_Instance_Env checks whether the generic unit is a predefined
13437         unit, in which case the instance must be analyzed with the latest Ada
13438         mode. This setting must take place after analysis of the actuals,
13439         because the actuals must be analyzed and frozen in the Ada mode extant
13440         outside of the current instantiation.
13441         (Save_Env, Restore_Env): Preserve and restore the configuration
13442         parameters so that predefined units can be compiled in the proper Ada
13443         mode.
13444         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
13445         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
13446         and Is_Abstract_Type.
13447         (Analyze_Formal_Package): For better error recovery, Add exception
13448         handler to catch Instantion_Error, which can be raised in
13449         Analyze_Associations
13451 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13452             Bob Duff  <duff@adacore.com>
13453             Gary Dismukes  <dismukes@adacore.com>
13455         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
13456         prefix type is a discriminated subtype of the type of the formal.
13457         (Analyze_Allocator): Collect all coextensions regardless of the context.
13458         Whether they can be allocated statically is determined in exp_ch4.
13459         (Analyze_Selected_Component): If the prefix is a limited view and the
13460         non-limited view is available, use the non-limited one.
13461         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
13462         therefore illegal), suggest a qualified expression rather than a type
13463         conversion, because a type conversion would be illegal in this context.
13464         (Anayze_Allocator): Trace recursively all nested allocators so that all
13465         coextensions are on the corresponding list for the root. Do no mark
13466         coextensions if the root allocator is within a declaration for a stack-
13467         allocated object, because the access discriminants will be allocated on
13468         the stack as well.
13469         (Analyze_Call): Remove restriction on calls to limited functions for the
13470         cases of generic actuals for formal objects, defaults for formal objects
13471         and defaults for record components.
13472         (Analyze_Allocator): Before analysis, chain coextensions on the proper
13473         element list. Their expansion is delayed until the enclosing allocator
13474         is processed and its finalization list constructed.
13475         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
13476         for an operation with the given name among the primitive operations of
13477         the corresponding record type.
13478         (Analyze_Selected_Component): If the prefix is a task type that
13479         implements an interface, and there is no entry with the given name,
13480         check whether there is another primitive operation (e.g. a function)
13481         with that name.
13482         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
13483         properly the indexing of a function call written in prefix form, where
13484         the function returns an array type, and all parameters of the function
13485         except the first have defaults.
13486         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
13487         the original operands, rather than relocating them, for efficiency and
13488         to work properly when an operand is overloaded.
13489         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
13490         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
13491         (Analyze_Selected_Component): If the prefix is a private extension, only
13492         scan the visible components, not those of the full view.
13493         (Try_Primitive_Operation): If the operation is a procedure, collect all
13494         possible interpretations, as for a function, because in the presence of
13495         classwide parameters several primitive operations of the type can match
13496         the given arguments.
13498 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13499             Robert Dewar  <dewar@adacore.com>
13501         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
13502         tag-indeterminate call to an abstract function, when the left-hand side
13503         is not classwide.
13504         (Analyze_Loop_Statement): Improve detection of infinite loops
13506 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13507             Thomas Quinot  <quinot@adacore.com>
13509         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
13510         out of Analyze_Package_Declaration, because processing must be applied
13511         to package bodies as well, for deferred constants completed by pragmas.
13512         (Analyze_Package_Declaration): When the package declaration being
13513         analyzed does not require an explicit body, call Check_Completion.
13514         (May_Need_Implicit_Body): An implicit body is required when a package
13515         spec contains the declaration of a remote access-to-classwide type.
13516         (Analyze_Package_Body): If the package contains RACWs, append the
13517         pending subprogram bodies generated by exp_dist at the end of the body.
13518         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
13519         Is_Abstract_Subprogram and Is_Abstract_Type.
13520         (Preserve_Full_Attributes): The full entity list is not an attribute
13521         that must be preserved from full to partial view.
13523         * sem_dist.adb (Add_RAS_Dereference_TSS):
13524         Change primitive name to _Call so it cannot clash with any legal
13525         identifier, and be special-cased in Check_Completion.
13526         Mark the full view of the designated type for the RACW associated with
13527         a RAS as Comes_From_Source to get proper view switching when installing
13528         private declarations.
13529         Provite a placeholder nested package body along with the nested spec
13530         to have a place for Append_RACW_Bodies to generate the calling stubs
13531         and stream attributes.
13533 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13534             Robert Dewar  <dewar@adacore.com>
13536         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
13537         that is a limited view, check the non-limited view if available.
13538         (Undefined): Refine error message for missing with of Text_IO
13539         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
13540         to distinguish real missing with cases.
13541         Fix format of all missing with messages
13542         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
13543         renaming as body when renamed entity is abstract.
13545 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13546             Javier Miranda  <miranda@adacore.com>
13548         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
13549         predicate recursive, to handle complex expressions on literals whose
13550         spurious ambiguity comes from the abstract interpretation of some
13551         subexpression.
13552         (Interface_Present_In_Ancestor): Add support to concurrent record
13553         types.
13554         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
13555         Is_Abstract_Subprogram and Is_Abstract_Type.
13557 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13558             Javier Miranda  <miranda@adacore.com>
13560         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
13561         dereference of a local object R created as a reference to another
13562         object O, use the access level of O.
13563         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
13564         rather than local Same_Formal_Type, to check whether protected operation
13565         overrides an inherited one.
13566         (Same_Formal_Type): New predicate, used when matching signatures of
13567         overriding synchronized operations, to handle the case when a formal
13568         has a type that is a generic actual.
13569         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
13570         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
13571         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
13572         syntactic ambiguities involving indexing of function calls that return
13573         arrays.
13574         (Abstract_Interface_List): New subprogram that returns the list of
13575         abstract interfaces associated with a concurrent type or a
13576         concurrent record type.
13577         (Interface_Present_In_Parent): New subprogram used to check if a
13578         given type or some of its parents implement a given interface.
13579         (Collect_Abstract_Interfaces): Add support for concurrent types
13580         with interface types.
13581         (Has_Abstract_Interfaces): Add support for concurrent types with
13582         interface types.
13583         (Is_Parent): New subprogram that determines whether E1 is a parent
13584         of E2. For a concurrent type its parent is the first element of its
13585         list of interface types; for other types this function provides the
13586         same result than Is_Ancestor.
13587         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
13588         (Collect_Synchronized_Interfaces): Removed because the subprogram
13589         Collect_Abstract_Interfaces provides this functionality.
13590         (Collect_Abstract_Interfaces): Minor update to give support to
13591         concurrent types and thus avoid undesired code duplication.
13592         (Get_Subprogram_Entity): Handle entry calls.
13593         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
13594         entry calls.
13595         (Enter_Name): Do not give -gnatwh hiding warning for record component
13596         entities, they never result in hiding.
13598 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13599             Robert Dewar  <dewar@adacore.com>
13601         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
13602         to chain nested components that are allocators for access discriminants
13603         of the enclosing object.
13604         Add N_Push and N_Pop nodes
13605         New field Exception_Label added
13606         (Local_Raise_Statements): New field in N_Exception_Handler_Node
13607         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
13608         (Is_Coextension): New flag for allocators, to mark allocators that
13609         correspond to access discriminants of dynamically allocated objects.
13610         (N_Block_Statement): Document the fact that the corresponding entity
13611         can be an E_Return_Statement.
13612         (Is_Coextension): New flag for allocators.
13613         Remove all code for DSP option
13615         * sprint.ads, sprint.adb: Display basic information for class_wide
13616         subtypes. Add handling of N_Push and N_Pop nodes
13618 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
13620         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
13621         before propagating exception.
13623 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13625         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
13626         an address always within the call instruction from a return address.
13628 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13629             Eric Botcazou  <botcazou@adacore.com>
13631         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
13632         expression with a COMPOUND_EXPR including the call instead of emitting
13633         the call directly here.
13634         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
13635         high bound is constant and the slice is empty.  Tidy.
13636         (tree_transform, case N_Op_Not): Handle properly the case where the
13637         operation applies to a private type whose full view is a modular type.
13638         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
13639         Address_Clause, use the associated Expression as the GNAT tree
13640         representing the choice value to ensure the corresponding GCC tree is
13641         of the proper kind.
13642         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
13643         instead of just the operands, as the base GCC stabilize_reference does.
13644         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
13645         requested; otherwise fail.
13646         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
13648 2007-04-06  Thomas Quinot  <quinot@adacore.com>
13650         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
13651         implementation of UI_Div.
13652         (UI_Div): Reimplement as a call to UI_Div_Rem.
13653         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
13654         remainder, avoiding the cost of a multiplication and a subtraction.
13655         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
13656         provides both quotient and remainder in a single computation.
13657         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
13658         functions for uint.
13659         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
13660         is undefined if the given n is not inversible.
13662 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13664         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
13665         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
13666         opcodes.
13668 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
13669             Olivier Hainque  <hainque@adacore.com>
13671         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
13672         when updating the contents of the old pointer to an unconstrained array.
13673         (end_subprog_body): Set error_gnat_node to Empty.
13674         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
13675         (unchecked_convert): For subtype to base type conversions, require that
13676         the source be a subtype if it is an integer type.
13677         (builtin_decls): New global, vector of available builtin functions.
13678         (gnat_pushdecl): Add global builtin function declaration nodes to the
13679         builtin_decls list.
13680         (gnat_install_builtins): Adjust comments.
13681         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
13682         calling gnat_pushdecl, so that it knows when it handed a builtin
13683         function declaration node.
13684         (builtin_decl_for): Search the builtin_decls list.
13686 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
13688         * s-stchop-vxworks.adb: 
13689         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
13691 2007-04-06  Robert Dewar  <dewar@adacore.com>
13692             Arnaud Charlet  <charlet@adacore.com>
13694         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
13696         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
13697         of files
13698         Add mention of -Sev (set initialize_scalars option from environment
13699         variable at run time) in gnatbind usage message.
13701         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
13703         * fname-uf.ads: Minor comment fix
13705         * osint.ads: Change pragma Elaborate to Elaborate_All
13707         * par-load.adb: Add documentation.
13709         * sem_cat.ads, sem_cat.adb: Minor code reorganization
13711         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
13713         * s-secsta.ads: Extra comments
13715         * s-soflin.ads: Minor comment fixes
13717         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
13719         * s-wchcon.ads: Minor comment addition
13721         * treepr.adb: Minor change in message
13722         (Print_Name,Print_Node): Make these debug printouts more robust: print
13723         "no such..." instead of crashing on bad input.
13725 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
13727         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
13728         instead of gnat_signed_or_unsigned_type.
13729         * utils.c (gnat_signed_or_unsigned_type): Remove.
13730         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
13731         * gigi.h (gnat_signed_or_unsigned_type): Remove
13733 2007-03-09  Roger Sayle  <roger@eyesopen.com>
13735         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
13736         fold with the result of buildN.
13737         * decl.c (gnat_to_gnu_entity): Likewise.
13738         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
13739         * utils.c (finish_record_type, merge_sizes, max_size, convert):
13740         Likewise.
13741         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
13742         nonbinary_modular_operation, build_binary_op, build_unary_op,
13743         build_cond_expr): Likewise.
13745         * utils.c (convert): Use fold_build1 when casting values to void.
13746         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
13747         fold_convert instead of convert when appropriate.
13749 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
13751         * Make-lang.in: Add install-pdf target as copied from
13752         automake v1.10 rules.
13754 2007-02-28  Andreas Schwab  <schwab@suse.de>
13756         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
13757         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
13758         (doc/gnat-style.info): Likewise.
13760 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
13762         * gnat-style.texi: Standardize title page.
13763         * gnat_rm.texi: Likewise.
13764         * gnat_ugn.texi: Likewise.
13766 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
13768         * decl.c (annotate_value): Adjust for refactoring of tree_map
13769         hierarchy.
13771 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
13773         * decl.c (annotate_value): Adjust for refactoring of tree_map
13774         hierarchy.
13776 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
13778         PR ada/18819
13779         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
13780         untagged derived type, add hidden components to keep discriminant
13781         layout consistent, when a given discriminant of the derived type
13782         constraints several discriminants of the parent type.
13784 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
13785             Sandra Loosemore  <sandra@codesourcery.com>
13787         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
13788         build the call expression.
13789         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
13790         * utils.c (max_size) <tcc_exceptional>: Delete.
13791         <tcc_vl_exp>: New case.
13792         <tcc_expression>: Delete CALL_EXPR subcase.
13793         (build_global_cdtor): Use build_call_nary instead of build3.
13794         * utils2.c (build_call_1_expr): Likewise.
13795         (build_call_2_expr): Likewise.
13796         (build_call_0_expr): Likewise.
13797         (build_call_alloc_dealloc): Likewise.
13799 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
13801         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
13802         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
13803         and _Unwind_SWord with _sleb128_t.
13805 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
13807         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
13808         * decl.c: Include gt-ada-decl.h.
13809         (annotate_value_cache): New.
13810         (annotate_value): Use it instead of TREE_COMPLEXITY.
13812 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
13814         * misc.c, utils2.c: Fix comment typos.
13816 2007-01-24  Roger Sayle  <roger@eyesopen.com>
13818         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
13819         TREE_CONSTANT_OVERFLOW.
13820         (allocatable_size_p, annotate_value): Likewise.
13821         * trans.c (gnat_to_gnu): Likewise.
13822         * utils.c (unchecked_convert): Likewise.
13823         * utils2.c (build_simple_component_ref): Likewise.
13825 2007-01-23  Richard Guenther  <rguenther@suse.de>
13827         PR bootstrap/30541
13828         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
13829         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
13830         (gnatboot3): Likewise.
13831         (GNATBIND): Do not define.
13832         * Makefile.in (GNATBIND): Do not define.
13834 2007-01-08  Richard Guenther  <rguenther@suse.de>
13836         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
13837         * trans.c (gnat_to_gnu): Likewise.
13839 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
13841         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
13842         * adaint.c: Likewise.
13844 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
13846         Merge from gimple-tuples-branch:
13847         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
13849         * ada-tree.h (lang_tree_node): Handle gimple tuples.
13850         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
13851         GIMPLE_MODIFY_STMT.
13853 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
13855         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
13856         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
13857         Fix typos.
13859 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
13861         PR ada/27936
13862         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
13863         if the initializer takes into account the padding.
13865 2006-11-11  Richard Guenther  <rguenther@suse.de>
13867         * trans.c (maybe_stabilize_reference): Remove handling of
13868         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
13870 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
13872         PR ada/29707
13873         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
13874         (To_Target_Priority): New function.
13876 2006-10-31  Robert Dewar  <dewar@adacore.com>
13878         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
13879         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
13880         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
13881         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
13882         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
13883         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
13884         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
13885         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
13886         a-szbzha.adb: Minor reformatting. Fix header.
13888         * a-numaux-x86.adb: Add parentheses for use of unary minus
13889         * a-ngcefu.adb: Supply missing parentheses for unary minus
13890         * a-ngcoty.adb: Add parens for use of unary minus
13891         * a-ngelfu.adb: Add missing parens for unary minus
13892         * a-tifiio.adb: Add parentheses for uses of unary minus
13894 2006-10-31  Robert Dewar  <dewar@adacore.com>
13895             Bob Duff  <duff@adacore.com>
13896             Ed Schonberg  <schonberg@adacore.com>
13898         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
13899         with multiplying operator.
13900         (Expected_Type_Is_Any_Real): New function to determine from the Parent
13901         pointer whether the context expects "any real type".
13902         (Resolve_Arithmetic_Op): Do not give an error on calls to the
13903         universal_fixed "*" and "/" operators when they are used in a context
13904         that expects any real type. Also set the type of the node to
13905         Universal_Real in this case, because downstream processing requires it
13906         (mainly static expression evaluation).
13907         Reword some continuation messages
13908         Add some \\ sequences to continuation messages
13909         (Resolve_Call): Refine infinite recursion case. The test has been
13910         sharpened to eliminate some false positives.
13911         Check for Current_Task usage now includes entry barrier, and is now a
13912         warning, not an error.
13913         (Resolve): If the call is ambiguous, indicate whether an interpretation
13914         is an inherited operation.
13915         (Check_Aggr): When resolving aggregates, skip associations with a box,
13916         which are priori correct, and will be replaced by an actual default
13917         expression in the course of expansion.
13918         (Resolve_Type_Conversion): Add missing support for conversion from
13919         a class-wide interface to a tagged type. Minor code cleanup.
13920         (Valid_Tagged_Converion): Add support for abstact interface type
13921         conversions.
13922         (Resolve_Selected_Component): Call Generate_Reference here rather than
13923         during analysis, and use May_Be_Lvalue to distinguish read/write.
13924         (Valid_Array_Conversion): New procedure, abstracted from
13925         Valid_Conversion, to incorporate accessibility checks for arrays of
13926         anonymous access types.
13927         (Valid_Conversion): For a conversion to a numeric type occurring in an
13928         instance or inlined body, no need to check that the operand type is
13929         numeric, since this has been checked during analysis of the template.
13930         Remove legacy test for scope name Unchecked_Conversion.
13932         * sem_res.ads: Minor reformatting
13934         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
13935         (PE_Current_Task_In_Entry_Body): New exception code
13936         (SE_Restriction_Violation): Removed, not used
13938         * a-except.ads:  Update comments.
13940         * types.h, types.ads: Add definition for Validity_Check
13941         (PE_Current_Task_In_Entry_Body): New exception code
13942         (SE_Restriction_Violation): Removed, not used
13944 2006-10-31  Thomas Quinot  <quinot@adacore.com>
13946         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
13947         error status.
13949 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
13950             Jose Ruiz  <ruiz@adacore.com>
13952         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
13953         part of Ada.Calendar: all subprogram raise Unimplemented.
13954         (Split_W_Offset): Temp function body, raising Unimplemented
13956         * a-calend.ads, a-calend-vms.ads: 
13957         Add imported variable Invalid_TZ_Offset used to designate targets unable
13958         to support time zones.
13959         (Unimplemented): Temporary function raised by the body of new
13960         subprograms below.
13961         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
13962         unit provides handling of leap seconds and is used by the new Ada 2005
13963         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
13964         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
13965         version returns an extra value which is the offset to UTC.
13967         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
13968         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
13969         (Split_W_Offset): New function body.
13970         (Time_Of): When a date is close to UNIX epoch, compute the time for
13971         that date plus one day (that amount is later substracted after
13972         executing mktime) so there are no problems with time zone adjustments.
13974         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
13976         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
13977         a-catizo.ads, a-catizo.adb: New files.
13979         * impunit.adb: Add new Ada 2005 entries
13981         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
13982         Rename all occurences of "__gnat_localtime_r" to
13983         "__gnat_localtime_tzoff".
13984         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
13985         zone data and calculate the GMT offset.
13986         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
13987         Use the field "tm_gmtoff" to extract the GMT offset.
13988         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
13989         the external variable "timezone" to calculate the GMT offset.
13991 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
13992             Jose Ruiz  <ruiz@adacore.com>
13994         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
13995         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
13996         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
13997         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
13998         System.Any_Priority to a POSIX priority on the target.
14000         * system-linux-ia64.ads: 
14001         Extend range of Priority types on Linux to use the whole range made
14002         available by the system.
14004         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
14005         function maps from System.Any_Priority to a POSIX priority on the
14006         target.
14007         (PTHREAD_PRIO_PROTECT): Set real value.
14008         (PTHREAD_PRIO_INHERIT): Now a function.
14009         (SIGCPUFAIL): New signal.
14010         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
14011         are documented as reserved by the OS.
14013         * system-aix.ads: Use the full range of priorities provided by the
14014         system on AIX.
14016         * s-taprop-posix.adb: Call new function To_Target_Priority.
14017         (Set_Priority): Take into account Task_Dispatching_Policy and
14018         Priority_Specific_Dispatching pragmas when determining if Round Robin
14019         must be used for scheduling the task.
14021         * system-linux-x86_64.ads, system-linux-x86.ads, 
14022         system-linux-ppc.ads: Extend range of Priority types on Linux to use
14023         the whole range made available by the system.
14025         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
14026         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
14027         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
14028         when deallocating the TCB in order to avoid potential references to
14029         deallocated data.
14030         (Set_Priority): Take into account Task_Dispatching_Policy and
14031         Priority_Specific_Dispatching pragmas when determining if Round Robin
14032         or FIFO within priorities must be used for scheduling the task.
14034         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
14035         the Thread field (to be used internally by the run-time system) and the
14036         kernel-level task id in the LWP field (to be used by the debugger).
14037         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
14038         instance, and propagate the current task options to the spawned task.
14039         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
14040         (Initialize): Set Round Robin dispatching when the corresponding pragma
14041         is in effect.
14043 2006-10-31  Robert Dewar  <dewar@adacore.com>
14045         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
14046         system-linux-hppa.ads, system-hpux-ia64.ads, 
14047         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
14048         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
14049         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
14050         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
14051         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
14052         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
14053         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
14054         Default_Bit_Order) to kill constant condition warnings for references
14055         to this switch.
14057 2006-10-31  Vincent Celier  <celier@adacore.com>
14058             Eric Botcazou  <ebotcazou@adacore.com>
14060         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
14061         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
14062         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
14063         Ext_To, when building the library file name
14065         * mlib-tgt-vxworks.adb: ditto.
14066         (Get_Target_Suffix): Add support for x86 targets.
14068         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
14070         * mlib-tgt-darwin.adb: 
14071         Use Append_To, instead of Ext_To, when building the library file name
14072         (Flat_Namespace): New global variable.
14073         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
14074         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
14075         (Link_Shared_Libgcc): Delete.
14076         (Build_Dynamic_Library): Adjust for above changes.
14077         Use Opt package.
14078         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
14080 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
14082         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
14083         (Initialize): Add type conversions required by above change.
14085 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
14087         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
14088         (getpid): New body for this function that uses the underlying taskIdSelf
14089         function for VxWorks 5 and VxWorks 6 in kernel mode.
14090         (unsigned_int): New type, modular to allow logical bit operations.
14091         (taskOptionsGet): New imported function.
14093         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
14094         field to be compliant with the type used by the corresponding operating
14095         system primitive.
14097 2006-10-31  Pascal Obry  <obry@adacore.com>
14098             Eric Botcazou  <ebotcazou@adacore.com>
14099             Vincent Celier  <celier@adacore.com>
14101         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
14102         ASCII version of the registry API. This is needed as the GNAT runtime
14103         is now UNICODE by default.
14104         Include version.h.
14105         (get_gcc_version): Do not hardcode the return value.
14106         (__gnat_file_time_name): On Windows properly set the default returned
14107         value to -1 which corresponds to Invalid_Time.
14108         (__gnat_fopen): New routine. A simple wrapper on all plateforms
14109          except on Windows where it does conversion for unicode support.
14110         (__gnat_freopen): Idem.
14111         (__gnat_locate_exec_on_path): If environment variable PATH does not
14112         exist, return a NULL pointer
14114         * adaint.h: (__gnat_fopen): Declare.
14115         (__gnat_freopen): Likewise.
14117         * mingw32.h (_tfreopen): Define this macro here for older MingW
14118         version.
14119         Activate the unicode support on platforms using a MingW runtime
14120         version 3.9 or newer.
14122         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
14123         This is needed for proper unicode support on Windows.
14124         (freopen): Idem.
14126 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
14127             Nicolas Setton  <setton@adacore.com>
14128             Olivier Hainque  <hainque@adacore.com>
14129             Gary Dismukes  <dismukes@adacore.com>
14131         * gigi.h: (tree_code_for_record_type): Declare.
14132         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
14133         (get_global_renaming_pointers): Rename to
14134         invalidate_global_renaming_pointers.
14135         (static_ctors): Delete.
14136         (static_dtors): Likewise.
14137         (gnat_write_global_declarations): Declare.
14138         (create_var_decl): Adjust descriptive comment to indicate that the
14139         subprogram may return a CONST_DECL node.
14140         (create_true_var_decl): Declare new function, similar to
14141         create_var_decl but forcing the creation of a VAR_DECL node.
14142         (get_global_renaming_pointers): Declare.
14143         (add_global_renaming_pointer): Likewise.
14145         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
14147         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
14148         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
14149         processing.
14150         (gnat_to_gnu_entity): Remove From_With_Type from computation for
14151         imported_p.
14152         <E_Access_Type>: Use the Non_Limited_View as the full view of the
14153         designated type if the pointer comes from a limited_with clause.  Make
14154         incomplete designated type if it is in the main unit and has a freeze
14155         node.
14156         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
14157         Underlying_Full_View similarly.  Return earlier if the full view already
14158         has an associated tree.
14159         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
14160         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
14161         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
14162         reference type built for objects with an address clause.
14163         Use create_true_var_decl with const_flag set for
14164         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
14165         TREE_READONLY set.
14166         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
14167         for Character and Wide_Character types. This info is read by the
14168         dwarf-2 writer, and is needed to be able to use the command "ptype
14169         character" in the debugger.
14170         (gnat_to_gnu_entity): When generating a type representing
14171         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
14172         so that debug writers can distinguish it from ordinary integers.
14173         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
14174         addition to TREE_READONLY to assert the constantness of variables for
14175         elaboration purposes.
14176         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
14177         parameters to call new Einfo function First_Formal_With_Extras.
14178         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
14179         protected type with its corresponding discriminant, to obtain a usable
14180         declaration
14181         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
14182         for a multiple elaboration of the "equivalent" type.
14183         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
14184         into record_global_renaming_pointer.
14185         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
14186         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
14187         <E_Array_Subtype>: Likewise.
14188         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
14189         incomplete subtypes and incomplete subtypes of incomplete types visible
14190         through a limited with clause.
14191         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
14192         the base index type for the maximum size of the array only if they are
14193         constant.
14194         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
14195         expression into a SAVE_EXPR if stabilization failed.
14197         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
14198         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
14199         by lower level compilation passes.
14200         (gnat_genericize): New function, lowering a function body to GENERIC.
14201         Turn the type of RESULT_DECL into a real reference type if the decl
14202         has been marked DECL_BY_REFERENCE, and adjust references to the latter
14203         accordingly.
14204         (gnat_genericize_r): New function. Tree walking callback for
14205         gnat_genericize.
14206         (convert_from_reference, is_byref_result): New functions. Helpers for
14207         gnat_genericize_r.
14208         (create_type_decl): Call gnat_pushdecl before calling
14209         rest_of_decl_compilation, to make sure that field TYPE_NAME of
14210         type_decl is properly set before calling the debug information writers.
14211         (write_record_type_debug_info): The heuristics which compute the
14212         alignment of a field in a variant record might not be accurate. Add a
14213         safety test to make sure no alignment is set to a smaller value than
14214         the alignment of the field type.
14215         (make_dummy_type): Use the Non_Limited_View as the underlying type if
14216         the type comes from a limited_with clause. Do not loop on the full view.
14217         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
14218         (dummy_node_table): New global variable, moved from decl.c.
14219         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
14220         (save_gnu_tree): Use above macros.
14221         (get_gnu_tree): Likewise.
14222         (present_gnu_tree): Likewise.
14223         (init_dummy_type): New function, moved from decl.c. Use above macros.
14224         (make_dummy_type): Likewise.
14225         (tree_code_for_record_type): New function extracted from make_dummy_type
14226         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
14227         (static_ctors): Change it to a vector, make static.
14228         (static_dtors): Likewise.
14229         (end_subprog_body): Adjust for above change.
14230         (build_global_cdtor): Moved from trans.c.
14231         (gnat_write_global_declarations): Emit global constructor and
14232         destructor, and call cgraph_optimize before emitting debug info for
14233         global declarations.
14234         (global_decls): New global variable.
14235         (gnat_pushdecl): Store the global declarations in global_decls, for
14236         later use.
14237         (gnat_write_global_declarations): Emit debug information for global
14238          declarations.
14239         (create_var_decl_1): Former create_var_decl, with an extra argument to
14240          state whether the creation of a CONST_DECL is allowed.
14241         (create_var_decl): Behavior unchanged. Now a wrapper around
14242         create_var_decl_1 allowing CONST_DECL creation.
14243         (create_true_var_decl): New function, similar to create_var_decl but
14244         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
14245         (create_field_decl): Do not always mark the field as addressable
14246         if its type is an aggregate.
14247         (global_renaming_pointers): New static variable.
14248         (add_global_renaming_pointer): New function.
14249         (get_global_renaming_pointers): Likewise.
14251         * misc.c (gnat_dwarf_name): New function.
14252         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
14253         (gnat_post_options): Add comment about structural alias analysis.
14254         (gnat_parse_file): Do not call cgraph_optimize here.
14255         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
14257         * trans.c (process_freeze_entity): Don't abort if we already have a
14258         non dummy GCC tree for a Concurrent_Record_Type, as it might
14259         legitimately have been elaborated while processing the associated
14260         Concurrent_Type prior to this explicit freeze node.
14261         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
14262         exception handler volatile if it is of variable size.
14263         (process_type): Remove bypass for types coming from a limited_with
14264         clause.
14265         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
14266         actual, convert the corresponding gnu_actual to the real destination
14267         type when necessary.
14268         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
14269         originally TREE_READONLY but whose elaboration cannot be performed
14270         statically.
14271         Part of fix for F504-021.
14272         (tree_transform, subprogram cases): Change loops on formal parameters to
14273         call new Einfo function First_Formal_With_Extras.
14274         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
14275         stemming from type conversion for the lhs.
14276         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
14277         number of bits per unit for components of records.
14278         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
14279         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
14280         with At_End_Proc after the SJLJ EH cleanup.
14281         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
14282         compilation unit.
14283         (elaborate_all_entities): Do not retest type_annotate_only.
14284         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
14285         result type of an abstract subprogram, which may be an itype associated
14286         with an anonymous access result (related to AI-318-02).
14287         (build_global_cdtor): Move to utils.c.
14288         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
14289         this choice is not a null tree nor an integer constant.
14290         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
14291         on the body of elaboration routines instead of mark_unvisited.
14292         (add_stmt): Do not mark the tree.
14293         (add_decl_expr): Tweak comment.
14294         (mark_unvisited): Delete.
14295         (unshare_save_expr): New static function.
14296         (call_to_gnu): Issue an error when making a temporary around a
14297         procedure call because of non-addressable actual parameter if the
14298         type of the formal is by_reference.
14299         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
14300         after building the elaboration routine.
14302 2006-10-31  Bob Duff  <duff@adacore.com>
14304         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
14305         as finalization-started, so we can raise Program_Error on 'new'.
14307         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
14308         collection has already started.
14310         * s-finimp.ads (Collection_Finalization_Started): Added new special
14311         flag value for indicating that a collection's finalization has started.
14313         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
14314         create a task whose master has already waited for dependent tasks.
14316 2006-10-31  Robert Dewar  <dewar@adacore.com>
14318         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
14320         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
14321         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
14322         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
14323         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
14324         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
14325         a-except-2005.ads: Add pragma Preelaborable_Warning
14327 2006-10-31  Robert Dewar  <dewar@adacore.com>
14328             Jose Ruiz  <ruiz@adacore.com>
14330         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
14332         * ali.adb (Get_Name): Properly handle scanning of wide character names
14333         encoded with brackets notation.
14334         (Known_ALI_Lines): Add S lines to this list.
14335         (Scan_ALI): Acquire S (priority specific dispatching) lines.
14336         New flag Elaborate_All_Desirable in unit table
14338         * ali.ads (Priority_Specific_Dispatching): Add this range of
14339         identifiers to be used for Priority_Specific_Dispatching table entries.
14340         (ALIs_Record): Add First_Specific_Dispatching and
14341         Last_Specific_Dispatching that point to the first and last entries
14342         respectively in the priority specific dispatching table for this unit.
14343         (Specific_Dispatching): Add this table for storing each S (priority
14344         specific dispatching) line encountered in the input ALI file.
14345         New flag Elaborate_All_Desirable in unit table
14347         * bcheck.adb: (Check_Configuration_Consistency): Add call to
14348         Check_Consistent_Dispatching_Policy.
14349         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
14350         verifying that the use of Priority_Specific_Dispatching,
14351         Task_Dispatching_Policy, and Locking_Policy is consistent across the
14352         partition.
14354         * bindgen.adb: (Public_Version_Warning): function removed.
14355         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
14356         required information from ALI files in order to initialize the table
14357         containing the specific dispatching policy.
14358         (Gen_Adainit_Ada): Generate the variables required for priority specific
14359         dispatching entries (__gl_priority_specific_dispatching and
14360         __gl_num_specific_dispatching).
14361         (Gen_Adainit_C): Generate the variables required for priority specific
14362         dispatching entries (__gl_priority_specific_dispatching and
14363         __gl_num_specific_dispatching).
14364         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
14365         pragma entries.
14366         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
14367         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
14368         (Tab_To): Removed.
14369         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
14370         a call to gnat_set_globals.
14371         Generate a string containing settings from
14372         Priority_Specific_Dispatching pragma entries.
14373         (Gen_Object_Files_Options): Do not include the runtime libraries when
14374         pragma No_Run_Time is specified.
14376         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
14377         consistency with s-intman-posix.adb.
14378         (__gnat_error_handler, case FreeBSD): Account for the fact that the
14379         handler is installed with SA_SIGINFO.
14380         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
14381         FreeBSD ZCX support, copied from Linux version.
14382         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
14383         sigfillset, and sigemptyset so the routines defined by MaRTE.
14384         (__gl_priority_specific_dispatching): Add this variable that stores the
14385         string containing priority specific dispatching policies in the
14386         partition.
14387         (__gl_num_specific_dispatching): Add this variable that indicates the
14388         highest priority for which a priority specific dispatching pragma
14389         applies.
14390         (__gnat_get_specific_dispatching): Add this routine that returns the
14391         priority specific dispatching policy, as set by a
14392         Priority_Specific_Dispatching pragma appearing anywhere in the current
14393         partition. The input argument is the priority number, and the result
14394         is the upper case first character of the policy name.
14395         (__gnat_set_globals): Now a dummy function.
14396         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
14397         mechargs instead of sigargs, as the latter can be retrieved from the
14398         former and sigargs is not what we want on ia64.
14399         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
14400         mechargs argument.
14401         (__gnat_adjust_context_for_raise, ia64-vms): New function.
14402         (tasking_error): Remove unused symbol.
14403         (_abort_signal): Move this symbol to the IRIX specific part since this
14404         is the only target that uses this definition.
14405         (Check_Abort_Status): Move this symbol to the IRIX specific part since
14406         this is the only target that uses this definition.
14407         (Lock_Task): Remove unused symbol.
14408         (Unlock_Task): Remove unused symbol.
14410         * lib-writ.adb (Write_ALI): Output new S lines for
14411         Priority_Specific_Dispatching pragmas.
14412         Implement new flag BD for elaborate body desirable
14414         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
14415         (Specific_Dispatching): Add this table for storing the entries
14416         corresponding to Priority_Specific_Dispatching pragmas.
14417         Document new BD flag for elaborate body desirable
14419         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
14420         of known pragmas.
14422 2006-10-31  Javier Miranda  <miranda@adacore.com>
14424         * a-tags.ads, a-tags.adb: 
14425         (Predefined_DT): New function that improves readability of the code.
14426         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
14427         Inherit_DT): Use the new function Predefined_DT to improve code
14428         readability.
14429         (Register_Interface_Tag): Update assertion.
14430         (Set_Interface_Table): Update assertion.
14431         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
14432         determining progenitor interfaces in Tags.
14433         (Inherit_CPP_DT): New subprogram.
14435         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
14436         analysis of the thunk code.
14437         (Expand_Interface_Conversion): Handle run-time conversion of
14438         access to class wide types.
14439         (Expand_Dispatching_Call): When generating the profile for the
14440         subprogram itype for a dispatching operation, properly terminate the
14441         formal parameters chaind list (set the Next_Entity of the last formal
14442         to Empty).
14443         (Collect_All_Interfaces): Removed. This routine has been moved to
14444         sem_util and renamed as Collect_All_Abstract_Interfaces.
14445         (Set_All_DT_Position): Hidden entities associated with abstract
14446         interface primitives are not taken into account in the check for
14447         3.9.3(10); this check is done with the aliased entity.
14448         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
14449         interfacing with CPP by default.
14450         (Expand_Interface_Conversion): Add missing support for static conversion
14451         from an interface to a tagged type.
14452         (Collect_All_Interfaces): Add new out formal containing the list of
14453         abstract interface types to cleanup the subprogram Make_DT.
14454         (Make_DT): Update the code to generate the table of interfaces in case
14455         of abstract interface types.
14456         (Is_Predefined_Dispatching_Alias): New function that returns true if
14457         a primitive is not a predefined dispatching primitive but it is an
14458         alias of a predefined dispatching primitive.
14459         (Make_DT): If the ancestor of the type is a CPP_Class and we are
14460         compiling under full ABI compatibility mode we avoid the generation of
14461         calls to run-time services that fill the dispatch tables because under
14462         this mode we currently inherit the dispatch tables in the IP subprogram.
14463         (Write_DT): Emit an "is null" indication for a null procedure primitive.
14464         (Expand_Interface_Conversion): Use an address as the type of the formal
14465         of the internally built function that handles the case in which the
14466         target type is an access type.
14468 2006-10-31  Robert Dewar  <dewar@adacore.com>
14470         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
14472 2006-10-31  Robert Dewar  <dewar@adacore.com>
14474         * bindusg.ads, bindusg.adb:
14475         Change to package and rename procedure as Display, which
14476         now ensures that it only outputs usage information once.
14478 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
14480         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
14481         using RTPs.
14483         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
14484         when using RTPs.
14486 2006-10-31  Robert Dewar  <dewar@adacore.com>
14487             Ed Schonberg  <schonberg@adacore.com>
14489         * treepr.adb: Use new subtype N_Membership_Test
14491         * checks.ads, checks.adb: Add definition for Validity_Check
14492         (Range_Or_Validity_Checks_Suppressed): New function
14493         (Ensure_Valid): Test Validity_Check suppressed
14494         (Insert_Valid_Check): Test Validity_Check suppressed
14495         (Insert_Valid_Check): Preserve Do_Range_Check flag
14496         (Validity_Check_Range): New procedure
14497         (Expr_Known_Valid): Result of membership test is always valid
14498         (Selected_Range_Checks): Range checks cannot be applied to discriminants
14499         by themselves. Disabling those checks must also be done for task types,
14500         where discriminants may be used for the bounds of entry families.
14501         (Apply_Address_Clause_Check): Remove side-effects if address expression
14502         is non-static and is not the name of a declared constant.
14503         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
14504         Code cleanup and new error messages.
14505         (Enable_Range_Check): Test for some cases of suppressed checks
14506         (Generate_Index_Checks): Suppress index checks if index checks are
14507         suppressed for array object or array type.
14508         (Apply_Selected_Length_Checks): Give warning for compile-time detected
14509         length check failure, even if checks are off.
14510         (Ensure_Valid): Do not generate a check on an indexed component whose
14511         prefix is a packed boolean array.
14512         * checks.adb: (Alignment_Checks_Suppressed): New function
14513         (Apply_Address_Clause_Check): New procedure, this is a completely
14514         rewritten replacement for Apply_Alignment_Check
14515         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
14516         we request a discriminal value only in case of discriminants.
14517         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
14518         assignments where the target subtype is unconstrained and the target
14519         object is a parameter or dereference (other aliased cases are known
14520         to be unconstrained).
14522 2006-10-31  Robert Dewar  <dewar@adacore.com>
14524         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
14525         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
14526         vms_conv.adb: Fix bad table increment values (much too small)
14528         * table.adb (Realloc): Make sure we get at least some new elements
14529         Defends against silly small values for table increment
14531 2006-10-31  Robert Dewar  <dewar@adacore.com>
14532             Ed Schonberg  <schonberg@adacore.com>
14533             Bob Duff  <duff@adacore.com>
14535         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
14536         entities. Move other fields around to make this possible
14537         (Is_Derived_Type): Add missing call to Is_Type.
14538         (Extra_Formals): New function for subprograms, entries, subprogram
14539         types.
14540         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
14541         (First_Formal_With_Extras): New function for subprogs, entries, subp
14542         types.
14543         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
14544         Add node information for E_Return_Statement.
14545         (Elaborate_Body_Desirable): New flag
14546         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
14547         to be Is_Inherently_Limited_Type, because return-by-reference has
14548         no meaning in Ada 2005.
14549         (E_Return_Statement): New entity kind.
14550         (Return_Applies_To): Field of E_Return_Statement.
14551         (Is_Return_Object): New flag in object entities.
14552         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
14553         (Must_Have_Preelab_Init): New flag
14554         (Known_To_Have_Preelab_Init): New flag
14555         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
14556         (Is_Visible_Formal): New flag on entities in formal packages.
14557         (Low_Bound_Known): New flag
14558         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
14559         Incomplete_Kind.
14560         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
14561         output when Id is an incomplete subtype.
14563 2006-10-31  Robert Dewar  <dewar@adacore.com>
14565         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
14566         Avoid abbreviation Creat
14567         (Finalize): List all sources in extended mail source if -gnatl
14568         switch is active.
14569         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
14570         (Finalize): Implement new -gnatl=xxx switch to output listing to file
14571         (Set_Specific_Warning_On): New procedure
14572         (Set_Specific_Warning_Off): New procedure
14573         Add implementation of new insertion \\
14574         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
14575         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
14576         types.
14577         (Error_Msg_Internal): Make sure that we set Last_Killed to
14578         True when a message from another package is suppressed.
14579         Implement insertion character ~ (insert string)
14580         (First_Node): Minor adjustments to get better placement.
14582         * frontend.adb: 
14583         Implement new -gnatl=xxx switch to output listing to file
14585         * gnat1drv.adb: 
14586         Implement new -gnatl=xxx switch to output listing to file
14588         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
14589         (Commands_To_Stdout): New flag
14590         Implement new -gnatl=xxx switch to output listing to file
14591         New switch Dump_Source_Text
14592         (Warn_On_Deleted_Code): New warning flag for -gnatwt
14593         Define Error_Msg_Line_Length
14594         (Warn_On_Assumed_Low_Bound): New switch
14596         * osint.ads, osint.adb
14597         (Normalize_Directory_Name): Fix bug.
14598         Implement new -gnatl=xxx switch to output listing to file
14599         (Concat): Removed, replaced by real concatenation
14600         Make use of concatenation now allowed in compiler
14601         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
14602         we find the 'lib' or 'bin' directory even when the tool has been
14603         invoked with a relative path.
14604         (Executable_Name): New function taking string parameters.
14606         * osint-c.ads, osint-c.adb: 
14607         Implement new -gnatl=xxx switch to output listing to file
14609         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
14611         * switch-c.adb: 
14612         Implement new -gnatl=xxx switch to output listing to file
14613         Recognize new -gnatL switch
14614         (no longer keep in old warning about old style usage)
14615         Use concatenation to simplify code
14616         Recognize -gnatjnn switch
14617         (Scan_Front_End_Switches): Clean up handling of -gnatW
14618         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
14620 2006-10-31  Robert Dewar  <dewar@adacore.com>
14622         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
14623         (Set_Specific_Warning_Off): New procedure
14624         (Warning_Specifically_Suppressed): New function
14625         (Validate_Specific_Warnings): New procedure
14626         (Output_Msg_Text): Complete rewrite to support -gnatjnn
14628         * err_vars.ads: Implement insertion character ~ (insert string)
14630 2006-10-31  Bob Duff  <duff@adacore.com>
14631             Ed Schonberg  <schonberg@adacore.com>
14633         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
14634         the parent part is a build-in-place function call, generate assignments.
14635         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
14636         are build-in-place function calls.
14637         (Replace_Self_Reference): New subsidiary of
14638         Make_OK_Assignment_Statement, to replace an access attribute that is a
14639         self-reference into an access to the appropriate component of the
14640         target object. Generalizes previous mechanism to handle self-references
14641         nested at any level.
14642         (Is_Self_Referential_Init): Remove, not needed.
14643         (Is_Self_Referential_Init): New predicate to simplify handling of self
14644         referential components in record aggregates.
14645         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
14646         check for presence of entity before checking for self-reference.
14647         (Has_Default_Init_Comps): Return True if a component association is a
14648         self-reference to the enclosing type, which can only come from a
14649         default initialization.
14650         (Make_OK_Assignment_Statement): If the expression is of the form
14651         Typ'Acc, where Acc is an access attribute, the expression comes from a
14652         default initialized self-referential component.
14653         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
14654         that has been derived from several abstract interfaces we must also
14655         initialize the tags of the secondary dispatch tables.
14657 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
14658             Thomas Quinot  <quinot@adacore.com>
14659             Javier Miranda  <miranda@adacore.com>
14660             Robert Dewar  <dewar@adacore.com>
14662         * exp_attr.adb: 
14663         (Expand_Access_To_Protected_Op): If the context indicates that an access
14664         to a local operation may be transfered outside of the object, create an
14665         access to the wrapper operation that must be used in an external call.
14666         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
14667         target, pass the Valid attribute applied to a floating-point prefix on
14668         to the back end without expansion.
14669         (Storage_Size): Use the new run-time function Storage_Size to retrieve
14670         the allocated storage when it is specified by a per-object expression.
14671         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
14672         Nothing to do here, the attribute has been rewritten during semantic
14673         analysis.
14674         (Expand_Attribute_Reference): Handle expansion of the new Priority
14675         attribute
14676         (Find_Fat_Info): Handle case of universal real
14677         (Expand_Access_To_Protected_Op): Fix use of access to protected
14678         subprogram from inside the body of a protected entry.
14679         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
14680         'Access and 'Unrestricted_Access, to transform the attribute reference
14681         into a fat pointer.
14682         (Is_Constrained_Aliased_View): New predicate to help determine whether a
14683         subcomponent's enclosing variable is aliased with a constrained subtype.
14684         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
14685         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
14686         an aliased prefix must be known to be constrained in order to use True
14687         for the attribute value, and now it's possible for some aliased views
14688         to be unconstrained.
14690 2006-10-31  Robert Dewar  <dewar@adacore.com>
14692         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
14693         (Expand_Entity_Reference): Correct error of not handling subprogram
14694         formals in current_value processing.
14696 2006-10-31  Javier Miranda  <miranda@adacore.com>
14697             Robert Dewar  <dewar@adacore.com>
14698             Ed Schonberg  <schonberg@adacore.com>
14699             Gary Dismukes  <dismukes@adacore.com>
14701         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
14702         register in the final list objects containing class-wide interfaces;
14703         otherwise we incorrectly register the tag of the interface in the final
14704         list.
14705         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
14706         generate the wrapper if the parent primitive is abstract. This is
14707         required to report the correct error message.
14708         (Expand_N_Subtype_Indication): Do validity checks on range
14709         (Clean_Task_Names): If an initialization procedure includes a call to
14710         initialize a task (sub)component, indicate that the procedure will use
14711         the secondary stack.
14712         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
14713         compatibility for interfacing with CPP by default.
14714         (Expand_N_Object_Declaration): Only build an Adjust call when the
14715         object's type is a nonlimited controlled type.
14716         * exp_ch3.adb: Add with and use of Exp_Ch6.
14717         (Expand_N_Object_Declaration): Check for object initialization that is a
14718         call to build-in-place function and apply Make_Build_In_Place_Call_In_
14719         Object_Declaration to the call.
14720         (Freeze_Type): When the designated type of an RACW was not frozen at the
14721         point where the RACW was declared, validate the primitive operations
14722         with respect to E.2.2(14) when it finally is frozen.
14723         (Build_Initialization_Call,Expand_Record_Controller): Rename
14724         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
14725         return-by-reference has no meaning in Ada 2005.
14726         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
14727         to register tag of the immediate ancestor interfaces in the
14728         run-time structure.
14729         (Init_Secondary_Tags): Moved to the specification to allow the
14730         initialization of extension aggregates with abstract interfaces.
14731         (Build_Master_Renaming): Make public, for use by function declarations
14732         whose return type is an anonymous access type.
14733         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
14734         Insert_List_Before_And_Analyze after the generation of the specs
14735         associated with null procedures.
14736         (Expand_Tagged_Root): Update documentation in its specification.
14737         (Init_Secondary_Tags): Update documentation.
14738         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
14739         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
14740         then generate code to inherit the contents of the dispatch table
14741         directly from the ancestor.
14742         (Expand_Record_Controller): Insert controller component after tags of
14743         implemented interfaces.
14744         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
14745         create null procedure overridings when null procedures are inherited
14746         from interfaces.
14747         (Make_Null_Procedure_Specs): New procedure to generate null procedure
14748         declarations for overriding null primitives inherited from interfaces.
14749         (Is_Null_Interface_Procedure): New function in
14750         Make_Null_Procedure_Specs.
14751         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
14752         immediate ancestor of a tagged type is an abstract interface type we
14753         must generate the specification of the predefined primitives associated
14754         with controlled types (because the dispatch table of the ancestor is
14755         null and hence these entries cannot be inherited). This is required to
14756         elaborate well the dispatch table.
14758 2006-10-31  Javier Miranda  <miranda@adacore.com>
14759             Ed Schonberg  <schonberg@adacore.com>
14760             Bob Duff  <duff@adacore.com>
14761             Gary Dismukes  <dismukes@adacore.com>
14762             Robert Dewar  <dewar@adacore.com>
14764         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
14765         conversion.
14766         (Expand_N_In): Do validity checks on range
14767         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
14768         (Expand_N_Allocator): For "new T", if the object is constrained by
14769         discriminant defaults, allocate the right amount of memory, rather than
14770         the maximum for type T.
14771         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
14772         when the allocator is initialized by a build-in-place call, since the
14773         allocator is already rewritten as a reference to the function result,
14774         and this prevents an unwanted duplication of the function call.
14775         Add with and use of Exp_Ch6.
14776         (Expand_Allocator_Expresssion): Check for an allocator whose expression
14777         is a call to build-in-place function and apply
14778         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
14779         untagged designated types).
14780         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
14781         optimization if source or target is biased.
14782         (Expand_N_Allocator): Add comments for case of an allocator within a
14783         function that returns an anonymous access type designating tasks.
14784         (Expand_N_Allocator): apply discriminant checks for access
14785         discriminants of anonymous access types (AI-402, AI-416)
14787 2006-10-31  Bob Duff  <duff@adacore.com>
14788             Robert Dewar  <dewar@adacore.com>
14789             Gary Dismukes  <dismukes@adacore.com>
14790             Ed Schonberg  <schonberg@adacore.com>
14792         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
14794         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
14795         (Expand_N_Assignment_Statement): Call
14796         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
14797         build-in-place function call. Currently, this can happen only for
14798         assignments that come from aggregates.
14799         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
14800         in order to alleviate the upward compatibility introduced by AI-318.
14801         (Expand_N_Extended_Return_Statement): Add support for handling the
14802         return object as a build-in-place result.
14803         (Expand_Non_Function_Return): Implement simple return statements nested
14804         within an extended return.
14805         (Enable_New_Return_Processing): Turn on the new processing of return
14806         statements.
14807         (Expand_Non_Function_Return): For a return within an extended return,
14808         don't raise Program_Error, because Sem_Ch6 now gives a warning.
14809         (Expand_N_Extended_Return_Statement): Implement AI-318
14810         (Expand_Simple_Function_Return): Ditto.
14811         (Expand_N_If_Statement): Handle new -gnatwt warning
14812         (Expand_N_Case_Statement): Handle new -gnatwt warning
14813         (Expand_N_Assignment): Handle assignment to the Priority attribute of
14814         a protected object.
14815         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
14816         validity checking of assignments to elementary record components.
14817         (Expand_N_Return_Statement): return Class Wide types on the secondary
14818         stack independantly of their controlled status since with HIE runtimes,
14819         class wide types are not potentially controlled anymore.
14821         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
14822         node kind.
14824         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
14825         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
14826         it expects a block, procedure, or task. The return statement will get
14827         turned into a block, and Expand_Cleanup_Actions will happen then.
14829 2006-10-31  Robert Dewar  <dewar@adacore.com>
14830             Ed Schonberg  <schonberg@adacore.com>
14831             Bob Duff  <duff@adacore.com>
14832             Gary Dismukes  <dismukes@adacore.com>
14834         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
14835         capability.
14836         (Expand_Inlined_Call): Tagged types are by-reference types, and
14837         therefore should be replaced by a renaming declaration in the expanded
14838         body, as is done for limited types.
14839         (Expand_Call): If this is a call to a function with dispatching access
14840         result, propagate tag from context.
14841         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
14842         CPP by default.
14843         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
14844         build-in-place when the right-hand side of an assignment is a
14845         build-in-place function call.
14846         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
14847         of the explicit dereference of the allocator to the result subtype of
14848         the build-in-place function. This is needed to satisfy type checking
14849         in cases where the caller's return object is created by an allocator for
14850         a class-wide access type and the type named in the allocator is a
14851         specific type.
14852         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
14853         conversion of the reference to the declared object to the result subtype
14854         of the build-in-place function. This is needed to satisfy type checking
14855         in cases where the declared object has a class-wide type. Also, in the
14856         class-wide case, change the type of the object entity to the specific
14857         result subtype of the function, to avoid passing a class-wide object
14858         without explicit initialization to the back end.
14859         (Register_Interface_DT_Entry): Moved outside the body of
14860         Freeze_Subprogram because this routine is now public; it is called from
14861         Check_Dispatching_Overriding to handle late overriding of abstract
14862         interface primitives.
14863         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
14864         adding an implicit access actual on a call to a build-in-place function.
14865         (Expand_Actuals): Test for an actual parameter that is a call to a
14866         build-in-place function and apply
14867         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
14868         (Is_Build_In_Place_Function): New function to determine whether an
14869         entity is a function whose calls should be handled as build-in-place.
14870         (Is_Build_In_Place_Function_Call): New function to determine whether an
14871         expression is a function call that should handled as build-in-place.
14872         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
14873         calls to build-in-place functions as the initialization of an allocator.
14874         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
14875         handling calls to build-in-place functions in contexts that do not
14876         involve init of a separate object (for example, actuals of subprogram
14877         calls).
14878         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
14879         handling calls to build-in-place functions as the initialization of an
14880         object declaration.
14881         (Detect_Infinite_Recursion): Add explicit parameter Process to
14882         instantiation of Traverse_Body to avoid unreferenced warning.
14883         (Check_Overriding_Inherited_Interfaces): Removed.
14884         (Register_Interface_DT_Entry): Code cleanup.
14885         (Register_Predefined_DT_Entry): Code cleanup.
14886         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
14887         inlined statements if within a transient scope.
14888         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
14889         formal parameters with occurrences of actuals in inlined body, establish
14890         visibility on the proper view of the actual's subtype for the body's
14891         context.
14892         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
14893         compatibility mode and we have an imported CPP subprogram because
14894         for now we assume that imported CPP primitives correspond with
14895         objects whose constructor is in the CPP side (and therefore we
14896         don't need to generate code to register them in the dispatch table).
14897         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
14898         aligned selected component.
14899         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
14900         the actual of an in-mode parameter is a type conversion.
14901         (Expand_Actuals): If the call does not come from source and the actual
14902         is potentially misaligned, let gigi handle it rather than rejecting the
14903         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
14904         Class Wide types as returning by reference independantly of their
14905         controlled status since with HIE runtimes class wide types are not
14906         potentially controlled anymore.
14908 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
14910         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
14911         references that are private components of the protected object.
14912         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
14913         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
14914         instantiation to deal with warnings.
14915         (Initialize_Protection): If expression for priority is non-static, use
14916         System_Priority as its expected type, in case the expression has not
14917         been analyzed yet.
14919 2006-10-31  Robert Dewar  <dewar@adacore.com>
14921         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
14922         initialization of Homonym_Len.
14923         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
14924         names from fully qualified name. Fixes problem of duplicate
14925         external names differing only in the presence of such a block name.
14927 2006-10-31  Thomas Quinot  <quinot@adacore.com>
14928             Pablo Oliveira  <oliveira@adacore.com>
14930         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
14931         subprogram Ids, even if they are not yet assigned.
14932         (Build_Subprogram_Id): It is now this function that will take care of
14933         calling Assign_Subprogram_Ids if necessary.
14934         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
14935         should be done only once they are assigned.
14936         (Build_From_Any_Function, case of tagged types): Add missing call to
14937         Allocate_Buffer.
14938         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
14939         type for an RACW type.
14940         (Add_RACW_Features): When processing an RACW declaration for which the
14941         designated type is already frozen, enforce E.2.2(14) rules immediately.
14942         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
14943         special reordering of controlling formals.
14945         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
14946         associated stub type for an RACW type.
14948 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
14950         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
14951         fixed-point operations in an integer context, i.e. as operands of a
14952         conversion to an integer type, indicate that result must be rounded.
14954 2006-10-31  Robert Dewar  <dewar@adacore.com>
14956         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
14957         cases, pass the encoding method, since it is now required by the run
14958         time.
14960         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
14961         assumption that Str'First = 1.
14962         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
14963         it on to the Value_Wide_Wide_Character call.
14964         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
14965         properly handles a string of the form quote-encoded_wide_char-quote.
14967         * s-wchcnv.adb: Minor reformatting
14969 2006-10-31  Javier Miranda  <miranda@adacore.com>
14971         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
14972         run-time membership test to ensure that the constructed object
14973         implements the target abstract interface.
14975 2006-10-31  Robert Dewar  <dewar@adacore.com>
14977         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
14978         Machine_Attribute pragma internally to implement the user pragma.
14979         Add processing for pragma Interface so that it is now completely
14980         equivalent to pragma Import.
14982         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
14983         so that it can be applied to all entities, including record components
14984         and enumeration literals.
14985         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
14986         priority ranges are correct, verify compatibility against task
14987         dispatching and locking policies, and if everything is correct an entry
14988         is added to the table containing priority specific dispatching entries
14989         for this compilation unit.
14990         (Delay_Config_Pragma_Analyze): Delay processing
14991         Priority_Specific_Dispatching pragmas because when processing the
14992         pragma we need to access run-time data, such as the range of
14993         System.Any_Priority.
14994         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
14995         Allow pragma Unreferenced as a context item
14996         Add pragma Preelaborable_Initialization
14997         (Analyze_Pragma, case Interface): Interface is extended so that it is
14998         now syntactically and semantically equivalent to Import.
14999         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
15000         insertion characters.
15001         Add handling for Pragma_Wide_Character_Encoding
15002         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
15003         never supercedes a real restriction, and that a real restriction
15004         always supercedes a warning.
15005         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
15006         appropriate form.
15008 2006-10-31  Bob Duff  <duff@adacore.com>
15009             Ed Schonberg  <schonberg@adacore.com>
15010             Robert Dewar  <dewar@adacore.com>
15012         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
15013         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
15014         Is_Inherently_Limited_Type, because return-by-reference has no meaning
15015         in Ada 2005.
15016         (Find_Node_To_Be_Wrapped): Use new method of determining the result
15017         type of the function containing a return statement, because the
15018         Return_Type field was removed. We now use the Return_Applies_To field.
15020         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
15021         (Build_Task_Image_Decl): If procedure is not called from an
15022         initialization procedure, indicate that function that builds task name
15023         uses the sec. stack. Otherwise the enclosing initialization procedure
15024         will carry the indication.
15025         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
15026         N_Object_Declaration instead.
15027         (Kill_Dead_Code): New interface to implement -gnatwt warning for
15028         conditional dead code killed, and change implementation accordingly.
15029         (Insert_Actions): Add N_Return_Object_Declaration case.
15030         Correct comment to mention N_Extension_Aggregate node.
15031         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
15032         attempts to save information for global variables which cannot be
15033         safely tracked.
15034         (Get_Current_Value_Condition): Handle conditions the other way round
15035         (constant on left). Also handle right operand of AND and AND THEN
15036         (Set_Current_Value_Condition): Corresponding changes
15037         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
15038         (Get_Current_Value_Condition): Handle simple boolean operands
15039         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
15040         (Get_Current_Value_Condition): If the variable reference is within an
15041         if-statement, does not appear in the list of then_statments, and does
15042         not come from source, treat it as being at unknown location.
15043         (Get_Current_Value_Condition): Enhance to allow while statements to be
15044         processed as well as if statements.
15045         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
15046         come from source.
15047         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
15048         of loop. This is safe now that we fixed Kill_Current_Values.
15049         (OK_To_Do_Constant_Replacement): Check whether current scope is
15050         Standard, before examining outer scopes.
15052 2006-10-31  Vincent Celier  <celier@adacore.com>
15054         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
15055         When True, apply VMS treatment to children of packages A, G, I and S.
15056         For F320-016
15058         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
15060 2006-10-31  Robert Dewar  <dewar@adacore.com>
15061             Ed Schonberg  <schonberg@adacore.com>
15063         * freeze.adb: Add handling of Last_Assignment field
15064         (Warn_Overlay): Supply missing continuation marks in error msgs
15065         (Freeze_Entity): Add check for Preelaborable_Initialization
15067         * g-comlin.adb: Add Warnings (Off) to prevent new warning
15069         * g-expect.adb: Add Warnings (Off) to prevent new warning
15071         * lib-xref.adb: Add handling of Last_Assignment field
15072         (Generate_Reference): Centralize handling of pragma Obsolescent here
15073         (Generate_Reference): Accept an implicit reference generated for a
15074         default in an instance.
15075         (Generate_Reference): Accept a reference for a node that is not in the
15076         main unit, if it is the generic body corresponding to an subprogram
15077         instantiation.
15079         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
15081         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
15082         -gnatwq/Q.
15083         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
15084         exception handler.
15085         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
15086         use clauses, to avoid messages on packages used to qualify, and also
15087         to avoid messages from obsolescent units.
15088         (Warn_On_Useless_Assignments): Don't generate messages for imported
15089         and exported variables.
15090         (Warn_On_Useless_Assignments): New procedure
15091         (Output_Obsolescent_Entity_Warnings): New procedure
15092         (Check_Code_Statement): New procedure
15094         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
15095         Change name Is_Ada_2005 to Is_Ada_2005_Only
15096         (Last_Assignment): New field for useless assignment warning
15098 2006-10-31  Olivier Hainque  <hainque@adacore.com>
15100         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
15101         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
15103 2006-10-31  Bob Duff  <duff@adacore.com>
15104             Robert Dewar  <dewar@adacore.com>
15105             Ed Schonberg  <schonberg@adacore.com>
15107         * g-awk.adb (Default_Session, Current_Session): Compile this file in
15108         Ada 95 mode, because it violates the new rules for AI-318.
15110         * g-awk.ads: Use overloaded subprograms in every case where we used to
15111         have a default of Current_Session. This makes the code closer to be
15112         correct for both Ada 95 and 2005.
15114         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
15115         code, relying on the fact that the compiler generates a warning
15116         instead of an error in -gnatg mode.
15118         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
15119         E_Return_Statement entity kind.
15120         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
15122         * par.adb (P_Interface_Type_Definition): Addition of one formal to
15123         report an error if the reserved word abstract has been previously found.
15124         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
15126         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
15127         parenthesized range attribute usage
15128         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
15130         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
15131         in the syntax for extended_return_statement. This is not in the latest
15132         RM, but the ARG is expected to issue an AI allowing this.
15133         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
15134         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
15135         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
15136         P_Return_Statement): Parse the new syntax for extended_return_statement.
15138         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
15139         Output_End_Missing): Add error-recovery code for the new
15140         extended_return_statement syntax; that is, the new E_Return entry on
15141         the scope stack.
15143         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
15144         limited to nonlimited, because otherwise we violate the new Ada 2005
15145         rules about returning limited types in function Create_AST_Handler in
15146         s-asthan.adb.
15148         * sem.adb (Analyze): Add cases for new node kinds
15149         N_Extended_Return_Statement and N_Return_Object_Declaration.
15151         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
15152         type is in the same category as type of context before applying check,
15153         to prevent anomalies in instantiations.
15154         (Resolve_Aggregate): Remove test for limited components in aggregates.
15155         It's unnecessary in Ada 95, because if it has limited components, then
15156         it must be limited. It's wrong in Ada 2005, because limited aggregates
15157         are now allowed.
15158         (Resolve_Record_Aggregate): Move check for limited types later, because
15159         OK_For_Limited_Init requires its argument to have been resolved.
15160         (Get_Value): When copying the component default expression for a
15161         defaulted association in an aggregate, use the sloc of the aggregate
15162         and not that of the original expression, to prevent spurious
15163         elaboration errors, when the expression includes function calls.
15164         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
15165         were missing. We also didn't handle qualified expressions. Now also
15166         allow function calls. Use new common routine OK_For_Limited_Init.
15167         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
15168         with space can upper case letter).
15170         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
15171         Has_Static_Discriminants flag
15172         (Record_Type_Declaration): Diagnose an attempt to declare an interface
15173         type with discriminants.
15174         (Process_Range_Expr_In_Decl): Do validity checks on range
15175         (Build_Discriminant_Constraints): Use updated form of
15176         Denotes_Discriminant.
15177         (Process_Subtype): If the subtype is a private subtype whose full view
15178         is a concurrent subtype, introduce an itype reference to prevent scope
15179         anomalies in gigi.
15180         (Build_Derived_Record_Type, Collect_Interface_Primitives,
15181         Record_Type_Declaration):  The functionality of the subprograms
15182         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
15183         is now performed by a single routine.
15184         (Build_Derived_Record_Type): If the type definition includes an explicit
15185         indication of limitedness, then the type must be marked as limited here
15186         to ensure that any access discriminants will not be treated as having
15187         a local anonymous access type.
15188         (Check_Abstract_Overriding): Issue a detailed error message when an
15189         abstract subprogram was not overridden due to incorrect mode of its
15190         first parameter.
15191         (Analyze_Private_Extension_Declaration): Add support for the analysis of
15192         synchronized private extension declarations. Verify that the ancestor is
15193         a limited or synchronized interface or in the generic case, the ancestor
15194         is a tagged limited type or synchronized interface and all progenitors
15195         are either limited or synchronized interfaces.
15196         Derived_Type_Declaration): Check for presence of private extension when
15197         dealing with synchronized formal derived types.
15198         Process_Full_View): Enchance the check done on the usage of "limited" by
15199         testing whether the private view is synchronized.
15200         Verify that a synchronized private view is completed by a protected or
15201         task type.
15202         (OK_For_Limited_Init_In_05): New function.
15203         (Analyze_Object_Declaration): Move check for limited types later,
15204         because OK_For_Limited_Init requires its argument to have been resolved.
15205         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15206         in order to alleviate the upward compatibility introduced by AI-318.
15207         (Constrain_Corresponding_Record): If the constraint is for a component
15208         subtype, mark the itype as frozen, to avoid out-of-scope references to
15209         discriminants in the back-end.
15210         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
15211         this subprogram against wrong sources.
15212         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
15213         discriminant of limited type completed with a protected type, when the
15214         discriminant is used to constrain a private component of the type, and
15215         expansion is disabled.
15216         (Find_Type_Of_Object): Do not treat a return subtype that is an
15217         anonymous subtype as a local_anonymous_type, because its accessibility
15218         level is the return type of the enclosing function.
15219         (Check_Initialization): In -gnatg mode, turn the error "cannot
15220         initialize entities of limited type" into a warning.
15221         (OK_For_Limited_Init): Return true for generated nodes, since it
15222         sometimes violates the legality rules.
15223         (Make_Incomplete_Declaration): If the type for which an incomplete
15224         declaration is created happens to be the currently visible entity,
15225         preserve the homonym chain when removing it from visibility.
15226         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
15227         inherited subprograms.
15228         (Access_Definition): If this is an access to function that is the return
15229         type of an access_to_function definition, context is a type declaration
15230         and the scope of the anonymous type is the current one.
15231         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
15232         incomplete subtype to the set of private dependents of the original
15233         incomplete type.
15234         (Constrain_Discriminated_Type): Emit an error message whenever an
15235         incomplete subtype is being constrained.
15236         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
15237         corresponding subtype of the full view of the original incomplete type.
15238         (Check_Incomplete): Properly detect invalid usage of incomplete types
15239         and subtypes.
15241 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
15243         * g-catiio.ads, g-catiio.adb (Value): New function.
15244         Given an input String, try and parse a valid Time value.
15246 2006-10-31  Vincent Celier  <celier@adacore.com>
15248         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
15249         Integer_Address arithmetic, as in Set_Valid.
15251 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
15252             Robert Dewar  <dewar@adacore.com>
15254         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
15255         handling executable extension manually and duplicating code.
15257         * make.adb: Implement new -S switch
15258         (Gnatmake): Use new function Osint.Executable_Name instead
15259         of handling executable extension manually.
15261         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
15262         is specified, the executable name ends with this suffix.
15263         Take advantage of Osint.Executable_Name instead of duplicating code.
15265         * switch-m.adb: Recognize new gnatmake -S switch
15267         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
15268         variable.
15269         (Get_Target_Parameters): Set Executable_Extension_On_Target if
15270         available.
15272         * makeusg.adb: Add line for gnatmake -S switch
15274 2006-10-31  Vincent Celier  <celier@adacore.com>
15276         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
15277         call it with -static-libgcc, as there are some platforms, such as
15278         Darwin, where one of these two switches is compulsory to link.
15280 2006-10-31  Vincent Celier  <celier@adacore.com>
15282         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
15283         instead of ADA_PROJECT_PATH, for the project path.
15284         (Gnatls): When displaying the project path directories, use host dir
15285         specs.
15287         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
15288         names in the project path, as absolute paths may correspond to
15289         multi-valued VMS logical names.
15291 2006-10-31  Vincent Celier  <celier@adacore.com>
15293         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
15294         absolute path name.
15295         (Locate_Regular_File): Ditto
15296         (Change_Dir): Remove, no longer used
15297         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
15298         on Windows. Get it calling Get_Current_Dir.
15299         (OpenVMS): Remove imported boolean, no longer needed.
15300         (Normalize_Pathname)[VMS]: Do not resolve directory names.
15301         (Pid_To_Integer): New function to convert a Process_Id to  Integer
15303 2006-10-31  Thomas Quinot  <quinot@adacore.com>
15305         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
15306         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
15307         to No_Socket.
15308         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
15309         W_Sig_Socket.
15311 2006-10-31  Robert Dewar  <dewar@adacore.com>
15313         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
15314         initial letter o as a zero.
15316 2006-10-31  Robert Dewar  <dewar@adacore.com>
15318         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
15320 2006-10-31  Robert Dewar  <dewar@adacore.com>
15322         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
15323         variant records
15324         (Layout_Variant_Record): Retrieve the discriminants from the entity
15325         rather than from the type definition, because in the case of a full
15326         type for a private type we need to take the discriminants from the
15327         partial view.
15328         (Layout_Component_List): When applying the Max operator to variants with
15329         a nonstatic size, check whether either operand is static and scale that
15330         operand from bits to storage units before applying Max.
15331         (Layout_Type): In VMS, if a C-convention access type has no explicit
15332         size clause (and does not inherit one in the case of a derived type),
15333         then the size is reset to 32 from 64.
15335 2006-10-31  Vincent Celier  <celier@adacore.com>
15337         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
15338         its file has already been loaded, according to the unit being loaded,
15339         not to the current value of Multiple_Unit_Index.
15341 2006-10-31  Thomas Quinot  <quinot@adacore.com>
15342             Eric Botcazou  <ebotcazou@adacore.com>
15343             Arnaud Charlet  <charlet@adacore.com>
15345         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
15346         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
15347         possible.
15348         (a-except.o): Pass it to the compiler.
15349         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
15350         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
15351         a-calend-mingw.adb version.
15353         * Makefile.rtl: Added s-dsaser.
15354         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
15355         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
15356         Ada.Dispatching.Round_Robin.
15357         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
15359         * Make-lang.in: Remove all references to gt-ada-decl.h.
15360         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
15361         sources.
15362         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
15363         Update dependencies.
15365         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
15367 2006-10-31  Vincent Celier  <celier@adacore.com>
15369         * mlib-utl.adb (Initialized): Remove, no longer used
15370         (Initialize): Remove, no longer used
15371         (Ar): If Ar_Exec is null, get the location of the archive builder and,
15372         if there is one, the archive indexer. Fail if the archive builder cannot
15373         be found.
15374         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
15375         be found.
15377 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15379         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
15380         Process_Body_Clauses): If the context of a body includes a use clause
15381         for P.Q then a with_clause for P in the same body is not redundant,
15382         even if the spec also has a with_clause on P.
15383         Add missing continuation mark to error msg
15384         (Build_Limited_Views): A limited view of a type is tagged if its
15385         declaration includes a record extension.
15386         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
15387         node, even if the subunit has errors. This avoids malfunction by
15388         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
15389         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
15390         generation of obsolescent messages for with statements (cannot do
15391         this too early, or we cannot implement avoiding the messages in the
15392         case of obsolescent units withing obsolescent units).
15393         (Install_Siblings): If the with_clause is on a remote descendant of
15394         an ancestor of the current compilation unit, find whether there is
15395         a sibling child unit that is immediately visible.
15396         (Remove_Private_With_Clauses): New procedure, invoked after completing
15397         the analysis of the private part of a nested package, to remove from
15398         visibility the private with_clauses of the enclosing package
15399         declaration.
15400         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
15401         now centralized in Generate_Reference.
15402         (Install_Limited_Context_Clauses): Remove superfluous error
15403         message associated with unlimited view visible through use
15404         and renamings. In addition, at the point in which the error
15405         is reported, we add the backslash to the text of the error
15406         to ensure that it is reported as a single error message.
15407         Use new // insertion for some continuation messages
15408         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
15409         to create implicit with_clause for parent unit mentioned in original
15410         limited_with_clause.
15411         (Install_Limited_With_Unit): Set entity of parent identifiers if the
15412         unit is a child unit. For ASIS queries.
15413         (Analyze_Subunit): If the subunit appears within a child unit, make all
15414         ancestor child units directly visible again.
15416 2006-10-31  Robert Dewar  <dewar@adacore.com>
15418         * par-ch10.adb (P_Context_Clause): Minor error message fix
15420 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
15421             Javier Miranda  <miranda@adacore.com>
15423         * par-ch12.adb: Grammar update and cleanup.
15424         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
15425         support for synchronized derived type definitions.
15426         Add the new actual Abstract_Present to every call to
15427         P_Interface_Type_Definition.
15428         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
15429         a formal object declaration with an access definition or a subtype mark
15430         with a null exclusion.
15431         (P_Generic_Association): Handle association with box, and others_choice
15432         with box, to support Ada 2005 partially parametrized formal packages.
15434 2006-10-31  Robert Dewar  <dewar@adacore.com>
15435             Javier Miranda  <miranda@adacore.com>
15437         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
15438         (P_Type_Declaration): Remove barrier against the reserved word "limited"
15439         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
15440         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
15441         private extensions.
15442         (P_Type_Declaration): Add the new actual Abstract_Present to every call
15443         to P_Interface_Type_Definition.
15444         (P_Interface_Type_Definition): Addition of one formal to report an error
15445         if the reserved word abstract has been previously found.
15446         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
15447         object renaming declaration with an access definition or subtype mark
15448         with a possible null exclusion.
15450         * par-ch9.adb: Minor error msg fix
15452         * par-load.adb: Add missing continuation mark to error msg
15454         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
15456 2006-10-31  Vincent Celier  <celier@adacore.com>
15458         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
15459         unknown attribute in unknown package or in package that does not need
15460         to be checked.
15461         (Parse_Package_Declaration): Do not issue warning for unknown package in
15462         quiet output.
15464 2006-10-31  Vincent Celier  <celier@adacore.com>
15466         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
15467         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
15468         Packages_To_Check.
15470 2006-10-31  Vincent Celier  <celier@adacore.com>
15472         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
15473         on VMS, change "__" to '.' before checking the name.
15474         (Record_Ada_Source): Always add the source file name in the list of
15475         of sources, even if it is not the first time, as it is for another
15476         source index.
15477         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
15478         dot, instead of replacing only the first '_'.
15480         * prj-part.adb (Parse): Convert project file path to canonical form
15482         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
15483         extended, the project id of the project extending it is recorded in its
15484         data, even when it has already been processed as an imported project.
15486 2006-10-31  Robert Dewar  <dewar@adacore.com>
15488         * repinfo.adb (List_Entities): Don't list entities from renaming
15489         declarations.
15491 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
15492             Robert Dewar  <dewar@adacore.com>
15494         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
15495         only a restriction warning is active for the given restriction. This is
15496         desirable because we do not want to modify code in the case where only
15497         a warning is set.
15498         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
15499         causes overriding of real restrictions.
15500         Take advantage of new No_Restrictions constant.
15502         * raise.h: (__gnat_set_globals): Change profile.
15504 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
15506         * rtsfind.adb: Remove s-polint from comment as it exists no more.
15508         * rtsfind.ads: 
15509         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
15510         Move all the entities in obsolete package System.PolyORB_Interface to
15511         System.Partition_Interface.
15512         (RE_Storage_Size): New function in System.Tasking.
15513         (RE_Get_Ceiling): New entity.
15514         (RE_Set_Ceiling): New entity.
15515         (RO_PE_Get_Ceiling): New entity.
15516         (RO_RE_Set_Ceiling): New entity.
15517         (Inherit_CPP_DT): New entity
15519 2006-10-31  Robert Dewar  <dewar@adacore.com>
15521         * scng.adb (Scan, case of numeric literal): Better msg for identifier
15522         starting with a digit.
15524 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15525             Thomas Quinot  <quinot@adacore.com>
15526             Javier Miranda  <miranda@adacore.com>
15527             Gary Dismukes  <dismukes@adacore.com>
15529         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
15530         properly an attempt to apply Unchecked_Access to a protected operation.
15531         (OK_Self_Reference): New subprogram to check the legality of an access
15532         attribute whose prefix is the type of an enclosing aggregate.
15533         Generalizes previous mechanism to handle attribute references nested
15534         arbitrarily deep within the aggregate.
15535         (Analyze_Access_Attribute): An access attribute whose prefix is a type
15536         can appear in an aggregate if this is a default-initialized aggregate
15537         for a self-referential type.
15538         (Resolve_Attribute, case Access): Ditto.
15539         Add support for new implementation defined attribute Stub_Type.
15540         (Eval_Attribute, case Attribute_Stub_Type): New case.
15541         (Analyze_Attribute, case Attribute_Stub_Type): New case.
15542         (Stream_Attribute_Available): Implement using new subprogram from
15543         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
15544         Has_Specified_Stream_Attribute flag.
15545         Disallow Storage_Size and Storage_Pool for access to subprogram
15546         (Resolve_Attribute, case 'Access et al): Take into account anonymous
15547         access types of return subtypes in extended return statements. Remove
15548         accessibility checks on anonymous access types when Unchecked_Access is
15549         used.
15550         (Analyze_Attribute): Add support for the use of 'Class to convert
15551         a class-wide interface to a tagged type.
15552         Add support for the attribute Priority.
15553         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
15554         whether the designated type is discriminated with a constrained partial
15555         view and require static matching in that case.
15556         Add local variable Des_Btyp. The Designated_Type
15557         of an access to incomplete subtype is either its non-limited view if
15558         coming from a limited with or its etype if regular incomplete subtype.
15560         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
15561         Fix predicate to identify and allow cases of (expander-generated)
15562         references to tag of designated object of a RACW.
15563         (Validate_Static_Object_Name): In Ada 2005, a formal object is
15564         non-static, and therefore cannot appear as a primary in a preelaborable
15565         package.
15566         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
15567         Has_Read_Write_Attributes.
15568         (Has_Read_Write_Attributes): Reimplement in termes of
15569         Has_Stream_Attribute_Definition.
15570         (Missing_Read_Write_Attributes): When checking component types in a
15571         record, unconditionally call Missing_Read_Write_Attributes recursively
15572         (remove guard checking for Is_Record_Type / Is_Access_Type).
15574 2006-10-31  Robert Dewar  <dewar@adacore.com>
15576         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
15577         useless assignments here and conditionalize it on absence of exception
15578         handlers.
15579         (Analyze_Exception_Handlers): Small code reorganization of error
15580         detection code, for new handling of formal packages.
15582 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15583             Hristian Kirtchev  <kirtchev@adacore.com>
15585         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
15586         that has been constant-folded, preserve information of original tree,
15587         for ASIS uses.
15588         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
15589         generated private extension declaration if the formal derived type is
15590         synchronized. Carry synchronized present over to the generated private
15591         extension.
15592         (Validate_Derived_Type_Instance): Ensure that the actual of a
15593         synchronized formal derived type is a synchronized tagged type.
15594         (Instantiate_Formal_Package): When creating the instantiation used to
15595         validate the actual package of a formal declared without a box, check
15596         whether the formal itself depends on a prior actual.
15597         (Instantiate_Formal_Subprogram): Create new entities for the defining
15598         identifiers of the formals in the renaming declaration, for ASIS use.
15599         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
15600         a renaming declaration or a subtype declaration for an actual in an
15601         instance, capture location information of declaration in generic, for
15602         ASIS use.
15603         (Instantiate_Formal_Package): Add comments on needed additional tests.
15604         AI-317 (partial parametrization) is fully implemented.
15605         (Validate_Private_Type_Instance): Add check for actual which
15606         must have preelaborable initialization
15607         Use new // insertion for some continuation messages
15608         (Analyze_Formal_Object_Declaration): Change usage of Expression to
15609         Default_Expression. Add type retrieval when the declaration has an
15610         access definition. Update premature usage of incomplete type check.
15611         (Check_Access_Definition): New subsidiary routine. Check whether the
15612         current compilation version is Ada 05 and the supplied node has an
15613         access definition.
15614         (Instantiate object): Alphabetize local variables. Handle the creation
15615         of new renaming declarations with respect to the kind of definition
15616         used - either an access definition or a subtype mark. Guard against
15617         unnecessary error message in the context of anonymous access types after
15618         they have been resolved. Add check for required null exclusion in a
15619         formal object declaration.
15620         (Switch_View): A private subtype of a non-private type needs to be
15621         switched (the base type can have been switched without its private
15622         dependents because of the last branch of Check_Private_View.
15623         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
15624         value from BT.
15625         (Instantiate_Type): Emit an error message whenever a class-wide type of
15626         a tagged incomplete type is used as a generic actual.
15627         (Find_Actual_Type): Extend routine to handle a component type in a child
15628         unit that is imported from a formal package in a parent.
15629         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
15630         agree on constrainedness, rather than checking against ultimate ancestor
15631         (Instantiate_Subprogram_Body): Create a cross-reference link to the
15632         generic body, for navigation purposes.
15634 2006-10-31  Robert Dewar  <dewar@adacore.com>
15635             Thomas Quinot  <quinot@adacore.com>
15637         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
15638         type.
15639         (New_Stream_Subprogram): When processing an attribute definition clause
15640         for a stream-oriented subprogram, record an entity node occurring at
15641         the point of clause to use for checking the visibility of the clause,
15642         as defined by 8.3(23) as amended by AI-195.
15643         (New_Stream_Subprogram): New procedure, factoring behaviour from both
15644          New_Stream_Function and New_Stream_Procedure.
15645         (New_Stream_Function, New_Stream_Procedure): Removed.
15646         (Analyze_Attribute_Definition_Clause, case Address): Check new
15647         Alignment_Check check
15649 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15650             Javier Miranda  <miranda@adacore.com>
15651             Robert Dewar  <dewar@adacore.com>
15653         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
15654         generate the same errors compiling under -gnatc.
15655         (Try_Object_Operation): If no candidate interpretation succeeds, but
15656         there is at least one primitive operation with the right name, report
15657         error in call rather than on a malformed selected component.
15658         (Analyze_Selected_Component): If the prefix is an incomplete type from
15659         a limited view, and the full view is available, use the full view to
15660         determine whether this is a prefixed call to a primitive operation.
15661         (Operator_Check): Verify that a candidate interpretation is a binary
15662         operation before checking the type of its second formal.
15663         (Analyze_Call): Add additional warnings for function call contexts not
15664         yet supported.
15665         (Analyze_Allocator): Move the check for "initialization not allowed for
15666         limited types" after analyzing the expression. This is necessary,
15667         because OK_For_Limited_Init looks at the structure of the expression.
15668         Before analysis, we don't necessarily know what sort of expression it
15669         is. For example, we don't know whether F(X) is a function call or an
15670         indexed component; the former is legal in Ada 2005; the latter is not.
15671         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
15672         were missing. We also didn't handle qualified expressions. Now also
15673         allow function calls. Use new common routine OK_For_Limited_Init.
15674         (Analyze_Type_Conversion): Do not perform some legality checks in an
15675         instance, because the error message will be redundant or spurious.
15676         (Analyze_Overloaded_Selected_Component): Do not do style check when
15677         setting an entity, since we do not know it is the right entity yet.
15678         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
15679         (Analyze_Overloaded_Selected_Component): Same change
15680         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
15681         since regular incomplete subtypes are transformed into corresponding
15682         subtypes of their full views.
15683         (Complete_Object_Operation): Treat name of transformed subprogram call
15684         as coming from source, for browsing purposes.
15685         (Try_Primitive_Operation): If formal is an access parameter, compare
15686         with base type of object to determine whether it is a primitive
15687         operation.
15688         (Operator_Check): If no interpretation of the operator matches, check
15689         whether a use clause on any candidate might make the operation legal.
15690         (Try_Class_Wide_Operation): Check whether the first parameter is an
15691         access type whose designated type is class-wide.
15693 2006-10-31  Robert Dewar  <dewar@adacore.com>
15694             Ed Schonberg  <schonberg@adacore.com>
15695             Gary Dismukes  <dismukes@adacore.com>
15697         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
15698         warn on infinite loops.
15699         Add \\ to some continuation messages
15700         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
15701         (Process_Bounds): If the bounds are integer literals that result from
15702         constant-folding, and they carry a user-defined type, preserve that type
15703         rather than treating this as an integer range.
15704         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
15705         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
15706         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
15707         left hand side of assignment.
15708         (Analyze_Assignment): Add suport to manage assigments to the attribute
15709         priority of a protected object.
15710         (Check_Possible_Current_Value_Condition): Allow fully qualified names
15711         not just identifiers.
15712         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
15713         or AND THEN for possible tracking.
15714         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
15715         case of while loops so we can track values in the loop body.
15717 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15718             Hristian Kirtchev  <kirtchev@adacore.com>
15719             Bob Duff  <duff@adacore.com>
15721         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
15722         procedure cannot be a protected operation (it is a basic_declaration,
15723         not a subprogram_declaration).
15724         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
15725         Subp. Add logic for entry processing.
15726         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
15727         Determine whether an entry or subprogram of a protected or task type
15728         override an inherited primitive of an implemented interface.
15729         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
15730         Update the actual used in calls to Check_Overriding_Indicator.
15731         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
15732         generate the proper reference to the parent unit, for cross-reference.
15733         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
15734         Is_Formal.
15735         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15736         (Add_Extra_Formal): Revise procedure to allow passing in associated
15737         entity, scope, and name suffix, and handle setting of the new
15738         Extra_Formals field.
15739         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
15740         pass new parameters. Add support for adding the new extra access formal
15741         for functions whose calls are treated as build-in-place.
15742         (Analyze_A_Return_Statement): Correct casing in error message.
15743         Move Pop_Scope to after Analyze_Function_Return, because an extended
15744         return statement really is a full-fledged scope. Otherwise, visibility
15745         doesn't work right. Correct use of "\" for continuation messages.
15746         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
15747         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
15748         the node doesn't get properly marked as analyzed.
15749         (Analyze_Subprogram_Body): If subprogram is a function that returns
15750         an anonymous access type that denotes a task, build a Master Entity
15751         for it.
15752         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
15753         proper usage of null exclusion in a result definition.
15754         (Process_Formals): Code cleanup and new error message.
15755         (Process_Formals): Detect incorrect application of null exclusion to
15756         non-access types.
15757         (Conforming_Types): Handle conformance between [sub]types and itypes
15758          generated for entities that have null exclusions applied to them.
15759         (Maybe_Primitive_Operation): Add an additional type retrieval when the
15760          base type is an access subtype. This case arrises with null exclusions.
15761         (New_Overloaded_Entity): Do not remove the overriden entity from the
15762         homonym chain if it corresponds with an abstract interface primitive.
15763         (Process_Formals): Replace membership test agains Incomplete_Kind with a
15764         call to the synthesized predicate Is_Incomplete_Type.
15765         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
15766         primitives.
15767         (Analyze_Subprogram_Declaration): Check that abstract interface
15768         primitives are abstract or null.
15769         (Analyze_Subprogram_Specification): Remove previous check for abstract
15770         interfaces because it was not complete.
15771         (Has_Interface_Formals): Removed.
15773 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15774             Javier Miranda  <miranda@adacore.com>
15776         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
15777         of Analyze_Package_Body, to create Itype references for anonymous
15778         access types created in the package declaration, whose designated types
15779         may have only a limited view.
15780         (Analyze_Package_Specification): For the private part of a nested
15781         package, install private_with_clauses of enclosing compilation unit if
15782         we are in its visible part.
15783         (Declare_Inherited_Private_Subprograms): Complete barrier
15784         to ensure that the primitive operation has an alias to some parent
15785         primitive. This is now required because, after the changes done for the
15786         implementation of abstract interfaces, the contents of the list of
15787         primitives has entities whose alias attribute references entities of
15788         such list of primitives.
15789         (Analyze_Package_Specification): Simplify code that handles parent units
15790         of instances and formal packages.
15791         (Uninstall_Declarations): Check the convention consistency among
15792         primitive overriding operations of a tagged record type.
15794 2006-10-31  Robert Dewar  <dewar@adacore.com>
15795             Hristian Kirtchev  <kirtchev@adacore.com>
15796             Javier Miranda  <miranda@adacore.com>
15797             Ed Schonberg  <schonberg@adacore.com>
15799         * sem_ch8.adb: Minor error msg rewording
15800         (Undefined): When checking for misspellings, invert arguments (to get
15801         expected and found set right)
15802         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
15803         (Analyze_Generic_Renaming): Same fix
15804         (Use_One_Package): Do not take into account the internal entities of
15805         abstract interfaces during the analysis of entities that are marked
15806         as potentially use-visible.
15807         (Find_Type): Handle the case of an attribute reference for
15808         implementation defined attribute Stub_Type (simply let the analysis of
15809         the attribute reference rewrite it).
15810         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
15811         type that appears in a Use_Type clause.
15812         (Analyze_Object_Renaming): Add support for renaming of the Priority
15813         attribute.
15814         (Find_Type): In Ada 2005, a task type can be used within its own body,
15815         when it appears in an access definition.
15816         (Analyze_Object_Renaming): Remove warning on null_exclusion.
15817         (Analyze_Object_Renaming): Introduce checks for required null exclusion
15818          in a formal object declaration or in a subtype declaration.
15819         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
15820         (Check_Null_Exclusion): New local routine to
15821         Analyze_Subprogram_Renaming. Check whether the formals and return
15822         profile of a renamed subprogram have required null exclusions when
15823         their counterparts of the renaming already impose them.
15824         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
15825         Determine whether an entity is inside a generic scope.
15826         (In_Open_Scope): First pass of documentation update.
15827         (Find_Expanded_Name): Add support for shadow entities associated with
15828         limited withed packages. This is required to handle nested packages.
15829         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
15830         that makes a renaming of a limited withed package illegal.
15832 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
15833             Ed Schonberg  <schonberg@adacore.com>
15835         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
15836         Check_Overriding_Indicator.
15837         (Analyze_Task_Definition): Ditto.
15838         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
15839         (Check_Overriding_Indicator): To find overridden interface operation,
15840         examine only homonyms that have an explicit subprogram declaration, not
15841         inherited operations created by an unrelated type derivation.
15842         (Check_Overriding_Indicator): When checking for the presence of "null"
15843         in a procedure, ensure that the queried node is a procedure
15844         specification.
15845         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
15846         type when the formal is an access to variable.
15847         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
15848         (Analyze_Task_Type): Same addition
15849         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
15850         provide navigation capabilities for entries.
15852 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
15853             Ed Schonberg  <schonberg@adacore.com>
15854             Javier Miranda  <miranda@adacore.com>
15855             Gary Dismukes  <dismukes@adacore.com>
15857         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
15858         inherited from an interface ancestor by another interface in the
15859         context of an instance as 'late'.
15860         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
15861         of a call to a function that dispatches on access result.
15862         (Check_Dispatching_Operation): In case of late overriding of a primitive
15863         that covers abstract interface subprograms we register it in all the
15864         secondary dispatch tables associated with abstract interfaces.
15865         (Check_Dispatching_Call): Add check that a dispatching call is not made
15866         to a function with a controlling result of a limited type. This is a
15867         current implementation restriction.
15868         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
15869         (Check_Dispatching_Operation): Do no emit a warning if the controlling
15870         argument is an interface type that is a generic formal.
15871         (Is_Interface_Subprogram): Removed.
15872         (Check_Dispatching_Operation): If the subprogram is not a dispatching
15873         operation, check the formals to handle the case in which it is
15874         associated with an abstract interface type.
15876 2006-10-31  Robert Dewar  <dewar@adacore.com>
15877             Ed Schonberg  <schonberg@adacore.com>
15879         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
15880         Add new calls to this procedure during traversal
15881         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
15882         another unit if expansion is disabled.
15884 2006-10-31  Robert Dewar  <dewar@adacore.com>
15886         * sem_eval.adb (Compile_Time_Compare): Make use of information from
15887         Current_Value in the conditional case, to evaluate additional
15888         comparisons at compile time.
15890 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15891             Hristian Kirtchev  <kirtchev@adacore.com>
15892             Javier Miranda  <miranda@adacore.com>
15894         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
15895         subprogram type to provide better diagnostics in case of ambiguity.
15896         (Covers): Handle coverage of formal and actual anonymous access types in
15897         the context of generic instantiation.
15898         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
15899         abstract interface types; this is required to handle concurrent types
15900         with discriminants and abstract interface types.
15901         (Covers): Include type coverage of both regular incomplete subtypes and
15902         incomplete subtypes of incomplete type visibles through a limited with
15903         clause.
15905 2006-10-31  Robert Dewar  <dewar@adacore.com>
15906             Hristian Kirtchev  <kirtchev@adacore.com>
15907             Ed Schonberg  <schonberg@adacore.com>
15909         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
15910         messages for entities in packages which are not used.
15911         (Collect_Synchronized_Interfaces): New procedure.
15912         (Overrides_Synchronized_Primitive): New function.
15913         (Denotes_Discriminant): Extend predicate to apply to task types.
15914         Add missing continuation marks in error msgs
15915         (Unqualify): New function for removing zero or more levels of
15916         qualification from an expression. There are numerous places where this
15917         ought to be used, but we currently only deal properly with zero or one
15918         level.
15919         (In_Instance); The analysis of the actuals in the instantiation of a
15920         child unit is not within an instantiation, even though the parent
15921         instance is on the scope stack.
15922         (Safe_To_Capture_Value): Exclude the case of variables that are
15923         renamings.
15924         (Check_Obsolescent): Removed
15925         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
15926         is an aliased view, even when rewritten as a reference to the target
15927         object in an assignment.
15928         (Get_Subprogram_Entity): New function
15929         (Known_To_Be_Assigned): New function
15930         (Type_Access_Level): Compute properly the access level of a return
15931         subtype that is an anonymous access type.
15932         (Explain_Limited_Type): Correct use of "\" for continuation messages.
15933         (Is_Transfer): The new extended_return_statement causes a transfer of
15934         control.
15935         (Has_Preelaborable_Initialization): New function
15936         (Has_Null_Exclusion): New function. Given a node N, determine whether it
15937         has a null exclusion depending on its Nkind.
15938         Change Is_Lvalue to May_Be_Lvalue
15939         (May_Be_Lvalue): Extensive additional code to deal with subprogram
15940         arguments (IN parameters are not Lvalues, IN OUT parameters are).
15941         (Safe_To_Capture_Value): Extend functionality so it can be used for
15942         the current value condition case.
15943         (Has_Compatible_Alignment): New function
15944         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
15945         objects to handle the Ada 2005 case, where aliasedness no longer implies
15946         that the object is constrained. In particular, for dereferenced names,
15947         the designated object must be assumed to be unconstrained.
15948         (Kill_Current_Values): Properly deal with the case where we encounter
15949         a loop in the scope chain.
15950         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
15951         a value.
15952         (Compile_Time_Constraint_Error): Improve error message in error case
15954         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
15955         associated with entities of abstract interface primitives.
15956         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
15958 2006-10-31  Robert Dewar  <dewar@adacore.com>
15960         * s-osinte-tru64.adb: 
15961         Mark Asm statements Volatile to prevent warnings (seems a
15962         reasonable change anyway)
15963         Fixes new warnings
15965         * s-mastop-irix.adb: Add Volatile to Asm statements
15966         Suppresses warning, and seems appropriate in any case
15968         * s-osinte-vms.adb: Add Volatile to Asm statement
15970         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
15972         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
15973         returned.
15974         Add call to Check_Code_Statement
15976 2006-10-31  Robert Dewar  <dewar@adacore.com>
15977             Ed Schonberg  <schonberg@adacore.com>
15978             Bob Duff  <duff@adacore.com>
15980         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
15981         Synchronized_Present): Add Formal_Derived_Type_Definition and
15982         Private_Extension_Declaration to the list of assertions.
15983         (Is_Entry_Barrier_Function): New flag
15984         (Has_Self_Reference): New flag on aggregates, to indicate that they
15985         contain a reference to the enclosing type, inserted through a default
15986         initialization.
15987         (Next_Rep_Item): Move from Node4 to Node5.
15988         (Entity): Add this field for N_Attribute_Definition_Clause.
15989         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
15990         (N_Return_Object_Declaration): Remove this node kind. We now use
15991         N_Object_Declaration instead.
15992         (Actual_Designated_Subtype): Move to a different place to make room in
15993         N_Extended_Return_Statement.
15994         (Procedure_To_Call): Move to a different place to make room in
15995         N_Extended_Return_Statement.
15996         (Return_Type): Removed this field to make room in return statements
15997         (both kinds).
15998         (Return_Statement_Entity): New field in return statements, in part to
15999         replace Return_Type, and in part to support the fact that return
16000         statements are now pushed on the scope stack during semantic analysis.
16001         (Return_Object_Declarations): New field to support extended return
16002         statements.
16003         (N_Extended_Return_Statement): New node for extended_return_statement
16004         nonterminal.
16005         (N_Return_Object_Declaration): New node for part of
16006         extended_return_statement nonterminal. Needed because all the necessary
16007         fields won't fit in N_Extended_Return_Statement.
16008         Generic_associations now carry the Box_Present flag, to indicate a
16009         default for an actual in a partially parametrized formal package.
16011         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
16012         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
16013         and for the new predefined dispatching policies: EDF_Across_Priorities,
16014         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
16015         Introduce new name Stub_Type for implementation defined attribute.
16016         Add pragma Preelaborable_Initialization
16017         Add entry for Priority attribute.
16018         Add Pragma_Wide_Character_Encoding
16019         (Get_Convention_Name): Given a convention id, this function returns the
16020         corresponding name id from the names table.
16022 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16023             Robert Dewar  <dewar@adacore.com>
16024             Bob Duff  <duff@adacore.com>
16026         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
16027         print null exclusion twice in the case of an access definition,
16028         Implement new -gnatL switch
16029         Remove N_Return_Object_Declaration. We now use
16030         N_Object_Declaration instead. Implement the case for
16031         N_Extended_Return_Statement. Alphabetize the cases.
16032         Add cases for new nodes N_Extended_Return_Statement and
16033         N_Return_Object_Declaration. The code is not yet written.
16034         Update the output for N_Formal_Object_Declaration
16035         and N_Object_Renaming_Declaration.
16036         (Write_Itype): Account for the case of a modular integer subtype whose
16037         base type is private.
16039 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
16041         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
16042         Remove elaboration code, now done in the binder.
16044         * s-rident.ads: Make this unit Preelaborate.
16045         (No_Restrictions): New constant used to clean up code and follow
16046         preelaborate constraints.
16048         * s-stalib.adb: 
16049         Add System.Restrictions dependence, referenced directly from the
16050         binder generated file.
16052 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
16054         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
16055         True when AAMP extended floating-point is in use (48-bit). Change type
16056         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
16057         the two byte array types on AFloat. Change type of IV_Ilf overlay
16058         variable from Byte8 to ByteLF. Add appropriate initializations of
16059         floating-point overlays for AAMP cases.
16061 2006-10-31  Javier Miranda  <miranda@adacore.com>
16063         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
16064         (Get_Ceiling): New subprogram that returns
16065         the ceiling priority of the protected object.
16066         (Set_Ceiling): New subprogram that sets the new ceiling priority of
16067         the protected object.
16069         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
16071         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
16073 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
16075         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
16076         requeuing to the same protected object to give higher priority tasks
16077         the opportunity to execute.
16079 2006-10-31  Robert Dewar  <dewar@adacore.com>
16081         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
16082         add more precise check for the character sequence that follows '[' to
16083         avoid possible confusion in case if '[' is the last character of a
16084         string literals.
16085         (Scan_Wide): Always allow brackets encoding
16087 2006-10-31  Olivier Hainque  <hainque@adacore.com>
16089         * s-stchop.ads: make this unit preelaborate. This is desirable in
16090         general and made mandatory by the use of this unit by s-taprop which
16091         is itself preelaborate.
16093         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
16094         Td_Events component.
16096 2006-10-31  Vincent Celier  <celier@adacore.com>
16098         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
16099         in file names.
16101 2006-10-31  Vincent Celier  <celier@adacore.com>
16103         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
16105 2006-10-31  Vincent Celier  <celier@adacore.com>
16107         * makegpr.adb (Check_Compilation_Needed): Take into account path names
16108         with spaces.
16109         (Check_Compilation_Needed): When checking a C or C++ source, do not
16110         resolve symbolic links.
16111         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
16112         When not in verbose mode and Ellipse is True, display "..." for the
16113         first argument with Display set to False.
16114         (Build_Global_Archive): Always set Display True for the first object
16115         file. Call Display_Command with Ellipse set to True.
16117 2006-10-31  Matt Heaney  <heaney@adacore.com>
16119         * a-crbtgo.ads: Commented each subprogram
16121         * a-crbtgo.adb: Added reference to book from which algorithms were
16122         adapted.
16124         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
16125         indicate which child.
16126         (Generic_Conditional_Insert): changed parameter name from "Success" to
16127         "Inserted".
16128         (Generic_Unconditional_Insert_With_Hint): improved algorithm
16130         * a-coorse.adb (Replace_Element): changed parameter name in call to
16131         conditional insert operation.
16133         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
16135         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
16136         Generic_Iteration
16138         * a-ciorse.adb (Replace_Element): changed parameter name in call to
16139         conditional insert operation.
16141         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
16142         Generic_Iteration.
16144         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
16145         instead of mode inout.
16147         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
16148         draft
16149         (Generic_Read): preserve existing buckets array if possible
16150         (Generic_Write): don't send buckets array length anymore
16152         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
16153         instead of mode inout.
16155         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
16156         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16158         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
16159         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16160         (Replace_Element): local operation is now an instantiation
16162         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
16163         check current length.
16164         (Generic_Replace_Element): new operation
16166 2006-10-31  Doug Rupp  <rupp@adacore.com>
16168         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
16169         Call TBK$SYMBOLIZE without omitting parameters.
16171 2006-10-31  Vincent Celier  <celier@adacore.com>
16173         * symbols-processing-vms-ia64.adb,
16174         symbols-processing-vms-alpha.adb (Process): Do not include symbols
16175         that come from generic instantiations in bodies.
16177 2006-10-31  Pat Rogers  <rogers@adacore.com>
16179         * a-rttiev.ads, a-rttiev.adb: 
16180         This is a significant redesign primarily for the sake of automatic
16181         timer task termination but also to fix a design flaw.
16182         Therefore we are now using an RTS lock, instead of a protected
16183         object, to provide mutual exclusion to the queue of pending events
16184         and the type Timing_Event is no longer a protected type.
16186 2006-10-31  Robert Dewar  <dewar@adacore.com>
16187             Cyrille Comar  <comar@adacore.com>
16188             Ben Brosgol  <brosgol@adacore.com>
16190         * debug.adb:  Update flags documentation
16192         * gnat_ugn.texi: Add documentation for new -gnatwq switch
16193         Clean up documentation for several other warning switches
16194         Clarify how task stack size can be specified with various
16195         versions of Windows.
16196         Add note that -gnatVo includes ranges including loops
16197         Add documentation for -gnatL switch
16198         Add note on elaboration warning for initializing variables
16199         Add documentation for new -gnatwt warning switch
16200         Document new form of pragma Warnings (On|Off, string)
16201         Add comment on use of pragma Warnings to control warnings
16202         Add documentation for -gnatjnn switch
16203         Modify section on interfacing with C for VMS 64-bit.
16204         Add doc for -gnatVe/E
16205         Add documentation of new warning flags -gnatww/-gnatwW
16206         Add warnings about address clause overlays to list of warnings
16207         (Exception Handling Control): Document that the option --RTS must be
16208         used consistently for gcc and gnatbind.
16209         Clarify that inlining is not always possible
16210         Update documentation on pragma Unchecked_Union.
16212         * gnat_rm.texi: 
16213         Add documentation for new extended version of pragma Obsolescent
16214         Add documentation for implementation defined attribute 'Stub_Type.
16215         Add note on use of Volatile in asm statements
16216         Add documentation on use of pragma Unreferenced in context clause
16217         Document new form of pragma Warnings (On|Off, pattern)
16218         Document pragma Wide_Character_Encoding
16219         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
16220         enforced if code generation is active.
16221         Add section on pragma Suppress to document GNAT specific check
16222         Alignment_Check
16223         Clarify difference between No_Dispatching_Calls & No_Dispatch.
16224         Add documentation for pragma Restrictions (No_Elaboration_Code)
16226         * gnat-style.texi: 
16227         Add comments on layout of subprogram local variables in the
16228         presence of nested subprograms.
16230         * ug_words: Resync.
16232         * elists.ads: Minor reformatting
16233         Node returns Node_Or_Entity_Id (doc change only)
16235         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
16237         * g-arrspl.ads (Create): Update comments.
16239         * sem.ads: Add details on the handling of the scope stack.
16241         * usage.adb: Update documentation.
16243         * validsw.ads, validsw.adb: 
16244         Add definition of Validity_Check_Components and implement -gnatVe/E
16246         * vms_data.ads: Add missing VMS qualifiers.
16248         * s-addope.ads: Add documentation on overflow and divide by zero
16250 2006-10-31  Robert Dewar  <dewar@adacore.com>
16251             Thomas Quinot  <quinot@adacore.com>
16252             Arnaud Charlet  <charlet@adacore.com>
16254         * fmap.adb: Put routines in alpha order
16256         * g-boumai.ads: Remove redundant 'in' keywords
16258         * g-cgi.adb: Minor reformatting
16260         * g-cgi.ads: Remove redundant 'in' keywords
16262         * get_targ.adb: Put routines in alpha order
16264         * prj-attr.ads: Minor reformatting
16266         * s-atacco.ads: Minor reformatting
16268         * scn.adb: Put routines in alpha order
16270         * sinput-l.adb: Minor comment fix
16272         * sinput-p.adb: Minor comment fix
16274         * s-maccod.ads: Minor reformatting
16276         * s-memory.adb: Minor reformatting
16278         * s-htable.adb: Fix typo in comment.
16280         * s-secsta.adb: Minor comment update.
16282         * s-soflin.adb: Minor reformatting
16284         * s-stoele.ads: 
16285         Add comment about odd qualification in Storage_Offset declaration
16287         * s-strxdr.adb: 
16288         Remove unnecessary 'in' keywords for formal parameters.
16290         * treeprs.adt: Minor reformatting
16292         * urealp.adb: Put routines in alpha order
16294         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
16295         taking string.
16297         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16299         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
16301         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
16302         workaround as on other platforms.
16304         * g-eacodu-vms.adb: Remove redundant 'in' keywords
16305         * g-expect-vms.adb: Remove redundant 'in' keywords
16307         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
16308         clear error message if the list-of-files file cannot be opened.
16310         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
16311         equality operator is always visible.
16313         * lang.opt: Woverlength-strings: New option.
16315         * nmake.adt: 
16316         Update copyright, since nmake.ads and nmake.adb have changed.
16318         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
16319         (Binder_Output_Time_Stamps_Set): removed.
16320         (Old_Binder_Output_Time_Stamp): idem.
16321         (New_Binder_Output_Time_Stamp): idem.
16322         (Recording_Time_From_Last_Bind): idem.
16323         (Recording_Time_From_Last_Bind): Make constant.
16325         * output.ads, output.adb (Write_Str): Allow LF characters
16326         (Write_Spaces): New procedure
16328         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
16330         * inline.adb: Minor reformatting
16332         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16334         * s-mastop-vms.adb: Remove redundant 'in' keywords
16336         * s-osprim-vms.adb: Remove redundant 'in' keywords
16338         * s-trafor-default.adb: Remove redundant 'in' keywords
16340         * 9drpc.adb: Remove redundant 'in' keywords
16342         * s-osinte-mingw.ads: Minor reformatting
16344         * s-inmaop-posix.adb: Minor reformatting
16346         * a-direio.ads: Remove quotes from Compile_Time_Warning message
16348         * a-exexda.adb: Minor code reorganization
16350         * a-filico.adb: Minor reformatting
16352         * a-finali.adb: Minor reformatting
16354         * a-nudira.ads: Remove quote from Compile_Time_Warning message
16356         * a-numeri.ads: Minor reformatting
16358         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
16360         * exp_pakd.ads: Fix obsolete comment
16362         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
16363         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
16364         Probably not a bug, but certainly neater and more efficient.
16366         * a-tienio.adb: Minor reformatting
16368         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
16369         Avoid assuming low bound of string is 1.
16371         * gnatbind.adb: Change Bindusg to package and rename procedure as
16372         Display, which now ensures that it only outputs usage information once.
16373         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
16375         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
16376         Table'First.
16378         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
16379         warning.
16380         (Match): Add pragma Assert to ensure that Matches'First is zero
16382         * g-regpat.ads (Match): Document that Matches lower bound must be zero
16384         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
16385         documented preconditions (also kills warnings about bad indexes).
16387         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
16388         is 1.
16389         (Build_Import_Library): Ditto;
16391         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
16393         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
16395         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
16396         lower bound of choice table is 1.
16398         * sem_case.ads (Analyze_Choices): Document that lower bound of
16399         Choice_Table is 1.
16401         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
16402         string is 1.
16404         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
16405         and add appropriate Assert pragma to suppress warnings.
16407         * atree.h, atree.ads, atree.adb
16408         Change Elist24 to Elist25
16409         Add definitions of Field28 and Node28
16410         (Traverse_Field): Use new syntactic parent table in sinfo.
16412         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16414         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16416         * exp_tss.adb: Put routines in alpha order
16418         * fe.h: Remove redundant declarations.
16420 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
16422         * utils.c (builtin_function): Rename to gnat_builtin_function.
16423         Move common code to add_builtin_function.
16424         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
16425         gnat_builtin_function.
16426         * gigi.h (builtin_function): Rename to gnat_builtin_function.
16427         Change the signature.
16429 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
16431         * Makefile.in: Add TEXI2PDF definition.
16432         * Make-lang.in: Add "ada.pdf" target.
16434 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
16436         * decl.c, utils.c: Fix comment typos.
16437         * utils.c: Fix a typo.
16439 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
16441         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
16442         on "pure" Ada subprograms if SJLJ exceptions are used.
16443         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
16444         on the declaration node of JMPBUF_SAVE.
16445         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
16446         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
16447         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
16449 2006-08-20  Laurent Guerby  <laurent@guerby.net>
16451         PR ada/28716
16452         g-socket.adb (Bind_Socket): Call Set_Address.
16454 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
16456         PR ada/15802
16457         * decl.c (same_discriminant_p): New static function.
16458         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
16459         subtype and we have discriminants, fix up the COMPONENT_REFs
16460         for the discriminants to make them reference the corresponding
16461         fields of the parent subtype after it has been built.
16463 2006-09-15  Roger Sayle  <roger@eyesopen.com>
16465         PR ada/18817
16466         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
16467         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
16469 2006-09-13  Olivier Hainque  <hainque@adacore.com>
16471         PR ada/29025
16472         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
16473         of a SAVE_EXPR, just make the operand addressable/not-readonly and
16474         let the common gimplifier code make and propagate a temporary copy.
16475         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
16476         out/in-out actuals and defer setting the addressable/readonly bits
16477         to the gimplifier.
16479 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
16481         PR ada/28591
16482         * decl.c (components_to_record): Defer emitting debug info for the
16483         record type associated with the variant until after we are sure to
16484         actually use it.
16486 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
16488         PR ada/21952
16489         * gigi.h (gnat_internal_attribute_table): Declare.
16490         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
16491         * utils.c (gnat_internal_attribute_table): New global variable.
16492         (builtin_function): Always call decl_attributes on the builtin.
16493         (handle_const_attribute): New static function.
16494         (handle_nothrow_attribute): Likewise.
16496 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
16498         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
16500 2006-06-23  Olivier Hainque  <hainque@adacore.com>
16502         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
16503         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
16505 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
16506             Eric Botcazou  <ebotcazou@adacore.com>
16508         PR ada/18692
16509         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
16510         check-gnat into check-acats.
16512 2006-06-17  Karl Berry  <karl@gnu.org>
16514         * gnat-style.texi (@dircategory): Use "Software development"
16515         instead of "Programming", following the Free Software Directory.
16517 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16519         PR ada/27944
16520         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
16522 2006-06-06  Laurent Guerby  <laurent@guerby.net>
16524         PR ada/27769
16525         mlib-utl.adb: Use Program_Name.
16527 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
16529         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
16530         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
16531         trans.c, utils.c: Fix comment typos.  Follow spelling
16532         conventions.
16533         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
16534         conventions.
16536 2006-05-19  Nicolas Setton  <setton@adacore.com>
16538         * misc.c (gnat_dwarf_name): New function.
16539         (LANG_HOOKS_DWARF_NAME): Define to it.
16541 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16543         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
16544         (ada/misc.o): Likewise.
16545         (ada/utils.o): Likewise.
16547 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
16549         * Makefile.in: Add Ada support for GNU/kFreeBSD.
16550         * s-osinte-kfreebsd-gnu.ads: New file.
16552 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
16554         * Make-lang.in: Rename docdir to gcc_docdir.
16556 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
16558         * gigi.h (get_ada_base_type): Delete.
16559         * utils2.c (get_ada_base_type): Likewise.
16560         * trans.c (convert_with_check): Operate in the real base type.
16562 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16564         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
16566 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
16568         * utils.c (create_var_decl): Use have_global_bss_p when deciding
16569         whether to make the decl common.
16571 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
16573         * Make-lang.in (Ada): Remove.
16574         (.PHONY): Remove Ada
16576 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16578         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
16579         aggregate, check the interpretations of the other operand to find one
16580         that may be a boolean array.
16582         (Analyze_Selected_Component): Fix flow-of-control typo in case where
16583         the prefix is a private extension.
16585 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
16587         PR ada/26315
16588         * utils2.c (find_common_type): If both input types are BLKmode and
16589         have the same constant size, keep using the first one.
16591         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
16593         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
16595         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
16597 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
16599         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
16600         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
16601         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
16602         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
16603         Abort_Defer/Undefer pairs to avoid the possibility of a task being
16604         aborted while owning a lock.
16606 2006-02-17  Javier Miranda  <miranda@adacore.com>
16607             Robert Dewar  <dewar@adacore.com>
16609         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
16610         through an access to class-wide interface we force the displacement of
16611         the pointer to the allocated object to reference the corresponding
16612         secondary dispatch table.
16613         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
16614         if Long_Shifts are supported on the target, even if 64 bit divides
16615         are not supported (configurable run time mode).
16616         (Expand_N_Type_Conversion): Do validity check if validity checks on
16617         operands are enabled.
16618         (Expand_N_Qualified_Expression): Do validity check if validity checks
16619         on operands are enabled.
16621 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16623         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
16624         must be materialized when the renamed expression is an explicit
16625         dereference.
16627 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16629         * freeze.adb (Statically_Discriminated_Components): Return false if
16630         the bounds of the type of the discriminant are not static expressions.
16632         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
16633         the bounds of the discriminant type are not static.
16635 2006-02-17  Robert Dewar  <dewar@adacore.com>
16637         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
16638         then we close To if it is valid.
16640 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
16642         * init.c (facility_resignal_table): new array
16643         (__gnat_default_resignal_p): enhance default predicate to resignal if
16644         VMS condition has one of the predefined facility codes.
16646 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
16648         * Makefile.in: Use VMS64 specialized versions of several units in
16649         Interfaces.C hierarchy to be compatible with HP C default size choices.
16650         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
16652 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16654         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
16655         instantiation, the corresponding entity is the related_instance of the
16656         wrapper package created for the instance.
16658 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16660         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
16661         the current instance is nested within another instance in a child unit.
16663 2006-02-17  Javier Miranda  <miranda@adacore.com>
16664             Ed Schonberg  <schonberg@adacore.com>
16666         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
16667         type we cannot inherit the primitive operations; we inherit the
16668         Corresponding_Record_Type (which has the list of primitive operations).
16669         (Check_Anonymous_Access_Types): When creating anonymous access types for
16670         access components, use Rewrite in order to preserve the tree structure,
16671         for ASIS use.
16672         (Analyze_Object_Declaration): For limited types with access
16673         discriminants with defaults initialized by an aggregate, obtain
16674         subtype from aggregate as for other mutable types.
16675         (Derived_Type_Declaration): If the derived type is a limited interface,
16676         set the corresponding flag (Is_Limited_Record is not sufficient).
16678 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16680         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
16681         to inline a function that returns an unconstrained type, the return
16682         expression must be the first variable declared in the body of the
16683         function.
16685 2006-02-17  Javier Miranda  <miranda@adacore.com>
16687         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
16688         abstract interface type, the static analysis is not enough to know if
16689         the interface is implemented or not by the source tagged type. Hence
16690         we must pass the work to the expander to generate the required code to
16691         evaluate the conversion at run-time.
16692         (Resolve_Equality_Op): Do not apply previous
16693         transformation if expansion is disasbled, to prevent anomalies when
16694         locating global references in a generic unit.
16696 2006-02-17  Vincent Celier  <celier@adacore.com>
16698         * snames.ads, snames.adb: New standard names for new project attributes:
16699         archive_builder, archive_indexer, compiler_pic_option,
16700         config_body_file_name, config_body_file_name_pattern,
16701         config_file_switches, config_file_unique, config_spec_file_name,
16702         config_spec_file_name_pattern, default_builder_switches,
16703         default_global_compiler_switches, default_language,
16704         dependency_file_kind, global_compiler_switches, include_path,
16705         include_path_file, language_kind, linker_executable_option,
16706         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
16707         roots, runtime_project.
16709 2006-02-17  Matthew Heaney  <heaney@adacore.com>
16711         * a-convec.ads, a-convec.adb: 
16712         (operator "&"): handle potential overflow for large index types
16713         (Insert): removed Contraint_Error when using large index types
16714         (Insert_Space): removed Constraint_Error for large index types
16715         (Length): moved constraint check from Length to Insert
16717         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
16718         as not null access.
16719         Explicit raise statements now include an exception message.
16720         (operator "&"): handle potential overflow for large index types
16721         (Insert): removed Contraint_Error when using large index types
16722         (Insert_Space): removed Constraint_Error for large index types
16723         (Length): moved constraint check from Length to Insert
16725 2006-02-17  Robert Dewar  <dewar@adacore.com>
16727         * s-wchcnv.adb: Document handling of [ on output (we do not change
16728         this to ["5B"] and the new comments say why not.
16730         * gnat_ugn.texi: 
16731         Add note for -gnatVo that this now includes the cases of type
16732         conversions and qualified expressions.
16733         Add comments on handling of brackets encoding for Text_IO
16735 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
16736             Thomas Quinot  <quinot@adacore.com>
16737             Robert Dewar  <dewar@adacore.com>
16738             Javier Miranda  <miranda@adacore.com>
16740         * expander.adb: Fix typo in comment
16742         * exp_pakd.adb: Fix typo
16743         Minor comment reformatting.
16745         * g-dyntab.adb: Minor reformatting
16747         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
16748         aliased subprograms to look for the abstract interface subprogram.
16750 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
16752         * env.c (__gnat_setenv): Use size_t.
16753         (__gnat_unsetenv): Likewise.
16754         (__gnat_clearenv): Likewise.
16756 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
16758         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
16760 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
16762         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
16763         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
16764         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
16765         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
16766         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
16767         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
16768         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
16769         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
16770         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
16771         no longer used.
16773 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
16775         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
16776         protection against race conditions is not needed.
16777         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
16778         fallback handler.
16779         (Set_Specific_Handler): Add mutual exclusive access to the specific
16780         handler.
16781         (Specific_Handler): Add mutual exclusive access for retrieving the
16782         specific handler.
16784         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
16785         back handler.
16787         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
16788         Fall_Back_Handler and Specific_Handler.
16790         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
16791         termination handlers.
16792         Set two different owerflow depending on the maximal stack size.
16794         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
16795         protection against race conditions is not needed when executing the
16796         task termination handler.
16798 2006-02-13  Robert Dewar  <dewar@adacore.com>
16800         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
16801         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
16802         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
16803         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
16804         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
16805         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
16806         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
16807         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
16808         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
16809         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
16810         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
16811         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
16812         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
16813         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
16814         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
16815         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
16816         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
16817         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
16818         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
16819         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
16820         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
16821         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
16822         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
16823         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
16824         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
16825         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
16826         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
16827         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
16828         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
16829         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
16830         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
16831         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
16832         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
16833         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
16834         reformatting.
16836 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
16838         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
16839         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
16840         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
16841         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
16842         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
16843         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
16844         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
16845         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
16846         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
16848 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
16850         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
16851         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
16852         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
16853         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
16854         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
16855         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
16856         replaced by anonymous access type.
16857         (pthread_sigmask): Now take an access sigset_t
16859         * s-osinte-hpux.ads:  Ditto.
16860         (pthread_mutex_t, pthread_cond_t): Update definitions to support
16861         properly 32 and 64 bit ABIs.
16863 2006-02-13  Pascal Obry  <obry@adacore.com>
16865         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
16866         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
16867         s-taprop-linux.adb, s-taprop-solaris.adb,
16868         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
16869         adjustement is already done when calling this routine.
16871 2006-02-13  Pascal Obry  <obry@adacore.com>
16873         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
16874         table to take advantage of the 16 priority levels available on Windows
16875         2000 and XP. On NT4 there are only 7 priority levels, this is properly
16876         supported by this new mapping.
16878 2006-02-13  Nicolas Setton  <setton@adacore.com>
16880         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
16881         (get_encoding): New subprogram. Extracts the encodings from an encoded
16882         Ada name.
16884 2006-02-13  Pascal Obry  <obry@adacore.com>
16885             Nicolas Roche  <roche@adacore.com>
16886             Arnaud Charlet  <charlet@adacore.com>
16888         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
16889         support.
16890         (__gnat_try_lock): Add unicode support by using a specific section on
16891         Windows.
16892         (__gnat_get_current_dir): Idem.
16893         (__gnat_open_read): Idem.
16894         (__gnat_open_rw): Idem.
16895         (__gnat_open_create): Idem.
16896         (__gnat_create_output_file): Idem.
16897         (__gnat_open_append): Idem.
16898         (__gnat_open_new): Idem.
16899         (__gnat_file_time_name): Idem.
16900         (__gnat_set_file_time_name): Idem.
16901         (__gnat_stat): Idem.
16902         (win32_no_block_spawn): Idem.
16903         (__gnat_locate_exec_on_path): Idem.
16904         (__gnat_opendir): New routine.
16905         (__gnat_closedir): Idem.
16906         (__gnat_readdir): Add new parameter length (pointer to int). Update
16907         implementation to use it and add specific Win32 code for Unicode
16908         support.
16909         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
16910         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
16911         (convert_addresses): Do not define this dummy routine on VMS.
16913         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
16914         runtime Unicode support will be activated.
16915         (S2WS): String to Wide-String conversion. This version just copy a
16916         string in non Unicode version.
16917         (WS2S): Wide-String to String conversion. This version just copy a
16918         string in non Unicode version.
16920         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
16921         (Open): Now import __gnat_opendir from adaint.c.
16922         (Read): Change the implementation to support unicode characters. It is
16923         not possible to use strlen() on Windows as this version supports only
16924         standard ASCII characters. So the length of the directory entry is now
16925         returned from the imported __gnat_readdir routine.
16926         Update copyright notice.
16928         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
16929         (opendir): Moved to adaint.c.
16931         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
16932         (Get_Directory): Fix wrong indexing.
16933         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
16934         __gnat_getenv from env.c
16935         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
16936         from env.c
16938         * env.h, env.c: New file.
16940         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
16941         adaint.c by __gnat_getenv from env.c
16943         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
16944         adaint.c by __gnat_getenv from env.c
16946         * Make-lang.in: Add env.o in the list of C object needed by gnat1
16947         and gnatbind.
16948         Update dependencies.
16950 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16951             Olivier Hainque  <hainque@adacore.com>
16952             Eric Botcazou  <ebotcazou@adacore.com>
16954         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
16955         
16956         * gigi.h (value_factor_p): Add prototype and description, now public.
16958         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
16959         promotion for field with rep clause if the associated size was proven
16960         to be in error.
16961         Expand comments describing attempts to use a packable type.
16962         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
16963         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
16964         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
16965         necessary since these are not different types and pointers may
16966         actually designate any subtype in this hierarchy.
16967         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
16968         discriminants but put them into record only if not Unchecked_Union;
16969         pass flag to components_to_record showing Unchecked_Union.
16970         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
16971         components before variants; don't set TYPE_UNCHECKED_UNION_P.
16972         (components_to_record): New argument UNCHECKED_UNION.
16973         Remove special case code for Unchecked_Union and instead use main code
16974         with small changes.
16976         PR ada/26096
16977         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
16978         variable with the expression being built, only its inner field.
16980         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
16981         emit_sequence_entry_statements.
16982         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
16983         (establish_gnat_vms_condition_handler): Move before
16984         Subprogram_Body_to_gnu.
16985         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
16986         for a subprogram if it has a foreign convention or is exported.
16987         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
16988         substituted for a CONST_DECL.
16989         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
16990         Etype to assoc_to_constructor.
16991         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
16992         discriminants of Unchecked_Union.
16993         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
16994         don't need cluttering preprocessor directives.
16995         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
16996         condition handler as current in the compiled function.
16997         (body_with_handlers_p): New function. Tell whether a given sequence of
16998         statements node is attached to a package or subprogram body and involves
16999         exception handlers possibly nested within inner block statements.
17000         (emit_sequence_entry_statements): New function, to emit special
17001         statements on entry of sequences when necessary. Establish GNAT
17002         condition handler in the proper cases for VMS.
17003         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
17004         emit_sequence_entry_statements.
17006         * utils2.c (find_common_type): If both input types are BLKmode and
17007         have a constant size, use the smaller one.
17008         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
17009         the same.
17011         * utils.c (value_factor_p): Make public, to allow uses from other gigi
17012         units.
17013         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
17014         (convert, case UNION_TYPE): Remove special treatment for unchecked
17015         unions.
17017         PR ada/18659
17018         (update_pointer_to): Update variants of pointer types to unconstrained
17019         arrays by attaching the list of fields of the main variant.
17021 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
17022             Robert Dewar  <dewar@adacore.com>
17024         * a-exexpr.adb, a-exexpr-gcc.adb
17025         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
17026         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
17027         Remove code unused for exception propagation for the compiler itself
17028         from a-except.adb and update to still share separate packages.
17030         * a-except.ads, a-except.adb: Ditto.
17031         Add comments that this version is now used only by the compiler and
17032         other basic tools. The full version that includes the Ada 2005 stuff
17033         is in separate files a-except-2005.ads/adb. The reason is that we do
17034         not want to cause bootstrap problems with compilers not recognizing
17035         Wide_Wide_String.
17036         Add exception reason code PE_Implicit_Return
17037         Add new exception reason code (Null Exception_Id)
17039         * a-except-2005.adb, a-except-2005.ads: New files.
17041         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
17043         * s-wchcon.adb: New file.
17045         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
17046         (traceback.o deps): Likewise.
17047         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
17048         Activate build of GMEM instrumentation library on VMS targets.
17049         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
17050         Use a-except-2005.ads/adb for all run-time library builds unless
17051         specified otherwise.
17052         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
17053         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
17054         Use s-parame.adb on all native platforms.
17055         Use s-parame-vxworks.adb on all vxworks platforms.
17056         Add env.c env.h in LIBGNAT_SRCS
17057         Add env.o in LIBGNAT_OBJS
17058         (GNATMAKE_OBJS): Remove ctrl_c.o object.
17059         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
17060         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
17061         supports VxWorks 6 RTPs.
17062         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
17063         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
17065         * types.h, types.ads (Terminate_Program): New exception
17066         Add comment on modifying multiple versions of a-except.adb when the
17067         table of exception reasons is modified.
17068         Add exception reason code PE_Implicit_Return
17069         Add new exception reason code (Null Exception_Id)
17071         * clean.adb (Initialize): Get the target parameters before checking
17072         if target is OpenVMS. Move the OpenVMS specific code here from package
17073         body elaboration code.
17075 2006-02-13  Thomas Quinot  <quinot@adacore.com>
17076             Vincent Celier  <celier@adacore.com>
17077             Robert Dewar  <dewar@adacore.com>
17079         * ali-util.adb (Get_File_Checksum): Update to account for change in
17080         profile of Initialize_Scanner.
17082         * gprep.adb (Gnatprep): Update to account for change in profile of
17083         Initialize_Scanner.
17084         (Process_One_File): Same.
17086         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
17087         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
17088         that behaviour using the new Unit information recorded in the source
17089         files table, rather than going through all units every time.
17090         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
17091         (Get_Source_Unit): Same.
17093         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
17094         change in profile of Initialize_Scanner.
17095         (Prepare_To_Preprocess): Same.
17097         * lib.ads: Fix typo in comment (templace -> template).
17099         * prj-part.adb (Parse_Single_Project): Update to account for change in
17100         profile of Initialize_Scanner.
17102         * scn.adb (Initialize_Scanner): Account for change in profile of
17103         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
17104         Also record the association of the given Source_File_Index to the
17105         corresponding Unit_Number_Type.
17107         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
17108         procedure.
17109         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
17110         Remove Unit formal for generic scanner: this formal
17111         is only relevant to Scn (the scanner instance used to parse Ada source
17112         files), not to other instances. Update comment accordingly.
17113         (Scan): Use new function Snames.Is_Keyword_Name.
17115         * sinfo-cn.adb: Fix typo in comment.
17117         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
17118         Unit.
17120         * sinput.ads (Source_File_Record): New component Unit, used to capture
17121         the unit identifier (if any) associated to a source file.
17123         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
17124         Unit in Source_File_Record.
17126         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
17127         in profile of Initialize_Scanner.
17129         * scans.adb (Initialize_Ada_Keywords): New procedure
17131         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
17132         Ada keywords in the Namet table, without the need to call
17133         Initialize_Scanner.
17135         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
17136         (Is_Keyword_Name): New function
17138         * snames.ads: Add subtype Configuration_Pragma_Names
17139         Add pragma Ada_2005 (synonym for Ada_05)
17140         (Is_Keyword_Name): New function
17142         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
17144 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
17146         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
17147         index.
17149         * a-stwima.adb (To_Set): Add extra check when N = 0.
17151         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
17153 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
17155         * s-parame-mingw.adb, s-parame-linux.adb,
17156         s-parame-solaris.adb: Removed, replaced by s-parame.adb
17158         * s-parame-vxworks.ads: Fix typo.
17160         * s-parame-vxworks.adb: New file.
17162         * s-parame.adb: Version now used by all native platforms.
17163         (Default_Stack_Size): Use 2 megs for default stack size and use
17164         __gl_default_stack_size when available.
17165         (Minimum_Stack_Size): Use 12K.
17167         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
17168         (Create_Task): Refine implementation taking advantage of the XP stack
17169         size support. On XP, we now create the thread using the flag
17170         STACK_SIZE_PARAM_IS_A_RESERVATION.
17172         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
17174         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
17175         XP and 0 on older Windows versions.
17177         * interfac-vms.ads: Removed, no longer used.
17179 2006-02-13  Matthew Heaney  <heaney@adacore.com>
17181         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
17182         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
17183         a-cohase.adb: All explicit raise statements now include an exception
17184         message.
17186         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
17187         (Update_Element_Preserving_Key): renamed op to just Update_Element.
17188         Explicit raise statements now include an exception message
17190         * a-cihase.ads, a-cohase.ads: Removed comment.
17192         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
17193         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
17194         a-szbzha.adb, a-szfzha.ads: New files.
17196 2006-02-13  Matthew Heaney  <heaney@adacore.com>
17198         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
17199         quicksort.
17201 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
17203         * lang.opt: Wvariadic-macros: New option.
17204         Wold-style-definition: Likewise.
17205         Wmissing-format-attribute: Likewise.
17207         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
17208         -Wold-style-definition and -Wmissing-format-attribute.
17210 2006-02-13  Robert Dewar  <dewar@adacore.com>
17212         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
17214         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
17216 2006-02-13  Nicolas Roche  <roche@adacore.com>
17218         * a-envvar.adb, a-envvar.ads: New files.
17220 2006-02-13  Douglas Rupp  <rupp@adacore.com>
17222         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
17224         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
17226 2006-02-13  Pat Rogers  <rogers@adacore.com>
17228         * a-rttiev.adb, a-rttiev.ads: New files.
17230 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
17232         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
17233         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
17235         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
17237 2006-02-13  Robert Dewar  <dewar@adacore.com>
17239         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
17240         sem_case.adb: Minor code reorganization (not Present should be No)
17242 2006-02-13  Geert Bosch  <bosch@adacore.com>
17243             Gary Dismukes  <dismukes@adacore.com>
17245         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
17246         0, since the lower bound of the actual string may be greater than one.
17248         PR ada/20753
17249         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
17250         layout is requested.
17252 2006-02-13  Vincent Celier  <celier@adacore.com>
17254         * back_end.adb (Scan_Compiler_Arguments): Check if
17255         Search_Directory_Present is True and, if it is, add the argument in
17256         the source search directory path.
17258         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
17259         Search_Directory_Present to True.
17261 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
17263         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
17264         volatile, to tell the compiler to preserve this variable at any level
17265         of optimization.
17266         (Gen_Versions_Ada): Temporarily work around codegen bug.
17268 2006-02-13  Vincent Celier  <celier@adacore.com>
17270         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
17271         gcc to link with option -shared-libgcc.
17272         (Gnatlink): Remove duplicate switches -shared-libgcc
17274 2006-02-13  Robert Dewar  <dewar@adacore.com>
17276         * gnatvsn.ads (Current_Year): New constant, used to easily update
17277         copyright on all GNAT tools.
17279         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
17280         copyright notice.
17282 2006-02-13  Robert Dewar  <dewar@adacore.com>
17284         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
17285         after hyphen (small aesthetic change useful for a range of numbers
17286         using ^-^.
17287         Suppress range checks for a couple of assignments which otherwise
17288         cause validity checks with validity checking turned on.
17290         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
17291         Improvement in error message for object.
17292         (Rep_Item_Too_Late): Remove '!' in warning message.
17294 2006-02-13  Robert Dewar  <dewar@adacore.com>
17295             Eric Botcazou  <ebotcazou@adacore.com>
17297         * err_vars.ads: Suppress range checks for a couple of assignments
17298         which otherwise cause validity checks with validity checking turned on.
17299         Update comments.
17301         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
17302         Make message unconditional if it is a warning.
17303         (Error_Msg_NEL): Always output warning messages.
17304         Suppress range checks for a couple of assignments which otherwise
17305         cause validity checks with validity checking turned on.
17307         * errout.ads (Message Insertion Characters): Document that '!' is
17308         implied by '?' in error messages.
17310         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
17311         (Gnat1drv): Use a goto to end of main subprogram instead of
17312         Exit_Program (E_Success) so that finalization can occur normally.
17314 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
17316         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
17317         wrapped around.
17319 2006-02-13  Vincent Celier  <celier@adacore.com>
17321         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
17322         Unchecked_Conversion functions.
17323         (Modification_Time): Use direct conversion of OS_Time to Calendar time
17324         when OpenVMS returns False.
17326         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
17327         a-dirval.adb (OpenVMS): New Boolean function
17329 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17330             Thomas Quinot  <quinot@adacore.com>
17332         * checks.adb (Build_Discriminant_Checks): If the expression being
17333         checks is an aggregate retrieve the values of its discriminants to
17334         generate the check, rather than creating a temporary and a reference
17335         to it.
17336         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
17337         (Install_Null_Excluding_Check): Ditto
17338         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
17339         not for the renamed object, so that the actual itype is attached in the
17340         proper context.
17342 2006-02-13  Robert Dewar  <dewar@adacore.com>
17343             Vincent Celier  <celier@adacore.com>
17345         * debug.adb: Eliminate numeric switches for binder/gnatmake
17347         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
17348         switches for the compiler.
17349         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
17350         (Scan_Make_Switches): When failing with an illegal switch, output an
17351         error message with the full switch.
17352         Eliminate numeric switches for binder/gnatmake
17354         * switch.ads, switch.adb (Bad_Switch): New procedure
17356         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
17357         Remove 0-9 as debug flag character possibilities
17358         -d is now controlling the primary stack size when its value is a
17359         positive. Also add checks against invalid values, and support for kb,
17360         mb. Ditto for -D switch.
17362 2006-02-13  Robert Dewar  <dewar@adacore.com>
17363             Serguei Rybin  <rybin@adacore.com>
17365         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
17366         save/restore routines.
17367         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17368         were not always properly handled previously.
17369         Since we are changing the tree format anyway, also get rid of the
17370         junk obsolete Immediate_Errors flag.
17371         (Tree_Read): Change the way of reading Tree_Version_String - now we
17372         read the version string from the tree even if its length is not the
17373         same as the length of the version string computed from Gnatvsn.
17374         (Search_Directory_Present): New Boolean flag for the compiler.
17375         Define Tree_Version_String as a dynamic string.
17376         (Default_Stack_Size): new variable, used to handle switch -d.
17378         * par-prag.adb: 
17379         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
17380         only for main unit.
17381         Add pragma Ada_2005 (synonym for Ada_05)
17382         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17383         were not always properly handled previously.
17385         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
17386         explicit Ada_95 to Ada_2005.
17388 2006-02-13  Javier Miranda  <miranda@adacore.com>
17389             Robert Dewar  <dewar@adacore.com>
17390             Ed Schonberg  <schonberg@adacore.com>
17392         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
17393         against errors in the source program: a private types for which the
17394         corresponding full type declaration is missing and pragma CPP_Virtual
17395         is used.
17396         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
17397         (Is_Known_Null): New flag
17398         (Has_Pragma_Pure): New flag
17399         (No_Return): Present in all entities, set only for procedures
17400         (Is_Limited_Type): A type whose ancestor is an interface is limited if
17401         explicitly declared limited.
17402         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
17403         entities. Only used for component marked Is_Tag. If present it stores
17404         the Offset_To_Top function used to provide this value in tagged types
17405         whose ancestor has discriminants.
17407         * exp_ch2.adb: Update status of new Is_Known_Null flag
17409         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
17411         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
17412         the categorization sense if Is_Pure was set by pragma Pure_Function.
17414 2006-02-13  Quentin Ochem  <ochem@adacore.com>
17415             Olivier Hainque  <hainque@adacore.com>
17417         * bindusg.adb: Updated documentation for -d and -D switches.
17419         * raise.h (__gnat_set_globals): added new parameter for
17420         Default_Stack_Size.
17422         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
17423         (__gnat_handle_vms_condition): Adjust context before raise.
17424         (__gnat_install_handler): Restore the global vector setup for GCC
17425         versions before 3.4, as the frame based circtuitry is not available
17426         in this case.
17427         (__gnat_set_globals): added a parameter default_stack_size
17428         (__gl_default_stack_size): new variable.
17430 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17432         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
17433         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
17434         does not exist in the Ada RM.
17435         (Compatible_Int_Bounds): Determine whether two integer range bounds
17436         are of equal length and have the same start and end values.
17437         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
17438         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
17439         aggregate when it is part of an object declaration.
17440         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
17441         constrains discriminants of its parent, add explicitly the discriminant
17442         constraints of the ancestor by retrieving them from the
17443         stored_constraint of the parent.
17445 2006-02-13  Robert Dewar  <dewar@adacore.com>
17447         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
17448         attribute Mechanism_Code is applied to renamed subprogram, modify
17449         prefix to point to base subprogram.
17450         Max/Min attributes now violate Restriction No_Implicit_Conditionals
17452         * sinfo.ads: Document that Mechanism_Code cannot be applied to
17453         renamed subprograms so that the front-end must replace the prefix
17454         appropriately.
17456 2006-02-13  Javier Miranda  <miranda@adacore.com>
17457             Gary Dismukes  <dismukes@adacore.com>
17459         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
17460         availability of RE_Interface_Tag.
17461         (Build_Initialization_Call): Fix wrong access to the discriminant value.
17462         (Freeze_Record_Type): Do not generate the tables associated with
17463         timed and conditional dispatching calls through synchronized
17464         interfaces if compiling under No_Dispatching_Calls restriction.
17465         When compiling for Ada 2005, for a nonabstract
17466         type with a null extension, call Make_Controlling_Function_Wrappers
17467         and insert the wrapper function declarations and bodies (the latter
17468         being appended as freeze actions).
17469         (Predefined_Primitive_Bodies): Do not generate the bodies of the
17470         predefined primitives associated with timed and conditional
17471         dispatching calls through synchronized interfaces if we are
17472         compiling under No_Dispatching_Calls.
17473         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
17474         service is available before generating a call.
17475         (Make_Controlling_Function_Wrappers): New procedure.
17476         (Expand_N_Full_Type_Declaration): Create a class-wide master for
17477         access-to-limited-interfaces because they can be used to reference
17478         tasks that implement such limited interface.
17479         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
17480         procedure spec and body of the Offset_To_Top function that is generated
17481         when the parent of a type with discriminants has secondary dispatch
17482         tables.
17483         (Init_Secondary_Tags): Handle the case in which the parent of the type
17484         containing secondary dispatch tables has discriminants to generate the
17485         correct arguments to call Set_Offset_To_Top.
17486         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
17488         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
17489         Add Wide_[Wide_]Expanded_Name.
17490         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
17491         the same functionality of Get_Prim_Op_Address but applied to predefined
17492         primitive operations because the pointers to the predefined primitives
17493         are now saved in a separate table.
17494         (Parent_Size): Modified to get access to the separate table of primitive
17495         operations or the parent type.
17496         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
17497         functionality of Set_Prim_Op_Address but applied to predefined primitive
17498         operations.
17499         (Set_Signature): New subprogram used to store the signature of a DT.
17500         (Displace): If the Offset_To_Top value is not static then call the
17501         function generated by the expander to get such value; otherwise use
17502         the value stored in the table of interfaces.
17503         (Offset_To_Top): The type of the actual has been changed to Address to
17504         give the correct support to tagged types with discriminants. In this
17505         case this value is stored just immediately after the tag field.
17506         (Set_Offset_To_Top): Two new formals have been added to indicate if the
17507         offset_to_top value is static and hence pass this value to the run-time
17508         to store it in the table of interfaces, or else if this value is dynamic
17509         and then pass to the run-time the address of a function that is
17510         generated by the expander to provide this value for each object of the
17511         type.
17513         * rtsfind.ads (Default_Prin_Op_Count): Removed.
17514         (Default_Prim_Op_Count): New entity
17515         (Get_Predefined_Prim_Op_Address): New entity
17516         (Set_Predefined_Prim_Op_Address): New entity
17517         (RE_Set_Signature): New entity
17519 2006-02-13  Thomas Quinot  <quinot@adacore.com>
17520             Ed Schonberg  <schonberg@adacore.com>
17522         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
17523         Make_Adjust_Call done for a newly-allocated object.
17525         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
17526         in a subprogram are wrapped in a cleanup block, indicate that the
17527         subprogram contains an inner block with an exception handler.
17528         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
17529         Adjust call is for a newly-allocated object. In that case we must not
17530         assume that the finalization list chain pointers are correct (since they
17531         come from a bit-for-bit copy of the original object's pointers) so if
17532         the attach level would otherwise be zero (no change), we set it to 4
17533         instead to cause the pointers to be reset to null.
17535         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
17536         reset chain pointers to null.
17538 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17540         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
17541         string, and the context requires a loop for the assignment (e.g.
17542         because the left-hand side is packed), generate a unique name for the
17543         temporary that holds the string, to prevent spurious name clashes.
17545 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17546             Javier Miranda  <miranda@adacore.com>
17547             Robert Dewar  <dewar@adacore.com>
17548             Gary Dismukes  <dismukes@adacore.com>
17550         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
17551         return unconstrained arrays.
17552         Update comments.
17553         (Expand_Call):  An indirect call through an access parameter of a
17554         protected operation is not a protected call.
17555         Add circuit to raise CE in Ada 2005 mode following call
17556         to Raise_Exception.
17557         (Register_DT_Entry): Do nothing if
17558         the run-time does not give support to abstract interfaces.
17559         (Freeze_Subprogram): In case of dispatching operations, do not generate
17560         code to register the operation in the dispatch table if the source
17561         is compiled with No_Dispatching_Calls.
17562         (Register_Predefined_DT_Entry): Generate code that calls the new
17563         run-time subprogram Set_Predefined_Prim_Op_Address instead of
17564         Set_Prim_Op_Address.
17566         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
17567         on array assignments if the right-hand side is a function call that has
17568         been inlined. Check is performed on the assignment in the block.
17569         (Process_Bounds): If bounds and range are overloaded, apply preference
17570         rule for root operations to disambiguate, and diagnose true ambiguity.
17571         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
17572         a tag-indeterminate right-hand side even when Expander_Active is True.
17573         Needed to ensure that dispatching calls to T'Input are allowed and
17574         get the tag of the target class-wide object.
17576         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
17577         an inherited primitive operation that already overrides several
17578         abstract interface primitives. For transitivity, the new entity must
17579         also override all the abstract interface primitives covered by the
17580         inherited overriden primitive.
17581         Emit warning if new entity differs from homograph in same scope only in
17582         that one has an access parameter and the other one has a parameter of
17583         a general access type with the same designated type, at the same
17584         position in the signature.
17585         (Make_Inequality_Operator): Use source locations of parameters and
17586         subtype marks from corresponding equality operator when creating the
17587         tree structure for the implicit declaration of "/=". This does not
17588         change anything in behaviour except that the decoration of the
17589         components of the subtree created for "/=" allows ASIS to get the
17590         string images of the corresponding identifiers.
17591         (Analyze_Return_Statement): Remove '!' in warning message.
17592         (Check_Statement_Sequence): Likewise.
17593         (Analyze_Subprogram_Body): For an access parameter whose designated type
17594         is an incomplete type imported through a limited_with clause, use the
17595         type of the corresponding formal in the body.
17596         (Check_Returns): Implicit return in No_Return procedure now raises
17597         Program_Error with a compile time warning, instead of beging illegal.
17598         (Has_Single_Return):  Function returning unconstrained type cannot be
17599         inlined if expression in unique return statement is not an identifier.
17600         (Build_Body_To_Inline): It is possible to inline a function call that
17601         returns an unconstrained type if all return statements in the function
17602         return the same local variable. Subsidiary procedure Has_Single_Return
17603         verifies that the body conforms to this restriction.
17605         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
17606         same type, and  one of them is of an anonymous access type, convert
17607         the other operand to it, so that this is a valid binary operation for
17608         gigi.
17609         (Resolve_Type_Conversion): Handle subtypes of protected types and
17610         task types when accessing to the corresponding record type.
17611         (Resolve_Allocator): Add '\' in 2-line warning message.
17612         Remove '!' in warning message.
17613         (Resolve_Call): Add '\' in 2-line warning message.
17614         (Valid_Conversion): Likewise.
17615         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
17616         resulting type may be an access type with an implicit dereference.
17617         Obtain the proper component from the designated type.
17618         (Make_Call_Into_Operator): Handle properly a call to predefined equality
17619         given by an expanded name with prefix Standard, when the operands are
17620         of an anonymous access type.
17621         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
17622         Explicit_Dereference and Resolve_Selected_Component, to verify that the
17623         prefix of the expression is not of an incomplete type. Allows full
17624         diagnoses of all semantic errors.
17625         (Resolve_Actuals): If the actual is an allocator whose directly
17626         designated type is a class-wide interface we build an anonymous
17627         access type to use it as the type of the allocator. Later, when
17628         the subprogram call is expanded, if the interface has a secondary
17629         dispatch table the expander will add a type conversion to force
17630         the displacement of the pointer.
17631         (Resolve_Call): If a function that returns an unconstrained type is
17632         marked Inlined_Always and inlined, the call will be inlined and does
17633         not require the creation of a transient scope.
17634         (Check_Direct_Boolean_Op): Removed
17635         (Resolve_Comparison_Op): Remove call to above
17636         (Resolve_Equality_Op): Remove call to above
17637         (Resolve_Logical_Op): Inline above, since this is only call.
17638         (Valid_Conversion): Handle properly conversions between arrays of
17639         convertible anonymous access types.
17641         PR ada/25885
17642         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
17643         the literal in an unchecked conversion, because GCC 4.x needs a static
17644         value for a string bound.
17646 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17647             Hristian Kirtchev  <kirtchev@adacore.com>
17649         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
17650         components of the corresponding record, take into account component
17651         definitions that are access definitions.
17652         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
17653         procedure is not considered a dispatching call and will be expanded
17654         properly.
17656 2006-02-13  Javier Miranda  <miranda@adacore.com>
17658         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
17659         controlling argument of the dispatching call is an abstract interface
17660         class-wide type then we use it directly.
17661         Check No_Dispatching_Calls restriction.
17662         (Default_Prim_Op_Position): Remove the code that looks for the last
17663         entity in the list of aliased subprograms. This code was wrong in
17664         case of renamings.
17665         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
17666         when the source is compiled with the No_Dispatching_Calls restriction.
17667         (Init_Predefined_Interface_Primitives): No need to inherit primitives
17668         if we are compiling with restriction No_Dispatching_Calls.
17669         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
17670         subprograms if we are compiling under No_Dispatching_Calls restriction.
17671         (Make_DT): Generate a dispatch table with a single dummy entry if
17672         we are compiling with the No_Dispatching_Calls restriction. In
17673         addition, in this case we don't generate code that calls to the
17674         following run-time subprograms: Set_Type_Kind, Inherit_DT.
17675         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
17676         of this subprogram if compiling with the No_Dispatching_Calls
17677         restriction.
17678         (Expand_Type_Conversion): Instead of using the actual parameter,
17679         the argument passed as parameter to the conversion function was
17680         erroneously referenced by the expander.
17681         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
17682         Set_Predefined_Primitive_Op_Address and Set_Signature.
17683         (Expand_Dispatching_Call): Generate call to
17684         Get_Predefined_Prim_Op_Address for predefined primitives.
17685         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
17686         predefined primitives.
17687         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
17688         primitives we reserve one dummy entry to ensure that the tag does not
17689         point to some memory that is associated with some other object. In
17690         addition, remove all the old code that generated the assignments
17691         associated with the signature of the dispatch table and replace them
17692         by a call to the new subprogram Set_Signature.
17693         (Set_All_DT_Position): Change the algorithm because now we have a
17694         separate dispatch table associated with predefined primitive operations.
17695         (Expand_Interface_Conversion): In case of non-static offset_to_top
17696         add explicit dereference to get access to the object after the call
17697         to displace the pointer to the object.
17698         (Expand_Interface_Thunk): Modify the generation of the actual used
17699         in the calls to the run-time function Offset_To_Top to fulfil its
17700         new interface.
17701         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
17703 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17705         * exp_dist.adb (Copy_Specification): For access parameters, copy
17706         Null_Exclusion flag, which will have been set for stream subprograms
17707         in Ada2005 mode.
17709 2006-02-13  Pascal Obry  <obry@adacore.com>
17711         * expect.c (__gnat_expect_portable_execvp): New implementation. The
17712         previous implementation was using the C runtime spawnve routine but
17713         the corresponding wait was using directly the Win32 API. This was
17714         causing some times a lock when waiting for an event using
17715         WaitForSingleObject in __gnat_waitpid. This new implementation uses
17716         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
17717         API fixes this problem.
17719 2006-02-13  Robert Dewar  <dewar@adacore.com>
17721         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
17722         call.
17724 2006-02-13  Thomas Quinot  <quinot@adacore.com>
17726         * exp_pakd.ads: Fix typos in comments.
17728         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
17729         array reference that is an explicit dereference, mark the converted
17730         (packed) array reference as analyzed to prevent a forthcoming
17731         reanalysis from resetting its type to the original (non-packed) array
17732         type.
17734 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17735             Javier Miranda  <miranda@adacore.com>
17736             Eric Botcazou  <ebotcazou@adacore.com>
17738         * exp_util.ads, exp_util.adb (Find_Prim_Op,
17739         Is_Predefined_Primitive_Operation): When
17740         searching for the predefined equality operator, verify that operands
17741         have the same type.
17742         (Is_Predefined_Dispatching_Operation): Remove the code that looks
17743         for the last entity in the list of aliased subprograms. This code
17744         was wrong in case of renamings.
17745         (Set_Renamed_Subprogram): New procedure
17746         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
17747         Exp_Type constant computed when entering this subprogram.
17748         (Known_Null): New function
17749         (OK_To_Do_Constant_Replacement): New function
17750         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
17751         (Side_Effect_Free): An attribute reference 'Input is not free of
17752         side effect, unlike other attributes that are functions. (from code
17753         reading).
17754         (Remove_Side_Effects): Expressions that involve packed arrays or records
17755         are copied at the point of reference, and therefore must be marked as
17756         renamings of objects.
17757         (Is_Predefined_Dispatching_Operation): Return false if the operation is
17758         not a dispatching operation.
17760         PR ada/18819
17761         (Remove_Side_Effects): Lift enclosing type conversion nodes for
17762         elementary types in all cases.
17764 2006-02-13  Javier Miranda  <miranda@adacore.com>
17766         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
17767         task types when accessing to the corresponding record type.
17768         Remove '!' in warning message.
17770 2006-02-13  Olivier Hainque  <hainque@adacore.com>
17772         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
17773         to avoid useless and space inefficient overalignments on targets where
17774         Max_Alignment is larger than 16.
17776 2006-02-13  Pascal Obry  <obry@adacore.com>
17778         * g-catiio.adb (Sec_Number): New type used to compute the number of
17779         seconds since 1-1-1970.
17780         (Image) [Natural]: The parameter was an Integer, as we can't deal with
17781         negative numbers (years, months...) it is better to have a Natural here.
17782         Code clean-up.
17783         (Image) [Number]: Change parameter from Long_Integer to Number.
17784         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
17785         overflow for dates past year 2038.
17787 2006-02-13  Matthew Heaney  <heaney@adacore.com>
17789         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
17790         Constraint_Error.
17792 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
17794         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
17795         native platforms.
17796         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
17797         finalization can occur normally.
17799 2006-02-13  Vincent Celier  <celier@adacore.com>
17801         * gnatcmd.adb (Rules_Switches): New table
17802         (Add_To_Rules_Switches): New procedure
17803         (GNATCmd): For command CHECK, put all options following "-rules" in the
17804         Rules_Switches table. Append these -rules switches after the -cargs
17805         switches.
17807 2006-02-13  Robert Dewar  <dewar@adacore.com>
17809         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
17810         These two cases were generating incorrect output, and if this unit
17811         was built with checks on, generated a discriminant mismatch constraint
17812         error.
17814 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17815             Robert Dewar  <dewar@adacore.com>
17817         * lib-xref.adb (Get_Type_Reference): For a private type whose full
17818         view is an array type, indicate the component type as well, for
17819         navigation purposes.
17820         (Generate_Reference): Don't consider array ref on LHS to be a case
17821         of violating pragma Unreferenced.
17822         Do not give Ada 2005 warning except on real reference.
17824 2006-02-13  Vincent Celier  <celier@adacore.com>
17826         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
17827         main source, add switch -mdebug-main=_ada_ so that the executable can
17828         be debugged by the standard VMS debugger.
17829         (Gnatmake): Set No_Main_Subprogram to True when there is no main
17830         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
17831         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
17832         of the last source, as the binding and linking phases are never
17833         performed.
17834         Set all executable obsolete when rebuilding a library.
17836         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
17837         options.
17839 2006-02-13  Javier Miranda  <miranda@adacore.com>
17841         PR ada/23973
17842         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
17843         code to improve the error message reported when the program has
17844         declarations of abstract interface types and it is not compiled with
17845         the -gnat05 switch.
17846         (P_Access_Definition): Reorganize the code to improve the error
17847         message reported when the new Ada 2005 syntax for anonymous
17848         access types is used and the program is not compiled with the
17849         -gnat05 switch.
17851 2006-02-13  Robert Dewar  <dewar@adacore.com>
17853         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
17854         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
17855         (MODE_IN)
17857 2006-02-13  Javier Miranda  <miranda@adacore.com>
17859         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
17860         against source containing syntax errors.
17862 2006-02-13  Vincent Celier  <celier@adacore.com>
17864         * prj.adb (Reset): Initialize the first element of table Namings with
17865         the standard naming data.
17867 2006-02-13  Vincent Celier  <celier@adacore.com>
17869         * prj.ads (Error_Warning): New enumeration type
17871         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
17872         unknown, use the location of the project to report the error.
17873         (When_No_Sources): New global variable
17874         (Report_No_Ada_Sources): New procedure
17875         (Check): New parameter When_No_Sources. Set value of global variable
17876         When_No_Sources,
17877         (Find_Sources): Call Report_No_Ada_Sources when appropriate
17878         (Get_Sources_From_File): Ditto
17879         (Warn_If_Not_Sources): Better warning messages indicating the unit name
17880         and the file name.
17882         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
17883         Call Prj.Proc.Process with parameter When_No_Sources.
17885         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
17886         Call Recursive_Check with parameter When_No_Sources.
17887         (Recursive_Check): New parameter When_No_Sources. Call itself and
17888         Prj.Nmsc.Check with parameter When_No_Sources.
17889         (Process): New parameter When_No_Sources. Call Check with parameter
17890         When_No_Sources.
17891         (Copy_Package_Declarations): New procedure to copy renamed parameters
17892         and setting the location of the declared attributes to the location
17893         of the renamed package.
17894         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
17895         packages.
17897 2006-02-13  Vincent Celier  <celier@adacore.com>
17899         * prj-makr.adb (Make): Preserve the comments from the original project
17900         file.
17901         When removing nodes (attributes Source_Dirs, Source_Files,
17902         Source_List_File and package Naming), save the comments and attach the
17903         saved comments to the newly created nodes.
17904         Do not add a with clause for the naming package if one already exists.
17906 2006-02-13  Javier Miranda  <miranda@adacore.com>
17907             Gary Dismukes  <dismukes@adacore.com>
17908             Robert Dewar  <dewar@adacore.com>
17910         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
17912         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
17913         aliased entities to look for the overriden abstract interface
17914         subprogram.
17915         (Is_Interface_Subprogram): Complete documentation.
17916         (Check_Dispatching_Operation): Do not generate code to register the
17917         operation in the dispatch table if the source is compiled with
17918         restriction No_Dispatching_Calls.
17919         (Override_Dispatching_Operation): Check for illegal attempt to override
17920         No_Return procedure with procedure that is not No_Return
17921         (Check_Dispatching_Call): Suppress the check for an abstract operation
17922         when the original node of an actual is a tag-indeterminate attribute
17923         call, since the attribute, which must be 'Input, can never be abstract.
17924         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
17925         call to the Input attribute (even when rewritten).
17926         (Propagate_Tag): Augment comment to indicate the possibility of a call
17927         to an Input attribute.
17929         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
17930         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
17932         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
17933         No_Wide_Characters is no longer partition-wide
17934         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
17935         rather than GNAT
17937 2006-02-13  Douglas Rupp  <rupp@adacore.com>
17939         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
17941 2006-02-13  Javier Miranda  <miranda@adacore.com>
17943         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
17944         handles default-initialized components to keep separate the management
17945         of this feature but also avoid the unrequired resolution and
17946         expansion of components that do not have partially initialized
17947         values.
17948         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
17949         (Check_Bounds): Likewise.
17950         (Check_Length): Likewise.
17952 2006-02-13  Javier Miranda  <miranda@adacore.com>
17953             Ed Schonberg  <schonberg@adacore.com>
17955         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
17956         abstract interface type call analyze_and_resolve to expand the type
17957         conversion into the corresponding displacement of the
17958         reference to the base of the object.
17959         (Eval_Attribute, case Width): For systems where IEEE extended precision
17960         is supported, the maximum exponent occupies 4 decimal digits.
17961         (Accessibility_Message): Add '\' in 2-line warning message.
17962         (Resolve_Attribute): Likewise.
17963         (case Attribute_Access): Significantly revise checks
17964         for illegal access-to-subprogram Access attributes to properly enforce
17965         the rules of 3.10.2(32/2).
17966         Diagnose use of current instance with an illegal attribute.
17968         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
17969         to a Node_Id.
17970         (Enclosing_Generic_Unit): New function to return a node's innermost
17971         enclosing generic declaration node.
17972         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
17973         (Type_Access_Level): The accessibility level of anonymous acccess types
17974         associated with discriminants is that of the current instance of the
17975         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
17976         (Compile_Time_Constraint_Error): Handle case of conditional expression.
17977         (Kill_Current_Values_For_Entity): New function
17978         (Enter_Name): Change formal type to Entity_Id
17980 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
17981             Ed Schonberg  <schonberg@adacore.com>
17982             Gary Dismukes  <dismukes@adacore.com>
17984         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
17985         Analyze_Compilation_Unit.
17986         Detect and warn on redundant with clauses detected in a package spec
17987         and/or body when -gnatwr is used.
17988         (Analyze_Context): Analyze config pragmas before other items
17989         (Install_Context_Items): Don't analyze config pragmas here
17990         (Install_Limited_Withed_Unit): Set limited entity of package in
17991         with_clause so that cross-reference information or warning messages on
17992         unused packages can be properly generated
17993         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
17994         has Error_Posted set. Prevent infinite loops in illegal programs.
17995         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
17996         to the point of the error test requiring the current unit to be private.
17997         This ensures that private with clauses are not exempted from the basic
17998         checking for being a descendant of the same library unit parent as a
17999         withed private descendant unit.
18000         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
18001         handle private with clauses properly, as well as to account for cases
18002         where the withed unit is a public descendant of a private ancestor
18003         (in which case the current unit must be a descendant of the private
18004         ancestor's parent). The spec comments were updated accordingly. Also,
18005         the old error message in this subprogram was replaced with error
18006         messages that mirror the errors tested and reported by
18007         Check_Private_Child_Unit.
18008         Parameter and variable names improved for readability.
18009         (Install_Limited_Context_Clauses): Remove test for a withed unit being
18010         private as the precondition for calling
18011         Check_Private_Limited_Withed_Unit since that subprogram has been
18012         revised to test public units as well as private units.
18014 2006-02-13  Thomas Quinot  <quinot@adacore.com>
18015             Robert Dewar  <dewar@adacore.com>
18016             Ed Schonberg  <schonberg@adacore.com>
18017             Javier Miranda  <miranda@adacore.com>
18019         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
18020         that Scope_Stack.First = 1.
18021         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18022         were not always properly handled previously.
18023         (Formal_Entity): Complete rewrite, to handle properly some complex case
18024         with multiple levels of parametrization by formal packages.
18025         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
18026         to the corresponding derived type declaration for proper semantics.
18028         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
18029         (Check_Component): Enforce restriction on components of
18030         unchecked_unions: a component in a variant cannot contain tasks or
18031         controlled types.
18032         (Unchecked_Union): Allow nested variants and multiple discriminants, to
18033         conform to AI-216.
18034         Add pragma Ada_2005 (synonym for Ada_05)
18035         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18036         were not always properly handled previously.
18037         Document that pragma Propagate_Exceptions has no effect
18038         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
18039         (Set_Convention_From_Pragma): Check that if a convention is
18040         specified for a dispatching operation, then it must be
18041         consistent with the existing convention for the operation.
18042         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
18043         longer required to specify an vtable-ptr component in the record. For
18044         compatibility reasons we leave the support for the previous definition.
18045         (Analyze_Pragma, case No_Return): Allow multiple arguments
18047         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
18048         non-overrideen inherited operation with a controlling result as
18049         illegal only its implicit declaration comes from the derived type
18050         declaration of its result's type.
18051         (Check_Possible_Deferred_Completion): Relocate the object definition
18052         node of the subtype indication of a deferred constant completion rather
18053         than directly analyzing it. The analysis of the generated subtype will
18054         correctly decorate the GNAT tree.
18055         (Record_Type_Declaration): Check whether this is a declaration for a
18056         limited derived record before analyzing components.
18057         (Analyze_Component_Declaration): Diagnose record types  not explicitly
18058         declared limited when a component has a limited type.
18059         (Build_Derived_Record_Type): Code reorganization to check if some of
18060         the inherited subprograms of a tagged type cover interface primitives.
18061         This check was missing in case of a full-type associated with a private
18062         type declaration.
18063         (Constant_Redeclaration): Check that the subtypes of the partial and the
18064         full view of a constrained deferred constant statically match.
18065         (Mentions_T): A reference to the current type in an anonymous access
18066         component declaration  must be an entity name.
18067         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
18068         class_wide type to refer to full type, not to the incomplete one.
18069         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
18070         available. Required to give support to the certified run-time.
18071         (Analyze_Component_Declaration): In case of anonymous access components
18072         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
18073         (Process_Discriminants): For an access discriminant, use the
18074         discriminant specification as the associated_node_for_itype, to
18075         simplify accessibility checks.
18077 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18078             Javier Miranda  <miranda@adacore.com>
18080         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
18081         abstract interpretations on an operator, remove interpretations that
18082         yield Address or a type derived from it, if one of the operands is an
18083         integer literal.
18084         (Try_Object_Operation.Try_Primitive_Operation,
18085         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
18086         location when creating the new reference to a primitive or class-wide
18087         operation as a part of rewriting a subprogram call.
18088         (Try_Primitive_Operations): If context requires a function, collect all
18089         interpretations after the first match, because there may be primitive
18090         operations of the same type with the same profile and different return
18091         types. From code reading.
18092         (Try_Primitive_Operation): Use the node kind to choose the proper
18093         operation when a function and a procedure have the same parameter
18094         profile.
18095         (Complete_Object_Operation): If formal is an access parameter and prefix
18096         is an object, rewrite as an Access reference, to match signature of
18097         primitive operation.
18098         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
18099         by an expanded name with prefix Standard, when the operands are of an
18100         anonymous access type.
18101         (Remove_Abstract_Operations): If the operation is abstract because it is
18102         inherited by a user-defined type derived from Address, remove it as
18103         well from the set of candidate interpretations of an overloaded node.
18104         (Analyze_Membership_Op): Membership test not applicable to cpp-class
18105         types.
18107 2006-02-13  Bob Duff  <duff@adacore.com>
18109         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
18110         redundant use clauses.
18111         In particular, if the scope of two use clauses overlaps, but one is not
18112         entirely included in the other, we should not warn.  This can happen
18113         with nested packages.
18114         (Analyze_Subprogram_Renaming): Protect the compiler against previously
18115         reported errors. The bug was reported when the compiler was built
18116         with assertions enabled.
18117         (Find_Type): If the node is a 'Class reference and the prefix is a
18118         synchronized type without a corresponding record, return the type
18119         itself.
18121 2006-02-13  Javier Miranda  <miranda@adacore.com>
18123         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
18124         if this is the full-declaration associated with a private declaration
18125         that implement interfaces, then the private type declaration must be
18126         limited.
18127         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
18128         as aliased. The use of the 'access attribute is not available for such
18129         object (for this purpose the object should be explicitly marked as
18130         aliased, but being an anonymous type this is not possible).
18132 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18133             Robert Dewar  <dewar@adacore.com>
18135         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
18136         compilation unit is an elaboration scope.
18137         (Add_Task_Proc): Add '\' in 2-line warning message.
18138         (Activate_All_Desirable): Deal with case of unit with'ed by parent
18140 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18141             Javier Miranda  <miranda@adacore.com>
18143         * sem_type.adb (Write_Overloads): Improve display of candidate
18144         interpretations.
18145         (Add_One_Interp): Do not add to the list of interpretations aliased
18146         entities corresponding with an abstract interface type that is an
18147         immediate ancestor of a tagged type; otherwise we have a dummy
18148         conflict between this entity and the aliased entity.
18149         (Disambiguate): The predefined equality on universal_access is not
18150         usable if there is a user-defined equality with the proper signature,
18151         declared in the same declarative part as the designated type.
18152         (Find_Unique_Type): The universal_access equality operator defined under
18153         AI-230 does not cover pool specific access types.
18154         (Covers): If one of the types is a generic actual subtype, check whether
18155         it matches the partial view of the other type.
18157 2006-02-13  Thomas Quinot  <quinot@adacore.com>
18159         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
18160         line. This is necessary to allow In_Extended_Main_Unit to provide
18161         correct results for itypes while writing out expanded source.
18162         (Close_File): No need to update the source_index_table here since it's
18163         now done for each line.
18165 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18166             Robert Dewar  <dewar@adacore.com>
18168         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
18169         preserve the source unit where the itype is declared, and prevent a
18170         backend abort.
18171         (Note_Implicit_Run_Time_Call): New procedure
18172         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
18173         E_Subprogram_Type)
18175         * sprint.ads: Document use of $ for implicit run time routine call
18177 2006-02-13  Quentin Ochem  <ochem@adacore.com>
18179         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
18180         task name.
18182 2006-02-13  Bob Duff  <duff@adacore.com>
18184         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
18185         Scan_Unsigned, so we do not scan leading blanks and sign twice.
18186         Integer'Value("- 5") and Integer'Value("-+5") now correctly
18187         raise Constraint_Error.
18189         * s-vallli.adb (Scan_Long_Long_Integer): Call
18190         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
18191         do not scan leading blanks and sign twice.
18192         Integer'Value("- 5") and Integer'Value("-+5") now correctly
18193         raise Constraint_Error.
18195         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
18196         Scan_Long_Long_Unsigned): Split out most of the processing from
18197         Scan_Long_Long_Unsigned out into
18198         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
18199         This prevents scanning leading blanks and sign twice.
18200         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
18201         See RM-3.5(44).
18203         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
18204         out most of the processing from Scan_Unsigned out into
18205         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
18206         This prevents scanning leading blanks and sign twice.
18208         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
18209         use with Modular'Value attribute.
18210         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
18211         attribute.
18213 2006-02-13  Robert Dewar  <dewar@adacore.com>
18215         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
18217 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
18219         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
18220         (PPC VxWorks): Likewise.
18221         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
18222         (forced_callee): Make non-inlinable and non-pure.
18223         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
18225 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18226             Ben Brosgol  <brosgol@adacore.com>
18227             Robert Dewar  <dewar@adacore.com>
18229         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
18230         support.
18231         Document that gnatbind -M option is for cross environments only.
18232         Added description of using gnatmem to trace gnat rtl allocs and deallocs
18233         Add note on use of $ to label implicit run time calls
18234         Add documentation for -gnatyI (check mode IN)
18235         Updated chapter on compatibility with HP Ada
18236         VMS-oriented edits.
18237         Ran spell and corrected errors
18238         Add documentation for gnatbind -d and rework documentation of -D
18239         at the same time.
18240         Add subprogram/data elimination section.
18241         Minor editing of annex A.
18242         Add section for gnatcheck.
18243         Add documentation for restriction No_Dispatching_Calls
18244         Add documentation for pragma Ada_2005
18245         Remove mention of obsolete pragma Propagate_Exceptions
18246         Document that pragma Unreferenced can appear after DO in ACCEPT
18247         Clarify Pure_Function for library level units
18248         Mention Max/Min in connection with No_Implicit_Conditionals
18249         No_Wide_Characters restriction is no longer partition-wide
18250         Add a nice example for Universal_Literal_String attribute
18251         Document that pragma No_Return can take multiple arguments
18253         * ug_words: Added entry for gnatcheck
18255         * g-ctrl_c.ads (Install_Handler): Enhance comments
18257         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
18259         * g-trasym.ads: Add documentation on how to do off line symbolic
18260         traceback computation.
18262         * s-fatgen.adb: Add comments for Unaligned_Valid
18264         * stand.ads: Fix typo in comment
18266 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18268         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
18270 2006-02-06  Roger Sayle  <roger@eyesopen.com>
18272         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
18274 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18276         PR target/25926
18277         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
18278         implementation that calls __main.
18280 2006-01-25  Peter O'Gorman  <peter@pogma.com>
18282         PR bootstrap/25859
18283         * Makefile.in (GCC_LINK): Remove quotes.
18284         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
18285         or $(GCC_LINK).
18287         (powerpc-darwin): Pass -shared-libgcc when building shared library.
18289 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18291         PR ada/24533
18292         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
18294 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18296         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
18298 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
18300         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
18301         needed.
18303 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
18305         * Make-lang.in: Update dependencies
18307 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
18309         * Make-lang.in: Add rule for ada/exp_sel.o
18311 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
18313         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
18315 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
18317         * gnatvsn.ads (Library_Version): Bump to version 4.2
18318         (ASIS_Version_Number): Bumped.
18320 2005-12-09  Doug Rupp  <rupp@adacore.com>
18322         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
18323         Ada bind file prefix on VMS from b$ to b__.
18324         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
18325         __init.
18327         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
18328         Targparm.OpenVMS_On_Target.
18329         (Object_Suffix): Initialize with target object suffix.
18330         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
18332         * butil.adb: Change some Hostparm.OpenVMS checks to
18333         Targparm.OpenVMS_On_Target.
18335         * clean.adb: Change some Hostparm.OpenVMS checks to
18336         Targparm.OpenVMS_On_Target.
18337         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
18338         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
18339         Ada bind file prefix on VMS from b$ to b__.
18341         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
18342         --GCC so that Get_Target_Parameters can find system.ads.
18343         (Gnatlink): Call Get_Target_Parameters in mainline.
18344         Initialize standard packages for Targparm.
18345         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
18346         (Process_Args): Also Check for object files with target object
18347         extension.
18348         (Make_Binder_File_Names): Create with target object extension.
18349         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
18350         to b__.
18352         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
18353         Targparm.OpenVMS_On_Target.
18354         ({declaration},Build_Library,Check_Library): Change Ada bind file
18355         prefix on VMS from b$ to b__.
18357         * osint-b.adb: Change some Hostparm.OpenVMS checks to
18358         Targparm.OpenVMS_On_Target.
18359         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
18360         b__.
18362         * targext.c: New file.
18364         * Makefile.in: add support for vxworks653 builds
18365         (../../vxaddr2line): gnatlink with targext.o.
18366         (TOOLS_LIBS): Move targext.o to precede libgnat.
18367         (init.o, initialize.o): Minor clean up in dependencies.
18368         (GNATLINK_OBJS): Add targparm.o, snames.o
18369         Add rules fo building targext.o and linking it explicitly with all
18370         tools.
18371         Also add targext.o to gnatlib.
18373         * Make-lang.in: Add rules for building targext.o and linking it in
18374         with gnat1 and gnatbind.
18375         Add entry for exp_sel.o.
18377         * osint.adb Change some Hostparm.OpenVMS checks to
18378         Targparm.OpenVMS_On_Target.
18379         (Object_File_Name): Use target object suffix.
18381         * osint.ads (Object_Suffix): Remove, no longer used.
18382         (Target_Object_Suffix): Initialize with target object suffix.
18384         * rident.ads: Add special exception to license.
18386         * targparm.adb (Get_Target_Parameters): Set the value of
18387         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
18388         value.
18389         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
18390         
18391         * targparm.ads: Add special exception to license.
18393         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
18394         function.
18395         (Copy_File): Make sure from file is closed if error on to file
18396         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
18398         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
18399         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
18401         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
18402         target object suffix.
18404 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
18405             Quentin Ochem  <ochem@adacore.com>
18406             Florian Villoing  <villoing@adacore.com>
18408         * a-taster.ads, a-taster.adb: New files.
18410         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
18411         link to the version that does nothing. This way the task termination
18412         routine is not executed twice for the environment task when finishing
18413         because of an unhandled exception.
18415         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
18416         handler because of an unhandled exception.
18418         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
18419         System.Tasking.Utilities instead of that in System.Tasking.Stages.
18421         * s-finimp.adb (initialization code): Modify the soft link for the
18422         finalization of the global list instead of Adafinal.
18424         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
18425         non-tasking version of the soft link for task termination. We do
18426         nothing since if we are using the non-tasking version it
18427         means that the task termination functionality is not used.
18428         (Null_Finalize_Global_List): Add this null version for the procedure
18429         in charge of finalizing the global list for controlled objects.
18430         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
18431         instead for handling run-time termination in a more flexible way.
18432         (Adafinal_NT): This new procedure will take care of finalizing the
18433         global list for controlled objects if needed, but no tasking
18434         finalization.
18436         * s-tarest.adb (Task_Lock): Do not try to lock again the
18437         Global_Task_Lock if we already own it. Otherwise, we get blocked in
18438         some run-time operations.
18439         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
18440         until all nested locks have been released.
18441         (Task_Wrapper): Call the fall-back task termination handler. It
18442         applies to all tasks but the environment task.
18443         (Finalize_Global_Tasks): Add the call for the task termination
18444         procedure for the environment task.
18445         (Task_Wrapper): suppress warnings around declaration of
18446         Secondary_Stack_Address.
18448         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
18449         moved to the Common_ATCB record.
18450         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
18451         Common_ATCB record.
18452         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
18453         Common_ATCB record.
18455         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
18456         Fall_Back_Handler, and Specific_Handler.
18458         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
18459         defined in Ada.Task_Termination, to avoid circular dependencies.
18460         (Termination_Handler): Redefine this type here, alredy defined in
18461         Ada.Task_Termination, for avoiding circular dependencies.
18462         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
18463         for storing task termination handlers. In addition,
18464         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
18465         Common_ATCB because it is used by both the regular and the restricted
18466         run times.
18467         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
18468         Common_ATCB because it is used by both the regular and the restricted
18469         run times.
18470         (Common_ATCB): Added a dynamic task analyzer field.
18472         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
18473         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
18474         (Task_Wrapper): Call the task termination handler. It applies to all
18475         tasks but the environment task.
18476         (Finalize_Global_Tasks): Call the task termination procedure for the
18477         environment task. The call to Finalize_Global_List is now performed
18478         using the soft links mechanism.
18479         (Task_Wrapper): added dynamic stack analysis.
18481         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
18482         potentially blocking operations has been moved from
18483         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
18484         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
18485         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
18486         this run-time check.
18488         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
18489         of task termination procedure.
18490         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
18491         link for the task termination procedure.
18493         * bindusg.adb: (Bindusg): Added documentation for -u option.
18495         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
18496         (Get_Main_C): Add handling of dynamic stack analysis.
18497         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
18499         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
18500         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
18501         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
18503         * opt.ads: Added flags used by dynamic stack measurement.
18504         (Max_Line_Length): Remove (not used anymore)
18506         * s-io.ads, s-io.adb (Standard_Error): new subprogram
18507         (Standart_Output): new subprogram
18508         (Set_Output): new subprogram
18509         (Put): now uses the value of Current_Out to know if the output has to be
18510         send to stderr or stdout.
18511         
18512         * s-stausa.ads: Complete implementation.
18514         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
18515         
18516         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
18517         list of Ada 05 files.
18518         (GNAT Library Units): Add AltiVec files.
18520         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
18521         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
18522         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
18524 2005-12-09  Nicolas Setton  <setton@adacore.com>
18526         * adaint.c (__gnat_locate_regular_file): Return immediately if
18527         file_name is empty.
18529 2005-12-09  Javier Miranda  <miranda@adacore.com>
18530             Hristian Kirtchev  <kirtchev@adacore.com>
18532         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
18533         to the specification because the frontend generates code that uses this
18534         subprogram.
18535         (Set_Interface_Table): Add missing assertion.
18536         Update documentation describing the run-time structure.
18537         (Displace): New subprogram that displaces the pointer to the object
18538         to reference one of its secondary dispatch tables.
18539         (IW_Membership): Modified to use the new table of interfaces.
18540         (Inherit_TSD): Modified to use the new table of interfaces.
18541         (Register_Interface_Tag): Use the additional formal to fill the
18542         contents of the new table of interfaces.
18543         (Set_Interface_Table): New subprogram that stores in the TSD the
18544         pointer to the table of interfaces.
18545         (Set_Offset_To_Top): Use the additional formal to save copy of
18546         the offset value in the table of interfaces.
18547         Update structure of GNAT Primary and Secondary dispatch table diagram.
18548         Add comment section on GNAT dispatch table prologue.
18549         (Offset_To_Signature): Update the constant value of the Signature field.
18550         (Dispatch_Table): Update comment on hidden fields in the prologue.
18551         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
18552         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
18553         the type of formal parameter T to Tag, introduce additional assertions.
18554         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
18555         conversion.
18556         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
18558         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
18559         in all the calls to Expand_Interface_Thunk. Instead of referencing the
18560         record component containing the tag of the secondary dispatch table we
18561         have to use the Offset_To_Top run-time function to get this information;
18562         otherwise if the pointer to the base of the object has been displace
18563         we get a wrong value if we use the 'position attribute.
18565         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
18566         all the calls to Expand_Interface_Thunk.
18567         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
18568         interfaces; hence the call to Set_Interface_Table was clearly wrong.
18569         (Collect_All_Interfaces): Modify the internal subprogram Collect to
18570         ensure that the interfaces implemented by the ancestors are placed
18571         at the header of the generated list.
18572         (Expand_Interface_Conversion): Handle the case in which the displacement
18573         associated with the interface conversion is not statically known. In
18574         this case we generate a call to the new run-time subprogram Displace.
18575         (Make_DT): Generate and fill the new table of interfaces.
18576         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
18577         Get_Tagged_Kind and Set_Tagged_Kind.
18578         (Tagged_Kind): New function that determines the tagged kind of a type
18579         with respect to limitedness and concurrency and returns a reference to
18580         RE_Tagged_Kind.
18581         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
18582         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
18583         primary dispatch table for a type.
18584         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
18585         secondary dispatch table respectively of a tagged type.
18587         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
18588         (Expand_Interface_Conversion): New subprogram to indicate if the
18589         displacement of the type conversion is statically known.
18590         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
18592         * rtsfind.ads (RE_Offset_To_Top): New entity
18593         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
18594         accessible to users.
18595         (Re_Displace): New entity
18596         (RE_Interface_Data): New entity
18597         (RE_Set_Interface_Data): New_Entity
18598         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
18599         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
18600         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
18601         RE_TK_Tagged, RE_TK_Task.
18603         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
18604         Init_Secondary_Tags_Internal to allow its use with interface types and
18605         also to generate the code for the new additional actual required
18606         by Set_Offset_To_Top.
18607         (Build_Init_Statements): In case of components associated with abstract
18608         interface types there is no need to generate a call to its IP.
18609         (Freeze_Record_Type): Generate Select Specific Data tables only for
18610         concurrent types.
18611         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
18612         the bodies and specifications of the predefined primitive operations
18613         dealing with dispatching selects and abort, 'Callable, 'Terminated only
18614         for concurrent types.
18616         * exp_sel.ads, exp_sel.adb: New files.
18618         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
18619         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
18620         properly protected objects and attach handler in the case of the
18621         restricted profile.
18622         Move embeded package Select_Expansion_Utilities into a separate external
18623         package.
18624         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
18625         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
18626         (Build_K, Build_S_Assignment): New subprograms, part of the select
18627         expansion utilities.
18628         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
18629         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
18630         where the trigger is a dispatching procedure of a limited tagged type.
18632 2005-12-09  Olivier Hainque  <hainque@adacore.com>
18634         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
18635         pointer initialization values. Make a SAVE_EXPR instead. Add comments
18636         about the use and expansion of SAVE_EXPRs in the various possible
18637         renaming handling cases.
18638         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
18639         abusing DECL_FCONTEXT.
18641 2005-12-09  Matthew Heaney  <heaney@adacore.com>
18643         * a-convec.adb (Merge): Added assertions to check whether vector params
18644         are sorted.
18646         * a-coinve.adb (Merge): Added assertions to check whether vector params
18647         are sorted.
18649         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
18650         draft.
18651         (Cursor'Read): raises PE
18653         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
18654         to its default value.
18656         * a-cihama.adb: Manually check whether cursor's key and elem are
18657         non-null
18659         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
18660         (Merge): Assert that target and source lists are in order
18661         (Swap): Declare non-const temporaries, to pass to Splice
18663         * a-cdlili.ads: (Splice): Changed param name and param mode
18665         * a-cdlili.adb: (Splice): Changed param name and param mode
18666         (Merge): Assert that target and source lists are in order
18667         (Swap): Declare non-const temporaries, to pass to Splice
18669         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
18670         (Write): declare Stream param as not null
18672         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
18673         an exception message.
18675 2005-12-09  Thomas Quinot  <quinot@adacore.com>
18676             Robert Dewar  <dewar@adacore.com>
18678         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
18679         which is the absolute maximum length we can support.
18681         * frontend.adb: For the processing of configuration pragma files,
18682         remove references to Opt.Max_Line_Length, which is not checked anymore.
18684         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
18685         length.
18687         * scn.adb, scng.adb: 
18688         Always check line length against the absolute supported maximum,
18689         Hostparm.Max_Line_Length.
18691         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
18692         value for the maximum line length is Max_Line_Length (not
18693         Column_Number'Last).
18694         Minor error msg update
18695         (Set_Style_Check_Options): New interface returning error msg
18696         Minor code reorganization (processing for 'M' was out of alpha order)
18698         * switch-c.adb: New interface for Set_Style_Check_Options
18700         * stylesw.ads (Set_Style_Check_Options): New interface returning error
18701         msg.
18703 2005-12-09  Javier Miranda  <miranda@adacore.com>
18705         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
18706         with IP subprogram were only supported if there were limited types.
18708         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
18709         records with IP subprogram were only supported if there were limited
18710         types.
18712 2005-12-09  Olivier Hainque  <hainque@adacore.com>
18713             Eric Botcazou  <ebotcazou@adacore.com>
18715         * trans.c (tree_transform, emit_check): Adjust calls to
18716         build_call_raise, passing the now expected GNAT_NODE argument.
18718         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
18719         source line information than what the current global locus indicates
18720         when appropriate.
18722         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
18723         field has overflowed.
18724         (build_call_raise): Add a GNAT_NODE argument to convey better source
18725         line information than what the current global locus indicates when
18726         appropriate.
18727         (build_component_ref): Adjust call to build_call_raise.
18729 2005-12-09  Pascal Obry  <obry@adacore.com>
18731         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
18732         the iterator is quitting iteration on parent directory.
18734 2005-12-09  Javier Miranda  <miranda@adacore.com>
18736         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
18737         and the assignment to a class-wide object, before the assignment we
18738         generate a run-time check to ensure that the tag of the Target is
18739         covered by the tag of the source.
18741 2005-12-09  Robert Dewar  <dewar@adacore.com>
18743         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
18744         parameter in call to Image_Wide_Character.
18746         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
18747         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
18748         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
18749         annoying FFFE/FFFF inconsistency.
18751 2005-12-09  Robert Dewar  <dewar@adacore.com>
18752             Javier Miranda  <miranda@adacore.com>
18753             Ed Schonberg  <schonberg@adacore.com>
18755         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
18756         of type conversion.
18757         (Find_Interface): New subprogram that given a tagged type and one of its
18758         component associated with the secondary table of an abstract interface
18759         type, return the entity associated with such abstract interface type.
18760         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
18761         base type to create anonymous subtype, because entity may be a locally
18762         declared subtype or generic actual.
18763         (Find_Interface): New subprogram that given a tagged type and one of its
18764         component associated with the secondary table of an abstract interface
18765         type, return the entity associated with such abstract interface type.
18767         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
18768         conversion cannot be handled at compile time. In this case we pass this
18769         information to the expander to generate the appropriate code.
18771 2005-12-09  Robert Dewar  <dewar@adacore.com>
18772             Ed Schonberg  <schonberg@adacore.com>
18773             Gary Dismukes  <dismukes@adacore.com>
18774             Javier Miranda  <miranda@adacore.com>
18775             Hristian Kirtchev  <kirtchev@adacore.com>
18777         * einfo.adb (Itype_Printed): New flag
18778         (Is_Limited_Type): Derived types do not inherit limitedness from
18779         interface progenitors.
18780         (Is_Return_By_Reference_Type): Predicate does not apply to limited
18781         interfaces.
18783         * einfo.ads (Itype_Printed): New flag
18784         Move Is_Wrapper_Package to proper section
18785         Add missing Inline for Is_Volatile
18787         * output.ads, output.adb (Write_Erase_Char): New procedure
18788         (Save/Restore_Output_Buffer): New procedures
18789         (Save/Restore_Output_Buffer): New procedures
18791         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
18792         Add missing support for anonymous access type
18793         (Write_Id): Insert calls to Write_Itype
18794         (Write_Itype): New procedure to output itypes
18796         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
18797         use of "limited" in declaration.
18799         * sinfo.ads, sinfo.adb: 
18800         Formal derived types can carry an explicit "limited" indication.
18802         * sem_ch3.adb: Add with and use of Targparm.
18803         (Create_Component): If Frontend_Layout_On_Target is True and the
18804         copied component does not have a known static Esize, then reset
18805         the size and positional fields of the new component.
18806         (Analyze_Component_Declaration): A limited component is
18807         legal within a protected type that implements an interface.
18808         (Collect_Interfaces): Do not add to the list the interfaces that
18809         are implemented by the ancestors.
18810         (Derived_Type_Declaration): If the parent of the full-view is an
18811         interface perform a transformation of the tree to ensure that it has
18812         the same parent than the partial-view. This simplifies the job of the
18813         expander in order to generate the correct object layout, and it is
18814         needed because the list of interfaces of the full-view can be given in
18815         any order.
18816         (Process_Full_View): The parent of the full-view does not need to be
18817         a descendant of the parent of the partial view if both parents are
18818         interfaces.
18819         (Analyze_Private_Extension_Declaration): If declaration has an explicit
18820         "limited" the parent must be a limited type.
18821         (Build_Derived_Record_Type): A derived type that is explicitly limited
18822         must have limited ancestor and progenitors.
18823         (Build_Derived_Type): Ditto.
18824         (Process_Full_View): Verify that explicit uses of "limited" in partial
18825         and full declarations are consistent.
18826         (Find_Ancestor_Interface): Remove function.
18827         (Collect_Implemented_Interfaces): New procedure used to gather all
18828         implemented interfaces by a type.
18829         (Contain_Interface): New function used to check whether an interface is
18830         present in a list.
18831         (Find_Hidden_Interface): New function used to determine whether two
18832         lists of interfaces constitute a set equality. If not, the first
18833         differing interface is returned.
18834         (Process_Full_View): Improve the check for the "no hidden interface"
18835         rule as defined by AI-396.
18837 2005-12-09  Robert Dewar  <dewar@adacore.com>
18839         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
18840         types, not on record subtypes.
18841         (Freeze_Entity): Code cleanup. Add barrier to the loop
18842         that generates the references for primitive operations. This allows to
18843         remove an unnecessary exception handler.
18844         Code reformatting and comment clean ups.
18846 2005-12-09  Vincent Celier  <celier@adacore.com>
18848         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
18849         If GNAT CHECK is called with a project file, but with no
18850         source on the command line, call gnatcheck with all the compilable
18851         sources of the project.
18852         Take into account the new command Check, for gnatcheck. Treat as for
18853         other ASIS tools: take into account project, specific package Check and
18854         Compiler switches.
18855         For ASIS tools, add the switches in package Compiler for
18856         the invocation of the compiler.
18858         * prj-attr.adb: Add package Check and its attributes
18860         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
18862         * vms_conv.adb (Initialize): Change Params of command Check to
18863         unlimited files.
18864         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
18865         Add data for new command Check
18867         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
18868         ELIM.
18869         Add qualifiers for Check command options
18870         (Command_Type): New command Check
18872 2005-12-09  Thomas Quinot  <quinot@adacore.com>
18874         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
18875         command line switch overruns the output buffer.
18877 2005-12-09  Robert Dewar  <dewar@adacore.com>
18879         * sem_prag.adb: Processing for new pragma Complete_Representation
18880         (Analyze_Pragma, case Debug): Implement two argument form.
18882         * par-prag.adb: Entry for new pragma Complete_Representation
18883         (Prag, case Debug): Recognize two argument form of pragma Debug
18884         New interface for Set_Style_Check_Options.
18886         * sem_ch13.adb: Implement new pragma Complete_Representation.
18888         * snames.adb, snames.ads, snames.h: Entry for new pragma
18889         Complete_Representation.
18891 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
18893         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
18894         available user-specified stream attributes on limited parameters to
18895         also test the type directly rather than only its underlying type (for
18896         Ada 95) and, in the case of Ada 2005, to check that the user-specified
18897         attributes are visible at the point of the subprogram declaration.
18898         For Ada 2005, the error message is modified to indicate that the
18899         type's stream attributes must be visible (again, only for -gnat05).
18901 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
18903         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
18904         anonymous access types.
18906         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
18907         matching of anonymous access types and anonymous access to subprogram
18908         types. 'R'M 4.9.1 (2/2).
18910 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
18912         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
18913         rule prematurely when operands are universal, remaining ambiguities
18914         will be removed during resolution.
18915         Code cleanup.
18917         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
18918         that are Ada 2005 functions.
18919         (Has_Abstract_Interpretation): Subsidiary to
18920         Remove_Conversions, to remove ambiguities caused by abstract operations
18921         on numeric types when operands are universal.
18923 2005-12-09  Robert Dewar  <dewar@adacore.com>
18925         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
18926         for case where spec is categorized.
18928 2005-12-09  Javier Miranda  <miranda@adacore.com>
18930         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
18931         types use the corresponding record type. This was not needed before
18932         the implementation of Ada 2005 synchronized types because
18933         concurrent types were never tagged types in Ada 95.
18935 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
18937         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
18938         first subtype of the type of the expression to verify that it is a
18939         legal Time type.
18941 2005-12-09  Robert Dewar  <dewar@adacore.com>
18943         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
18944         decoded names.
18946 2005-12-09  Quentin Ochem  <ochem@adacore.com>
18947             Robert Dewar  <dewar@adacore.com>
18948             Ed Falis  <falis@adacore.com>
18949             Florian Villoing  <villoing@adacore.com>
18950             Thomas Quinot  <quinot@adacore.com>
18951             Arnaud Charlet  <charlet@adacore.com>
18953         * gnat_ugn.texi: Created section "Stack Related Tools"
18954         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
18955         "Stack Related Tools"
18956         Added subsection "Static Stack Usage Analysis"
18957         Added subsection "Dynamic Stack Usage Analysis"
18958         Include documentation of itypes in sprint listing (-gnatG)
18959         Documented gnatbind -D switch (default sec stack size for fixed sec
18960         stacks).
18961         Added Interrupt_State and Persistent_BSS to list of configuration
18962         pragmas.
18963         Add missing doc for maximum value of nnn in -gnatyMnnn
18965         * gnat_rm.texi: Document the AltiVec binding.
18966         Add documentation for pragma Complete_Representation
18967         Shortened an overly long line (> 79 chars)
18968         Clarify documentation of unchecked conversion in implementation
18969         defined cases.
18970         Document two argument form of pragma Debug
18972         * types.ads (Column_Number): Update documentation.
18974         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
18975         library level Finalize_Storage_Only objects (these are not attached to
18976         any finalization list).
18978         * system-mingw.ads: (Underlying_Priorities): Update comment.
18980 2005-12-09  Robert Dewar  <dewar@adacore.com>
18982         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
18983         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
18984         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
18985         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
18986         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
18987         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
18988         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
18989         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
18990         reformatting.
18992 2005-12-09  Robert Dewar  <dewar@adacore.com>
18994         * s-vaflop-vms-alpha.adb: (Ne_F): New function
18995         (Ne_G): New function
18997         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
18998         for tag assignment.
18999         (Rewrite_Comparison): Handle case where operation is not a comparison
19000         and ignore, and also handle type conversion case.
19002 2005-12-09  Thomas Quinot  <quinot@adacore.com>
19004         * exp_aggr.ads: Fix typo in comment.
19005         ???-mark Convert_Aggr_In_Assignment as needing documentation.
19007 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
19009         * layout.adb: Replace various uses of byte by storage unit throughout.
19010         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
19011         static size, convert to storage units before returning, to conform to
19012         spec.
19014 2005-12-09  Matthew Gingell  <gingell@adacore.com>
19016         * g-exctra.ads: Fix typo in comment.
19018 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19020         * utils.c: Minor reformatting.
19022 2005-12-09  Robert Dewar  <dewar@adacore.com>
19024         * g-soccon.ads: 
19025         Further comment fixes to make the status of the default file clear
19027         * s-bitops.adb: Clarify comment for Bits_Array
19029 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19031         * Make-lang.in (ada.install-normal): Remove.
19033 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19035         * Make-lang.in: Remove all dependencies on s-gtype.
19037 2005-12-05  Richard Guenther  <rguenther@suse.de>
19039         * utils.c (convert): Use fold_convert where appropriate.
19041 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
19043         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
19044         a period is meant.
19046 2005-12-02  Richard Guenther  <rguenther@suse.de>
19048         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
19050 2005-12-01  Roger Sayle  <roger@eyesopen.com>
19052         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
19053         nodes.
19055 2005-11-23  Laurent Guerby  <laurent@guerby.net>
19057         * mlib-prj.adb (Build_Library): Initialize Delete.
19059 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
19061         * socket.c: Add extern int h_errno for rtems since networking header
19062         files are not available at this point in a tool bootstrap. Newlib
19063         only has basic C library header files.
19065 2005-11-19  Richard Guenther  <rguenther@suse.de>
19066         Roger Sayle  <roger@eyesopen.com>
19068         PR ada/23717
19069         * misc.c (internal_error_function): Don't use vsprintf to format
19070         the error message text, instead use pp_format_text and the new
19071         pretty printer APIs.  This allows handling of %qs, %w, etc.
19073 2005-11-18  Laurent Guerby  <laurent@guerby.net>
19075         PR ada/24857
19076         * Makefile.in: Use s-auxdec-empty for RTEMS.
19078 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19080         PR ada/22333
19081         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
19082         a temporary if taking the address of something that is neither
19083         reference, declaration, or constant, since the gimplifier
19084         can't handle that case.
19086 2005-11-17  Laurent Guerby  <laurent@guerby.net>
19088         PR ada/24857
19089         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
19091 2005-11-16  Richard Guenther  <rguenther@suse.de>
19093         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
19095 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
19097         PR ada/24855
19098         * raise-gcc.c: Add missing stdarg.h include.
19100 2005-11-16  Richard Guenther  <rguenther@suse.de>
19102         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
19103         (ada/misc.o): Likewise.
19105 2005-11-14  Thomas Quinot  <quinot@adacore.com>
19107         * g-soccon.ads: Minor reformatting. Update comments.
19109         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
19110         gain visibility on the declaration of struct timeval.
19112         * g-soccon-freebsd.ads,
19113         g-soccon-darwin.ads,
19114         g-soccon-tru64.ads,
19115         g-soccon-aix.ads,
19116         g-soccon-irix.ads,
19117         g-soccon-hpux.ads,
19118         g-soccon-solaris.ads,
19119         g-soccon-vms.ads,
19120         g-soccon-mingw.ads,
19121         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
19123         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
19124         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
19125         g-soccon-linux-x86.ads: New files.
19127         * g-socthi-mingw.adb: 
19128         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
19130         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
19131         (time_t, suseconds_t): New types constructed to match the tv_sec
19132         and tv_usec fields of C struct timeval.
19133         (Timeval): Construct structure in terms of the new types.
19134         (Host_Errno): New function (imported from socket.c), returns last hosts
19135         database error.
19137         * g-socthi-vxworks.adb:  Add error handling circuitry.
19139         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
19140         components of struct timeval.
19141         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
19142         (Check_Selector): In error conditions, clear internal socket sets to
19143         avoid a memory leak.
19144         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
19145         Send_Timeout, Receive_Timeout.
19147         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
19148         the tv_sec and tv_usec fields of C struct timeval.
19149         (Timeval): Construct structure in terms of the new types.
19150         (Host_Errno): New function (imported from socket.c), returns last hosts
19151         database error.
19153         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
19154         hosts database last error code.
19156         * gen-soccon.c: Complete value expansion should not be performed on
19157         TARGET, as it has the form of a math expression, and some components
19158         may be platform-defined macros.
19159         For VxWorks, generate the OK and ERROR values.
19160         New constants giving the sizes of the components of C struct timeval.
19162 2005-11-14  Robert Dewar  <dewar@adacore.com>
19163             Ed Schonberg  <schonberg@adacore.com>
19165         PR ada/18434
19166         * types.ads: Include All_Checks in Suppress_Array
19168         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
19169         not(a=b), since we no longer do this rewriting, and hence it is not
19170         needed.
19171         (Elaboration_Checks_Suppressed): Add special casing to
19172         deal with different cases of static and dynamic elaboration checks (all
19173         checks does not count in the first case, but does in the second).
19174         (Expr_Known_Valid): Do not assume that the result of any arbitrary
19175         function call is valid, since this is not the case.
19176         (Ensure_Valid): Do not apply validity check to a real literal
19177         in a universal or fixed context
19179         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
19180         elementary types using the operator in standard. It is cleaner not to
19181         modify the programmers intent, especially in the case of floating-point.
19182         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
19183         it did not matter because we always rewrote a/=b to not(a=b).
19184         (Expand_Allocator_Expression): For an allocator expression whose nominal
19185         subtype is an unconstrained packed type, convert the expression to its
19186         actual constrained subtype.
19187         Implement warning for <= or >= where < or > not possible
19188         Fix to Vax_Float tests (too early in many routines, causing premature
19189         Vax_Float expansions.
19191         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
19192         to be used with packages and generic packages as well as with
19193         subprograms.
19194         (Suppress): Set All_Checks, but not Elaboration_Check, for case
19195         of pragma Suppress (All_Checks)
19196         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
19197         a string literal for precise control over warnings.
19198         Avoid raise of pragma in case of unrecognized pragma and just return
19199         instead.
19201         * sem_prag.ads: Minor reformatting
19203         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
19204         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
19205         Switch. Do not handle any exception.
19206         Include -gnatwx as part of -gnatg (warn on redundant parens)
19207         Allow optional = after -gnatm
19208         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
19209         longer sets Elaboration_Checks.
19210         Code to set warning mode moved to Sem_Warn
19211         so that it can be shared by pragma processing.
19213         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
19214         statement.
19216         * s-taprop-solaris.adb: 
19217         Change some <= to =, to avoid new warning
19219         * a-exexda.adb, prj-proc.adb: 
19220         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
19221         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
19223 2005-11-14  Robert Dewar  <dewar@adacore.com>
19225         * exp_vfpt.adb: Handle /= case
19226         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
19227         so that we do not get duplicate scaling for fixed point conversions.
19229         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
19231 2005-11-14  Matthew Gingell  <gingell@adacore.com>
19233         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
19234         Increase default priority on Lynx from 15 to 17, and meet the Ada
19235         requirement that Default_Priority be ((Priority'First +
19236         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
19238 2005-11-14  Vincent Celier  <celier@adacore.com>
19240         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19241         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
19242         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
19243         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
19244         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
19245         mlib-tgt-lynxos.adb (DLL_Prefix): New function
19247 2005-11-14  Doug Rupp  <rupp@adacore.com>
19249         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
19250         private part.
19252 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
19254         * s-traces-default.adb, s-trafor-default.ads,
19255         s-tratas-default.adb: Fix compilation errors.
19257 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
19259         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
19260         raising the exception so the memory used is freed.
19262 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
19264         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
19265         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
19266         (convert_address): Update comments and list of platforms using this.
19268         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
19269         no longer used.
19271 2005-11-14  Pascal Obry  <obry@adacore.com>
19272             Vincent Celier  <celier@adacore.com>
19274         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
19275         GNAT.Command_Line.
19277         * memroot.adb: Remove redundant with/use clause on
19278         System.Storage_Elements.
19280 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
19282         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
19283         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
19284         related code to a-exexpr.adb
19285         (Save_Occurrence_And_Private): Move GCC EH related code to
19286         a-exexpr-gcc.adb
19287         (Raise_Current_Excep): Add new variable Id with pragma
19288         volatile, to ensure that the variable lives on stack.
19290         * a-exexpr-gcc.adb, raise-gcc.c: New file.
19292         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
19293         from a-except.adb.
19294         Move GCC EH related code to a-exexpr-gcc.adb
19296         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
19297         64-bit Solaris
19298         Split the Linux version of g-soccon into separate variants for 32 and 64
19299         bit platforms.
19300         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
19301         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
19302         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
19303         of host variable $(RANLIB_FLAGS).
19304         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
19305         Code clean up: remove unused/obsolete targets.
19306         (EH_MECHANISM): New variable introduced to differenciate between the
19307         two EH mechanisms statically.
19308         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
19309         (LIBGNAT_OBJS): Add raise-gcc.o
19310         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
19311         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19312         supports VxWorks 6 RTPs.
19313         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
19314         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19316         * raise.c: Move all GCC EH-related routines to raise-gcc.c
19318 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
19320         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
19321         deferral level, when abort is not allowed, to a later stage (the
19322         Task_Wrapper).
19323         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
19324         it will not get changed by the generated code. It was previously done
19325         in Create_Task.
19327 2005-11-14  Thomas Quinot  <quinot@adacore.com>
19328             Olivier Hainque  <hainque@adacore.com>
19329             Eric Botcazou  <ebotcazou@adacore.com>
19331         * decl.c:
19332         Factor common code to build a storage type for an unconstrained object
19333         from a fat or thin pointer type and a constrained object type.
19334         (annotate_value): Handle BIT_AND_EXPR.
19335         (annotate_rep): Don't restrict the back annotation of inherited
19336         components to the type_annotate_only case.
19337         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
19338         we are not defining the type.
19339         <E_Record_Type>: Likewise.
19340         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
19341         to get advantage of the new maybe_stabilize_reference interface, to
19342         ensure that what we reference is indeed stabilized instead of relying
19343         on assumptions on what the stabilizer does.
19344         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
19345         type imported through a limited_with clause, use its non-limited view.
19346         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
19347         differentiation.
19348         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
19349         of #if sections + explicit comparisons of convention identifiers.
19350         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
19351         before early-returning for certain types when code generation is
19352         disabled.
19353         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
19354         nullification of gnu_expr we do for objects with address clause and
19355         that we are not defining.
19356         (elaborate_expression_1): Do not create constants when creating
19357         variables needed by the debug info: the dwarf2 writer considers that
19358         CONST_DECLs is used only to represent enumeration constants, and emits
19359         nothing for them.
19360         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
19361         object with an address clause into an indirect reference, drop the
19362         initializing expression.
19363         Include "expr.h".
19364         (STACK_CHECK_BUILTIN): Delete.
19365         (STACK_CHECK_PROBE_INTERVAL): Likewise.
19366         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
19367         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
19368         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
19369         corresponding to the renamed object as ignored for debugging purposes.
19371         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
19372         related): For a prefix that is a dereference of a fat or thin pointer,
19373         if there is an actual subtype provided by the front-end, use that
19374         subtype to build an actual type with bounds template.
19375         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
19376         is provided by the front-end, use that subtype to compute the size of
19377         the deallocated object.
19378         (gnat_to_gnu): When adding a statement into an elaboration procedure,
19379         check for a potential violation of a No_Elaboration_Code restriction.
19380         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19381         with extra arguments to control whether to recurse through non-values
19382         and to let the caller know if the stabilization has succeeded.
19383         (gnat_stabilize_reference): Now a simple wrapper around
19384         maybe_stabilize, for common uses without restriction on lvalues and
19385         without need to check for the success indication.
19386         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
19387         pass false instead of 0 as the FORCE argument which is a bool.
19388         (Identifier_to_gnu): Remove checks ensuring that an renamed object
19389         attached to a renaming pointer has been properly stabilized, as no such
19390         object is attached otherwise.
19391         (call_to_gnu): Invoke create_var_decl to create the temporary when the
19392         function uses the "target pointer" return mechanism.
19393         Reinstate conversion of the actual to the type of the formal
19394         parameter before any other specific treatment based on the passing
19395         mechanism. This turns out to be necessary in order for PLACEHOLDER
19396         substitution to work properly when the latter type is unconstrained.
19398         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
19399         common pattern.
19400         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19401         with extra arguments to control whether to recurse through non-values
19402         and to let the caller know if the stabilization has succeeded.
19404         * utils2.c (gnat_build_constructor): Only sort the fields for possible
19405         static output of record constructor if all the components are constant.
19406         (gnat_build_constructor): For a record type, sort the list of field
19407         initializers in increasing bit position order.
19408         Factor common code to build a storage type for an unconstrained object
19409         from a fat or thin pointer type and a constrained object type.
19410         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
19411         types variants, and process special cases of VIEW_CONVERT expressions
19412         as their NOP_EXPR counterpart to ensure we get to the
19413         CORRESPONDING_VARs associated with CONST_DECls.
19414         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
19415         on the right-hand side.
19417         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
19418         a common pattern.
19419         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
19420         are converting back to its original type.
19421         (convert) <JM input>: Fallthrough regular conversion code instead of
19422         extracting the object if converting to a type variant.
19423         (create_var_decl): When a variable has an initializer requiring code
19424         generation and we are at the top level, check for a potential violation
19425         of a No_Elaboration_Code restriction.
19426         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
19427         SIZE and SIZE_UNIT which we need for later back-annotations.
19428         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
19429         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
19430         is an unchecked union.
19431         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
19432         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
19433         main variant, just replace the VIEW_CONVERT_EXPR.
19434         <UNION_TYPE>: Revert 2005-03-02 change.
19436         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
19438         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
19440 2005-11-14  Matthew Heaney  <heaney@adacore.com>
19442         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
19443         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
19444         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
19445         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
19446         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
19447         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
19448         Compiles against the spec for ordered maps described in sections
19449         A.18.6 of the most recent (August 2005) AI-302 draft.
19451 2005-11-14  Olivier Hainque  <hainque@adacore.com>
19453         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
19454         to ensure bias adjustments take place when need be and to prevent
19455         occurrences of intermediate overflows.
19457 2005-11-14  Matthew Gingell  <gingell@adacore.com>
19458             Olivier Hainque  <hainque@adacore.com>
19460         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
19461         ia64 HP-UX.
19463         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
19464         tracebacks on ia64 HP-UX and provide explanatory comment.
19465         Enable backtraces on ia64 GNU/Linux.
19466         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
19467         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
19469 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
19470             Javier Miranda  <miranda@adacore.com>
19472         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
19473         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
19474         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
19475         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
19477         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
19478         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
19479         assertions).
19481         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
19482         subprogram that generates the external name associated with a
19483         secondary dispatch table.
19484         (Get_Secondary_DT_External_Name): New subprogram that generates the
19485         external name associated with a secondary dispatch table.
19487 2005-11-14  Emmanuel Briot  <briot@adacore.com>
19489         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
19490         line in the ALI file to include both an instantiation reference, and a
19491         returned value.
19493 2005-11-14  Vincent Celier  <celier@adacore.com>
19495         * clean.adb (Check_Project): Look for Ada code in extending project,
19496         even if Ada is not specified as a language.
19497         Use new function DLL_Prefix for DLL_Name
19498         (Clean_Interface_Copy_Directory): New procedure
19499         (Clean_Library_Directory): New procedure
19500         (Clean_Directory): Remove procedure, no longer used
19501         (Clean_Project): Do not delete any file in an externally built project
19503         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
19504         directory of an extending project, even when there are no Ada source
19505         present.
19506         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
19507         (Set_Ada_Paths.Add.Recursive_Add): Ditto
19509         * mlib-prj.adb (Check_Library): For all library projects, get the
19510         library file timestamp.
19511         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
19512         (Build_Library): Use new function DLL_Prefix for the DLL_Name
19513         (Clean): Remove procedure, no longer used
19514         (Ultimate_Extension_Of): New function
19515         (Build_Library): When cleaning the library directory, only remove an
19516         existing library file and any ALI file of a source of the project.
19517         When cleaning the interface copy directory, remove any source that
19518         could be a source of the project.
19520         * prj.ads, prj.adb (Project_Empty): Add values of new components
19521         Library_TS and All_Imported_Projects.
19522         (Project_Empty): Add values for new components of Project_Data:
19523         Library_ALI_Dir and Display_Library_ALI_Dir
19525         * prj-attr.adb: New project level attribute name Library_ALI_Dir
19527         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
19528         attribute Library_ALI_Dir.
19529         (Check_Library_Attributes): The library directory cannot be the same as
19530         any source directory of the project tree.
19531         (Check_Stand_Alone_Library): The interface copy directory cannot be
19532         the same as any source directory of the project tree.
19534         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
19535         all temporary files.
19537 2005-11-14  Robert Dewar  <dewar@adacore.com>
19538             Ed Schonberg  <schonberg@adacore.com>
19540         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19541         (Check_Elab_Call): A call within a protected body is never an
19542         elaboration call, and does not require checking.
19543         (Same_Elaboration_Scope): Take into account protected types for both
19544         entities.
19545         (Activate_Elaborate_All_Desirable): New procedure
19547         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
19548         desirable
19550         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
19551         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
19553         * lib-writ.ads, lib-writ.adb: 
19554         Implement new AD/ED for Elaborate_All/Elaborate desirable
19555         Use new Elaborate_All_Desirable flag in N_With_Clause node
19557         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
19558         N_Free_Statement nodes.
19559         Define new class N_Subprogram_Instantiation
19560         Add Elaborate_Desirable flag to N_With_Clause node
19561         Add N_Delay_Statement (covering two kinds of delay)
19563         * debug.adb: Introduce d.f flag for compiler
19564         Add -da switch for binder
19566 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
19567             Cyrille Comar  <comar@adacore.com>
19569         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
19570         for task component, in the case of a limited aggregate. The enclosed
19571         object declaration will create it earlier. Otherwise, in the case of a
19572         nested aggregate, the object may appear in the wrong scope.
19573         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
19574         (Gen_Assign): If the component being assigned is an array type and the
19575         expression is itself an aggregate, wrap the assignment in a block to
19576         force finalization actions on the temporary created for each row of the
19577         enclosing object.
19578         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
19579         structures are initialized after all discriminants are set so that
19580         they can be accessed even when their offset is dynamic.
19582 2005-11-14  Robert Dewar  <dewar@adacore.com>
19583             Hristian Kirtchev  <kirtchev@adacore.com>
19585         * sem_attr.adb: Implement Machine_Rounding attribute
19586         (Analyze_Access_Attribute): The access attribute may appear within an
19587         aggregate that has been expanded into a loop.
19588         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
19589         'Terminated whenever the prefix is of a task interface class-wide type.
19590         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
19591         the prefix is of a task interface class-wide type.
19593         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
19594         to avoid warnings.
19596         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
19597         Remove pragma Inline for [Unaligned_]Valid.
19598         Add comments that Valid routines do not work for Vax_Float
19600         * exp_attr.adb: Implement Machine_Rounding attribute
19602         * snames.h: Add entry for Machine_Rounding attribute
19604 2005-11-14  Javier Miranda  <miranda@adacore.com>
19605             Robert Dewar  <dewar@adacore.com>
19606             Hristian Kirtchev  <kirtchev@adacore.com>
19608         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
19609         and related): For a prefix that is an explicit dereference of an
19610         access to unconstrained packed array type, annotate the dereference
19611         with an actual subtype so GIGI can make a correct size computation.
19612         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
19613         'Unrestricted_Access, if the designated type is an interface we
19614         add a type conversion to force the displacement of the pointer
19615         to the secondary dispatch table.
19616         Use Universal_Real instead of Long_Long_Float when we need a high
19617         precision float type for the generated code (prevents gratuitous
19618         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
19619         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
19620         'Terminated for task interface class-wide objects. Generate a call to
19621         the predefined dispatching routine used to retrieve the _task_id from
19622         a task corresponding record.
19623         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
19625         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19626         (Check_Dispatching_Operation): Protect the frontend againts
19627         previously detected errors.
19629         * Makefile.rtl: Add new instantiations of system.fat_gen
19631         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
19632         Change name of instantiated package for better consistency
19633         with newly added system.fat_gen instantiations.
19635         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
19636         s-fvagfl.ads: New files.
19638 2005-11-14  Cyrille Comar  <comar@adacore.com>
19639             Thomas Quinot  <quinot@adacore.com>
19641         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
19642         assignment of a value of a tagged type that has been rewritten to a
19643         block statement, it is known by construction that no checks are
19644         necessary for the statements within the block: analyze it with checks
19645         suppressed.
19646         (Expand_N_If_Statement): When killing a dead then-branch in an
19647         if-statement that has elsif_parts, recompute the Current_Value node
19648         for any entity whose value is known from the condition of the first
19649         elsif_part.
19650         (Expand_N_Return_Statement): When returning a mutable record, convert
19651         the return value into its actual subtype in order to help the backend
19652         to return the actual size instead of the maximum. This is another
19653         aftermath of not returning mutable records on the sec-stack anymore.
19655         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
19656         handling of error msg for suspicious reverse range iteration.
19657         (Check_Possible_Current_Value_Condition): Move declaration from body to
19658         spec, to allow this subprogram to be called from exp_ch5.
19660 2005-11-14  Thomas Quinot  <quinot@adacore.com>
19662         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
19663         generate a set of nested array aggregates instead of a single flat
19664         aggregate for multi-dimensional arrays.
19666 2005-11-14  Pascal Obry  <obry@adacore.com>
19668         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
19669         by spawnve is a process handle, no need to convert. Add a parameter
19670         close to control wether the process handle must be closed.
19671         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
19672         a process handle, not need to convert.
19673         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
19675         * g-expect.adb: (Kill): Document the new close parameter.
19676         (Close): Do not release the process handle in the kill there as
19677         waitpid() is using it.
19678         (Send_Signal): Release the process handle.
19680 2005-11-14  Robert Dewar  <dewar@adacore.com>
19682         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
19683         need a high precision float type for the generated code (prevents
19684         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19685         used).
19687         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
19688         need a high precision float type for the generated code (prevents
19689         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19690         used).
19691         (Expand_Width_Attribute): In configurable run-time, the attribute is not
19692         allowed on non-static enumeration subtypes. Force a load error to emit
19693         the correct diagnostic.
19695 2005-11-14  Thomas Quinot  <quinot@adacore.com>
19696             Robert Dewar  <dewar@adacore.com>
19697             Ed Schonberg  <schonberg@adacore.com>
19699         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
19700         subtype to compute the size of the designated object at run-time,
19701         create such a subtype and store it in the Actual_Designated_Subtype
19702         attribute of the N_Free_Statement.
19703         Generate itype for classwide designated object in both cases of
19704         user-specified storage pool: specific and class-wide, not only in the
19705         specific case.
19706         Raise CE when trying to set a not null access type object to null.
19707         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
19708         an explicit loop, because freeze nodes make its position variable.
19710         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
19711         null object.
19713 2005-11-14  Javier Miranda  <miranda@adacore.com>
19715         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
19716         Build_Stream_Procedure): Add the null-excluding attribute to the first
19717         formal.
19718         This has no semantic meaning under Ada95 mode but it is a
19719         requirement under Ada05 mode.
19721         * par-ch3.adb (P_Access_Definition): Addition of warning message if
19722         the null exclusion is used under Ada95 mode
19723         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
19724         (P_Access_Definition): Remove assertion that forbids the use of
19725         the null-exclusion feature in Ada95.
19727 2005-11-14  Robert Dewar  <dewar@adacore.com>
19729         * impunit.adb: Exclude container helper units not intended for use by
19730         users.
19732 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
19734         * freeze.adb (Freeze_Entity): For an access formal that is an access
19735         to subprogram, freeze the anonymous subprogram type at the same time,
19736         to prevent later freezing in the wrong scope, such as the enclosing
19737         subprogram body.
19738         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
19739         subprogram whenever available.
19741 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
19743         PR ada/23732
19744         * gnatvsn.ads (Library_Version): Bump to 4.1
19746 2005-11-14  Robert Dewar  <dewar@adacore.com>
19748         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
19749         Storage_Offset to avoid wrap around causing invalid results.
19751 2005-11-14  Pascal Obry  <obry@adacore.com>
19753         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
19754         cross-compiler.
19755         (Scan_Bind_Arg): Fail with an error message if -M option is used
19756         on a native compiler.
19758 2005-11-14  Robert Dewar  <dewar@adacore.com>
19759             Vincent Celier  <celier@adacore.com>
19761         * gprep.adb: Implement -C switch to scan comments
19763         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
19765         * scans.ads: Comment updates (including new use of Tok_Comment in
19766         preprocessing)
19768         * opt.ads: Add documentation for flags that are used by gprmake,
19769         currently and in the next version of gprmake.
19770         (Verbosity_Level): New variable
19771         Add Replace_In_Comments switch
19773         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
19774         and -vm.
19775         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
19777 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
19779         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
19780         message, friendlier.
19782 2005-11-14  Robert Dewar  <dewar@adacore.com>
19784         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
19786 2005-11-14  Doug Rupp  <rupp@adacore.com>
19788         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
19790 2005-11-14  Robert Dewar  <dewar@adacore.com>
19792         * interfac.ads: Change declarations of IEEE float types so that we no
19793         longer need a separate version of this package for VMS.
19795 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
19797         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
19798         internal entity created for the declaration of a child subprogram body
19799         with no spec as coming from source, to generate proper cross-reference
19800         information.
19802 2005-11-14  Vincent Celier  <celier@adacore.com>
19804         * make.adb (Compile_Sources): Change verbose message to minimum
19805         verbosity level High for "is in an Ada library", "is a read-only
19806         library" and "is an internal library",
19807         (Create_Binder_Mapping_File): Path name of ALI file for library project
19808         must include the library directory, not the object directory.
19809         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
19810         for new switches -vl, -vm and -vh.
19811         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
19812         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
19813         (Compile_Sources): Do not attempt to compile if an ALI file is missing
19814         in a project that is externally built.
19815         (Compute_All_Imported_Projects): New procedure
19816         (Gnatmake): Check if importing libraries should be regenerated because
19817         at least an imported library is more recent.
19818         (Initialize): For each project compute the list of the projects it
19819         imports directly or indirectly.
19820         (Add_Library_Search_Dir): New procedure, used in place of
19821         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
19822         put in the search paths.
19823         (Add_Source_Search_Dir): New procedure, used in place of
19824         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
19825         put in the search paths.
19826         (Mark_Directory): Resolve the absolute path the directory before marking
19827         it.
19829         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
19830         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
19831         Switch. Do not handle any exception.
19832         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
19833         so that the switch is recognized as valid.
19834         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
19836 2005-11-14  GNAT Script  <nobody@adacore.com>
19838         * Make-lang.in: Makefile automatically updated
19840 2005-11-14  Pascal Obry  <obry@adacore.com>
19842         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
19843         used.
19844         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
19845         In both cases the last argument was dropped.
19847 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
19849         * namet.h: (Column_Numbe): New type.
19850         (Get_Column_Number): Define to sinput__get_column_number.
19851         (Instantiation): Define to sinput__instantiation.
19852         (Get_Column_Number): Declare.
19853         (Instantiation): Likewise.
19855 2005-11-14  Robert Dewar  <dewar@adacore.com>
19857         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
19858         syntax, which could cause compiler hangs.
19860 2005-11-14  Vincent Celier  <celier@adacore.com>
19862         * prj-ext.adb: Take into account new environment variable
19863         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
19864         are defined.
19865         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
19866         normalize its path name, making it absolute and resolving symbolic
19867         links, and replace the original if resolved path is different.
19869 2005-11-14  Vincent Celier  <celier@adacore.com>
19871         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
19872         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
19874 2005-11-14  Emmanuel Briot  <briot@adacore.com>
19876         * prj-pp.adb (Print): Do not output the with statement if the
19877         associated name is empty, which happens for virtual extending projects.
19878         (Print): Preserve the "extends all" attribute when printing the project.
19880         * prj-tree.ads (String_Value_Of): Add comment about returned value for
19881         a virtual extending project.
19883 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
19885         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
19886         rhs of an assignment even if the type is unconstrained, when the
19887         context is non-expanding.
19888         In an inlined body, if the context type is private,
19889         resolve with its full view, which must be a composite type.
19891 2005-11-14  Robert Dewar  <dewar@adacore.com>
19892             Ed Schonberg  <schonberg@adacore.com>
19894         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19895         Do not give obsolescent warning on with of subprogram (since we
19896         diagnose calls)
19897         (Analyze_With_Clause): Add test for obsolescent package
19898         (Install_Context_Clauses): If the unit is the body of a child unit, do
19899         not install twice the private declarations of the parents, to prevent
19900         circular lists of Use_Clauses in a parent.
19901         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
19902         compiling body of child unit.
19903         Use new class N_Subprogram_Instantiation
19904         (Expand_With_Clause): If this is a private with_clause for a child unit,
19905         appearing in the context of a package declaration, then the implicit
19906         with_clauses generated for parent units are private as well.
19907         (License_Check): Do not generate message if with'ed unit is internal
19909 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
19910             Ed Schonberg  <schonberg@adacore.com>
19911             Thomas Quinot  <quinot@adacore.com>
19913         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
19914         names are internal, because they will not have a corresponding partner
19915         in the actual package.
19916         (Analyze_Formal_Package): Move the setting of the formal package spec's
19917         Generic_Parent field so that it occurs prior to analyzing the package,
19918         to allow proper operation of Install_Parent_Private_Declarations.
19919         (Analyze_Package_Instantiation): Set the instantiated package entity's
19920         Package_Instantiation field.
19921         (Get_Package_Instantiation_Node): Move declaration to package spec.
19922         Retrieve the N_Package_Instantiation node when the Package_Instantiation
19923         field is present.
19924         (Check_Generic_Child_Unit): Within an inlined call, the only possible
19925         instantiation is Unchecked_Conversion, for which no parents are needed.
19926         (Inline_Instance_Body): Deinstall and record the use_clauses for all
19927         parent scopes of a scope being removed prior to inlining an instance
19928         body.
19929         (Analyze_Package_Instantiation): Do not perform front-end inlining when
19930         the current context is itself an instance within a non-instance child
19931         unit, to prevent scope stack errors.
19932         (Save_References): If the node is an aggregate that is an actual in a
19933         call, rewrite as a qualified expression to preserve some type
19934         information, to resolve possible ambiguities in the instance.
19935         (Instance_Parent_Unit): New global variable to record the ultimate
19936         parent unit associated with a generic child unit instance (associated
19937         with the existing Parent_Unit_Visible flag).
19938         (type Instance_Env): New component Instance_Parent_Unit for stacking
19939         parents recorded in the global Instance_Parent_Unit.
19940         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
19941         stack.
19942         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
19943         it's not a top-level unit, and only do this if Instance_Parent_Unit is
19944         not already set. Replace test of Is_Child_Unit with test of parent's
19945         scope against package Standard. Add comments and a ??? comment.
19946         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
19947         on a child instance parent to test that the parent equals
19948         Instance_Parent rather than simply checking that the unit is not a
19949         child unit.
19950         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
19951         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
19952         a formal interface are ancestors of the corresponding actual.
19953         (Validate_Formal_Interface_Type): Additional legality checks.
19954         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
19955         interface types with ancestors.
19956         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
19957         to diagnose attempts to use generic within its own declaration.
19959 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
19960             Javier Miranda  <miranda@adacore.com>
19962         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
19963         discriminant.
19964         (Build_Private_Derived_Type): The entity of the created full view of the
19965         derived type does not come from source. If after installing the private
19966         declarations of the parent scope the parent is still private, use its
19967         full view to construct the full declaration of the derived type.
19968         (Build_Derived_Record_Type): Relax the condition that controls the
19969         execution of the check that verifies that the partial view and
19970         the full view agree in the set of implemented interfaces. In
19971         addition, this test now only takes into account the progenitors.
19972         (Derive_Interface_Subprograms): No need to derive subprograms
19973         of ancestors that are interfaces.
19974         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
19975         associated code.
19976         Change name Is_Package to Is_Package_Or_Generic_Package
19977         (Complete_Subprograms_Derivation): Handle the case in which the full
19978         view is a transitive derivation of the ancestor of the partial view.
19979         (Process_Full_View): Rename local subprogram Find_Interface_In_
19980         Descendant to Find_Ancestor_Interface to leave the code more clear.
19981         Remove wrong code that avoids the generation of an error message
19982         when the immediate ancestor of the partial view is an interface.
19983         In addition some minor reorganization of the code has been done to
19984         leave it more clear.
19985         (Analyze_Type_Declaration): If type has previous incomplete tagged
19986         partial view, inherit properly its primitive operations.
19987         (Collect_Interfaces): Make public, for analysis of formal
19988         interfaces.
19989         (Analyze_Interface_Declaration): New procedure for use for regular and
19990         formal interface declarations.
19991         (Build_Derived_Record_Type): Add support for private types to the code
19992         that checks if a tagged type implements abstract interfaces.
19993         (Check_Aliased_Component_Type): The test applies in the spec of an
19994         instance as well.
19995         (Access_Type_Declaration): Clean up declaration of malformed type
19996         declared as an access to its own classwide type, to prevent cascaded
19997         crash.
19998         (Collect_Interfaces): For private extensions and for derived task types
19999         and derived protected types, the parent may be an interface that must
20000         be included in the interface list.
20001         (Access_Definition): If the designated type is an interface that may
20002         contain tasks, create Master_Id for it before analyzing the expression
20003         of the declaration, which may be an allocator.
20004         (Record_Type_Declaration): Set properly the interface kind, for use
20005         in allocators, the creation of master id's for task interfaces, etc.
20007 2005-11-14  Javier Miranda  <miranda@adacore.com>
20008             Ed Schonberg  <schonberg@adacore.com>
20010         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
20011         omitted in case of stream attribute subprograms.
20012         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
20013         appear immediately after a subprogram body, when there is no previous
20014         subprogram declaration.
20015         Change name Is_Package to Is_Package_Or_Generic_Package
20016         (Process_Formals): A non null qualifier on a non null named access
20017         type is not an error, and is a warning only if Redundant_Constructs
20018         are flagged.
20020 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
20021             Ed Schonberg  <schonberg@adacore.com>
20023         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
20024         nested within Analyze_Package_Specification to install the private
20025         declarations and use clauses within each of the parent units of a
20026         package instance of a generic child package.
20027         (Analyze_Package_Specification): When entering a private part of a
20028         package associated with a generic instance or formal package, the
20029         private declarations of the parent must be installed (by calling new
20030         procedure Install_Parent_Private_Declarations).
20031         Change name Is_Package to Is_Package_Or_Generic_Package
20032         (Preserve_Full_Attributes): For a synchronized type, the corresponding
20033         record is absent in a generic context, which does not indicate a
20034         compiler error.
20036 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
20038         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
20039         not try to rewrite a renamed stream attribute, because the operations
20040         on the type may not have been generated.
20041         Handle properly a renaming_as_body generated for a stream operation
20042         whose default is abstract because the object type itself is abstract.
20043         (Find_Type): If the type is incomplete and appears as the prefix of a
20044         'Class reference, it is tagged, and its list of primitive operations
20045         must be initialized properly.
20046         (Chain_Use_Clauses): When chaining the use clauses that appear in the
20047         private declaration of a parent unit, prior to compiling the private
20048         part of a child unit, find on the scope stack the proper parent entity
20049         on which to link the use clause.
20050         (Note_Redundant_Use): Emit a warning when a redundant use clause is
20051         detected.
20052         (Analyze_Object_Renaming): An attribute reference is not a legal object
20053         if it is not a function call.
20055 2005-11-14  Robert Dewar  <dewar@adacore.com>
20056             Ed Schonberg  <schonberg@adacore.com>
20058         * sem_eval.adb: Implement d.f flag
20059         (Subtype_Statically_Match): A generic actual type has unknown
20060         discriminants when the corresponding actual has a similar partial view.
20061         If the routine is called to validate the signature of an inherited
20062         operation in a child instance, the generic actual matches the full view,
20064 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
20065             Ed Schonberg  <schonberg@adacore.com>
20066             Robert Dewar  <dewar@adacore.com>
20067             Thomas Quinot  <quinot@adacore.com>
20069         * sem_res.adb (Resolve_Call): Provide a better error message whenever
20070         a procedure call is used as a select statement trigger and is not an
20071         entry renaming or a primitive of a limited interface.
20072         (Valid_Conversion): If the operand has a single interpretation do not
20073         remove address operations.
20074         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
20075         statement to inhibit warning.
20076         (Resolve_Unary_Op): Do not produce a warning when
20077         processing an expression of the form -(A mod B)
20078         Use Universal_Real instead of Long_Long_Float when we need a high
20079         precision float type for the generated code (prevents gratuitous
20080         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
20081         (Resolve_Concatenation_Arg): Improve error message when argument is an
20082         ambiguous call to a function that returns an array.
20083         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
20084         there is an implicit operator in the given scope if we are within an
20085         instance: legality check has been performed on the generic.
20086         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
20087         after resolving operand, to avoid false warnings on overloaded calls.
20089 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
20090             Javier Miranda  <miranda@adacore.com>
20092         PR ada/15604
20093         * sem_type.adb (Covers): In an inlined body, a composite type matches
20094         a private type whose full view is a composite type.
20095         (Interface_Present_In_Ancestor): Protect the frontend against
20096         previously detected errors to ensure that its compilation
20097         with assertions enabled gives the same output that its
20098         compilation without assertions.
20099         (Interface_Present_In_Ancestor): Add support for private types.
20100         Change name In_Actual to In_Generic_Actual (clean up)
20101         (Disambiguate): New predicate In_Actual, to recognize expressions that
20102         appear in the renaming declaration generated for generic actuals, and
20103         which must be resolved in the outer context.
20105 2005-11-14  Robert Dewar  <dewar@adacore.com>
20106             Thomas Quinot  <quinot@adacore.com>
20107             Hristian Kirtchev  <kirtchev@adacore.com>
20108             Ed Schonberg  <schonberg@adacore.com>
20110         * sem_util.ads, sem_util.adb: Change name Is_Package to
20111         Is_Package_Or_Generic_Package.
20112         (Check_Obsolescent): New procedure.
20113         (Set_Is_Public): Remove obsolete junk test.
20114         (Set_Public_Status): Do not set Is_Public on an object whose declaration
20115         occurs within a handled_sequence_of_statemets.
20116         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
20117         for a parameterless procedure.
20118         (Enter_Name): Recognize renaming declarations created for private
20119         component of a protected type within protected operations, so that
20120         the source name of the component can be used in the debugger.
20122 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
20123             Robert Dewar  <dewar@adacore.com>
20125         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
20126         of a generic subprogram are not visible outside the body.
20127         (Set_Warning_Switch): New procedure (code to set warning mode moved
20128         here from Switch.C so that it can be shared by pragma processing.
20129         (Check_References): Special case warning for non-modified non-imported
20130         volatile objects.
20131         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
20132         form with a string literal argument
20134 2005-11-14  Javier Miranda  <miranda@adacore.com>
20136         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
20137         anonymous access.
20138         (Write): Addition of "not null" to the anonymous access.
20139         (Read): Addition of "not null" to the anonymous access.
20140         (Write): Addition of "not null" to the anonymous access.
20142         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
20143         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
20144         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
20145         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
20146         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
20147         "not null" to the anonymous access.
20149 2005-11-14  Robert Dewar  <dewar@adacore.com>
20151         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
20152         offset values
20154 2005-11-14  Vincent Celier  <celier@adacore.com>
20156         * switch.adb (Bad_Switch): New procedure
20157         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
20158         message when in error.
20160         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
20161         Too_Many_Output_Files): Remove declarations, no longer used.
20162         (Scan_Nat): New parameter Switch
20163         (Scan_Pos): Ditto
20164         (Bad_Switch): New procedure
20166         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
20167         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
20168         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
20169         to Osint.Fail. Do not handle any exception.
20171 2005-11-14  Vincent Celier  <celier@adacore.com>
20173         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
20174         designates a non existent directory.
20176 2005-11-14  Robert Dewar  <dewar@adacore.com>
20178         * xgnatugn.adb: Replace invalid membership test by 'Valid
20180 2005-11-14  Vincent Celier  <celier@adacore.com>
20182         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
20183         there is no object directory.
20185 2005-11-14  Robert Dewar  <dewar@adacore.com>
20187         * usage.adb: Minor adjustment to output format, use nn instead of nnn
20188         (so that -gnateInnn does not run into next column)
20190 2005-11-14  Ed Falis  <falis@adacore.com>
20192         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
20193         "constrained"
20195 2005-11-14  Cyrille Comar  <comar@adacore.com>
20197         * s-chepoo.ads: Add comments on Dereference.
20198         Remove unnecessary inherited abstract primitives.
20199         Cosmetic cleanup.
20201 2005-11-14  Robert Dewar  <dewar@adacore.com>
20203         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
20204         node parameter, not needed, since it is available as Declaration_Node.
20206 2005-11-14  Geert Bosch  <bosch@adacore.com>
20208         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
20209         grammatically correct.
20211 2005-11-14  Vincent Celier  <celier@adacore.com>
20213         * s-fileio.ads: Correct spelling error in comment
20215 2005-11-14  Cyrille Comar  <comar@adacore.com>
20216             Robert Dewar  <dewar@adacore.com>
20217             Vincent Celier  <celier@adacore.com>
20218             Ben Brosgol  <brosgol@adacore.com>
20219             Jose Ruiz  <ruiz@adacore.com>
20220             Pascal Obry  <obry@adacore.com>
20222         * gnat_ugn.texi: 
20223         Document that -fstack-check is needed for strict compliance with the
20224         Ada 95 Reference Manual.
20225         Correct reference to VAX systems to meet HP guidelines
20226         Add documentation for new gnatmake switches -vl, -vm and -vh
20227         Replace DEC Ada by HP Ada
20228         Replace DIGITAL by HP
20229         Remove empty section on tools in compatibility section
20230         Clarify the Windows convention semantics.
20231         Document the Win32 calling convention.
20232         The Stdcall, Win32 and DLL convention are synonyms.
20233         Add a note in -gnatR description about zero size record components
20234         Note on new >= and <= warnings for -gnatwc
20235         Document that equal sign after -gnatm is optional.
20236         Note that strip is working fine on DLL built with a Library
20237         Project. The restriction apply only to DLL built with gnatdll.
20238         Update section about the way to debug a DLL.
20239         Update information about the DLL convention.
20240         Document -C switch for gnatprep
20241         Document new attribute Library_ALI_Dir
20242         Update elaboration doc to include implicit Elaborate pragmas now
20243         generated for subprogram instantiations.
20244         Document limitation on executable names that include spaces for --GCC,
20245         --GNATBIND, and --GNATLINK switches.
20246         Document that -w causes -gnatws to be added at start of gcc switches
20248         * gnat_rm.texi: Document that -mieee is needed for generating infinite
20249         and NaN values in case of overflow on machines that are not fully
20250         compliant with the IEEE floating-point standard.
20251         Create a section describing the set of compiler options needed for
20252         strict compliance with the Ada 95 Reference Manual.
20253         Add documentation for pragma Obsolescent applied to a package
20254         Clarify potential issues of mixed language programs related to the
20255         I/O buffering enabling in the elaboration of the GNAT runtime.
20256         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
20257         This documentation only patch adds extra documentsion for pragma
20258         Restrictions (No_Elaboration_Code), explaining why it is not possible
20259         to document this restriction in terms of allowed source constructs.
20260         Document string literal form of pragma Warnings
20261         Document new attribute Library_ALI_Dir
20262         Add documentation on stable attributes in project files that was missing
20264         * gnat-style.texi: Indicate that paragraphs within a single comment
20265         should be separated by empty comment lines
20267         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
20268         /05 respectively)
20270         * bindusg.adb: Minor cleanup, put -m before -M for consistency
20272 2005-11-14  Robert Dewar  <dewar@adacore.com>
20274         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
20275         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
20276         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
20277         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
20278         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
20279         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
20280         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
20281         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
20282         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
20283         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
20284         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
20285         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
20286         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
20287         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
20288         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
20289         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
20290         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
20291         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
20292         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
20293         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
20294         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
20295         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
20296         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
20297         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
20298         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
20299         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
20300         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
20301         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
20302         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
20303         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
20304         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
20305         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
20306         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
20307         system-interix.ads, system-solaris-sparc.ads,
20308         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
20309         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
20310         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
20311         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
20312         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
20313         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
20314         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
20315         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
20316         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
20317         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
20318         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
20319         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
20320         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
20321         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
20322         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
20323         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
20324         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
20325         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
20326         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
20327         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
20328         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
20329         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
20330         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
20331         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
20332         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
20333         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
20334         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
20335         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
20336         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
20337         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
20338         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
20339         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
20340         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
20341         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
20342         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
20343         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
20344         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
20345         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
20346         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
20347         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
20348         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
20349         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
20350         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
20351         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
20352         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
20353         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
20354         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
20355         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
20356         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
20357         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
20358         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
20359         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
20360         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
20361         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
20362         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
20363         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
20364         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
20365         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
20366         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
20367         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
20368         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
20369         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
20370         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
20371         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
20372         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
20373         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
20374         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
20375         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
20376         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
20377         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
20378         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
20379         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
20380         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
20381         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
20382         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
20383         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
20384         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
20385         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
20386         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
20387         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
20388         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
20389         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
20390         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
20391         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
20392         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
20393         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
20394         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
20395         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
20396         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
20397         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
20398         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
20399         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
20400         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
20401         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
20402         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
20403         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
20404         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
20405         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
20406         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
20407         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
20408         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
20409         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
20410         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
20411         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
20412         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
20413         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
20414         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
20415         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
20416         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
20417         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
20418         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
20419         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
20420         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
20421         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
20422         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
20423         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
20424         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
20425         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
20426         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
20427         a-numaux-darwin.ads, a-numaux-darwin.adb,
20428         a-swuwha.ads, a-stunha.ads: Minor reformatting
20430 2005-11-14  Robert Dewar  <dewar@adacore.com>
20432         PR ada/18434
20433         * osint-m.adb: Add pragma Elaborate_All for Osint
20435 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
20437         PR ada/23995
20438         * trans.c (call_to_gnu): Restore statement lost in translation.
20440 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
20442         * init.c: Use the Linux-specific section for the IA-64/Linux target.
20443         (__gnat_adjust_context_for_raise): Add conditional code so that the
20444         IA-64 is also supported.
20446 2005-11-03  James E Wilson  <wilson@specifix.com>
20448         PR ada/23427
20449         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
20450         TREE_OVERFLOW check.
20452 2005-09-21  Olivier Hainque  <hainque@adacore.com>
20454         PR ada/22418
20455         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
20456         as we create them to store a size in bits.
20458 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
20460         PR ada/21937
20461         PR ada/22328
20462         PR ada/22381
20463         PR ada/22383
20464         PR ada/22419
20465         PR ada/22420
20466         * utils2.c (build_return_expr): New helper function.
20467         * gigi.h (build_return_expr): Declare it.
20468         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
20469         of manually building the RETURN_EXPR tree.
20470         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
20471         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
20472         build_binary_op for the "target pointer" case.  Use build_return_expr
20473         instead of manually building the RETURN_EXPR tree.
20475 2005-09-16  Laurent Guerby  <laurent@guerby.net>
20477         PR ada/23788
20478         * s-tpinop.ads: Make this unit Preelaborate.
20480 2005-09-16  Andreas Jaeger  <aj@suse.de>
20482         * socket.c: Add string.h for memcpy.
20484 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
20486         * dec-io.ads, dec-io.adb: Removed, no longer used.
20488 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
20490         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
20492         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
20493         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
20494         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
20495         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
20496         dependent units are Preelaborate.
20497         (Initialize): Call Interrupt_Managemeent.Initialize and
20498         OS_Primitives.Initialize to ensure proper initialization of this unit.
20499         Remove use of System.Soft_Links
20500         Make this unit Preelaborate.
20502         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
20503         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
20504         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
20505         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
20506         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
20507         s-tratas.ads, s-tasinf.ads: Minor reformatting.
20508         Add pragma Preelaborate, since these packages are suitable for this
20509         categorization.
20510         Update comments.
20512         * s-traent-vms.ads, s-intman-dummy.adb,
20513         s-taprop-dummy.adb: Make this unit Preelaborate.
20515         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
20516         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
20517         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
20518         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
20519         s-intman-solaris.adb, s-intman-irix-athread.adb,
20520         s-intman-irix.adb: Mark this unit Preelaborate.
20521         (Initialize): New procedure.
20522         Update comments.
20524         * s-taspri-linux.ads: Removed.
20526         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
20527         as done by other implementations (e.g. posix).
20529         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
20530         responsible for deferring abort.
20531         Mark this unit Preelaborate.
20533         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
20534         proper initialization of the tasking run-time.
20536         * s-tasdeb.ads: Mark this unit Preelaborate.
20537         (Known_Tasks): Add explicit default value to avoid elaboration code.
20539         * s-inmaop-vms.adb (Elaboration code): Add call to
20540         Interrupt_Management.Initialize since the elaboration code depends on
20541         proper initialization of this package.
20543         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
20544         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
20545         s-osprim-posix.adb: Make this unit Preelaborate.
20547         * a-calend.adb: Add call to OS_Primitives.Initialize
20549         * a-elchha.adb: Update use of Except.Id.Full_Name.
20550         Minor reformatting.
20551         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
20553         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
20554         Move with clauses outside Warnings Off now that dependent units are
20555         Preelaborate.
20556         Use raise xxx with "..."; Ada 2005 form.
20558         * a-taside.ads, a-taside.adb:
20559         Remove some dependencies, to make it easier to make this unit truly
20560         Preelaborate.
20561         Rewrite some code to be conformant with Preelaborate rules.
20563         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
20564         marked Preelaborate in the future.
20566         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
20567         these units Preelaborate.
20569         * s-exctab.adb: Update use of Except.Id.Full_Name.
20571         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
20572         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
20573         Set_Exc_Stack_Addr): Removed, no longer used.
20574         Remove reference to *Machine_State_Addr*, no longer needed.
20576         * s-stalib.ads: Mark this unit as Preelaborate[_05].
20577         (Exception_Data): Full_Name is now a System.Address so that this unit
20578         can be made Preelaborate.
20579         Clean up/simplify code thanks to Full_Name being a System.Address.
20580         Remove obsolete pragma Suppress (All_Checks), no longer needed.
20582         * s-taskin.ads, s-taskin.adb:
20583         Move with clauses outside Warnings Off now that dependent units are
20584         Preelaborate.
20585         Make this unit Preelaborate.
20586         (Initialize): New proceduure, replace elaboration code and makes the
20587         set up of the tasking run-time cleaner.
20588         (Detect_Blocking): Now a function instead of a deferred boolean, to
20589         obey Preelaborate rules.
20591         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
20592         soft links, no longer used.
20594         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
20595         packages are suitable for this categorization.
20597         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
20598         since we compile run-time sources in Ada 2005 mode.
20599         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
20600         avoid having s-taprop*.adb depend on s-soflin and to avoid code
20601         duplication.
20602         Remove reference to *Machine_State_Addr*, no longer needed.
20604 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
20606         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
20607         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20608         Remove reference to System.Exceptions.
20610         * s-mastop-x86.adb: Removed, no longer used.
20612         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
20614         * a-excach.adb: Minor reformatting.
20616         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
20617         instead fix new warnings that were hidden by this change.
20618         (AAA, ZZZ): Removed, replaced by...
20619         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
20620         are used instead of constants, to help make Ada.Exception truly
20621         preelaborate.
20622         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
20623         Raise_Storage_Error): File is now a System.Address, to simplify code.
20624         (Elab code): Removed, no longer used.
20625         (Null_Occurrence): Remove Warnings Off and make this construct
20626         preelaborate.
20627         Remove code related to front-end zero cost exception handling, since
20628         it is no longer used.
20629         Remove -gnatL/-gnatZ switches.
20631         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
20632         Update use of Except.Msg.
20634         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
20635         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
20636         to front-end zero cost exception handling, since it is no longer used.
20637         Remove -gnatL/-gnatZ switches.
20639         * lib-writ.ads: Minor reformatting
20640         Remove doc of UX
20642         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
20644         * Make-lang.in: Remove references to s-except.ads
20646         * s-except.ads: Removed, no longer used.
20648         * s-mastop.ads, s-mastop.adb:
20649         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20650         Remove reference to System.Exceptions.
20652         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
20653         switch-b.adb: Remove code related to front-end zero cost exception
20654         handling, since it is no longer used.
20655         Remove -gnatL/-gnatZ switches.
20657 2005-09-01  Robert Dewar  <dewar@adacore.com>
20658             Gary Dismukes  <dismukes@adacore.com>
20659             Javier Miranda  <miranda@adacore.com>
20661         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
20662         type by valid test and generate warning.
20663         (Tagged_Membership): Generate call to the run-time
20664         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
20665         Change formal name Subtype_Mark to Result_Definition in several calls to
20666         Make_Function_Specification.
20667         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
20668         check for proper accessibility of the operand of a class-wide allocator.
20669         The check can be left out if checks are suppressed or if the expression
20670         has a specific tagged type whose level is known to be safe.
20672         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
20673         generates the run-time check associated with null-excluding entities.
20674         (Expand_N_Return_Statement): Add tests to determine if the accessibility
20675         check on the level of the return expression of a class-wide function
20676         can be elided. The check usually isn't needed if the expression has a
20677         specific type (unless it's a conversion or a formal parameter). Also
20678         add a test for whether accessibility checks are suppressed. Augment
20679         the comments to describe the conditions for performing the check.
20681 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
20682             Javier Miranda  <miranda@adacore.com>
20683             Gary Dismukes  <dismukes@adacore.com>
20684             Ed Schonberg  <schonberg@adacore.com>
20686         * a-tags.adb (IW_Membership): Give support to
20687         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
20688         subprogram has been extended to look for the tag in the ancestors tag
20689         table.
20690         Update the structure of the GNAT Dispatch Table to reflect the
20691         additional two tables used in dispatching selects.
20692         Introduce appropriate array types and record components in
20693         Type_Specific_Data to reflect the two tables.
20694         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
20695         the TSD of a tag, indexed by position.
20696         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
20697         operation kind in the TSD of a tag, indexed by position.
20699         * a-tags.ads: Introduce an enumeration type to capture different
20700         primitive operation kinds. Define a constant reflecting the number of
20701         predefined primitive operations.
20702         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
20703         of an entry wrapper.
20704         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
20705         callable entity of a primitive operation.
20707         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
20708         primitive operations used in dispatching selects for limited
20709         interfaces, limited tagged, task and protected types what implement a
20710         limited interface.
20711         (Freeze_Type): Generate the bodies of the primitive operations used in
20712         dispatching selects for limited tagged, task and protected types that
20713         implement a limited interface. Generate statements to populate the two
20714         auxiliary tables used for dispatching in select statements.
20715         (Freeze_Record_Type): Add call to initialize the dispatch table entries
20716         associated with predefined interface primitive operations.
20717         (Build_Dcheck_Function): Change Set_Subtype_Mark to
20718         Set_Result_Definition.
20719         (Build_Variant_Record_Equality): Change Subtype_Mark to
20720         Result_Definition.
20721         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
20722         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
20723         (Build_Assignment): Simplify the code that adds the run-time-check.
20724         (Expand_N_Object_Declaration): Code cleanup.
20726         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
20727         entries when there is a protected type that implements a limited
20728         interface.
20730         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
20731         common routines used in expansion of dispatching selects.
20732         (Add_Private_Declarations): Select the appropriate protection type when
20733         there is a protected type that implements a limited interface.
20734         (Build_Parameter_Block): Generate a wrapped parameter block.
20735         (Build_Protected_Subprogram_Body): Select the appropriate type for
20736         locking entries when there is a protected type that implements a
20737         limited interface.
20738         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
20739         classified as entry wrappers.
20740         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
20741         asynchronous selects.
20742         (Expand_N_Conditional_Entry_Call): Add support for expansion of
20743         dispatching conditional selects.
20744         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
20745         protection when there is a protected type that implements limited
20746         interfaces.
20747         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
20748         timed selects.
20749         (Extract_Dispatching_Call): Extract the entity of the name of a
20750         dispatching call, the object parameter, actual parameters and
20751         corresponding formals.
20752         (Make_Initialize_Protection): Correct logic of protection initialization
20753         when there is a protected type that implements a limited interface.
20754         (Parameter_Block_Pack): Populate a wrapped parameter block with the
20755         values of actual parameters.
20756         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
20757         block and assign them to the original actual parameters.
20759         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
20760         (Build_Protected_Sub_Specification): Change the type and name of the
20761         last formal to account for the increased variety of protection modes.
20763         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
20764         entities. Used to save the value of the Is_Hidden attribute when the
20765         limited-view is installed.
20766         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
20767         the attribute of procedures classified as entry wrappers.
20768         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
20769         entity of a primitive wrapper.
20770         (Write_Entity_Flags): Output the name and value of the
20771         Is_Primitive_Wrapper attribute.
20772         (Write_Field27_Name): Output the name and entity of the field Wrapped_
20773         Entity.
20774         (Underlying_Type): If we have an incomplete entity that comes from
20775         the limited view then we return the Underlying_Type of its non-limited
20776         view if it is already available.
20777         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
20778         including operators.
20779         (Write_Field26_Name): Add entry for Overridden_Operation
20780         (Overridden_Operation): New attribute of functions and procedures.
20782         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
20783         predefined position in the dispatch table for the primitive operations
20784         used in dispatching selects.
20785         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
20786         predefined primitive operations and replace it with
20787         Default_Prim_Op_Count.
20788         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
20789         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
20790         the names of the generated primitive operations used in dispatching
20791         selects.
20792         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
20793         case of abstract interface types. They will be inherit by the objects
20794         implementing the interface.
20795         (Make_DT): There is no need to inherit the dispatch table of the
20796         ancestor interface for the elaboration of abstract interface types.
20797         The dispatch table will be inherited by the object implementing the
20798         interface.
20799         (Copy_Secondary_DTs): Add documentation.
20800         (Validate_Position): Improve this static check in case of
20801         aliased subprograms because aliased subprograms must have
20802         the same position.
20803         (Init_Predefined_Interface_Primitives): New subprogram that initializes
20804         the entries associated with predefined primitives of all the secondary
20805         dispatch tables.
20806         (Build_Anonymous_Access_Type): Removed.
20807         (Expand_Interface_Actuals): With the previous cleanup there is no need
20808         to build an anonymous access type. This allows further cleanup in the
20809         code generated by the expander.
20810         (Expand_Interface_Conversion): If the actual is an access type then
20811         build an internal function to handle the displacement. If the actual
20812         is null this function returns null because no displacement is
20813         required; otherwise performs a type conversion that will be
20814         expanded in the code that returns the value of the displaced actual.
20815         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
20816         conversions that have no effect in the generated code because no
20817         displacement is required. Code cleanup; use local variables to
20818         avoid repeated calls to the subprogram directly_designated_type().
20820         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
20821         Classify the primitive operations used in dispatching selects as
20822         predefined.
20823         (Implements_Limited_Interface): Determine whether some type either
20824         directly implements a limited interface or extends a type that
20825         implements a limited interface.
20826         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
20827         (Expand_Subtype_From_Expr): Do not build actual subtype if the
20828         expression is limited.
20829         (Find_Interface_Tag): Add code to handle class-wide types and
20830         entities from the limited-view.
20832         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
20833         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
20834         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
20835         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
20836         Set_Prim_Op_Kind.
20838         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
20839         of procedure name or prefix that appears as a trigger in a triggering
20840         alternative.
20842         * uintp.ads: Introduce constants Uint_11 and Uint_13.
20844 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
20846         * s-tataat.adb, a-tasatt.adb:
20847         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
20849         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
20850         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
20851         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
20852         longer used.
20854 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
20855             Jose Ruiz  <ruiz@adacore.com>
20857         * s-taprop-vxworks.adb:
20858         Move with clauses outside Warnings Off now that dependent units are
20859         Preelaborate.
20860         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
20861         initialization of this unit.
20862         (Specific): Add new procedures Initialize and Delete so that this
20863         package can be used for VxWorks 5.x and 6.x
20864         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
20865         differences between VxWorks 5.x and 6.x
20866         Minor reformatting.
20867         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
20868         caller.
20869         Use only Preelaborate-compatible constructs.
20871         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
20872         Primitives.Operations.
20873         (Delete, Initialize): New procedures.
20875         * s-osinte-vxworks.adb: Body used to handle differences between
20876         VxWorks 5.x and 6.x
20877         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
20879         * s-osinte-vxworks.ads: Minor reformatting.
20880         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
20881         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
20882         and 6.
20883         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
20884         between Vxworks 5 and 6.
20885         (taskLock, taskUnlock): Removeed, no longer used.
20887         * adaint.c: The wait.h header is not located in the sys directory on
20888         VxWorks when using RTPs.
20889         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
20890         using RTPs.
20891         (__gnat_dup): dup is available on Vxworks when using RTPs.
20892         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
20894         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
20896         * expect.c: The wait.h header is not located in the sys directory on
20897         VxWorks when using RTPs.
20899 2005-09-01  Thomas Quinot  <quinot@adacore.com>
20901         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
20903         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
20905         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
20906         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
20907         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
20908         g-soccon-freebsd.ads: Add new constants:
20909          IP_MULTICAST_IF
20910          SO_RCVTIMEO/SO_SNDTIMEO
20911          IOV_MAX
20913         * gen-soccon.c:
20914         Move all target-specific file inclusions and macro definitions to
20915         gsocket.h, in order to ensure that any C code in socket.c will see a
20916         set of constants that is consistent with the contents of g-soccon.ads.
20918         * gsocket.h: Code imported from gen-soccon.c:
20919         Move all target-specific file inclusions and macro definitions to
20920         gsocket.h, in order to ensure that any C code in socket.c will see a set
20921         of constants that is consistent with the contents of g-soccon.ads.
20922         This change also makes gen-soccon self-contained (removing dependencies
20923         upon GCC internal headers).
20925         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
20926         iovecs at a time.
20927         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
20929         * socket.c: Minor reformatting.
20931 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
20932             Thomas Quinot  <quinot@adacore.com>
20934         * fname-sf.adb, mlib-tgt.ads,
20935         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
20936         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
20937         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
20938         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
20939         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
20940         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
20941         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
20942         makegpr.adb: Remove redundant use_clauses.
20944 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
20946         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
20947         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
20948         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
20949         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
20950         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
20951         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
20952         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
20953         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
20954         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
20955         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
20956         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
20957         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
20958         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
20959         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
20960         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
20961         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
20962         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
20963         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
20964         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
20965         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
20966         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
20967         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
20968         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
20969         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
20970         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
20971         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
20972         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
20973         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
20974         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
20975         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
20976         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
20977         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
20978         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
20979         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
20980         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
20981         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
20982         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
20983         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
20984         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
20985         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
20986         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
20987         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
20988         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
20989         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
20990         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
20991         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
20992         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
20993         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
20994         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
20995         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
20996         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
20997         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
20998         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
20999         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
21000         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
21001         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
21002         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
21003         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
21004         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
21005         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
21006         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
21007         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
21008         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
21009         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
21010         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
21011         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
21012         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
21013         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
21014         and always use the no parameter form for consistency.
21016         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
21018 2005-09-01  Robert Dewar  <dewar@adacore.com>
21020         * binde.adb: Minor reformatting
21021         (Find_Elab_Order): Output warning if -p used with static elab order
21023 2005-09-01  Robert Dewar  <dewar@adacore.com>
21025         * checks.adb (Check_Needed): New procedure, deals with removing checks
21026         based on analysis of short-circuited forms. Also generates warnings for
21027         improper use of non-short-circuited forms.
21028         Code clean ups.
21030 2005-09-01  Robert Dewar  <dewar@adacore.com>
21032         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
21033         with 'Valid tests.
21035 2005-09-01  Robert Dewar  <dewar@adacore.com>
21037         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
21038         spec.
21039         Implement new insertion char < (conditional warning)
21040         * errutil.adb, erroutc.adb: Implement new insertion char <
21041         (conditional warning).
21042         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
21043         (Error_Msg_Warn): New variable for < insertion char.
21044         * prj-nmsc.adb: Implement new errout insertion char < (conditional
21045         warning).
21046         (Check_For_Source): Change value of Source_Id only after the current
21047         source has been dealt with.
21049 2005-09-01  Robert Dewar  <dewar@adacore.com>
21050             Doug Rupp  <rupp@adacore.com>
21052         * exp_attr.adb: Handle vax fpt for 'Valid attribute
21053         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
21054         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
21055         (Valid_D, Valid_F, Valid_G): New functions
21057 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21058             Hristian Kirtchev  <kirtchev@adacore.com>
21059             Javier Miranda  <miranda@adacore.com>
21061         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
21062         from object notation, the original node is unanalyzed and carries no
21063         semantic information, so that accessiblity checks must be performed on
21064         the type of the actual itself.
21065         (Expand_N_Subprogram_Declaration): Change last actual parameter for
21066         compatibility with Build_Protected_Sub_Specification.
21067         (Check_Overriding_Inherited_Interfaces): Add suport to handle
21068         overloaded primitives.
21069         (Register_Interface_DT_Entry): Use the new name of the formal
21070         the the calls to Expand_Interface_Thunk
21072         * exp_dbug.ads: Augment comments on encoding of protected types to
21073         include the generation of dispatching subprograms when the type
21074         implements at least one interface.
21076         * lib.ads: Extend information in Load_Stack to include whether a given
21077         load comes from a Limited_With_Clause.
21079         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
21080         whether a potential circularity is harmless, because it includes units
21081         loaded through a limited_with clause. Extends previous treatment which
21082         did not handle properly arbitrary combinations of limited and
21083         non-limited clauses.
21085 2005-09-01  Nicolas Setton  <setton@adacore.com>
21087         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
21088         to be encoded as typ___XBLU_lowerbound__upperbound instead of
21089         typ___XB_lowerbound__upperbound.
21091 2005-09-01  Thomas Quinot  <quinot@adacore.com>
21093         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
21094         dummy access formal for RACW/RAS TypeCode TSS.
21095         (Build_TypeCode_Call): Do not generate dummy null access actual for
21096         calls to the TypeCode TSS.
21098 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21100         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
21101         fully qualified name, to distinguish instances with the same local name.
21103         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
21104         fully qualified.
21106 2005-09-01  Robert Dewar  <dewar@adacore.com>
21108         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
21109         packed arrays.
21111 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
21113         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
21114         (Free): New deallocation procedure for filter elements
21115         (Close): Deallocate any existing filter for the concerned connection
21117 2005-09-01  Laurent Pautet  <pautet@adacore.com>
21119         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
21120         position set is provided, we compute one in order to reduce the maximum
21121         length of the keys.  This computation first selects a character
21122         position between 1 and the minimum length of the keys in order to
21123         avoid reducing one of the keys to an empty string.
21124         (Initialize, Compute): When the ratio V to K is too low, the algorithm
21125         does not converge. The initialization procedure now comes with a
21126         maximum number of iterations such that when exceeded, an exception is
21127         raised in Compute. The user can initialize this ratio to another value
21128         and try again
21129         Reformating and updated headers.
21131 2005-09-01  Javier Miranda  <miranda@adacore.com>
21133         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
21134         that given an entity T creates and returns an Itype that duplicates the
21135         contents of T. The returned Itype has the null-exclusion
21136         attribute set to True, and its Etype attribute references T
21137         to keep the association between the two entities.
21138         Update copyright notice
21140         * sem_aggr.adb (Check_Can_Never_Be_Null,
21141         Aggregate_Constraint_Checks, Resolve_Aggregate,
21142         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
21144         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
21146 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
21147             Robert Dewar  <dewar@adacore.com>
21148             Hristian Kirtchev  <kirtchev@adacore.com>
21150         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
21151         Result_Definition.
21153         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
21154         function specs.
21155         Call Set_Result_Definition instead of Set_Subtype_Mark.
21156         (P_Subprogram_Specification): Add parsing of anonymous access result
21157         plus null exclusions. Call Set_Result_Definition instead of
21158         Set_Subtype_Mark.
21160         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21161         (P_Access_Type_Definition): Add parsing for an anonymous access result
21162         subtype, plus parsing for null exclusions. Call Set_Result_Definition
21163         instead of Set_Subtype_Mark.
21165         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21166         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
21167         (Result_Definition): New function for N_Function_Specifications.
21168         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
21169         N_Function_Specification.
21170         (Set_Null_Exclusion_Present): Allow this flag for
21171         N_Function_Specification.
21172         (Set_Result_Definition): New procedure for N_Function_Specifications.
21173         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
21174         and N_Function_Specification.
21176         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
21177         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
21178         Add support for LIMITED NEW for Ada 2005 AI-419
21179         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
21180         syntax for anonymous access results.
21181         Replace Subtype_Mark field by Result_Definition in
21182         N_Function_Specification and N_Access_Definition specs.
21183         Add Null_Exclusion_Present to spec of N_Function_Specification.
21184         (Result_Definition): New function for N_Function_Specification and
21185         N_Access_Function_Definition.
21186         (Set_Result_Definition): New procedure for N_Function_Specification and
21187         N_Access_Function_Definition.
21189         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
21190         Result_Definition for cases of N_Access_Function_Definition and
21191         N_Function_Specification.
21192         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
21194 2005-09-01  Vincent Celier  <celier@adacore.com>
21196         * lib-writ.adb: Update Copyright notice
21197         (Write_With_Lines): On platforms where file names are case-insensitive,
21198         record the file names in lower case.
21199         (Write_ALI): For D lines, on platforms where file names are
21200         case-insensitive, record the file names in lower case.
21202 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21203             Emmanuel Briot  <briot@adacore.com>
21205         * lib-xref.adb (Output_Overridden_Op): Display information on
21206         overridden operation.
21208         * lib-xref.ads: Add documentation on overridden operations.
21210         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
21211         information.
21213         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
21214         overriding entity information.
21216 2005-09-01  Vincent Celier  <celier@adacore.com>
21218         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
21219         including those that are inherited.
21221 2005-09-01  Robert Dewar  <dewar@adacore.com>
21223         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
21225         * par-prag.adb: Implement new pragma Debug_Policy
21227         * sem_prag.adb Implement new pragma Debug_Policy
21228         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
21229         Component_Size attribute specification. Give warning for ignored pragma
21230         Pack.
21232         * snames.h, snames.ads, snames.adb: Introduce entries in
21233         Preset_Names for Name_Disp_Asynchronous_Select,
21234         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
21235         Name_Disp_Timed_Select.
21236         New pragma Debug_Policy
21238         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
21239         explicitly.
21240         Switch -gnata also sets Debug_Pragmas_Enabled
21242         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
21243         handle an explicit -gnata when compiling predefined files.
21245 2005-09-01  Vincent Celier  <celier@adacore.com>
21247         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
21248         directories of projects that have no Ada sources.
21250 2005-09-01  Robert Dewar  <dewar@adacore.com>
21252         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
21253         (makes a difference for wide characters)
21255         * widechar.adb, widechar.ads:
21256         Add Wide_Char_Byte_Count feature to count chars vs bytes
21258 2005-09-01  Thomas Quinot  <quinot@adacore.com>
21259             Ed Schonberg  <schonberg@adacore.com>
21260             Robert Dewar  <dewar@adacore.com>
21262         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
21263         'Address attribute reference with an overloaded prefix, use the
21264         location of the prefix (not the location of the attribute reference) as
21265         the error location.
21266         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
21267         a function renaming thereof, is a valid prefix for 'Size (where it is
21268         intepreted as a function call).
21269         (Statically_Denotes_Entity): New predicate to determine whether the
21270         prefix of an array attribute can be considered static.
21272         PR ada/9087
21273         (Eval_Attr): Fix failure to evaluate Component_Size for
21274         unconstrained arrays (resulted in wrong value in packed case, since
21275         back end cannot handle this case)
21277 2005-09-01  Robert Dewar  <dewar@adacore.com>
21279         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
21280         error msgs for most common cases.
21281         Use new errout insertion char < (conditional warning)
21283 2005-09-01  Javier Miranda  <miranda@adacore.com>
21284             Ed Schonberg  <schonberg@adacore.com>
21286         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
21287         become local to the whole package.
21288         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
21289         the package was already analyzed the new algorithm "replaces" the
21290         real entities by the shadow ones. This is required to ensure that
21291         the order of these entities in the homonym chains does not change;
21292         otherwise we can have undefined references at linking time because
21293         in case of conflicts the external name of the entities will have
21294         a suffix that depends on the order of the entities in the chain.
21295         (Remove_Limited_With_Clause): Complementary code that completes the
21296         new algorithm and replaces the shadow entities by the real ones.
21297         (Install_Limited_Withed_Unit): When unchaining entities before the
21298         installation of the shadow entities, only regular entities of the
21299         public part must be taken into account. This is required to
21300         keep this routine in synch with the work done by Remove_Limited_
21301         With_Clause
21302         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
21303         even if unit is analyzed, because the analysis of the unit is
21304         idempotent in any case, and the limited view of the unit may have to
21305         be installed for proper visibility.
21306         (Expand_Limited_With_Clause): Even if the unit in the implicit
21307         with_clause has been analyzed already, a limited view of the package
21308         must be built for the current context, if it does not exist yet.
21310 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21311             Javier Miranda  <miranda@adacore.com>
21312             Gary Dismukes  <dismukes@adacore.com>
21314         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
21315         defining entity for the instance body, make a new defining identifier
21316         rather than copying the entity of the spec, to prevent accidental
21317         sharing of the entity list.
21318         (Check_Private_View): When exchanging views of private types, build the
21319         list of exchanged views as a stack, to ensure that on exit the exchanges
21320         are undone in the proper order.
21321         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
21322         Restore the compilation environment in case of instantiation_error.
21323         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
21324         for an anonymous access result.
21325         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
21326         (Formal_Entity): Handle properly the case of a formal package that
21327         denotes a generic package renaming.
21329 2005-09-01  Thomas Quinot  <quinot@adacore.com>
21331         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
21332         clause if the array aggregate is surrounded by parentheses.
21334 2005-09-01  Cyrille Comar  <comar@adacore.com>
21335             Gary Dismukes  <dismukes@adacore.com>
21336             Ed Schonberg  <schonberg@adacore.com>
21337             Javier Miranda  <miranda@adacore.com>
21339         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
21340         underlying type
21341         to check if a type is Constrained in cases related to code generation
21342         (rather than semantic checking) since otherwise we do not generate
21343         similar code for mutable private types depending if their
21344         discriminants are visible or not.
21345         (Check_Abstract_Overriding): Do not complain about failure to override
21346         the primitive operations used in dispatching selects since they will
21347         always be overriden at the freeze point of the type.
21348         (Access_Definition): Separate out handling for resetting the scope
21349         of an anonymous access function result type. Retrieve the scope
21350         of the associated function rather than using Current_Scope, which
21351         does not have a consistent value (depends on whether we're in the
21352         middle of analyzing formal parameters). Add ??? comment about
21353         finding a cleaner way to handle the special cases of scope setting.
21354         (Process_Incomplete_Dependents): A protected operation is never a
21355         dispatching operation (only its wrapper may be).
21356         (Build_Derived_Record_Type): In case of tagged private types that
21357         implement interfaces add derivation of predefined primitive
21358         operations.
21359         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
21360         by two parameters that are used in case of derivation from abstract
21361         interface types: No_Predefined_Prims is used to avoid the derivation
21362         of predefined primitives from the interface, and Predefined
21363         Prims_Only is used to complete the derivation predefined primitives
21364         in case of private tagged types implementing interfaces.
21365         Fix typo in comments
21366         (Find_Interface_In_Descendant): Protect the frontend against
21367         wrong code with large circularity chains.
21368         (Is_Private_Overriding): Add support for entities overriding interface
21369         subprograms. The test failed because Entities associated with overriden
21370         interface subprograms are always marked as hidden (and used to build
21371         the secondary dispatch table); in this case the overriden entity is
21372         available through the field abstract_interface_alias (cf. override_
21373         dispatching_operation)
21374         (Access_Definition): Set the scope of the type to Current_Scope for the
21375         case of a function with an anonymous access result type.
21376         (Access_Subprogram_Declaration): Handle creation of the type entity for
21377         an access-to-function type with an anonymous access result.
21378         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
21379         in handling for N_Access_Function_Definition.
21380         (Analyze_Subtype_Declaration): Modify the text of error message.
21381         (Derived_Type_Declaration): Modify the text of error message.
21382         (Process_Subtype): Modify the text of error message plus cleanup
21383         of one redundant error message.
21384         (Analyze_Component_Declaration): Code cleanup.
21385         (Analyze_Object_Declaration): Code cleanup.
21386         (Analyze_Subtype_Declaration): Propagate the null-exclusion
21387         attribute in case of access types. Code cleanup.
21388         (Array_Type_Declaration): Code cleanup.
21389         (Process_Discriminants): Create the new null-excluding itype
21390         if required. Code cleanup.
21391         (Process_Subtype): Create the new null-excluding itype if
21392         required. Code cleanup.
21393         (Build_Derived_Record_Type): Code cleanup to avoid calling
21394         twice the subprogram derive_subprograms in case of private
21395         types that implement interfaces. In this particular case the
21396         subprogram Complete_Subprograms_Derivation already does the
21397         job associated with the second call.
21399         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
21400         conversion to the full view when generating an operation for a
21401         discriminant whose type may currently be private.
21403 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21404             Javier Miranda  <miranda@adacore.com>
21406         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
21407         V (Obj.F), the rewriting does not involve the indexed component, but
21408         only the selected component itself.
21409         Do not apply the transformation if the analyzed node is an actual of a
21410         call to another subprogram.
21411         (Complete_Object_Operation): Retain the entity of the
21412         dispatching operation in the selector of the rewritten node. The
21413         entity will be used in the expansion of dispatching selects.
21414         (Analyze_One_Call): Improve location of the error message associated
21415         with interface.
21416         (Analyze_Selected_Component): No need to resolve prefix when it is a
21417         function call, resolution is done when parent node is resolved, as
21418         usual.
21419         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
21420         when attempting to resolve a call transformed from its object notation.
21421         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
21422         of the argument list for each interpretation of the operation.
21423         (Try_Object_Operation): The designated type of an access parameter may
21424         be an incomplete type obtained through a limited_with clause, in which
21425         case the primitive operations of the type are retrieved from its full
21426         view.
21427         (Analyze_Call): If this is an indirect call, and the return type of the
21428         access_to_subprogram is incomplete, use its full view if available.
21430 2005-09-01  Javier Miranda  <miranda@adacore.com>
21431             Gary Dismukes  <dismukes@adacore.com>
21433         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
21434         access types the null-exclusion and access-to-constant attributes must
21435         also match.
21436         (Analyze_Return_Statement): When the result type is an anonymous access
21437         type, apply a conversion of the return expression to the access type
21438         to ensure that appropriate accessibility checks are performed.
21439         (Analyze_Return_Type): For the case of an anonymous access result type,
21440         generate the Itype and set Is_Local_Anonymous_Access on the type.
21441         Add ??? placeholder for check to disallow returning a limited object
21442         in Ada 2005 unless it's an aggregate or a result of a function call.
21443         Change calls from Subtype_Mark to Result_Definition.
21444         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
21445         Result_Definition in call to Make_Function_Specification.
21446         (Build_Body_To_Inline): Change Set_Subtype_Mark to
21447         Set_Result_Definition.
21448         (Make_Inequality_Operator): Change formal Subtype_Mark to
21449         Result_Definition in call to Make_Function_Specification.
21450         (Process_Formals): Create the new null-excluding itype if required.
21451         (New_Overloaded_Entity): For an entity overriding an interface primitive
21452         check if the entity also covers other abstract subprograms in the same
21453         scope. This is required to handle the general case, that is, overriding
21454         other interface primitives and overriding abstract subprograms inherited
21455         from some abstract ancestor type.
21456         (New_Overloaded_Entity): For an overriding entity that comes from
21457         source, note the operation that it overrides.
21458         (Check_Conformance, Type_Conformant): Addition of one new formal
21459         to skip controlling formals in the analysis. This is used to
21460         handle overloading of abstract interfaces.
21461         (Base_Types_Match): Add missing case for types imported from
21462         limited-with clauses
21463         (New_Overloaded_Entity): Add barrier to protect the use of
21464         the "alias" attribute.
21466 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21468         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
21469         verify that the procedure and the entry are mode conformant.
21470         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
21471         as a different operator, which is often a cut-and-paste error.
21473 2005-09-01  Javier Miranda  <miranda@adacore.com>
21474             Ed Schonberg  <schonberg@adacore.com>
21476         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
21477         used in controlling parameters exclude null because it is necessary to
21478         read the tag to dispatch, and null has no tag.
21479         (Override_Dispatching_Operation): If the previous operation is inherited
21480         from an interface, it becomes hidden  and does not participate in later
21481         name resolution.
21483 2005-09-01  Javier Miranda  <miranda@adacore.com>
21484             Ed Schonberg  <schonberg@adacore.com>
21485             Gary Dismukes  <dismukes@adacore.com>
21487         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
21488         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
21489         the expander will generate the corresponding run-time check to evaluate
21490         the expression.
21491         (Resolve_Call): Check for legal type of procedure name or prefix that
21492         appears as a trigger in a triggering alternative.
21493         (Valid_Conversion): If expression is ambiguous and the context involves
21494         an extension of System, remove System.Address interpretations.
21495         (Resolve_Qualified_Expression): Reject the case of a specific-type
21496         qualification applied to a class-wide argument. Enhance comment
21497         to explain checking of Original_Node.
21498         (Resolve_Type_Conversion): The location of the error message was not
21499         general enough to handle the general case and hence it has been removed.
21500         In addition, this patch improves the text of the message.
21501         (Resolve_Type_Conversion): Add missing support for access to interface
21502         types.
21503         (Resolve_Type_Conversion): If the target is a class-wide interface type,
21504         do not expand if the expression is the actual in a call, because proper
21505         expansion will take place when the call itself is expanded.
21506         (Resolve_Allocator): If the context is an unchecked conversion, the
21507         allocator inherits its storage pool, if any, from the target type of
21508         the conversion.
21510 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21511             Javier Miranda  <miranda@adacore.com>
21513         * sem_type.adb (Add_One_Interp): If a candidate operation is an
21514         inherited interface operation that has an implementation, use the
21515         implementation to avoid spurious ambiguities.
21516         (Interface_Present_In_Ancestor): In case of concurrent types we can't
21517         use the Corresponding_Record_Typ attribute to look for the interface
21518         because it is set by the expander (and hence it is not always
21519         available). For this reason we traverse the list of interfaces
21520         (available in the parent of the concurrent type).
21521         (Interface_Present_In_Ancestor): Handle entities from the limited view
21523 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21525         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
21526         from the list of required components.
21527         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
21528         primitive procedure of a limited interface with a controlling first
21529         parameter.
21530         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
21531         of an entry.
21532         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
21533         capture if it is generated in the second operand of a short-circuit
21534         operation.
21535         Do not capture values for variables with address clauses.
21536         (Is_Object_Reference): Treat a function call as an object reference only
21537         if its type is not Standard_Void_Type.
21539 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21541         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
21542         to a variable that is statically known to be constant.
21544 2005-09-01  Geert Bosch  <bosch@adacore.com>
21545             Robert Dewar  <dewar@adacore.com>
21547         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
21548         (VAXGF_Safe_First): Idem.
21550 2005-09-01  Robert Dewar  <dewar@adacore.com>
21551             Arnaud Charlet  <charlet@adacore.com>
21553         * g-dirope.ads: Minor reformatting
21554         Document that bounds of result of Base_Name match the input index
21555         positions.
21556         Add documentation on environment variable syntax for Expand_Path
21558         * gnat_ugn.texi: Update documentation to include mention of -m switches
21559         Document new treatment of wide characters in max line length
21560         style check.
21561         Remove -gnatL/-gnatZ switches, no longer used.
21562         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
21563         of -gnata switch.
21565         * gnat_rm.texi: Add doc for two argument form of pragma
21566         Float_Representation.
21567         Add documentation for pragma No_Strict_Aliasing
21568         Add note that explicit component clause overrides pragma Pack.
21569         Add documentation of pragma Debug_Policy
21571 2005-09-01  Matthew Heaney  <heaney@adacore.com>
21573         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
21574         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
21575         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
21576         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
21577         draft (Draft 13, August 2005) of Ada Amendment 1.
21579 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
21581         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
21582         Note that the platform-specific version of g-soccon.ads for VMS is now
21583         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
21584         really is a package spec).
21585         Replace s-taspri-linux.ads by s-taspri-posix.ads
21586         Remove references to s-mastop-x86.adb
21588         * system-vxworks-xscale.ads: Removed, no longer used.
21589         * s-vxwork-xscale.ads: Removed, no longer used.
21591 2005-09-01  Robert Dewar  <dewar@adacore.com>
21593         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
21594         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
21595         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
21596         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
21597         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
21598         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
21599         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
21600         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
21601         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
21602         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
21603         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
21604         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
21605         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
21606         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
21607         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
21608         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
21609         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
21610         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
21611         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
21612         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
21613         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
21615 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
21617         PR ada/23187
21618         * adaint.c
21619         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
21621 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
21622             Doug Rupp  <rupp@adacore.com>
21624         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
21625         when needed.
21626         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
21627         this code in the GNAT run-time.
21629         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
21631         PR ada/21053
21632         * init.c (__gnat_error_handler [many]): Mark "msg" as const
21633         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
21635         (__gnat_inside_elab_final_code): Moved here from
21636         Standard_Library and only defined for the compiler.
21637         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
21638         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
21639         using RTPs because directly vectored Interrupt routines are not
21640         supported on this configuration.
21641         (getpid): Do not redefine this function on VxWorks when using RTPs
21642         because this primitive is well supported by the RTP libraries.
21643         (copy_msg): Correct the code that checks for buffer overflow.
21644         Discovered during code reading.
21646 2005-08-29  Olivier Hainque  <hainque@adacore.com>
21648         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
21649         a library level mutable variable with an initializer, tell
21650         build_allocator to ignore the initializer's size. It may not be large
21651         enough for all the values that might be assigned to the variable later
21652         on.
21654 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
21655             Eric Botcazou  <ebotcazou@adacore.com>
21657         * trans.c: Protect < in error msg with quote
21658         Replace GCC_ZCX by Back_End_Exceptions.
21659         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
21660         has been sufficiently aligned in the record.
21662 2005-08-15  James E. Wilson  <wilson@specifix.com>
21664         * system-linux-alpha.ads: Change ia64 to alpha.
21666 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
21668         * decl.c, utils.c: Fix comment typos.
21670 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
21672         * decl.c, init.c, initialize.c: Fix comment typos.
21674 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
21676         Make CONSTRUCTOR use VEC to store initializers.
21677         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
21678         CONSTRUCTOR_ELTS.
21679         * trans.c (extract_values): Likewise.
21680         * utils.c (convert, remove_conversions): Likewise.
21681         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
21682         gnat_build_constructor): Likewise.
21684 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
21686         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
21687         DECL_SECTION_NAME.
21688         (compare_field_bitpos): Likewise.
21690 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
21692         * utils.c (create_var_decl): Only set DECL_COMMON on
21693         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
21694         VAR_OR_FUNCTION_DECL_P.
21696 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
21698         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
21699         removed.
21701 2005-07-07  Pascal Obry  <obry@adacore.com>
21703         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
21704         returned type on Windows.
21706         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
21707         routine.
21709         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
21710         exception in this case.
21711         Simplify the code as "Image (Image'Range)" = "Image".
21713 2005-07-07  Vincent Celier  <celier@adacore.com>
21715         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
21716         the destructor/constructor attributes for <lib>final/<lib>init.
21718         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
21720 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
21722         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
21723         type if the parameter is not passed by copy but reference by default.
21725 2005-07-07  Javier Miranda  <miranda@adacore.com>
21727         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
21728         Reimplementation of the support for abstract interface types in order
21729         to leave the code more clear and easy to maintain.
21731         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
21732         abstract interface types in order to leave the code clearer and easier
21733         to maintain.
21735         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
21736         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
21737         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
21738         appropriate entry of the secondary dispatch table.
21739         (Make_DT): Add code to inherit the secondary dispatch tables of
21740         the ancestors.
21742         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
21743         implementing both functionalities by means of a common routine, each
21744         routine has its own code.
21746 2005-07-07  Javier Miranda  <miranda@adacore.com>
21748         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
21750         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
21751         types:
21752         --
21753           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
21754         --
21756         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
21757         use of tag incomplete types.
21759         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
21760         give support to tagged incomplete types.
21762         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
21763         expression is a discriminant reference and its type is private, as can
21764         happen within a stream operation for a mutable record, use the full
21765         view of the type to resolve the case alternatives.
21766         (Analyze_Assignment): Check wrong dereference of incomplete types.
21768         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
21769         types.
21771         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
21772         incomplete types.
21774         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
21775         N_Incomplete_Type_Declaration nodes.
21777         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
21778         Tag_Present to give support to tagged incomplete types:
21779         --
21780           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
21781         --
21783 2005-07-07  Olivier Hainque  <hainque@adacore.com>
21785         PR ada/22301
21786         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
21787         definitions for the Unwind wrappers in the compiler case.
21789 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
21790             Javier Miranda  <miranda@adacore.com>
21792         * par-load.adb (Load): If a child unit is loaded through a limited_with
21793         clause, each parent must be loaded as a limited unit as well.
21795         * sem_ch10.adb (Previous_Withed_Unit): Better name for
21796         Check_Withed_Unit. Return true if there is a previous with_clause for
21797         this unit, whether limited or not.
21798         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
21799         the current unit.
21800         (Is_Visible_Through_Renamings): New local subprogram of install_limited
21801         _withed_unit that checks if some package installed through normal with
21802         clauses has a renaming declaration of package whose limited-view is
21803         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
21804         of the current Draft document for Ada 2005.
21805         (Analyze_Context): Complete the list of compilation units that
21806         are allowed to contain limited-with clauses. It also contains
21807         checks that were previously done by Install_Limited_Context_Clauses.
21808         This makes the code more clear and easy to maintain.
21809         (Expand_Limited_With_Clause) It is now a local subprogram of
21810         Install_Limited_Context_Clauses, and contains the code that adds
21811         the implicit limited-with clauses for parents of child units.
21812         This functionality was prevously done by Analyze_Context.
21814         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
21815         incomplete type.
21817         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
21818         been erroneously named in a limited-with clause of its own context.
21819         In this case the error has been previously notified by Analyze_Context.
21821 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
21823         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
21824         generic package that contains local declarations with the same name.
21825         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
21827 2005-07-07  Bernard Banner  <banner@adacore.com>
21829         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
21830         ia64 platform only on platforms that you the GCC unwind library
21831         rather than the system unwind library.
21833 2005-07-07  Thomas Quinot  <quinot@adacore.com>
21835         * expect.c: Minor reformatting
21837 2005-07-07  Sergey Rybin  <rybin@adacore.com>
21839         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
21840         --no-separate-is
21842         * gnat_ugn.texi: Add description for new gnatpp option
21843         (--no-separate-is)
21845 2005-07-04  Thomas Quinot  <quinot@adacore.com>
21847         * g-expect-vms.adb, g-expect.ads, g-expect.adb
21848         (Get_Command_Output): New subprogram to launch a process and get its
21849         standard output as a string.
21851 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
21852             Olivier Hainque  <hainque@adacore.com>
21854         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
21855         fetch a code-range descriptor associated with the machine state. On
21856         failure set the machine state's PC to 0; on success, pass the
21857         descriptor to exc_virtual_unwind.
21859         * init.c (Tru64 section): New function __gnat_set_code_loc.
21861 2005-07-04  Vincent Celier  <celier@adacore.com>
21863         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21864         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
21865         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
21866         Remove all auto-initialization code, as this is now done through the
21867         constructor mechanism.
21869         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
21870         __gnat_sals_init_using_constructors): New functions.
21872         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
21873         Linker_Constructor and Linker_Destructor when switch -a is used.
21875         * bindusg.adb: Add line for new switch -a
21877         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
21878         (Gnatbind): When switch -a is used, check if it is allowed
21880         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
21882 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
21884         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
21885         This prevents us from hitting a limitation during the debug info
21886         generation when using stabs.
21887         (Prims_Ptr): Likewise.
21889 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
21890             Ed Schonberg  <schonberg@adacore.com>
21891             Javier Miranda  <miranda@adacore.com>
21893         * checks.adb (Null_Exclusion_Static_Checks): In the case of
21894         N_Object_Declaration, only perform the checks if the Object_Definition
21895         is not an Access_Definition.
21897         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
21898         where the parent of an the access definition is an N_Object_Declaration
21899         when determining the Associated_Node_For_Itype and scope of an
21900         anonymous access-to-subprogram type.
21902         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
21903         Corresponding_Spec on the body created for a null procedure. Add ???
21904         comment. Remove New_Copy_Tree call on body argument to
21905         Set_Body_To_Inline.
21907         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
21908         discriminants, use the type of the actual as well, because the
21909         discriminants may be read by the called subprogram.
21911         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
21912         access type we do not need to handle non-limited views.
21913         (Build_Derived_Record_Type): Additional check to check that in case of
21914         private types, interfaces are only allowed in private extensions.
21916 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
21918         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
21919         <Pragma_Linker_Destructor>: Likewise.
21921         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
21922         Pragma_Linker_Destructor.
21924         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
21925         ATTR_LINK_DESTRUCTOR.
21926         (static_ctors, static_dtors): New variables.
21928         * misc.c (gnat_expand_body): Output current function as constructor
21929         and destructor if requested.
21931         * par-prag.adb: Add processing for pragma Linker_Constructor and
21932         Linker_Destructor.
21934         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
21935         extracted from Check_Interrupt_Or_Attach_Handler.
21936         (Check_Interrupt_Or_Attach_Handler): Invoke it.
21937         Implement pragma Linker_Constructor and Linker_Destructor with the
21938         help of Find_Unique_Parameterless_Procedure.
21939         Replace Name_Alias with Name_Target for pragma Linker_Alias.
21941         * snames.h, snames.ads, snames.adb:
21942         Add Name_Linker_Constructor and Name_Linker_Destructor.
21943         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
21944         * snames.adb: Remove Name_Alias.
21946         * trans.c: Include cgraph.h.
21947         (build_global_cdtor): New function.
21948         (Compilation_Unit_to_gnu): Build global constructor and destructor if
21949         needed.
21950         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
21951         of objects too.
21952         (addressable_p) <COMPONENT_REF>: Unconditionally test
21953         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
21955         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
21956         variable if it is external.
21958         (static_ctors, static_dtors): New global variables.
21959         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
21960         <ATTR_LINK_DESTRUCTOR>: Likewise.
21961         (end_subprog_body): Chain function as constructor and destructor
21962         if requested.
21964         * exp_util.adb (Force_Evaluation): Unconditionally invoke
21965         Remove_Side_Effects with Variable_Ref set to true.
21966         (Remove_Side_Effects): Handle scalar types first. Use a renaming
21967         for non-scalar types even if Variable_Ref is true and for class-wide
21968         expressions.
21970 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
21972         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
21973         to prevent spurious warnings.
21975 2005-07-04  Thomas Quinot  <quinot@adacore.com>
21977         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
21978         Itypes. Itypes are really unexpected there.
21979         (Build_TypeCode_Function): Generalise special processing for Itypes to
21980         handle the case of numeric implicit base types as well as enumerated
21981         ones.
21983 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
21985         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
21986         controlled, indicate the expected type of the dereference that is
21987         created for the call to Deep_Finalize, to prevent spurious errors when
21988         the designated type is private and completed with a derivation from
21989         another private type.
21991 2005-07-04  Vincent Celier  <celier@adacore.com>
21993         * make.adb (Change_To_Object_Directory): When unable to change the
21994         current dir to the object directory, output the full path of the
21995         directory.
21997 2005-07-04  Matthew Gingell  <gingell@adacore.com>
21999         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
22001         * indepsw-linux.adb: Replace by...
22003         * indepsw-gnu.adb: ...this new file
22005 2005-07-04  Vincent Celier  <celier@adacore.com>
22007         * mlib-prj.adb (Auto_Initialize): New constant String
22008         (SALs_Use_Constructors): New Boolean function
22009         (Build_Library): Call gnatbind with Auto_Initialize switch when
22010         SALs_Use_Constructors returns True.
22012         * mlib-tgt.ads: Minor reformatting
22014         * mlib-utl.ads: Minor reformatting
22016         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
22018 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22020         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
22021         single protected declarations can have an interface list.
22022         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
22023         with seriously malformed entry declarations, and lead to compilation
22024         abandoned messages.
22026 2005-07-04  Javier Miranda  <miranda@adacore.com>
22028         * par-load.adb: Load the context items in two rounds.
22030 2005-07-04  Robert Dewar  <dewar@adacore.com>
22032         * scng.adb: Do not consider Mod used as an attribute to be a keyword
22034 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22035             Javier Miranda  <miranda@adacore.com>
22037         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
22038         type extension needs a limited view.
22039         Remove previous restriction on private types available through the
22040         limited-view (only tagged private types were previously allowed).
22041         (Install_Withed_Unit): In the code that implements the
22042         legality rule given in AI-377, exclude a child unit with the name
22043         Standard, because it is a homonym of the Standard environment package.
22045 2005-07-04  Thomas Quinot  <quinot@adacore.com>
22047         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
22048         overloaded function call, carry interpretations from the original tree
22049         to the copy.
22051 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22053         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
22054         types check whether some designated type is a limited view, and use
22055         the non-limited view if available.
22057 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
22059         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
22060         constraint of full view of a private view T1 if present, when T2 is a
22061         discriminated full view.
22063 2005-07-04  Thomas Quinot  <quinot@adacore.com>
22065         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
22066         actual that is a view conversion of a bit packed array reference.
22068 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22070         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
22071         present before checking whether an interface type covers a synchronized
22072         type.
22074 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22076         * sem_util.adb (Is_Object_Reference): An indexed or selected component
22077         whose prefix is an implicit dereference is an object reference. Removes
22078         spurious errors when compiling with -gnatc.
22080 2005-07-04  Robert Dewar  <dewar@adacore.com>
22082         PR ada/22039
22083         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
22085 2005-07-04  Matthew Gingell  <gingell@adacore.com>
22087         * tracebak.c: Enable tracebacks on ia64 platforms
22089 2005-07-04  Vincent Celier  <celier@adacore.com>
22091         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
22092         the GNAT BIND command, as gnatbind accepts multiples ALI files with
22093         the -L or -n switches.
22095 2005-07-04  Vincent Celier  <celier@adacore.com>
22097         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
22098         correctly computed and the main project data is not modified while
22099         doing so.
22100         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
22101         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
22102         c++linker as this does not work on some platforms.
22104 2005-07-04  Matthew Heaney  <heaney@adacore.com>
22106         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
22107         was changed.
22108         * a-coinve.adb: Perform constraint checks explicitly.
22110 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22111             Thomas Quinot  <quinot@adacore.com>
22113         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
22114         new target gen-soccon.
22116 2005-07-04  Robert Dewar  <dewar@adacore.com>
22118         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
22120 2005-07-04  Thomas Quinot  <quinot@adacore.com>
22122         * g-socket.ads (Check_Selector): Minor rewording of comment.
22124 2005-07-04  Vincent Celier  <celier@adacore.com>
22126         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
22128 2005-07-04  Thomas Quinot  <quinot@adacore.com>
22130         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
22132 2005-07-04  Sergey Rybin  <rybin@adacore.com>
22134         * gnat_ugn.texi: Add description of --eol gnatpp option
22136 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
22137             Thomas Quinot  <quinot@adacore.com>
22139         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
22140         if the user wants all calls of a subprogram to be flagged,
22141         independently of whether they are made from within the same unit or
22142         another unit.
22143         Mention restriction for pragma Linker_Alias on some platforms.
22144         Document pragma Linker_Constructor and Linker_Destructor.
22145         Rewrite documentation of Weak_External, Linker_Section and
22146         Linker_Alias pragmas.
22148 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
22150         * s-stausa.ads, s-stausa.adb: New files.
22152 2005-06-30  Kelley Cook
22154         * all files:  Update FSF address in copyright headers.
22155         * gen-soccon.co (main): Output new FSF address in generated files.
22157 2005-06-28  Paul Brook  <paul@codesourcery.com>
22159         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
22161 2005-06-14  Olivier Hainque  <hainque@adacore.com>
22162             Eric Botcazou  <ebotcazou@adacore.com>
22164         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
22165         exc_unwind, now that we are generating proper .debug_frame output for
22166         that target.
22168         * tracebak.c: Remove the mips-irix section, as we are now using the
22169         s-mastop based unwinder again.
22170         Under SPARC/Solaris, take into account the stack bias to compute the
22171         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
22172         ABI.
22174 2005-06-14  Doug Rupp  <rupp@adacore.com>
22176         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
22178         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
22180 2005-06-14  Pascal Obry  <obry@adacore.com>
22182         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
22183         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
22184         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
22185         package name).
22187         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
22188         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
22189         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
22190         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22191         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
22192         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
22193         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
22194         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
22195         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
22196         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
22197         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
22198         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
22199         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
22200         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
22201         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
22202         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
22203         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
22204         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
22205         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
22206         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
22207         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
22208         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
22209         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
22210         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
22211         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
22212         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
22213         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
22214         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
22215         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
22216         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
22217         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
22218         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
22219         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
22220         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
22221         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
22222         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
22223         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
22224         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
22225         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
22226         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
22227         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
22228         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
22229         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
22230         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
22231         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
22232         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
22233         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
22234         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
22235         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
22236         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
22237         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22238         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
22239         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
22240         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
22241         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
22242         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22243         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
22244         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
22245         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
22246         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
22247         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
22248         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
22249         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
22250         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
22251         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
22252         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
22253         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
22254         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
22255         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
22256         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
22257         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
22258         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
22259         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
22260         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
22261         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
22262         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
22263         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
22264         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
22265         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
22266         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
22267         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
22268         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
22269         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
22270         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
22271         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
22272         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
22273         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
22274         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
22275         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
22276         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
22277         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
22278         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
22279         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
22280         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
22281         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
22282         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
22283         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
22284         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
22285         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
22286         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
22287         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
22288         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
22289         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
22290         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
22291         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
22292         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
22293         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
22294         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
22295         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
22296         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
22297         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
22298         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
22299         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
22300         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
22301         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
22302         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
22303         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
22304         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
22305         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
22306         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
22307         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
22308         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
22309         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
22310         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
22311         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
22312         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
22313         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
22314         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
22315         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
22316         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
22317         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
22318         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
22319         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
22321 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
22322             Arnaud Charlet  <charlet@adacore.com>
22324         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
22325         longer protected objects. They have been replaced by lower-level
22326         suspension objects made up by a mutex and a condition variable (or
22327         their equivalent given a particular OS) plus some internal data to
22328         reflect the state of the suspension object.
22329         (Initialize, Finalize): Add this initialization procedure for
22330         Suspension_Object, which is a controlled type.
22331         (Finalize): Add the finalization procedure for Suspension_Object,
22332         which is a controlled type.
22334         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
22335         Ada.Synchronous_Task_Control because there is no longer a need for a
22336         VxWorks specific version of this package. Target dependencies
22337         has been moved to System.Task_Primitives.Operations.
22339         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
22340         longer needed.
22341         (InitializeCriticalSection, EnterCriticalSection,
22342         LeaveCriticalSection, DeleteCriticalSection): Replace the type
22343         pCriticalSection by an anonymous access type so that we avoid problems
22344         of accessibility to local objects.
22346         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
22347         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
22348         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
22349         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
22350         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
22351         set the environment task mask here.
22352         (Current_State): Add this function that returns the state of the
22353         suspension object.
22354         (Set_False): Add this procedure that sets the state of the suspension
22355         object to False.
22356         (Set_True): Add this procedure that sets the state of the suspension
22357         object to True, releasing the task that was suspended, if any.
22358         (Suspend_Until_True): Add this procedure that blocks the calling task
22359         until the state of the object is True. Program_Error is raised if
22360         another task is already waiting on that suspension object.
22361         (Initialize): Add this procedure for initializing the suspension
22362         object. It initializes the mutex and the condition variable which are
22363         used for synchronization and queuing, and it sets the internal state
22364         to False.
22365         (Finalize): Add this procedure for finalizing the suspension object,
22366         destroying the mutex and the condition variable.
22368         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
22369         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
22370         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
22371         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
22372         which provides a low-level abstraction (using operating system
22373         primitives) for Ada.Synchronous_Task_Control.
22374         This object is made up by a mutex (for ensuring mutual exclusion), a
22375         condition variable (for queuing threads until the condition is
22376         signaled), a Boolean (State) indicating whether the object is open,
22377         and a Boolean (Waiting) reflecting whether there is a task already
22378         suspended on this object.
22380         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
22381         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
22382         s-intman-vms.ads, s-intman-mingw.adb,
22383         (Initialize_Interrupts): Removed, no longer used.
22385         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
22386         (Setup_Interrupt_Mask): New procedure.
22388         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
22390         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
22392         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
22393         this is no longer done in the body of s-taprop
22394         (Server_Task): Explicitely test for Pending_Action in case
22395         System.Parameters.No_Abort is True.
22397         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
22398         is no longer done in the body of s-taprop
22400 2005-06-14  Robert Dewar  <dewar@adacore.com>
22402         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
22403         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
22404         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22405         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
22406         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
22407         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
22408         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
22409         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
22410         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
22411         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
22412         system-linux-hppa.ads, system-vms_64.ads,
22413         system-vxworks-alpha.ads: Minor comment update for
22414         AI-362 (unit is Pure).
22416         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
22417         Add pragma Pure_05 for AI-362
22418         Make remaining conversion functions obsolescent in Ada 95
22420         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22421         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
22422         Add entries for a-wichun and a-zchuni
22423         Add a-widcha a-zchara for AI-395
22424         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
22426         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22427         Add entries for a-wichun.o and a-zchuni.o
22428         Entries for a-widcha.o and a-zchara.o
22429         Add entry for a-chacon.o
22431         * a-ztenau.adb: Add with of Ada.Characters.Conversions
22433         * a-chacon.ads, a-chacon.adb: New files.
22435         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
22436         categorization violations.
22438         * a-strmap.ads: Add pragma Pure_05 for AI-362
22439         * a-strmap.ads: Add note on implicit categorization for AI-362
22441         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
22443         * par-prag.adb: Dummy entry for pragma Persistent_BSS
22444         Set Ada_Version_Explicit, for implementation of AI-362
22445         Add processing for pragma Pure_05 and Preelaborate_05
22446         Add entry for Assertion_Policy pragma
22448         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
22449         when needed for proper processing of categorization stuff
22451         * sem_cat.adb:
22452         For several cases, make errors in preealborate units warnings,
22453         instead of errors, if GNAT_Mode is set. For AI-362.
22455         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
22456         preelaborate unit is now warning if in GNAT mode
22458         * s-stoele.ads: Document AI-362 for pragma preelaborate
22460 2005-06-14  Doug Rupp  <rupp@adacore.com>
22462         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
22463         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
22464         Default_Exception_Msg_Max_Length: new parameter.
22466         * a-except.ads: (Exception_Msg_Max_Length): Set to
22467         System.Parameters.Default_Exception_Msg_Max_Length
22468         Add pragma Preelaborate_05 for AI-362
22469         Add warnings off to allow categorization violations for AI-362
22471 2005-06-14  Vincent Celier  <celier@adacore.com>
22473         * gnatsym.adb: Adapt to modification of package Symbols: procedure
22474         Process is now in package Processing.
22476         * symbols.ads, symbols.adb:
22477         (Processing): New package, containing procedure Process
22479         * symbols-vms-alpha.adb:
22480         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
22482         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
22483         symbols-processing-vms-ia64.adb: New files.
22485 2005-06-14  Pascal Obry  <obry@adacore.com>
22487         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
22488         implementation. This new version generates the proper DllMain routine
22489         to initialize the SAL. The DllMain is generated in Ada and compiled
22490         before being added as option to the library build command.
22492 2005-06-14  Doug Rupp  <rupp@adacore.com>
22493             Pascal Obry  <obry@adacore.com>
22495         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
22496         call to decc$translate_vms.
22497         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
22498         need to remove those quotes before catenating the filename.
22499         (__gnat_locate_exec_on_path): improvements to the Win32 section:
22500         * avoid allocating the memory twice for better efficiency;
22501         * allocate 32K buffer for environment expansion as suggested by MSDN;
22502         * prepend ".;" to the path so that current directory is searched too.
22504 2005-06-14  Robert Dewar  <dewar@adacore.com>
22506         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
22507         instead of raising CE (AI-241)
22508         Add warnings off to allow categorization violations for AI-362
22510 2005-06-14  Robert Dewar  <dewar@adacore.com>
22512         * ali-util.adb, gnatbind.adb: Remove references to
22513         Force_RM_Elaboration_Order.
22515         * switch-b.adb: Remove recognition of -f switch
22517 2005-06-14  Pascal Obry  <obry@adacore.com>
22519         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
22520         implementation which is slightly more efficient.
22522 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
22523             Javier Miranda  <miranda@adacore.com>
22524             Ed Schonberg  <schonberg@adacore.com>
22525             Hristian Kirtchev  <kirtchev@adacore.com>
22527         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
22528         allocator's designated type is a class-wide type, and compiling for
22529         Ada 2005, emit a run-time check that the accessibility level of the
22530         type given in the allocator's expression is not deeper than the level
22531         of the allocator's access type.
22533         (Tagged_Membership): Modified to gives support to abstract interface
22534         types.
22536         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
22537         Access_Level.
22538         (Descendant_Tag): New predefined function
22539         (Is_Descendant_At_Same_Level): New predefined function
22540         (Get_Access_Level): New private function
22541         (Set_Access_Level): New private procedure
22542         (IW_Membership): New function. Given the tag of an object and the tag
22543         associated with an interface, evaluate if the object implements the
22544         interface.
22545         (Register_Interface_Tag): New procedure used to initialize the table of
22546         interfaces used by the IW_Membership function.
22547         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
22548         of the dispatch table.
22549         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
22550         table of interfaces of the parent.
22551         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
22552         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
22553         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
22554         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
22555         Ada 2005 semantics for the new predefined function.
22557         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
22558         call to Descendant_Tag rather than Internal_Tag.
22559         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
22560         the accessibility level of the attribute's Item parameter is not deeper
22561         than the level of the attribute's prefix type. Tag_Error is raised if
22562         the check fails. The check is only emitted for Ada_05.
22563         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
22564         requested stream attribute, use it.
22565         (Expand_N_Attribute_Reference): If the designated type is an interface
22566         then rewrite the referenced object as a conversion to force the
22567         displacement of the pointer to the secondary dispatch table.
22568         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
22569         is a dereference of an object with a constrained partial view.
22571         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
22572         type is a class-wide type, emit a run-time check that the accessibility
22573         level of the returned object is not deeper than the level of the
22574         function's master (only when compiling for Ada 2005).
22576         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
22577         Action_Nb_Arg): Add entries for new Get_Access_Level and
22578         Set_Access_Level routines in these tables.
22579         (Make_DT): Generate a call to set the accessibility level of the
22580         tagged type in its TSD.
22581         (Make_DT): Code cleanup. The functionality of generating all the
22582         secondary dispatch tables has been moved to freeze_record_type.
22583         (Make_Abstract_Interface_DT): Minor code cleanup.
22584         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
22585         this subprogram implements a new algorithm that provides the
22586         same functionality and it is more clear in case of primitives
22587         associated with abstract interfaces.
22588         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
22589         clean up, the functionality of this subprogram is now provided
22590         by Set_All_DT_Position.
22591         (Write_DT): New subprogram: a debugging procedure designed to be called
22592         within gdb to display the dispatch tables associated with a tagged
22593         type.
22594         (Collect_All_Interfaces): New subprogram that collects the whole list
22595         of interfaces that are directly or indirectly implemented by a tagged
22596         type.
22597         (Default_Prim_Op_Position): New subprogram that returns the fixed
22598         position in the dispatch table of the default primitive operations.
22599         (Expand_Interface_Actuals): New subprogram to generate code that
22600         displaces all the actuals corresponding to class-wide interfaces to
22601         reference the interface tag of the actual object.
22602         (Expand_Interface_Conversion): New subprogram. Reference the base of
22603         the object to give access to the interface tag associated with the
22604         secondary dispatch table.
22605         (Expand_Interface_Thunk): New subprogram that generates the code of the
22606         thunk. This is required for compatibility with the C+ ABI.
22607         (Make_Abstract_Interface_DT): New subprogram that generate the
22608         declarations for the secondary dispatch tables associated with an
22609         abstract interface.
22610         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
22611         attribute for each primitive operation covering interface subprograms
22612         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
22613         These subprograms were upgraded to give support to abstract interfaces
22615         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
22616         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
22617         RE_Set_Access_Level.
22618         (RE_Unit_Table): Add entries for new Ada.Tags operations.
22619         Add support to call the followig new run-time subprograms:
22620         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
22622         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
22623         match its full declaration when both have an access definition with
22624         statically matching designated subtypes.
22625         (Analyze_Component_Declaration): Delete commented out code that was
22626         incorrectly setting the scope of an anonymous access component's type.
22627         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
22628         an access discriminant when the containing type is nonlimited.
22629         (Make_Incomplete_Type_Declaration): Create an incomplete type
22630         declaration for a record type that includes self-referential access
22631         components.
22632         (Check_Anonymous_Access_Types): Before full analysis of a record type
22633         declaration, create anonymous access types for each self-referential
22634         access component.
22635         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
22636         an access component in this context is a Local_Anonymous_Access, for
22637         proper accessibility checks.
22638         (Access_Definition): Set properly the scope of the anonymous access type
22639         created for a stand-alone access object.
22640         (Find_Type_Of_Object): An object declaration may be given with an access
22641         definition.
22642         (Complete_Subprograms_Derivation): New subprogram used to complete
22643         type derivation of private tagged types implementing interfaces.
22644         In this case some interface primitives may have been overriden
22645         with the partial-view and, instead of re-calculating them, they
22646         are included in the list of primitive operations of the full-view.
22647         (Build_Derived_Record_Type): Modified to give support to private
22648         types implemening interfaces.
22649         (Access_Definition): Reject ALL on anonymous access types.
22650         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
22651         type derivation to occur at a deeper accessibility level than the
22652         parent type.
22653         For the case of derivation within a generic body however, disallow the
22654         derivation if the derived type has an ancestor that is a formal type
22655         declared in the formal part of an enclosing generic.
22656         (Analyze_Object_Declaration): For protected objects, remove the check
22657         that they cannot contain interrupt handlers if not declared at library
22658         level.
22659         (Add_Interface_Tag_Components): New subprogram to add the tag components
22660         corresponding to all the abstract interface types implemented by a
22661         record type or a derived record type.
22662         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22663         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22664         Process_Full_View, Record_Type_Declaration): Modified to give
22665         support to abstract interface types
22666         (Collect_Interfaces): New subprogram that collects the list of
22667         interfaces that are not already implemented by the ancestors
22668         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
22669         when partial view has no discriminants and full view has defaults.
22670         (Constrain_Access): Reject a constraint on a general access type
22671         if the discriminants of the designated type have defaults.
22672         (Access_Subprogram_Declaration): Associate the Itype node with the inner
22673         full-type declaration or subprogram spec. This is required to handle
22674         nested anonymous declarations.
22675         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22676         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22677         Process_Full_View, Record_Type_Declaration): Modified to give
22678         support to abstract interface types
22679         (Derive_Subprograms): Addition of a new formal to indicate if
22680         we are in the case of an abstact-interface derivation
22681         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
22682         to the specification because it is requied to analyze all the
22683         identifiers found in a list of interfaces
22685         * debug.adb: Complete documentation of flag "-gnatdZ"
22687         * exp_ch3.adb: Implement config version of persistent_bss pragma
22688         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
22689         testing for TSS presence to properly enforce visibility rules.
22690         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
22691         Make_Abstract_Interfaces_DT to generate the secondary tables
22692         associated with abstract interfaces.
22693         (Build_Init_Procedure): Modified to initialize all the tags
22694         corresponding.
22695         (Component_Needs_Simple_Initialization): Similar to other tags,
22696         interface tags do not need initialization.
22697         (Freeze_Record_Type): Modified to give support to abstract interface
22698         types.
22699         (Expand_N_Object_Declaration): Do not generate an initialization for
22700         a scalar temporary marked as internal.
22702         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
22703         in-out parameter that is a component in an initialization procedure,
22704         whose constraint might depend on discriminants, and that may be
22705         misaligned because of packing or representation clauses.
22706         (Is_Legal_Copy): New predicate to determine whether a possibly
22707         misaligned in-out actual can actually be passed by copy/return. This
22708         is an error in case the type is by_reference, and a warning if this is
22709         the consequence of a DEC import pragma on the subprogram.
22710         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
22711         interface types
22712         (Expand_Inlined_Call): Mark temporary generated for the return value as
22713         internal, so that no useless scalar normalization is generated for it.
22714         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
22715         null procedure can always be inlined.
22716         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
22717         procedure, generate an explicit empty body for it.
22719         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
22720         Given a type implementing an interface, returns the corresponding
22721         access_disp_table value.
22722         (Find_Interface_Tag): New subprogram. Given a type implementing an
22723         interface, returns the record component containing the tag of the
22724         interface.
22725         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
22726         previous ones that return the corresponding tag and access_disp_table
22727         entities.
22728         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
22729         is a predefined primitive operation.
22730         (Expand_Subtype_From_Expr): If the expression is a selected component
22731         within an initialization procedure, compute its actual subtype, because
22732         the component may depend on the discriminants of the enclosing record.
22734         * i-cpp.ads, i-cpp.adb:
22735         This package has been left available for compatibility with previous
22736         versions of the frontend. As part of the new layout this is now a
22737         dummy package that uses declarations available at a-tags.ads
22739         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
22740         "constant access" and "aliased [constant] access" when not compiling
22741         with -gnat05.
22742         Suppress Ada 2005 keyword warning if -gnatwY used
22743         (P_Identifier_Declarations): Add support for object declarations with
22744         access definitions.
22745         (Private_Extension_Declaration): Complete the documentation
22746         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
22747         attribute in case of private extension declaration
22748         (P_Type_Declaration): Mark as "abstract" the type declarations
22749         corresponding with protected, synchronized and task interfaces
22750         (P_Declarative_Items): "not" and "overriding" are overriding indicators
22751         for a subprogram or instance declaration.
22753         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
22754         instantiation that is a dispatching operation has controlling access
22755         parameters that are null excluding.
22756         Save and restore Ada_Version_Explicit, for implementation of AI-362
22757         (Validate_Derived_Type_Instance): Add check for abstract interface
22758         types.
22759         (Analyze_Formal_Package): Establish Instantiation source for the copy of
22760         the generic that is created to represent the formal package.
22761         (Analyze_Package_Instantiation): Instantiate body immediately if the
22762         package is a predefined unit that contains inlined subprograms, and
22763         we are compiling for a Configurable_Run_Time.
22764         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
22765         If the program has a null default, generate an empty body for it.
22767         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
22768         error message condition, null procedures are correctly detected now.
22769         (New_Overloaded_Entity): Bypass trivial overriding indicator check
22770         for subprograms in the context of protected types. Instead, the
22771         indicator is examined in Sem_Ch9 while analysing the subprogram
22772         declaration.
22773         (Check_Overriding_Indicator): Check consistency of overriding indicator
22774         on subprogram stubs as well.
22775         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
22776         the library level.
22777         (Analize_Subprogram_Specification): When analyzing a subprogram in which
22778         the type of the first formal is a concurrent type, replace this type
22779         by the corresponding record type.
22780         (Analyze_Subprogram_Body): Undo the previous work.
22781         (Analyze_Procedure_Call): If the call has the form Object.Op, the
22782         analysis of the prefix ends up analyzing the call itself, after which
22783         we are done.
22784         (Has_Interface_Formals): New subprogram subsidiary to analyze
22785         subprogram_specification that returns true if some non
22786         class-wide interface subprogram is found
22787         (New_Overloaded_Entity): Modified to give support to abstract
22788         interface types
22789         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
22790         access to subprograms must be recursive.
22791         (Is_Unchecked_Conversion): Improve the test that recognizes
22792         instantiations of Unchecked_Conversion, and allows them in bodies that
22793         are to be inlined by the front-end. When the body comes from an
22794         instantiation, a reference to Unchecked_Conversion will be an
22795         Expanded_Name, even though the body has not been analyzed yet.
22796         Replace Is_Overriding and Not_Overriding in subprogram_indication with
22797         Must_Override and Must_Not_Override, to better express intent of AI.
22798         (Analyze_Subprogram_Body): If an overriding indicator is given, check
22799         that it is consistent with the overrinding status of the subprogram
22800         at this point.
22801         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
22802         always inlined.
22803         If the subprogram is a null procedure, indicate that it does not need
22804         a completion.
22806         * sem_disp.adb (Check_Controlling_Type): Give support to entities
22807         available through limited-with clauses.
22808         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
22809         allowed as the last primitive of a tagged type if it has no previous
22810         spec.
22811         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
22812         to give support to abstract interface types
22814         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
22815         in the case where the target type is an anonymous access type of an
22816         object or component (that is, when Is_Local_Anonymous_Access is true).
22817         Prevent the special checks for conversions of access discriminants in
22818         the case where the discriminant belongs to a nonlimited type, since
22819         such discriminants have their accessibility level defined in the same
22820         way as a normal component of an anonymous access type.
22821         (Resolve_Allocator): When an allocator's designated type is a class-wide
22822         type, check that the accessibility level of type given in the
22823         allocator's expression or subtype indication is not statically deeper
22824         than the level of the allocator's access type.
22825         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
22826         name in a discriminant constraint of a record component.
22827         (Resolve_Explicit_Dereference): Do not check whether the type is
22828         incomplete when the dereference is a use of an access discriminant in
22829         an initialization procedure.
22830         (Resolve_Type_Conversion): Handle conversions to abstract interface
22831         types.
22832         (Valid_Tagged_Conversion): The conversion of a tagged type to an
22833         abstract interface type is always valid.
22834         (Valid_Conversion): Modified to give support to abstract interface types
22835         (Resolve_Actuals): Enable full error reporting on view conversions
22836         between unrelated by_reference array types.
22837         The rule for view conversions of arrays with aliased components is
22838         weakened in Ada 2005.
22839         Call to obsolescent subprogram is now considered to be a violation of
22840         pragma Restrictions (No_Obsolescent_Features).
22841         (Check_Direct_Boolean_Operator): If the boolean operation has been
22842         constant-folded, there is nothing to check.
22843         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
22844         check on possible violation of restriction No_Direct_Boolean_Operators
22845         until after expansion of operands, to prevent spurious errors when
22846         operation is constant-folded.
22848         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
22849         Has_Compatible_Type): Modified to give support to abstract interface
22850         types.
22851         (Interface_Present_In_Ancestor): New function to theck if some ancestor
22852         of a given type implements a given interface
22854         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
22855         prefix is a parameterless function that returns an access_to_procedure.
22856         (Transform_Object_Operation): Handle properly function calls of the
22857         form Obj.Op (X), which prior to analysis appear as indexed components.
22858         (Analyze_One_Call): Complete the error notification to help new Ada
22859         2005 users.
22860         (Analyze_Allocator): For an allocator without an initial value, where
22861         the designated type has a constrained partial view, a discriminant
22862         constraint is illegal.
22864 2005-06-14  Robert Dewar  <dewar@adacore.com>
22866         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
22867         do with treatment of Set_Col when positioned at end of line character.
22869 2005-06-14  Robert Dewar  <dewar@adacore.com>
22871         * atree.adb: (Elist*): Protect against uninitialized field
22873 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
22875         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
22876         for an attribute reference that returns an access type.
22877         (Apply_Discriminant_Check): No need for check if (designated) type has
22878         constrained partial view.
22880         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
22881         both bound checks, rather than a conjunction.
22882         (Insert_Valid_Check): If the expression is an actual that is an indexed
22883         component of a bit-packed array, force expansion of the packed element
22884         reference, because it is specifically inhibited elsewhere.
22886 2005-06-14  Vincent Celier  <celier@adacore.com>
22888         * clean.adb (Clean_Project): Correctly delete executable specified as
22889         absolute path names.
22891         * make.adb (Gnatmake): Allow relative executable path names with
22892         directory information even when project files are used.
22893         (Change_To_Object_Directory): Fail gracefully when unable to change
22894         current working directory to object directory of a project.
22895         (Gnatmake): Remove exception handler that could no longer be exercized
22896         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
22897         may be deallocated by Normalize_Arguments.
22898         (Collect_Arguments): Eliminate empty arguments
22900         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
22901         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
22902         (Check_Project): Return False when Project is No_Project. Return True
22903         when All_Projects is True.
22904         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
22905         All_Projects to True.
22906         Minor reformatting
22908 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
22909             Javier Miranda  <miranda@adacore.com>
22910             Thomas Quinot  <quinot@adacore.com>
22911             Robert Dewar  <dewar@adacore.com>
22912             Hristian Kirtchev  <kirtchev@adacore.com>
22913             Gary Dismukes  <dismukes@adacore.com>
22915         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
22916         anonymous access types, to indicate that the accessibility level of
22917         the type is determined by that of the enclosing declaration.
22918         (Has_Persistent_BSS): New flag
22919         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
22920         of this attribute with functions.
22921         (Is_Primitive_Wrapper): Remove the barrier.
22922         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
22923         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
22924         New subprograms.
22925         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
22926         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
22927         New subprograms.
22928         (Is_Pure_Unit_Access_Type): New flag
22929         (Abstract_Interfaces): Complete the assertion to cover all usages.
22930         (Set_Is_Interface): Complete the assertion to cover all usages.
22931         (Is_Primitive_Wrapper): New attribute.
22932         (Is_Obsolescent): Now applies to all entities (though it is only set
22933         for subprograms currently)
22934         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
22935         which solves various problems concerning access subtypes.
22936         (Has_Persistent_BSS): New flag
22937         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
22938         Remove these subprograms because this attribute is currently
22939         not used.
22940         New entity flags:
22941         Has_Specified_Stream_Input (Flag190)
22942         Has_Specified_Stream_Output (Flag191)
22943         Has_Specified_Stream_Read (Flag192)
22944         Has_Specified_Stream_Write (Flag193)
22945         Present in all type and subtype entities. Set for a given view if the
22946         corresponding stream-oriented attribute has been defined by an
22947         attribute definition clause. When such a clause occurs, a TSS is set
22948         on the underlying full view; the flags are used to track visibility of
22949         the attribute definition clause for partial or incomplete views.
22950         (Is_Pure_Unit_Access_Type): New flag
22951         Clarify use of Is_Internal.
22952         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
22953         internally generated to wrap the invocation of tasks and protected
22954         types that implement interfaces.
22955         (Implementation_Base_Type): Documentation correction
22956         (Is_Obsolescent): Now applies to all entities (though it is only set
22957         for subprograms currently)
22958         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
22959         which solves various problems concerning access subtypes.
22961         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
22962         for examined parameters. Identify unequal parameter list lengths as
22963         non-conformant parameters.
22964         (Overriding_Possible): Do not check for "All" qualifier in declaration
22965         of controlling access parameter, following prescription of AI-404.
22966         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
22967         that build the procedure body that wraps an entry invocation
22968         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
22969         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
22970         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
22971         give support to abstract interface types
22973         * freeze.adb (Freeze_Entity): Issue error message if
22974         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
22975         type has no storage pool (Ada 2005) AI-366.
22976         Also modified to give support to abstract interface types
22977         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
22978         Inline_Always pragma.
22980         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
22981         now begin an entry declaration.
22982         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
22983         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
22984         a subprogram declaration preceded by an overriding indicator.
22985         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
22986         declarations or subprogram declarations preceded by reserved words
22987         "not" or "overriding".
22988         (P_Entry_Declaration): Update comment. Parse and check overriding
22989         indicator, set semantic flags of entry declarations.
22990         (P_Task): New error message in case of private applied
22991         to a task type declaration.
22992         (P_Protected): New error message in case of private applied
22993         to a task type declaration.
22995         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
22996         in which the full view of a type implementing an interface is a
22997         concurrent type.
22998         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
22999         Declare_Inherited_Private_Subprograms): If an explicit operation
23000         overrides an operation that is inherited in the private part, mark the
23001         explicit one as overriding, to enable overriding indicator checks.
23002         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
23003         full view to partial view, to simplify handling in back-end.
23005         * sprint.adb: Print interface lists where needed: derived types,
23006         protected types, task types.
23007         output "is null" for null procedures. Part of implementation of
23009         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
23010         relaxation of rules for access types in pure, shared passive partitions.
23012         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
23013         first read discriminants into temporary objects, performing checks on
23014         the read values, then possibly performing discriminant checks on the
23015         actual (if it is constrained), and only finally reading the components
23016         into a constrained temporary object.
23017         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
23018         case of reading discriminants of a mutable record type to recognize
23019         the new form of the code generated by
23020         Build_Mutable_Record_Read_Procedure.
23022         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
23023         of a simple call to Make_TSS_Name.
23024         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
23025         buffer, in order for Is_TSS to work correctly on local TSS names.
23027         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
23028         Is_Local_Anonymous_Access to check legaliy of attributes in the
23029         context of  access components and stand-alone access objects.
23030         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
23031         treated as available for a limited private type if there is an
23032         attribute_definition_clause that applies to its full view, but not in
23033         other cases where the attribute is available for the full view
23034         (specifically, the sole fact that the full view is non-limited does not
23035         make the attribute available for the partial view).
23036         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
23037         non-overloaded intrinsic subprogram.
23038         (Check_Stream_Attribute): Reject an attribute reference for an
23039         unavailable stream attribute even if the prefix is not a limited type
23040         (case of a 'Input attribute reference for an abstract, non-classwide
23041         type)
23042         (Stream_Attribute_Available): New function to determine whether a stream
23043         attribute is available at a place.
23044         (Check_Attribute): Use Stream_Attribute_Available instead of just
23045         testing for TSS presence on the implementation base type.
23046         (Analyze_Attribute): Modified to give support to task interfaces.
23047         (Analyze_Access_Attribute): Add error check for use of an Access (or
23048         Unrestricted_Access) attribute with a subprogram marked as
23049         Inline_Always.
23050         (Analyze_Attribute, case Attribute_Address): Add error check for use of
23051         an Address attribute with a subprogram marked as Inline_Always.
23052         Update Eval_Attribute to handle new value of Width from AI-395
23054         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
23055         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
23056         Factor common code across the stream-oriented attribute circcuits into
23057         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
23058         processing is functionally identical to the previous duplicated one,
23059         except that an expression that denotes an abstract subprogram will now
23060         be rejected, as mandated by AI-195 item 5.
23062         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
23063         Is_Local_Anonymous_Access to apply accessibility checks to access
23064         components and stand-alone access objects.
23065         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
23066         elsewhere.
23067         (Is_Potentially_Persistent_Type): New function
23068         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
23069         a heap-object whose type has a constrained partial view, the object is
23070         unconstrained and the component may depend on a discriminant, making its
23071         renaming illegal.
23073         * sinfo.ads, sinfo.adb
23074         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
23075         (Must_Override): Flag applicable to N_Entry_Declaration.
23076         Indicate that interface_list can appear in single task and single
23077         protected declarations.
23078         Replace Is_Overriding and Not_Overriding with Must_Override and
23079         Must_Not_Override, to better express intent of AI.
23080         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
23081         of an overriding indicator in a subprogram or instance.
23082         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
23083         Add the overriding indicator [[not] overriding] construct to the
23084         following grammar productions:
23085          ENTRY_DECLARATION
23086          GENERIC_INSTANTIATION
23087          SUBPROGRAM_SPECIFICATION
23089         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
23090         can start with an overriding indicator.
23092         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
23093         flags accordingly on subrogram specifications or instances.
23095         * sem_ch8.adb:
23096         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
23097         overriding_indicator, if present, is consistent with status of spec.
23098         Improve error message for null-excluding checks on controlling access
23099         parameters.
23100         (Check_In_Previous_With_Clause): Protect the frontend against
23101         previously reported critical errors in the context clauses.
23102         Save and restore Ada_Version_Explicit, for implementation of AI-362
23103         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
23104         operation verify that controlling formals of the renamed entity that
23105         are access parameters are explicitly non-null.
23106         (Find_Expanded_Name): Improve error message when prefix is an illegal
23107         reference to a private child unit.
23109         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
23110         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
23111         Rewrite to correspond to new wide character names in AI-395
23113         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
23114         default procedures.
23116 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23117             Robert Dewar  <dewar@adacore.com>
23119         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
23120         code, not on the bodies of predefined operations, to cut down on
23121         spurious noise.
23123 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23125         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
23126         be expanded in place. The size computation does not require a
23127         subtraction, which would raise an exception on a compiler built with
23128         assertions when the upper bound is Integer'first.
23129         (Flatten): For an array of composite components, take into account the
23130         size of the components to determine whether it is safe to expand the
23131         array into a purely positional representation.
23133 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23135         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
23136         denoting a formal parameter into account.
23138 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23140         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
23141         the entry_call alternative of a conditional entry call, wrap the
23142         conditional entry call itself.
23144 2005-06-14  Nicolas Setton  <setton@adacore.com>
23145             Ed Schonberg  <schonberg@adacore.com>
23147         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
23148         the "simple_choice" member in a variant record, in accordance with the
23149         description in the package spec: the information output for a constant
23150         should be "S number", not "SS number".
23151         (Get_Encoded_Name): Return at once if not generating code. Avoids name
23152         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
23154 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23156         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
23157         RACW without any primitives, do not generate the if statement for
23158         dispatching by name in the PolyORB/DSA case, as it would be malformed
23159         (it would have an Elsif_Parts list that is not No_List, but with a
23160         length of 0).
23162 2005-06-14  Robert Dewar  <dewar@adacore.com>
23164         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
23166 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
23168         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
23169         can determine whether pragma Suppress_Exception_Locations is in effect.
23171         * utils2.c (build_call_raise): Do not pass the file name to the
23172         exception handler if pragma Suppress_Exception_Locations is in effect.
23173         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
23175 2005-06-14  Emmanuel Briot  <briot@adacore.com>
23177         * g-debpoo.adb (Deallocate, Dereference): Improve output.
23179 2005-06-14  Nicolas Roche  <roche@adacore.com>
23181         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
23182         to ""
23183         (Next_Level): Fix minor bug in handling of ../dir case
23184         (Read): Add dir separator to Directory name so that "" is understood as
23185          "/"
23187 2005-06-14  Pascal Obry  <obry@adacore.com>
23189         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
23190         releasing the items.
23192 2005-06-14  Vincent Celier  <celier@adacore.com>
23193             Cyrille Comar  <comar@adacore.com>
23195         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
23196         with output file descriptor and with output file name.
23197         (Dup, Dup2): Now global procedures as they are used by two subprograms
23198         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
23200 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23202         PR ada/6717
23203         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
23204         broadcast address.
23205         (Create_Selector): Bind listening socket used to create the signalling
23206         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
23207         Set listen backlog to 1 to ensure that we detect socket theft by a
23208         failure of our own connect(2) call.
23209         (Check_Selector): Improve documentation of the selector mechanism.
23210         (Broadcast_Inet_Addr): New constant.
23212 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
23214         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
23215         type which turns out to be an incomplete and incorrect fix.
23216         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
23217         of the type is declared in a record (for determination of insertion
23218         type).
23219         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
23220         a private type and ensure that the primary entity is used for the type
23221         of the newly created function's V formal by taking the Etype of the
23222         view.
23224 2005-06-14  Javier Miranda  <miranda@adacore.com>
23225             Jose Ruiz  <ruiz@adacore.com>
23226             Robert Dewar  <dewar@adacore.com>
23227             Ed Schonberg  <schonberg@adacore.com>
23229         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
23230         that indicates if we are parsing a compilation unit found in a
23231         limited-with clause.
23232         It is use to avoid the circularity check.
23234         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
23235         we are parsing a compilation unit found in a limited-with clause. This
23236         is use to avoid the circularity check.
23238         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
23239         unit as a consequence of parsing a limited-with clause. This is used
23240         to avoid the circularity check.
23242         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
23243         (Analyze_Context): Limited-with clauses are now allowed
23244         in more compilation units.
23245         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
23246         againts previously reported critical errors in context clauses
23247         (Install_Limited_Withed_Unit): Code cleanup plus static detection
23248         of two further errors: renamed subprograms and renamed packages
23249         are not allowed in limited with clauses.
23250         (Install_Siblings): Do not install private_with_clauses on the package
23251         declaration for a non-private child unit.
23252         (Re_Install_Parents): When a parent of the subunit is reinstalled,
23253         reset visibility of child units properly.
23254         (Install_Withed_Unit): When a child unit appears in a with_clause of its
23255         parent, it is immediately visible.
23257 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23258             Emmanuel Briot  <briot@adacore.com>
23260         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
23261         declared within an inlined body as referenced, to prevent spurious
23262         warnings.
23263         (Output_One_Ref): If an entity renames an array component, indicate in
23264         the ALI file that this aliases (renames) the array. Capture as well
23265         function renamings that rename predefined operations.
23266         Add information about generic parent for package and subprogram
23267         instances.
23268         (Get_Type_Reference): For a subtype that is the renaming of an actual in
23269         an instantiation, use the first_subtype to ensure that we don't generate
23270         cross-reference information for internal types.
23271         For objects and parameters of a generic private type, retain the '*'
23272         indicator to distinguish such an entity from its type.
23274         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
23275         to store information about instantiated entities.
23277         * ali.adb (Scan_ALI): Add support for parsing the reference to the
23278         generic parent
23280         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
23281         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
23282         information.
23284 2005-06-10  Doug Rupp  <rupp@adacore.com>
23285             Arnaud Charlet  <charlet@adacore.com>
23286             Olivier Hainque  <hainque@adacore.com>
23287             Jose Ruiz  <ruiz@adacore.com>
23289         * Make-lang.in: Add initialize.o when needed.
23290         Remove obsolete references to RT_FLAGS.
23291         Add missing dependencies for sdefault.o
23293         * initialize.c: New file.
23295         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
23296         [VMS] cond_signal_table: Fix problem in declaration.
23297         [VMS] __gnat_error_handler: rewrite.
23298         Move all __gnat_initialize() routines to initialize.c
23299         Specialize the former "hpux" section to "hppa hpux", as this is what the
23300         section really is here for and we now have other hpux ports that need
23301         different contents.
23302         (__gnat_adjust_context_for_raise) i386-linux: First version of this
23303         function for this target. Adjust PC by one in the machine context. This
23304         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
23305         it is more reliable to do that in the signal handler itself.
23306         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
23307         flags, so that the handler is passed the context structure to adjust
23308         prior to the raise.
23309         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
23310         SA_SIGINFO sigaction should look like. Call
23311         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
23312         Machine_State_Operations stuff.
23313         Add conditional code so that the x86_64 is also supported.
23315 2005-06-14  Pascal Obry  <obry@adacore.com>
23317         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
23318         the library name.
23320 2005-06-14  Robert Dewar  <dewar@adacore.com>
23322         * opt.ads, opt.adb: New flags for persistent_bss mode
23323         Add Ada_Version_Explicit, for implementation of AI-362
23324         Add Assertions_Enabled_Config and associated handling
23325         Needed since setting can be changed with Assertion_Policy pragma
23326         Add new flag Warn_On_Ada_2005_Compatibility
23328         * switch-c.adb: Recognize -gnatwy/Y
23329         Set Ada_Version_Explicit, for implementation of AI-362
23330         The -gnatg switch now includes -gnatyu
23332         * usage.adb: Add -gnatwy/Y
23333         Remove wrong asterisk on -gnatwX line
23334         Add line for -gnatyu switch
23336 2005-06-14  Vincent Celier  <celier@adacore.com>
23338         * osint.adb (Add_Default_Search_Dirs): Put source and object
23339         directories of project files before directories coming from
23340         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
23342 2005-06-14  Robert Dewar  <dewar@adacore.com>
23344         PR ada/15613
23345         * par-ch2.adb (Scan_Pragma_Argument): New procedure
23346         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
23348 2005-06-14  Vincent Celier  <celier@adacore.com>
23350         * prep.adb (Preprocess): Ignore error when scanning the first token of
23351         a line.
23353 2005-06-14  Vincent Celier  <celier@adacore.com>
23355         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
23356         (Check_Stand_Alone_Library): If the specified reference symbol file does
23357         not exist, only issue a warning when the symbol policy is not
23358         Controlled. And, when symbol policy is Compliant, set the symbol
23359         policy to Autonomous.
23361 2005-06-14  Vincent Celier  <celier@adacore.com>
23363         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
23364         when the project file in a with clause is not the last one, that is the
23365         project file name is followed by a comma.
23366         * prj-pp.adb: (First_With_In_List): New Boolean global variable
23367         (Print): Issue list of project files separated by commas in with clauses
23368         according to the values returned by Is_Not_Last_In_List.
23369         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
23370         (Set_Is_Not_Last_In_List): New procedure
23372 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
23374         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
23376 2005-06-14  Robert Dewar  <dewar@adacore.com>
23378         * scng.adb: Add call to new Check_EOF routine
23379         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
23380         Add some comments regarding wide character handling
23382         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
23384         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
23386         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
23387         characters are now considered graphic characters and hence yield false
23388         in this call.
23390         * nmake.adt: Modify header so that xnmake does not generate output
23391         files with multiple blank lines.
23393         * treeprs.adt: Remove a blank line so that output from xtreeprs does
23394         not have an extra blank line
23396 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
23398         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
23399         expression when the component type is an anonymous access type to
23400         ensure that appropriate accessibility checks are done.
23402         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
23403         expression of an assignment when the target object is of an anonymous
23404         access type. This ensures that required accessibility checks are done.
23405         (One_Bound): Move the check for type Universal_Integer to
23406         Process_Bounds.
23407         (Process_Bounds): Check whether the type of the preanalyzed range is
23408         Universal_Integer, and in that case set Typ to Integer_Type prior
23409         to setting the type of the original range and the calls to One_Bound.
23411 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23413         * sem_case.adb (Expand_Others_Choice): Improve warning.
23415 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23417         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
23418         constraint of full view if present, when other type is discriminated.
23419         (Eval_Relational_Op): Recognize tests of pointer values against Null,
23420         when the pointer is known to be non-null, and emit appropriate warning.
23422 2005-06-14  Robert Dewar  <dewar@adacore.com>
23423             Ed Schonberg  <schonberg@adacore.com>
23425         PR ada/10671
23426         * sem_prag.adb: Implement pragma Persistent_BSS
23427         Remove obsolete pragma Persistent_Data, Persistent_Object
23428         Set Ada_Version_Explicit, for implementation of AI-362
23429         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
23430         Add processing for pragma Pure_05 and Preelaborate_05
23431         Add processing for Assertion_Policy pragma
23432         Add pragma identifiers for Assert
23433         (Analyze_Pragma, case Assert): Check number of arguments
23434         (Process_Inline): Additional guard against an illegal program, where the
23435         argument of the pragma is undefined, and warnings on redundant
23436         constructs are enabled.
23437         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
23438         Ada_05 to this pragma, specifying that the pragma is only active in
23439         Ada_05 mode.
23440         (Check_Arg_Order): New procedure
23441         Add appropriate calls to this procedure throughout
23442         Also throughout, check entity name before doing any other checks
23444         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
23445         Remove obsolete pragma Persistent_Data, Persistent_Object
23446         Add entries for pragma Pure_05 and Preelaborate_05
23447         Add entries for Assertion_Policy pragma and associated names
23448         Add some names for pragma argument processing
23450         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
23452 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23454         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
23455         appears within a negation (either from source or as a rewriting of
23456         inequality) adjust text of warning accordingly.
23458 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23460         * s-strxdr.adb: Follow AI95-00132
23462 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
23464         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
23466 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
23467             Jose Ruiz  <ruiz@adacore.com>
23469         * s-tposen.adb, s-tpobop.adb
23470         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
23471         the exception id.
23472         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
23473         there is no violation of the Max_Entry_Queue_Length restriction (if it
23474         has been set); Program_Error is raised otherwise.
23475         (Requeue_Call): Before requeuing the task on the target entry queue we
23476         check that there is no violation of the Max_Entry_Queue_Length
23477         restriction (if it has been set); Program_Error is raised otherwise.
23479 2005-06-14  Robert Dewar  <dewar@adacore.com>
23481         * styleg.adb: Fix several remaining problems in -gnatyu switch
23482         Blank line count not reset at start
23483         Scanning outside source buffer in some cases
23484         Confusing message for blanks at end of file
23485         Non-empty blank lines not recognized
23487         * nmake.adt: Modify header so that xnmake does not generate output
23488         files with multiple blank lines.
23490         * treeprs.adt: Remove a blank line so that output from xtreeprs does
23491         not have an extra blank line
23493 2005-06-14  Sergey Rybin  <rybin@adacore.com>
23495         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
23497 2005-06-14  Doug Rupp  <rupp@adacore.com>
23498             Vincent Celier  <celier@adacore.com>
23500         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
23501         Update copyright.
23503         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23504         Remove "Library" command.
23505         Change keyword for style check -gnatyd from NOCRLF to
23506         DOS_LINE_ENDINGS.
23507         Remove useless second style check keyword NONE
23508         Remove help documentation for inexistent style check keyword
23509         RM_COLUMN_LAYOUT.
23510         Add help documentation for style check keywords DOS_LINE_ENDINGS,
23511         UNNECESSARY_BLANK_LINES and XTRA_PARENS
23512         Add UNNECESSARY_BLANK_LINES for -gnatyu
23513         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
23515         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23517 2005-06-14  Vincent Celier  <celier@adacore.com>
23519         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
23520         gprmake was invoked with -d.
23521         (Compile_Sources): If -d was used, output the "completed ..." message
23522         for each compilation.
23523         (Scan_Arg): Recognize new switch -d
23524         When -c and at least one main is specified, set
23525         Unique_Compile to True to guarantee that no other sources will be
23526         compiled.
23528 2005-06-14  Matthew Heaney  <heaney@adacore.com>
23530         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
23531         * a-swuwha.ads, a-swuwha.adb: New files
23533         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
23534         * a-szuzha.ads, a-szuzha.adb: New files.
23536         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
23537         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
23538         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
23539         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
23540         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
23541         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
23542         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
23543         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
23544         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
23545         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
23546         Ada 2005 RM.
23548 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
23549             Olivier Hainque  <hainque@adacore.com>
23550             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23551             Pascal Obry  <obry@adacore.com>
23553         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
23555         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
23556         making a temporary around a procedure call because of non-addressable
23557         actual parameter.
23558         (process_freeze_entity): If entity is a private type, capture size
23559         information that may have been computed for the full view.
23560         (tree_transform, case N_Allocator): If have initializing expression,
23561         check type for Has_Constrained_Partial_View and pass that to
23562         build_allocator.
23563         (tree_transform, case N_Return_Statement): Pass extra arg to
23564         build_allocator.
23566         * decl.c (annotate_value): Remove early return if -gnatR is not
23567         specified.
23568         (gnat_to_gnu_field): Don't make a packable type for a component clause
23569         if the position is byte aligned, the field is aliased, and the clause
23570         size isn't a multiple of the packable alignment. It serves no useful
23571         purpose packing-wise and would be rejected later on.
23572         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
23574         PR ada/20515
23575         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
23576         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
23577         instead.
23578         (create_concat_name): Idem.
23580 2005-06-10  Robert Dewar  <dewar@adacore.com>
23581             Eric Botcazou  <ebotcazou@adacore.com>
23582             Ben Brosgol  <brosgol@adacore.com>
23583             Cyrille Comar  <comar@adacore.com>
23584             Sergey Rybin  <rybin@adacore.com>
23585             Pascal Obry  <obry@adacore.com>
23587         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
23588         Document second argument (Ada_05) of pragma Obsolescent
23589         Add note that call to subprogram marked with pragma Obsolescent
23590         is now considered to be a violation of program Restrictions
23591         (No_Obsolescent_Features).
23592         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
23593         that only machine-dependent attributes are supported.
23595         * gnat_ugn.texi:
23596         Commented out menu lines and empty section for gnatclean examples
23597         Document -gnatwy/Y
23598         Fix some over long lines
23599         Clarify and enhance documentation of ADA_PROJECT_PATH.
23600         Rework section 2.11.2(3) about linking with a non-GNU compiler.
23601         Mention new switch -fcallgraph-info.
23602         Mention new switch -fstack-usage.
23603         For gnatpp, replace '-notab' with '-N' and add this option to Index
23604         Corrected VMS example.
23605         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
23606         Minor reformatting
23607         Add documentation for -gnatyu switch (unnecessary blank lines)
23608         Document new switch -U for GNAT PRETTY and GNAT METRIC
23609         Add note about Stdcall being handled as C convention on non Windows OS.
23610         Remove some junk typo in description of gnatbind -S switch
23611         Remove reference to Extensions_Allowed pragma
23612         Document the new order of the directories to be searched (source and
23613         object directories of project files before directories in ADA_*_PATH
23614         environment variables.
23616         * g-trasym.ads: Document that IRIX is supported
23618 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
23620         * Makefile.in: Add initialize.o when needed.
23621         Adapt to new VMS package body Symbols and subunits
23622         No specialized version of a-sytaco is needed for VxWorks.
23624         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
23625         * a-zchara.ads, a-widcha.ads: New files.
23627         * system-hpux-ia64.ads: New file.
23629         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
23630         is imported from the VxWorks kernel.
23632 2005-06-14  Robert Dewar  <dewar@adacore.com>
23634         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
23635         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
23636         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
23637         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
23638         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
23639         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
23640         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
23641         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
23642         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
23643         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
23644         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
23645         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
23647 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23649         * xeinfo.adb: Fix typo in comment
23651 2005-06-14  Javier Miranda  <miranda@adacore.com>
23653         * repinfo.ads: Fix typo in comment
23655 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
23657         * s-finimp.adb (Parent_Tag): Delete this imported function (function
23658         Parent_Tag is now in the visible part of Ada.Tags).
23659         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
23660         using imported function.
23662 2005-06-14  Bernard Banner  <banner@adacore.com>
23664         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
23665         also apply for handling support for VxSim 653.
23667 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
23669         * xsnames.adb: Add automatic generation of snames.h.
23671 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23673         * gen-soccon.c: Add IP_MULTICAST_IF constant
23674         Minor reformatting and adjustments to prevent warnings.
23676 2005-06-14  Pascal Obry  <obry@adacore.com>
23678         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
23680 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
23682         * trans.c (gnat_gimplify_expr): Call
23683         recompute_tree_invarant_for_addr_expr when we change
23684         the operand of the ADDR_EXPR.
23686 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23688         * misc.c: Don't include errors.h.
23690 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23692         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
23694 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
23696         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
23697         comment typos.
23698         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
23700 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
23702         PR ada/20270
23703         * Makefile.in: Make TGT_LIB behave correctly.
23705 2005-04-23  DJ Delorie  <dj@redhat.com>
23707         * misc.c: Adjust warning() callers.
23709 2005-04-16  Laurent Guerby  <laurent@guerby.net>
23711         PR ada/18847
23712         * a-nudira.adb (Value): Check for valid string.
23713         * a-nuflra.adb (Value): Likewise.
23715 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
23717         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
23719 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
23721         * adaint.c, init.c, tracebak.c: Fix comment typos.
23722         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
23724 2005-04-07  Laurent Guerby  <laurent@guerby.net>
23725             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23727         * Makefile.in: Add make ifeq define for hppa linux tasking support.
23728         * system-hpux.ads: Define Signed_Zeros to be True.
23729         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
23731 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
23733         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
23734         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
23735         typos.
23737 2005-03-30  Tom Tromey  <tromey@redhat.com>
23739         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
23741 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
23743         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
23745 2005-03-29  Robert Dewar  <dewar@adacore.com>
23747         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
23748         fixed-point expression has value that is not a multiple of the Small
23749         value.
23751         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
23753         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
23754         nanoseconds.
23756         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
23758 2005-03-29  Vincent Celier  <celier@adacore.com>
23760         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
23761         (Build_Dynamic_Library.Version_String): Return the empty string when
23762         Lib_Version is empty or when the symbol policy is not Autonomous.
23764         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
23765         a symbol is not in the reference symbol file, increase the Major ID
23766         and set the Minor ID to 0.
23767         Use gsmatch=lequal instead of gsmatch=equal
23769 2005-03-29  Doug Rupp  <rupp@adacore.com>
23771         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
23772         name and translate.
23774 2005-03-29  Javier Miranda  <miranda@adacore.com>
23776         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
23777         (Inherit_DT): The first formal has been redefined as a Tag.
23778         This allows us the removal of the subprogram Get_TSD.
23779         (TSD): Replace the call to Get_TSD by the actual code.
23781         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
23782         (Make_DT): Upgrade the call to Inherit_TSD according to the
23783         new interface: the first formal is now a Tag.
23785         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
23786         redefined as a Tag.
23787         This change allows us to remove the subprogram Get_TSD.
23788         (CPP_Get_TSD): Subprogram removed.
23789         (TSD): Replace the call to CPP_Get_TSD by the actual code.
23791         * rtsfind.ads: Remove support to call the run-time
23792         subprogram Get_TSD
23794 2005-03-29  Robert Dewar  <dewar@adacore.com>
23796         * errutil.adb, errout.adb:
23797         Minor comment updates on Line_Terminator references
23799         * par-ch10.adb: Add ??? comment about line terminator
23801         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
23802         (check dos line terminator).
23803         (Check_Line_Max_Length): New procedure, split off from the existing
23804         Check_Line_Terminator routine. Separating this out allows -gnatyf to
23805         be properly recognized.
23807         * styleg.adb: Add ??? comment for line terminator reference
23809         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
23810         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
23812         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
23813         (check dos line terminator).
23814         (Check_Line_Max_Length): New procedure, split off from the existing
23815         Check_Line_Terminator routine. Separating this out allows -gnatyf to
23816         be properly recognized.
23818         * stylesw.ads, stylesw.adb:
23819         Add handling for new -gnatyd switch (check dos line terminator)
23821         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
23822         Recognize -gnatwb/-gnatwB switches
23823         Include Warn_On_Bad_Fixed_Value for -gnatg
23825         * usage.adb:
23826         Add line for new -gnatyd switch (check dos line terminator)
23828         * usage.adb: Add lines for -gnatwb/-gnatwB
23830         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
23832         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
23834         * gnat_ugn.texi: Fix overlong lines
23835         Document new -gnatyd switch
23836         Document new -gnatwb/-gnatwB switches
23838 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
23840         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
23841         order to retrieve the component list of the type, before examining
23842         individual components.
23844         * sem_type.adb (Covers): Types are compatible if one is the base type
23845         of the other, even though their base types might differ when private
23846         views are involved.
23848 2005-03-29  Thomas Quinot  <quinot@adacore.com>
23850         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
23851         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
23852         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
23853         analyzed if expansion is disabled (which could otherwise cause spurious
23854         error messages if expansion has been disabled due to previous
23855         (unrelated) errors).
23857         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
23858         is disabled, the entity denoted by the argument is the access type
23859         itself, not an underlying record type, so there is no need to go back
23860         to the Corresponding_Remote_Type.
23862 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
23863             Robert Dewar  <dewar@adacore.com>
23865         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
23866         expand a call to an instance of
23867         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
23868         Constructor actual of the instance. A class-wide membership
23869         check is also generated, to ensure that the tag passed to the instance
23870         denotes a type in the class.
23871         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
23872         of Name_Generic_Dispatching_Constructor.
23874         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
23875         05 unit for AI-260-02).
23877         * a-tgdico.ads: New file.
23879         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
23880         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
23882         * snames.ads, snames.adb (Preset_Names): Add entry for
23883         Generic_Dispatching_Constructor.
23885         PR ada/20300
23886         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
23887         character type cases.
23888         (Analyze_Subprogram_Renaming): Add special handling for
23889         the case of renaming of stream attributes when the renaming denotes a
23890         generic formal subprogram association for an abstract formal subprogram.
23891         Check that the attribute is a primitive stream attribute (and not
23892         a class-wide stream attribute) and then rewrite the attribute name
23893         as the name of the appropriate compiler-generated stream primitive.
23895 2005-03-29  Robert Dewar  <dewar@adacore.com>
23897         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
23898         recursive calls.
23899         (Is_Possibly_Unaligned_Object): Correct typo that
23900         resulted in inaccurate result for unaligned scalars within records.
23902 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
23904         * freeze.adb (Freeze_Record_Type): If the type of the component is an
23905         itype whose parent is controlled and not yet frozen, do not create a
23906         freeze node for the itype if expansion is disabled.
23908 2005-03-29  Vincent Celier  <celier@adacore.com>
23910         * make.adb (Gnatmake): Don't fail if the main project file is declared
23911         as having no Ada sources. Do not display message "no sources to
23912         compile" in quiet output.
23914 2005-03-29  Doug Rupp  <rupp@adacore.com>
23916         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
23917         extra tools.
23919 2005-03-29  Robert Dewar  <dewar@adacore.com>
23921         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
23922         child.
23924 2005-03-29  Robert Dewar  <dewar@adacore.com>
23926         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
23927         missing TYPE Improve the error message generated when compiling a
23928         limited interface in Ada83 or Ada95 mode.
23930 2005-03-29  Robert Dewar  <dewar@adacore.com>
23932         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
23933         rather than proceed ahead using a junk attribute name.
23935 2005-03-29  Vincent Celier  <celier@adacore.com>
23937         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
23939         * prj-part.adb (Parse_Single_Project): Set the location of a project
23940         on its defining identifier, rather than on the reserved word "project".
23942         * prj-proc.adb (Expression): Adapt to the fact that default of external
23943         references may be string expressions, not always literal strings.
23944         (Recursive_Process): Set Display_Name equal to Name
23945         when Location is No_Location, that is when there is no actual file.
23946         Get the Display_Name of the project from the source, when it is not a
23947         virtual project.
23948         (Process): Use the Display_Name in error messages
23950         * prj-strt.adb (External_Reference): Allow default to be string
23951         expressions, not only literal strings.
23953 2005-03-29  Vincent Celier  <celier@adacore.com>
23955         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
23956         file and the reference symbol file to be the same file.
23958 2005-03-29  Thomas Quinot  <quinot@adacore.com>
23960         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
23961         forbid conversion of a local access-to-subprogram type to a remote one.
23963         * sem_util.adb (Wrong_Type): For a record type that is the expanded
23964         equivalent type for a remote access-to-subprogram type, go back to the
23965         original RAS entity when displaying an error message, so the casing is
23966         the original source casing.
23968 2005-03-29  Robert Dewar  <dewar@adacore.com>
23970         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
23971         on param update.
23973 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
23975         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
23976         subtype if code is being pre-analyzed, to prevent un-expanded
23977         references to protected formals, among others.
23978         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
23979         interpretation that can be a call, include the result of the call as a
23980         possible interpretation of the dereference.
23982         * sem_ch5.adb (Process_Bounds): Determine type of range by
23983         pre-analyzing a copy of the original range, and then analyze the range
23984         with the expected type.
23986         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
23987         with an overloaded prefix where not all interpretations yield an
23988         access to subprogram, do not rewrite node as a call.
23989         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
23990         the node as a call once the context identifies the interpretation of
23991         the prefix whose call yields the context type.
23992         (Valid_Conversion): For the case of a conversion between
23993         local access-to-subprogram types, check subtype conformance using
23994         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
23995         detailed error message.
23997 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
23999         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
24000         indicator, indicate that the formal can never be null.
24001         (Process_Formals): If a formal has a non_null indicator, insert the
24002         resulting subtype immediately before the enclosing subprogram decl,
24003         and not at the beginning of the corresponding declarative part, to
24004         prevent access before elaboration (Ada2005).
24006 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24008         PR ada/19956
24009         * utils.c (finish_record_type): Use variable_size when setting sizes.
24011 2005-03-29  Robert Dewar  <dewar@adacore.com>
24013         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
24014         guarantee Unix style line terminators for the output files, even when
24015         running on windows.
24017 2005-03-29  Robert Dewar  <dewar@adacore.com>
24019         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
24020         buffer if an exception is raised.
24022 2005-03-29  Ed Falis  <falis@adacore.com>
24024         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
24025         VxWorks 653 1.4
24027 2005-03-29  Robert Dewar  <dewar@adacore.com>
24029         * sem_util.ads: Minor reformatting
24030         * gnat_rm.texi: Minor editing.
24032 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
24034         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
24035         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
24037 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
24039         * adaint.c (__gnat_portable_spawn): Adjust cast.
24041 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
24043         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
24045 2005-03-17  Pascal Obry  <obry@adacore.com>
24047         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
24048         used.
24050         * expect.c (__gnat_waitpid): Moved here from adaint.c.
24051         Reimplement under Win32 using Win32 API.
24053         (__gnat_kill) [Win32]: Properly close the process handle before leaving
24054         this routine.
24056 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
24058         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
24059         (DECL_RENAMED_OBJECT): New accessor macro.
24060         (SET_DECL_RENAMED_OBJECT): New setter macro.
24062         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
24063         object in all cases.  Attach the renamed object to the VAR_DECL.
24064         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
24065         field is not prescribed.
24067         * misc.c (gnat_handle_option): Handle -gnatO separately.
24068         (gnat_print_decl) <VAR_DECL>: New case.
24069         Print the DECL_RENAMED_OBJECT node.
24071         * lang.opt:  Declare separate -gnatO option.
24073         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
24074         pointer, replace it with the renamed object.
24075         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
24076         pointer type if the source is not a fat pointer type whose underlying
24077         array has the same non-zero alias set as that of the destination array.
24079 2005-03-17  Javier Miranda  <miranda@adacore.com>
24081         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
24082         (Get_Inheritance_Depth): Removed.
24083         (Set_Inheritance_Depth): Removed.
24085         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
24086         subprogram Get_Expanded_Name because it is not referenced by the
24087         frontend.
24089         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
24090         (CPP_Get_Inheritance_Depth): Removed.
24091         (CPP_Set_Inheritance_Depth): Removed.
24093         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
24095 2005-03-17  Robert Dewar  <dewar@adacore.com>
24097         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
24098         3, since we now expect GCC 3 to do all the work.
24100 2005-03-17  Javier Miranda  <miranda@adacore.com>
24102         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
24103         of one barrier to avoid wrong usage of this attribute.
24105         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
24106         First_Private_Entity.
24108         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
24109         the subprogram against wrong usage.
24110         Adapt the code to traverse the entities in the
24111         scope of a record_type because in addition to its usage regarding
24112         packages, this subprogram is also called by Expand_N_Freeze_Entity
24113         to install the visible declarations of the enclosing scope of a
24114         record_type_with_private to establish the proper visibility before
24115         freezing the entity and related subprograms.
24117 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
24119         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
24120         entry formals.
24122 2005-03-17  Thomas Quinot  <quinot@adacore.com>
24124         * exp_ch3.adb (Check_Attr): New subprogram.
24125         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
24126         into a new Check_Attr subprogram, in order to provide a more
24127         explanatory error message (including the name of the missing attribute).
24128         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
24129         subprogram determines whether a default implementation exists for a
24130         given stream attribute.
24131         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
24132         Determine whether to generate a default implementation for each stream
24133         attribute separately, as this depends on the specific attribute.
24135         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
24136         limited extension where a stream attribute is missing for a limited
24137         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
24138         generate a bogus reference to the missing attribute to prevent
24139         cascaded errors. Instead, generate a null statement.
24141         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
24142         available for a limited type if it has been specified for an ancestor
24143         of the type.
24145 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
24147         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
24148         entity is an operator.
24150 2005-03-17  Thomas Quinot  <quinot@adacore.com>
24152         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24153         spec, to make this predicate available to other units.
24155         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
24156         reimplementing it.
24158         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
24159         when no distribution runtime library is available.
24161         * sem_res.adb, sem_dist.adb: Disable expansion of remote
24162         access-to-subprogram types when no distribution runtime library is
24163         available.
24164         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
24165         predicate available to other units.
24167         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24168         spec, to make this predicate available to other units.
24170 2005-03-17  Vincent Celier  <celier@adacore.com>
24172         * make.adb (Insert_Project_Sources): Make sure the Q is always
24173         initialized.
24175         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
24176         the default for the tree, not the global default naming.
24178         * prj-proc.adb (Recursive_Process): No need to put the default naming
24179         in the project data, it's already there.
24181 2005-03-17  Doug Rupp  <rupp@adacore.com>
24183         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
24185         * 5xcrtl.ads: Renamed to...
24186         * s-crtl-vms64.ads: ...this new file
24188 2005-03-17  Robert Dewar  <dewar@adacore.com>
24190         PR ada/19519
24191         * namet.adb (Copy_One_Character): Set proper wide character encoding
24192         for upper half character if we have upper half encoding.
24194 2005-03-17  Robert Dewar  <dewar@adacore.com>
24196         * par.adb (Par): Improved msg for attempt to recompile predefined unit
24198 2005-03-17  Thomas Quinot  <quinot@adacore.com>
24200         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
24201         tagged limited type, the TSS is a newly built renaming declaration:
24202         insert it using Set_TSS, not Copy_TSS.
24204 2005-03-17  Javier Miranda  <miranda@adacore.com>
24206         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
24207         Try_Object_Operation): Analyze the object that is accessible
24208         through the prefix of the subprogram call before we apply
24209         the transformation of the object-operation notation.
24211 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
24213         * s-taprob.adb (Initialize_Protection): Initialize the protected
24214         object's owner to Null_Task.
24215         (Lock): If pragma Detect_Blocking is in effect and the caller of this
24216         procedure is already the protected object's owner then Program_Error
24217         is raised. In addition the protected object's owner is updated.
24218         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
24219         of this procedure is already the protected object's owner then
24220         Program_Error is raised.
24221         In addition the protected object's owner is updated.
24222         (Unlock): Remove the ownership of the protected object.
24224         * s-taprob.ads (Protection): Add the field Owner, used to store the
24225         protected object's owner.
24226         This component is needed for detecting one type of potentially blocking
24227         operations (external calls on a protected subprogram with the same
24228         target object as that of the protected action). Document the rest of
24229         the components.
24231         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
24232         Initialize the protected object's owner to Null_Task.
24233         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
24234         caller of this procedure is already the protected object's owner then
24235         Program_Error is raised.
24236         Do not raise Program_Error when this procedure is called from a
24237         protected action.
24238         (Unlock_Entries): Remove the ownership of the protected object.
24239         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
24240         of this procedure is already the protected object's owner then
24241         Program_Error is raised.
24242         Do not raise Program_Error when this procedure is called from
24243         a protected action.
24245         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
24246         used to store the protected object's owner.
24248         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
24249         effect and this procedure (a potentially blocking operation) is called
24250         from whithin a protected action, Program_Error is raised.
24251         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
24252         and this procedure (a potentially blocking operation) is called from
24253         whithin a protected action, Program_Error is raised.
24255 2005-03-17  Vincent Celier  <celier@adacore.com>
24256             Nicolas Setton  <setton@adacore.com>
24258         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
24259         switch, not supported by the linker on Darwin. Add '_' before
24260         <library>init, as this character is added unconditionally by the
24261         compiler.
24262         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
24263         correct one ".dylib". This fixes detection of the archive files when
24264         building library projects.
24266 2005-03-17  Vincent Celier  <celier@adacore.com>
24268         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
24269         -gnat83, -gnat95 and -gnat05.
24271 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
24273         * gnat_ugn.texi: Document gnatmem restriction
24275 2005-03-17  Thomas Quinot  <quinot@adacore.com>
24277         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
24278         cleanup
24280 2005-03-17  Robert Dewar  <dewar@adacore.com>
24282         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
24283         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
24284         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
24286         * casing.adb: Comment improvements
24288 2005-03-17  Pascal Obry  <obry@adacore.com>
24290         * g-expect.adb: Minor reformatting.
24292 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
24294         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
24295         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
24296         to dependencies.
24298 2005-03-15  Vincent Celier  <celier@adacore.com>
24300         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
24301         Add new parameter In_Tree to specify the project tree: needed
24302         by the project manager. Adapt to changes in project manager
24303         using new parameter In_Tree.
24305 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
24307         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
24308         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
24309         ada/bldtools to avoid make -jN failures.
24311 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
24313         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
24314         to NULL_TREE on entry.
24316 2005-03-15  Robert Dewar  <dewar@adacore.com>
24318         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
24319         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
24320         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24321         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
24322         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
24323         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
24324         system-interix.ads, system-solaris-sparc.ads,
24325         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
24326         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
24327         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
24328         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
24329         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
24330         Compiler_System_Version to be False.
24332         * opt.ads: Add new flag Opt.Address_Is_Private
24334         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
24335         Add new parameter Compiler_System_Version to avoid checking for
24336         completeness of parameters when compiler is compiling itself.
24337         Allows old versions of GNAT to be compiled with new compiler.
24339 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
24341         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
24342         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
24343         calling thread.
24344         (Stack_Base_Available): New flag.
24345         (Get_Page_Size): New overloaded functions imported from C.
24346         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
24347         PROT_ON, PROT_OFF): New constants.
24348         (mprotect): New function imported from C.
24349         (pthread_teb_t): New record type.
24351         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
24352         (Create_Task): Account for the Yellow Zone and the guard page.
24354 2005-03-15  Vincent Celier  <celier@adacore.com>
24356         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24357         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24358         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
24359         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
24360         Library_File_Name_For): Add new parameter In_Tree
24361         to specify the project tree: needed by the project manager.
24362         Adapt to changes in project manager using new parameter In_Tree.
24363         Remove local imports, use functions in System.CRTL.
24365         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
24366         to use the project manager.
24368         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
24369         In_Tree to designate the project tree. Adapt to changes in the project
24370         manager, using In_Tree.
24372         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
24373         Copy_Interface_Sources): Add new parameter In_Tree to specify the
24374         project tree: needed by the project manager.
24375         (Build_Library): Check that Arg'Length >= 6 before checking if it
24376         contains "--RTS=...".
24378         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
24379         Library_File_Name_For): Add new parameter In_Tree to specify the
24380         project tree: needed by the project manager.
24382         * prj.ads, prj.adb: Major modifications to allow several project trees
24383         in memory at the same time.
24384         Change tables to dynamic tables and hash tables to dynamic hash
24385         tables. Move tables and hash tables from Prj.Com (in the visible part)
24386         and Prj.Env (in the private part). Move some constants from the visible
24387         part to the private part. Make other constants deferred.
24388         (Project_Empty): Make it a variable, not a function
24389         (Empty_Project): Add parameter Tree. Returns the data with the default
24390         naming data of the project tree Tree.
24391         (Initialize): After updating Std_Naming_Data, copy its value to the
24392         component Naming of Project Empty.
24393         (Register_Default_Naming_Scheme): Use and update the default naming
24394         component of the project tree, instead of the global variable
24395         Std_Naming_Data.
24396         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
24397         Tree is not defaulted, return the default naming data of the Tree.
24398         (Initial_Buffer_Size): Constant moved from private part
24399         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
24400         variables initialized in procedure Initialize.
24401         (Add_To_Buffer): Add two in out parameters to replace global variables
24402         Buffer and Buffer_Last.
24403         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
24404         functions.
24405         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
24406         hash tables.
24407         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24408         for the project tree.
24409         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
24410         constant at the beginning of the package spec, so that they cane be used
24411         in subprograms before their full declarations.
24412         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
24413         (Empty_Project): Add parameter of type Project_Node_Ref
24414         (Private_Project_Tree_Data): Add component Default_Naming of type
24415         Naming_Data.
24416         (Buffer, Buffer_Last): remove global variables
24417         (Add_To_Buffer): Add two in out parameters to replace global variables
24418         Buffer and Buffer_Last.
24419         (Current_Packages_To_Check): Remove global variable
24420         (Empty_Name): Move to private part
24421         (No-Symbols): Make it a constant
24422         (Private_Project_Tree_Data): New type for the private part of the
24423         project tree data.
24424         (Project_Tree_Data): New type for the data of a project tree
24425         (Project_Tree_Ref): New type to designate a project tree
24426         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24427         for the project tree.
24429         * prj-attr.ads: Add with Table; needed, as package Prj no longer
24430         imports package Table.
24432         * prj-com.adb: Remove empty, no longer needed body
24434         * prj-com.ads: Move most of the content of this package to package Prj.
24436         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
24437         designate the project node tree and Packages_To_Check to replace
24438         global variable Current_Packages_To_Check.
24439         Add new parameters In_Tree and Packages_To_Check to local subprograms,
24440         when needed. Adapt to changes in project manager with project node tree
24441         In_Tree.
24443         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
24444         project tree to most subprograms. Move tables and hash tables to
24445         private part of package Prj.
24446         Adapt to changes in project manager using project tree In_Tree.
24448         * prj-makr.adb (Tree): New constant to designate the project node tree
24449         Adapt to change in project manager using project node tree Tree
24451         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
24452         display the Library_Src_Dir and the Library_Dir.
24453         Add new parameter In_Tree to designate the project node tree to most
24454         subprograms. Adapt to changes in the project manager, using project tree
24455         In_Tree.
24456         (Check_Naming_Scheme): Do not alter the casing on platforms where
24457         the casing of file names is not significant.
24458         (Check): Add new parameter In_Tree to designate the
24460         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
24461         designate the project tree.
24462         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
24464         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
24465         to replace those that were in the private part of package Prj.
24466         Add new parameter In__Tree to designate the project node tree to most
24467         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24468         (Post_Parse_Context_Clause): When specifying the project node of a with
24469         clause, indicate that it is a limited with only if there is "limited"
24470         in the with clause, not necessarily when In_Limited is True.
24471         (Parse): Add new parameter In_Tree to designate the project node tree
24473         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
24474         designate the project node tree. Adapt to change in Prj.Tree with
24475         project node tree In_Tree.
24477         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
24478         tree In_Tree in the call to function Empty_Process to give its initial
24479         value to the project data Processed_Data.
24480         Add new parameters In_Tree to designate the project tree and
24481         From_Project_Node_Tree to designate the project node tree to several
24482         subprograms. Adapt to change in project manager with project tree
24483         In_Tree and project node tree From_Project_Node_Tree.
24485         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
24486         to replace those that were in the private part of package Prj.
24487         Add new parameter In_Tree to designate the project node tree to most
24488         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24490         * prj-tree.ads, prj-tree.adb: Add new parameter of type
24491         Project_Node_Tree_Ref to most subprograms.
24492         Use this new parameter to store project nodes in the designated project
24493         node tree.
24494         (Project_Node_Tree_Ref): New type to designate a project node tree
24495         (Tree_Private_Part): Change table to dynamic table and hash tables to
24496         dynamic hash tables.
24498         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
24499         the project tree to most subprograms. Adapt to changes in project
24500         manager using project tree In_Tree.
24502         * makegpr.adb (Project_Tree): New constant needed to use project
24503         manager.
24505 2005-03-15  Olivier Hainque  <hainque@adacore.com>
24507         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
24508         for sigactions with SA_SIGINFO set. Call
24509         __gnat_adjust_context_for_raise before raising, to perform the
24510         potentially required adjustments to the machine context for the GCC
24511         unwinder.
24513         * raise.h (__gnat_adjust_context_for_raise): New prototype.
24515         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
24516         Adjust PC by one in the provided machine context.
24517         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
24518         so that the handler is passed the context structure to adjust prior to
24519         the raise.
24520         (__gnat_error_handler) HPUX: Adjust the signature to match what an
24521         SA_SIGINFO sigaction should look like. Call
24522         __gnat_adjust_context_for_raise before actually raising.
24523         (__gnat_adjust_context_for_raise): Default noop to help PC
24524         adjustments before raise from signal handlers.
24525         (__gnat_error_handler): Indirectly call a predicate function to
24526         determine if a condition should be resignaled or not.
24527         (__gnat_set_resignal_predicate): User interface to modify the predicate.
24528         (__gnat_default_resignal_p): Default GNAT predicate.
24530 2005-03-15  Doug Rupp  <rupp@adacore.com>
24532         * adaint.c: Prefix #include of VMS system header files with vms/
24533         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
24534         Do not define a dummy function "convert_addresses" under Darwin,
24535         not needed.
24537         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
24538         with vms/
24540 2005-03-15  Nicolas Setton  <setton@adacore.com>
24542         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
24543         PPC/AIX.
24545 2005-03-15  Robert Dewar  <dewar@adacore.com>
24547         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
24548         AI-386.
24550         * a-retide.ads: Minor comment changes
24552 2005-03-15  Robert Dewar  <dewar@adacore.com>
24554         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
24555         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
24556         Realloc_For_Chunk to private part of package.
24557         New subprograms for AI-301
24559         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
24560         Get_Line procedure.
24561         Avoid unnecessary use of Get/Set_Wide_String
24563 2005-03-15  Robert Dewar  <dewar@adacore.com>
24565         PR ada/13470
24566         * a-stunau.ads, a-stunau.adb:
24567         Change interface to allow efficient (and correct) implementation
24568         The previous changes to allow extra space in unbounded strings had
24569         left this interface a bit broken.
24571         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
24573         * g-spipat.ads, g-spipat.adb: New interface for Get_String
24574         Minor reformatting (function specs)
24576         * g-spitbo.adb: New interface for Get_String
24578         * g-spitbo.ads: Minor reformatting
24580         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
24582         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
24584 2005-03-15  Javier Miranda  <miranda@adacore.com>
24585             Robert Dewar  <dewar@adacore.com>
24586             Thomas Quinot  <quinot@adacore.com>
24587             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24589         * atree.ads, atree.adb: Add support for Elist24 field
24591         * atree.h: Fix wrong definition of Field27
24592         Add support for Elist16 field
24593         Add support for Elist24 field
24595         * einfo.ads, einfo.adb (Abstract_Interfaces,
24596         Set_Abstract_Interfaces): New subprograms.
24597         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
24598         subprograms.
24599         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
24600         entities rather than a single node.
24601         (Is_Interface, Set_Is_Interface): New subprogram
24602         (First_Tag_Component): New syntesized attribute
24603         (Next_Tag_Component): New synthesized attribute
24604         (Write_Entity_Flags): Upgraded to write Is_Interface
24605         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
24606         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
24607         (Task_Body_Procedure): New subprogram to read this attribute.
24608         (Set_Task_Body_Procedure): New subprogram to set this attribute.
24609         (Has_Controlled_Component): Now applies to all entities.
24610         This is only a documentation change, since it always worked to apply
24611         this to other than composite types (yielding false), but now this is
24612         official.
24613         Update documentation on Must_Be_Byte_Aligned for new spec
24615         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
24616         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
24617         uses of the Access_Disp_Table attribute to reference the first dispatch
24618         table associated with a tagged type. As
24619         part of the implementation of abstract interface types,
24620         Access_Disp_Table has been redefined to contain a list of dispatch
24621         tables (rather than a single dispatch table).
24622         Similarly, upgrade all the references to Tag_Component by the
24623         new attribute First_Tag_Component.
24624         (Find_Inherited_TSS): Moved to exp_tss.
24625         Clean up test in Expand_N_Object_Declaration for cases
24626         where we need to do a separate assignment of the initial value.
24627         (Expand_N_Object_Declaration): If the expression in the
24628         declaration of a tagged type is an aggregate, no need to generate an
24629         additional tag assignment.
24630         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
24631         is to be deleted.
24632         Bit packed array ops are only called if operands are known to be
24633         aligned.
24634         (Component_Equality): When returning an N_Raise_Program_Error statement,
24635         ensure that its Etype is set to Empty to avoid confusing GIGI (which
24636         expects that only expressions have a bona fide type).
24637         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
24638         determine the amount of data to be copied.
24640         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
24641         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
24642             INTERFACE_TYPE_DEFINITION ::=
24643               [limited | task | protected | synchronized] interface
24644                 [AND interface_list]
24646         * par-ch3.adb (P_Type_Declaration): Modified to give support to
24647         interfaces.
24648         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
24649         interfaces.
24650         (P_Interface_Type_Definition): New subprogram that parses the new
24651         syntax rule of Ada 2005 interfaces
24652         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
24653         messages by the correct RENAMES (quotes removed).
24655         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
24656         attribute First_Tag_Component.
24658         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
24659         (Interface_List, Set_Interface_List): New subprograms.
24660         (Interface_Present, Set_Interface_Present): New subprograms.
24661         (Limited_Present, Set_Limited_Present): Available also in derived
24662         type definition nodes.
24663         (Protected_Present, Set_Protected_Present): Available also in
24664         record type definition and
24665         derived type definition nodes.
24666         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
24667         (Task_Present, Set_Task_Present): New subprogram.
24668         (Task_Body_Procedure): Removed.
24669         (Set_Task_Body_Procedure): Removed.
24670         These subprogram have been removed because the attribute
24671         Task_Body_Procedure has been moved to the corresponding task type
24672         or task subtype entity to leave a field free to store the list
24673         of interfaces implemented by a task (for AI-345)
24674         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
24675         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
24676         expression flag Do_Range_Check
24677         (Exception_Junk): Change to Flag7 to accomodate above change
24678         (Box_Present, Default_Name, Specification, Set_Box_Present,
24679         Set_Default_Name, Set_Specification): Expand the expression
24680         "X in N_Formal_Subprogram_Declaration" into the corresponding
24681         two comparisons. Required to use the csinfo tool.
24683         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
24684         "with string" given.
24686         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
24687         expression given.
24689         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
24690         in 2005 mode
24692         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
24693         attribute Task_Body_Procedure rather than the old semantic field that
24694         was available in the task_type_declaration node.
24696         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
24697         interface type definitions.
24698         (P_Formal_Derived_Type_Definition): Modified to handle the list of
24699         interfaces.
24701         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
24702         task type declaration.
24703         (P_Protected): Modified to handle the list of interfaces in a
24704         protected type declaration.
24706 2005-03-15  Doug Rupp  <rupp@adacore.com>
24707             Vincent Celier  <celier@adacore.com>
24709         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
24710         (Gen_Output_File_C): Likewise.
24711         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
24713 2005-03-15  Thomas Quinot  <quinot@adacore.com>
24715         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
24716         is an N_Raise_Constraint_Error node, create a new copy of it without
24717         going through a call to Duplicate_Subexpr.
24719 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
24720             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24721             Nicolas Setton  <setton@adacore.com>
24722             Ed Schonberg  <schonberg@adacore.com>
24724         PR ada/19900
24725         PR ada/19408
24726         PR ada/19140
24727         PR ada/20255
24728         * decl.c (gnat_to_gnu_field): Reject aliased components with a
24729         representation clause that prescribes a size not equal to the rounded
24730         size of their types.
24731         (gnat_to_gnu_entity, case E_Component): Always look at
24732         Original_Record_Component if Present and not the entity.
24733         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
24734         of tagged extension types by not making field for components that are
24735         inside the parent.
24736         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
24737         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
24738         expression to the type of the object when the object is constant.
24739         Reverse defer_debug_incomplete_list before traversing it, so that trees
24740         are processed in the order at which they were added to the list. This
24741         order is important when using the stabs debug format.
24742         If we are deferring the output of debug information, also defer this
24743         output for a function return type.
24744         When adding fields to a record, prevent emitting debug information
24745         for incomplete records, emit the information only when the record is
24746         complete.
24747         (components_to_record): New parameter defer_debug.
24748         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
24749         (gnat_to_gnu_field_decl): New function.
24750         (substitution_list, annotate_rep): Call it.
24751         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
24752         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
24753         No longer update discriminants to not be a COMPONENT_REF.
24754         (copy_alias_set): Strip padding from input type; also handle
24755         unconstrained arrays properly.
24757         * gigi.h (write_record_type_debug_info): New function.
24758         Convert to use ANSI-style prototypes. Remove unused
24759         declarations for emit_stack_check, elab_all_gnat and
24760         set_second_error_entity.
24761         (gnat_to_gnu_field_decl): New decl.
24763         * utils.c (write_record_type_debug_info): New function.
24764         (finish_record_type): Delegate generation of debug information to
24765         write_record_type_debug_info.
24766         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
24767         (update_pointer_to): Fix pasto.
24768         (convert) <UNION_TYPE>: Accept slight type variations when
24769         converting to an unchecked union type.
24771         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
24772         replace the N_Freeze_Entity with a null statement.
24774         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
24775         within a constrained subcomponent of an enclosing record, place the
24776         freeze nodes in the scope stack entry for the enclosing record.
24777         (Undelay_Type): New Subprogram.
24778         (Set_Small_Size): Pass T, the type to modify; all callers changed.
24779         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
24780         within records; allow them to have freeze nodes if their base types
24781         aren't frozen yet.
24783         * exp_util.adb (Remove_Side_Effects): Properly test for
24784         Expansion_Delayed and handle case when it's inside an
24785         N_Qualified_Expression.
24787         * sem_ch3.adb (Derived_Type_Declaration): New predicate
24788         Comes_From_Generic, to recognize accurately that the parent type in a
24789         derived type declaration can be traced back to a formal type, because
24790         it is one or is derived from one, or because its completion is derived
24791         from one.
24792         (Constrain_Component_Type): If component comes from source and has no
24793         explicit constraint, no need to constrain in in a subtype of the
24794         enclosing record.
24795         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
24796         Minor change to propagate Is_Ada_2005 flag
24798         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
24799         Expansion_Delayed is False.
24800         (assoc_to_constructor): Ignore fields that have a
24801         Corresponding_Discriminant.
24802         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
24803         function returns "by target", dereference the target pointer using the
24804         type of the actual return value.
24805         <all>: Be prepared for a null gnu_result.
24806         (processed_inline_subprograms): Check flag_really_no_inline
24807         instead of flag_no_inline.
24808         (set_second_error_entity): Remove unused function.
24809         (gnat_to_gnu, case N_Selected_Component): Call
24810         gnat_to_gnu_field_decl.
24811         (assoc_to_constructor): Likewise.
24813 2005-03-15  Robert Dewar  <dewar@adacore.com>
24814             Ed Schonberg  <schonberg@adacore.com>
24815             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24817         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
24818         Must_Be_Byte_Aligned for cases where we do not need to use a
24819         System.Pack_nn unit.
24821         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
24822         as procedures.
24823         Needed now that we do some processing for IN parameters as well. This
24824         may well fix some unrelated errors.
24825         (Expand_Call): Handle case of unaligned objects (in particular those
24826         that come from packed arrays).
24827         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
24828         renamed entity is an inherited operation, re-expand the call using the
24829         original operation, which is the one to call.
24830         Detect attempt to inline parameterless recursive subprogram.
24831         (Represented_As_Scalar): Fix to work properly with private types
24832         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
24833         accurate estimate. Yields True in far fewer cases than before,
24834         improving the quality of code that depends on this test.
24836         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
24837         over both visible and private declarations to remove them from tree,
24838         and mark subprograms declared in package as eliminated, to prevent
24839         spurious use in subsequent compilation of generic units in the context.
24841         * exp_util.ads: Minor cleanup in variable names
24843         * sem_eval.ads, sem_eval.adb: Minor reformatting
24844         (Compile_Time_Known_Bounds): New function
24846 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
24848         * exp_ch7.adb (Convert_View): Use base types of underlying types when
24849         determining whether an unchecked conversion is needed for the argument
24850         of an initialization call.
24852 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
24854         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
24855         that appears in the instantiation rather than the internal subtype
24856         generated in the wrapper package, to avoid anomalies in gigi when the
24857         target is derived from a private type whose full view is an access type.
24859 2005-03-15  Robert Dewar  <dewar@adacore.com>
24861         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
24862         not needed.
24863         Add documentation to replace the use of this flag
24864         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
24865         the x86_64.
24867 2005-03-15  Thomas Quinot  <quinot@adacore.com>
24869         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
24870         here from exp_attr so it can be shared between exp_attr and exp_dist.
24871         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
24872         all TSS names, not a subset thereof, and the previous name introduced
24873         an unnecessarily confusion that a distinction might exist between
24874         "OK" TSS names and some "not OK" TSS names.
24876 2005-03-15  Doug Rupp  <rupp@adacore.com>
24878         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
24879         Command_Name.
24881 2005-03-15  Pascal Obry  <obry@adacore.com>
24882             Eric Botcazou  <ebotcazou@adacore.com>
24884         PR ada/20226
24885         PR ada/20344
24886         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
24887         when IN_RTS. This is to work around a bootstrap path problem.
24889         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
24890         table and pass it to __gnat_install_SEH_handler().
24891         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
24893         * lang.opt: Fix specification of -fRTS=.
24895 2005-03-15  Doug Rupp  <rupp@adacore.com>
24896             Bernard Banner  <banner@adacore.com>
24897             Vincent Celier  <celier@adacore.com>
24898             Arnaud Charlet  <charlet@adacore.com>
24900         PR ada/6852
24901         This change works fine when gnatlib is built from the gcc directory,
24902         but does not work when using the libada Makefile, since GCC_FOR_TARGET
24903         is not passed to ada/Makefile.in, so more work is needed by a
24904         Makefile/configure expert.
24906         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
24907         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
24908         Setup gnatlink switch -M for x86_64 linux, as it is already setup
24909         for Linux x86.
24910         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
24911         Run ranlib on libgccprefix.a
24912         Define PREFIX_OBJS for Darwin, to build libgccprefix.
24913         (ADA_INCLUDE_SRCS): Split Ada packages.
24915 2005-03-15  Robert Dewar  <dewar@adacore.com>
24917         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
24919         * impunit.adb: Add GNAT.UTF_32
24921         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
24923         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
24924         now uses GNAT.UTF_32).
24926         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
24927         capabilities for categorizing characters using Unicode categories
24929 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
24931         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
24932         instantiation that has been rewritten as a package body, retrieve spec
24933         to generate proper name for implicit_with_clause.
24934         (Install_Parents): Recognize a parent that is an instantiation but has
24935         been rewritten as a package declaration during analysis.
24937 2005-03-15  Javier Miranda  <miranda@adacore.com>
24938             Ed Schonberg  <schonberg@adacore.com>
24940         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
24941         parameter reported some error we immediately return. This improves the
24942         behaviour of the frontend in case of errors.
24943         (Install_Parent, Remove_Parent): Introduce new flag
24944         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
24945         ancestor of a generic child unit, when the child is being instantiated.
24946         (Inline_Instance_Body): If we are compiling the private
24947         part or the body of a child unit, restore the proper visibility of the
24948         parents after compiling the instance body.
24950 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
24951             Javier Miranda  <miranda@adacore.com>
24953         PR ada/15608
24954         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
24955         of a private type, in which case it is underlying_type that denotes
24956         the proper task. Also modified to use the new entity attribute
24957         that is directly available in the task type and task subtype entities
24958         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
24959         arrays when other dimensions than the first are constrained by
24960         discriminants of an enclosing record.
24961         (Insert_Explicit_Dereference): If the prefix is an indexed component or
24962         a combination of indexed and selected components, find ultimate entity
24963         and generate the appropriate reference for it, to suppress spurious
24964         warnings.
24965         (Note_Possible_Modification): If an entity name has no entity, return.
24966         (Is_Variable): A function call never denotes a variable.
24967         (Requires_Transient_Scope): For record types, recurse only on
24968         components, not on internal subtypes that may have been generated for
24969         constrained components.
24971 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
24973         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
24974         Eliminated as candidates for resolution. Both efficient, and avoids
24975         anomalies with operators declared in deleted code.
24976         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
24977         expansion is disabled (as when compiling a generic) to prevent spurious
24978         warnings on prefixes of selected components.
24980 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
24982         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
24983         attached to a list before checking whether it appears in the private
24984         declarations of the current package.
24985         (Make_Inequality_Operator): Insert declaration in proper declarative
24986         list rather than just setting the Parent field, so that
24987         Is_Private_Declaration can handle it properly.
24989 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
24991         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
24992         a renaming a body, check that the renamed subprogram in not intrinsic.
24993         (Find_Direct_Name): If several use_visible entities hide
24994         each other, and the context is a predefined file compiled through
24995         rtsfind, keep only the entity that comes from a predefined file.
24997 2005-03-15  Geert Bosch  <bosch@adacore.com>
24999         * s-fatgen.adb (Valid): Extend special exceptions to account for long
25000         long float padding to also cover AMD64 and IA64.
25002 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
25004         * s-imgwch.adb: Add with and use of Interfaces.
25005         (Img_Wide_Character): Change type of Val to Unsigned_16.
25006         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
25008 2005-03-15  Matthew Gingell  <gingell@adacore.com>
25010         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
25012 2005-03-15  Robert Dewar  <dewar@adacore.com>
25014         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
25016         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
25018         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
25020 2005-03-15  Robert Dewar  <dewar@adacore.com>
25022         * s-bitops.adb, s-bitops.ads,
25023         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
25024         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
25025         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
25026         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
25027         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
25028         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
25029         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
25030         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
25031         reformatting.
25033 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
25035         * utils2.c (build_binary_op): Fix typo.
25037 2005-03-15  Doug Rupp  <rupp@adacore.com>
25039         * s-crtl.ads (popen,pclose): New imports.
25041 2005-03-15  Cyrille Comar  <comar@adacore.com>
25043         * comperr.adb (Compiler_Abort): remove references to obsolete
25044         procedures in the bug boxes for various GNAT builds.
25046 2005-03-15  Vincent Celier  <celier@adacore.com>
25048         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
25050 2005-03-15  Geert Bosch  <bosch@adacore.com>
25051             Arnaud Charlet  <charlet@adacore.com>
25052             Robert Dewar  <dewar@adacore.com>
25053             Cyrille Comar  <comar@adacore.com>
25054             Sergey Rybin  <rybin@adacore.com>
25056         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
25057         too specific and long-winded to be appropriate for the GNAT User's
25058         Guide.
25059         Warn about use of GCC switches not documented in the GNAT User's Guide,
25060         as these may cause generated code to not conform to Ada semantics.
25061         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
25062         Add documentation for -gnat95 and -gnat05 switches
25063         Remove paragraph documenting obsolete way to refer to third party
25064         libraries.
25065         Add a few references to Ada_05 that were missing.
25066         Update documentation on -gnatZ/-gnatL.
25067         Document limitation when using -m64 under Solaris.
25068         Change the "Name Casing" subsection of the pretty-printer section
25069         according to the changes in the dictionary processing.
25071         * gnat_rm.texi: Document the Ada_05 pragma.
25072         Section on record representation clauses describes the new more
25073         relaxed rules about placement of large packed bit array components.
25074         Add documentation of GNAT.UTF_32
25076 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
25078         * misc.c (gnat_post_options): Turn off structural
25079         aliasing for now.
25081 2005-03-08  Laurent Guerby  <laurent@guerby.net>
25083         * system-linux-sparc.ads: Fix typo in previous commit.
25085 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
25086             Laurent Guerby  <laurent@guerby.net>
25088         PR ada/20035
25089         * system-linux-sparc.ads: New.
25090         * Makefile.in: Add sparc linux entry.
25092 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
25094         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
25095         parameters as unused.
25097 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
25098         Partial merge from libada-gnattools-branch:
25100         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
25101         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
25102         into code in gnattools/Makefile.in.  Remove direct dependencies on
25103         stamp-tools by tools clauses.
25104         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
25105         * config-lang.in: Add gnattools to $lang_dirs.
25107 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
25109         PR ada/19942
25110         * utils.c (gnat_type_for_mode): Return null instead of ICE because
25111         we asked for an unknown mode.
25113 2005-02-12  Richard Henderson  <rth@redhat.com>
25115         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
25116         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
25118 2005-02-10  Andreas Jaeger  <aj@suse.de>
25120         * init.c (__gnat_initialize): Mark parameter as unused.
25122 2005-02-09  Doug Rupp  <rupp@adacore.com>
25124         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
25125         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
25127 2005-02-09  Doug Rupp  <rupp@adacore.com>
25129         * gnatchop.adb (dup, dup2),
25130         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
25132         * gnatlbr.adb (mkdir),
25133         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
25135         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
25137 2005-02-09  Doug Rupp  <rupp@adacore.com>
25139         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
25141 2005-02-09  Robert Dewar  <dewar@adacore.com>
25142             Thomas Quinot  <quinot@adacore.com>
25143             Javier Miranda  <miranda@adacore.com>
25144             Pascal Obry  <obry@adacore.com>
25145             Ed Schonberg  <schonberg@adacore.com>
25146             Doug Rupp  <rupp@adacore.com>
25147             Gary Dismukes  <dismukes@adacore.com>
25148             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25150         * g-zstspl.ads: New file.
25152         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
25154         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
25155         Ada 95 mode
25156         Add definition of Wide_Wide_Space for AI-285
25158         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
25159         interface (to support Ada 95 and Ada 2005 units).
25160         Add Unbounded_IO files
25161         Add entries for Wide_Wide packages for AI-285
25162         Add list of containers packages to Ada 2005 unit list
25164         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
25165         support new Unbounded_IO package cleanly.
25167         * g-utf_32.ads, g-utf_32.adb: New files.
25169         * Makefile.rtl: Add entry for g-utf_32
25170         Add new files for Unbounded_IO
25171         Adjust make file for new AI-285 wide wide packages
25172         Add AI-302 containers to the run time.
25174         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
25175         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
25176         subprograms for AI-301.
25178         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
25180         * a-stunau.ads: Minor comment correction
25182         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
25183         etc.
25184         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
25185         (Check_RPC): Update to match changes in expanded code.
25186         Clean up unused entity.
25188         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
25189         was not taken into account.
25190         This includes proper initialization with Normalize_Scalars.
25191         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
25192         normalize scalars cases (particularly the latter) to do a better job
25193         of finding invalid representations.
25195         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
25197         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
25198         used
25200         * exp_dist.adb: Add support for wide wide character type
25201         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
25202         private part, generate stub bodies at the end of the private part,
25203         not the visible part.
25204         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
25205         PolyORB support.
25206         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
25207         generic wrapper to execute final processing after completing the
25208         expansion of the RPC receiver for an RACW.
25210         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
25211         packages and attributes.
25212         (Preset_Names): Addition of the new reserved words of Ada 2005,
25213         that is interface, overriding and synchronized.
25214         (Get_Pragma_Id): Give support to the use of the new reserved word
25215         "interface" as a pragma name.
25216         (Is_Pragma_Name): Give support to the use of the new reserved word
25217         "interface" as a pragma name.
25218         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
25219         attribute implementation.
25221         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
25222         checks to entities that are output parameters of Asm operations.
25223         Handle the Stream_Size attribute.
25224         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
25226         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
25228         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
25229         for second parameter being 0.0.
25230         Add support for wide wide character type.
25231         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
25233         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
25234         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
25235         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
25236         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
25237         for wide wide character cases.
25239         * cstand.adb: Create entities for Wide_Wide_Character and
25240         Wide_Wide_String.
25242         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
25243         accordance with AI-258.
25244         Add new declarations for 16/32 bit C character types (Part of AI285)
25246         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
25247         (Obsolescent_Warning): New field
25248         (Rep_Clause): New local subprogram used to share code. Returns the rep
25249         clause for which the name is given in parameter.
25250         (Has_Stream_Size_Clause): New routine.
25251         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
25252         (Address_Clause): Implementation is now using Rep_Clause.
25253         (Alignment_Clause): Idem.
25254         (Size_Clause): Idem.
25256         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
25257         entity in non-Ada 2005 mode and generate warning.
25259         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
25260         (Prag): Code cleanup. Remove old gnat pragma "overriding"
25262         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
25263         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
25264         on the named unit if the pragma is not in the current compilation unit,
25265         so that elaboration calls in the current unit can set up an elaboration
25266         dependency on the named unit, as needed.
25267         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
25268         subprogram as well as for subprograms declared within a package.
25269         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
25270         pragma overriding.
25272         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
25273         to z) to avoid some instances of duplication for Wide_Wide packages.
25275         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
25276         characters.
25278         * scn.adb: Char_Literal_Value field is now a Uint
25280         * scng.adb: Significant rewrite to handle new Ada 2005 features
25281         allowing wide and wide wide characters in program text, e.g. for
25282         identifiers, as described in AI-285.
25283         (Set_Reserved): New procedure, makes setting up keywords cleaner.
25284         (Initialize_Scanner): Register the new reserved words of Ada 2005.
25285         (Scan): Give support to the new reserved words.
25287         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
25288         warning notifying that interface, overriding, and synchronized are
25289         new reserved words.
25290         (P_Pragma): Allow the use of the new reserved word "interface" as
25291         a pragma name.
25293         * gnatls.adb, gnatbind.adb,
25294         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
25295         identifiers named "interface" to "SAL_Interface".
25297         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
25298         (Structured Exception handling).
25299         (Gen_Main_C): Idem.
25301         * bindgen.adb:
25302         (Gen_Main_Ada): Set the default exit code if specified.
25303         (Gen_Main_C): Likewise.
25304         Part of *DC20-006.
25305         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
25306         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
25308         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
25309         new -Xnnn switch.
25311         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
25312         has a collision with the new Ada 2005 "interface" reserved word.
25314         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
25315         generate a warning notifying that interface, overriding, and
25316         synchronized are new reserved words.
25318         * scans.ads (Token_Type): Addition of the tokens corresponding to the
25319         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
25320         and Tok_Synchronized.
25322         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
25323         "dispatching" rather than "primitive" operations, since dispatching
25324         calls are now allowed to abstract formal subprograms (which are not
25325         primitive).
25326         Char_Literal_Value field is now a Uint
25327         (Resolve_Slice): If the prefix is an access to an unconstrained array,
25328         compute the actual subtype of the designated object to impose the proper
25329         index constraints.
25330         (Resolve_Selected_Component): Do not insert an access check if the
25331         prefix is an access type: such a node is expanded into an explicit
25332         dereference, on which the access check is performed anyway. Removes
25333         expensive duplicate checks.
25334         (Resolve_Call): Use new flag Is_Obsolescent and field
25335         Obsolescent_Warning so that pragma Obsolescent works on library
25336         subprograms.
25337         Add support for wide wide character type
25338         (Resolve_Allocator): Replace the error message on wrong null-exclusion
25339         value by a warning message.
25340         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
25341         as fixed-point, and one of the operands is non-static and universal, it
25342         can only be an illegal exponentiation operation, in which case there is
25343         no real value to retrieve.
25345         * exp_strm.adb: Add support for wide wide character type
25346         (Build_Elementary_Input_Call): Compute the size of the stream element by
25347         querying the rep chain to find the Stream_Attribute attribute value.
25348         (Build_Elementary_Write_Call): Ditto.
25350         * sem_aggr.adb: Char_Literal_Value field is now a Uint
25351         Add support for wide wide character type
25352         Replace the error messages on wrong null-exclusion value by warnings
25353         as described in Ada 2005.
25354         (Resolve_Extension_Aggregate): Document the fact that the error
25355         message on class-wide expressions in extensions aggregates.
25357         * sem_case.adb: Add support for wide wide character type
25359         * sem_ch13.adb: Add support for wide wide character type
25360         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
25362         * sem_ch3.adb: Add support for wide wide character type
25363         (Process_Subtype): If constraint is illegal for the type, set Ekind of
25364         now-useless Itype, to prevent cascaded errors on a compiler built
25365         without -gnatp.
25367         * sem_ch8.adb: Add with and use of Sem_Disp.
25368         (Analyze_Subprogram_Renaming): Replace unclean uses of
25369         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
25370         of Corresponding_Spec to Empty).
25371         (Attribute_Renaming): Replace use of Corresponding_Spec with
25372         Corresponding_ Formal_Spec and simplify condition.
25373         (Use_One_Package): Check that scope of homonym of identifier is defined,
25374         before checking whether it is a wrapper package.
25375         Add support for wide wide character type
25377         * sem_eval.adb: Add support for wide wide character type.
25378         (Eval_Arithmetic_Op): Check for compile time known signed integer
25379         overflow in the non-static case.
25380         (Subtypes_Statically_Match): A formal scalar type and its base type do
25381         not statically match.
25383         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
25384         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
25385         subtype).
25386         (Unit_Declaration_Node): Ditto.
25387         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
25388         has a packed array type, the prefix has been rewritten into a type
25389         conversion. Determine variable-ness from the converted expression.
25390         Handle wide wide character cases.
25392         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
25394         * stringt.ads, stringt.adb: Handle full UTF-32 range.
25395         Remove ["0A"] from comment, since it can look like a line terminator.
25396         Currently we don't permit this, but this is under discussion by the
25397         ARG, and it is easy enough to use a different example.
25399         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
25400         handling UTF-32 encoding for wide wide character.
25401         Implement new brackets coding ["hhhhhhhh"]
25402         Add UTF-8 encodings for full UTF-32 range
25404         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
25406         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
25407         bit range Add full UTF-32 support.
25408         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
25409         notify that constraint error will be raised at run-time
25410         because a null value is assigned to a null-excluding object.
25411         Remove some obsolete declarations and make Char_Code
25412         unsigned.
25414         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
25415         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
25416         Rcheck subprograms.
25418         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
25419         wrong null-exclusion value by a warning message.
25420         (Enable_Range_Check): Do range check if the prefix is an
25421         explicit dereference whose designated object is an unconstrained array.
25422         Current algorithm for removing duplicate checks is over-eager in this
25423         case.
25425         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
25426         null-exclusion value by a warning message
25428         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
25429         completely. Add support for Uint2 field
25431         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
25432         exp_prag.adb: Char_Literal_Value field is now a Uint.
25434         * exp_util.adb (Insert_Actions): Replace
25435         N_Formal_Subprogram_Declaration by
25436         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
25437         Char_Literal_Value field is now a Uint.
25439         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
25440         defined for subprogram renaming declarations. When set, the field
25441         indicates the defining entity of a corresponding formal subprogram
25442         when the renaming corresponds to a formal subprogram association in an
25443         instantiation.
25444         (Set_Corresponding_Formal_Spec): New procedure to return
25445         Corresponding_Formal_Spec field.
25446         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
25447         (which is now a subtype).
25448         Char_Literal_Value field is now a Uint
25450         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
25451         pointer to the base of the dispatch table.
25452         Minor changes to comments.
25453         (Controlling_Type): New function for determining the tagged type
25454         associated with a tagged primitive subprogram.
25455         (Expand_Dispatching_Call): Add support for a controlling actual that is
25456         directly a value of type Ada.Tag rather than a tagged object.
25458         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
25459         describing the new layout.
25460         (Dispatch_Table): The expander computes the actual array size, allocates
25461         the Dispatch_Table record accordingly, and generates code that displaces
25462         the base of the record after the Typeinfo_Ptr component. The access to
25463         these components is done by means of local functions.
25464         (Offset_To_Top): New function.
25465         (Typeinfo_Ptr): New function.
25466         (Get_TSD): Modified to access the new position of the TSD.
25467         (Set_TSD): Modified to save the TSD in its new position.
25469         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
25470         case of formal abstract subprograms. Add check and message for -gnat05.
25471         Update comments.
25473         * sem_ch12.adb: Add with and use for Sem_Disp.
25474         (Analyze_Associations): Minor change from "=" to "in" for use of
25475         N_Formal_Subtype_Declaration (which is now a subtype).
25476         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
25477         N_Formal_Subtype_Declaration (which is now a subtype).
25478         (Analyze_Formal_Subprogram): Add handling for
25479         N_Formal_Abstract_Subprogram, marking the formal as abstract and
25480         dispatching, setting the controlling status of the formal parameters
25481         and result, and issuing an error if there is no controlling type for
25482         the formal subprogram.
25483         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
25484         which is an unclean use of that field, we set the new field
25485         Corresponding_Formal_Spec to make the formal subprogram available to
25486         processing in Analyze_Subprogram_Declaration.
25487         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
25488         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
25489         Constrained, so that it is is does not statically match its anonymous
25490         base type.
25492         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
25493         abstract formal subprograms in error check for functions returning
25494         abstract types. Set scope of new designator for
25495         a parameterless subprogram, so that it is available when checking the
25496         body for nested subprograms, before full analysis of said body.
25497         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
25498         subprogram only if inner one comes from source.
25499         (Analyze_Function_Call): If the call is given in object notation, the
25500         analysis of the name rewrites the node and analyzes it with the proper
25501         argument list. After analyzing the name, if the call has been rewritten
25502         and the result type is set, no further analysis is needed.
25503         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
25504         mark in function specification, in a context where the formals are
25505         visible and hide outer homographs.
25507         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
25508         as the tagged type for the cases of abstract formal subprograms and
25509         renamings of those.  Clean up spec comments.
25510         (Check_Dispatching_Context): Add error message to indicate "abstract
25511         procedure", covering the case of a call to a formal abstract procedure
25512         that has statically tagged operands.
25513         (Check_Dispatching_Call): Check for the case of an actual given by
25514         a tag-indeterminate function call whose type is an ancestor of the
25515         containing call's associated tagged type. This situation can occur
25516         for inherited primitives with function defaults. In this case we
25517         use the tagged type's tag directly as the controlling argument for
25518         the calls.
25519         (Expand_Call): Name change on call to Expand_Dispatch_Call.
25521         * sprint.adb (Sprint_Node_Actual): Split
25522         N_Formal_Subprogram_Declaration into two alternatives for the new
25523         cases N_Formal_Abstract_Subprogram_Declaration and
25524         N_Formal_Concrete_Subprogram_Declaration.
25525         Char_Literal_Value field is now a Uint.
25527         * trans.c: Get rid of junk Uint2 reference.
25528         Char_Literal_Value field is now a Uint.
25529         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
25530         (gigi): Correct third arg to gimplify_body.
25532         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
25533         (TYPE_LANG_FLAG_0): Check for record or union.
25535         * treepr.adb: Char_Literal_Value field is now a Uint
25537         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
25538         UI_From_CC.
25540         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
25541         Add full UTF-32 support
25542         Char_Code is now 32 bits
25544         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
25545         wide character UTF_32 line terminators.
25546         Initialize Main_Source_File to avoid error when no main
25547         source is loaded.
25549         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
25550         (Main_Source_File) when no main source has been loaded, to avoid
25551         potential crash.
25553 2005-02-09  Robert Dewar  <dewar@adacore.com>
25555         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
25556         Fix name of Set routine
25558         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
25559         fixed packages.
25561         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
25562         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
25563         fixed packages
25565         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
25566         forms of Get_Line subprograms for AI-301.
25568         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25569         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
25570         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
25571         a-stwima.ads: Minor reformatting.
25573 2005-02-09  Doug Rupp  <rupp@adacore.com>
25574             Thomas Quinot  <quinot@adacore.com>
25576         * adaint.c, adaint.h
25577         [VMS] (to_ptr32): New function.
25578         (MAYBE_TO_PTR32): New macro.
25579         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
25580         for pointer size.
25581         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
25582         [VMS] (#define fork()): Remove since unneccessary.
25583         (__gnat_set_close_on_exec): New routine to support
25584         GNAT.OS_Lib.Set_Close_On_Exec.
25586         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
25587         the parent side as close-on-exec so that they are not inherited by the
25588         child.
25590         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
25591         set or clear the FD_CLOEXEC flag on a file descriptor.
25593 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
25594             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25596         PR ada/19386
25597         * decl.c:
25598         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
25599         on the field if Pragma Component_Alignment (Storage_Unit).
25600         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
25601         side-effects as if it were a constant; also make SAVE_EXPR to protect
25602         side-effects.
25603         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
25604         UNION_TYPE.
25605         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
25606         (components_to_record): Test it.
25607         Fix improper usage of REFERENCE_CLASS_P.
25609         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
25610         RECORD_TYPE.
25612         * utils2.c: Minor reformatting.
25614         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
25615         handle other cases like RECORD_TYPE.
25617         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
25619 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
25621         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
25622         component of an array of arrays in an assignment context, and the
25623         aggregate has component associations that require sliding on
25624         assignment, force reanalysis of the aggregate to generate a temporary
25625         before the assignment.
25626         (Must_Slide): Make global to the package, for use in Gen_Assign.
25628 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
25630         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
25631         unchecked union with no inferable discriminants, return a
25632         Raise_Program_Error node, rather than inserting it at the point the
25633         type is frozen.
25634         (Expand_Record_Equality, Component_Equality): Handle properly the case
25635         where some subcomponent is an unchecked union whose generated equality
25636         code raises program error.
25638 2005-02-09  Doug Rupp  <rupp@adacore.com>
25640         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
25641         [VMS] (#define exit hack): Remove.
25643 2005-02-09  Pascal Obry  <obry@adacore.com>
25644             Arnaud Charlet  <charlet@adacore.com>
25646         * init.c (__gnat_initialize): Add a new parameter eh which contains the
25647         address of the exception registration. The Win32 version of this
25648         routine calls __gnat_install_SEH_handler() to initialize the SEH
25649         (Structured Exception Handling) handler.
25650         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
25651         SEH (Structured Exception Handling) now.
25652         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
25653         (__gnat_initialize for ppc-vxworks): Adjust comments and the
25654         preprocessor condition protecting the call to the extra eh setup
25655         subprogram, which is only available for the ppc target.
25656         (__gnat_clear_exception_count): replaced reference to
25657         variable taskIdCurrent by call to taskIdSelf(), cleaner.
25659         * seh_init.c: New file.
25661         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
25662         (GNATBIND_OBJS): Idem.
25664         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
25665         routine takes a new parameter (a pointer to the exception registration
25666         for the SEH (Structured Exception Handling) support.
25668         * raise.h: (__gnat_install_SEH_handler): New prototype.
25669         Update copyright notice.
25671         * s-tassta.adb (Task_Wrapper): Declare the exception registration
25672         record and initialize it by calling __gnat_install_SEH_handler.
25674 2005-02-09  Vincent Celier  <celier@adacore.com>
25676         * make.adb (Gnatmake): Do not fail when the main project has no object
25677         directory.
25679 2005-02-09  Doug Rupp  <rupp@adacore.com>
25681         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
25682         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
25683         [VMS]: Add translations for g-enblsp.adb.
25685         * s-asthan-vms.adb: Removed.
25686         * s-asthan-vms-alpha.adb: Added.
25688 2005-02-09  Pascal Obry  <obry@adacore.com>
25690         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
25691         (LIBGNAT_OBJS): Add seh_init.o.
25693 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
25695         PR ada/16592
25696         * Makefile.in: Link all gnat tools with -static-libgcc, since
25697         -shared-libgcc is now used by default on some systems (e.g. linux with
25698         recent binutils).
25699         Remove references to Makefile.prolog/generic, no longer used.
25701 2005-02-09  Vincent Celier  <celier@adacore.com>
25703         * prj-makr.adb (Process_Directory): Put file name in canonical case
25704         before matching against the patterns.
25705         If gnatname has been invoked as <prefix>-gnatname
25706         then invoke the compiler as <prefix>-gcc, not just "gcc".
25708 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
25710         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
25711         with expansion disabled. The actual subtype is needed among other
25712         places when the selected component appears in the context of a loop
25713         bound, and denotes a packed array.
25714         (Operator_Check): Always use the first subtype in the
25715         error message, to avoid the appearance of internal base types.
25716         (Transform_Object_Operation): Copy each actual in full
25717         to the parameter associations of the constructed call, rather than
25718         using the shallow copy mechanism of New_Copy_List. This ensures that
25719         the chaining of named associations is done properly.
25720         (Complete_Object_Operation): Rewrite node, rather than
25721         replacing it, so that we can trace back to the original selected
25722         component.
25724         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
25725         and calls that use object notation, if the called function is not
25726         declared  in a withed unit, place the elaboration constraint on the
25727         unit in the context that makes the function accessible.
25728         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
25729         imposes an elaboration constraint between two packages.
25731 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
25733         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
25734         views of a private type after handling its private dependents, to
25735         maintain proper stack discipline between entry and exit from the
25736         package.
25738 2005-02-09  Cyrille Comar  <comar@adacore.com>
25740         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
25741         Minor reformatting.
25743 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
25745         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
25746         fields for foreign threads.
25748 2005-02-09  Doug Rupp  <rupp@adacore.com>
25750         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
25751         recursion warnings when compiled with -gnatdm.
25753 2005-02-09  Robert Dewar  <dewar@adacore.com>
25755         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
25756         Slight fix to documentation of -gnaty with no parameters
25758         * xr_tabls.ads: Add ??? comment for missing overall comment
25760         * xsinfo.adb: Make default file name be sinfo.h, since this is what
25761         we now use by default.
25763         * xsnames.adb: Adjust end of file test to look for five space followed
25764         by '#' instead of six spaces. The format of xsnames.adb was modified
25765         in the last update.
25767         * a-numeri.ads: Add reference to AI-388 for greek letter pi
25768         identifier.
25770         * clean.adb: Minor reformatting.
25772         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
25773         gnatname.adb: Minor reformatting
25774         Add 2005 to copyright output when utility is run
25776         * csets.adb: Eliminate obsolete comment
25778         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
25779         Update comments.
25781         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
25783 2005-02-09  Sergey Rybin  <rybin@adacore.com>
25785         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
25786         the difference between compact and incompact layout and add the record
25787         representation clause to the example illustrating different layouts.
25788         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
25789         component clauses").
25791 2005-02-09  Florian Villoing  <villoing@adacore.com>
25793         * gnat_ugn.texi: Fix typos.
25794         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
25795         @file.
25796         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
25797         in the generated documentation.
25799 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
25801         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
25802         longer supported.
25803         Update linker wrapper when linking with non GNU C++.
25805 2005-02-09  Pascal Obry  <obry@adacore.com>
25807         * gnat_ugn.texi:
25808         Document the procedure to debug the DllMain routine on Windows.
25809         Add note about -funwind-tables and mixed Ada and C/C++ programming in
25810         ZCX mode.
25811         Document new BIND qualifer /RETURN_CODES=VMS.
25813 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
25815         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
25816         Edited gnatmetric chapter
25818 2005-02-09  Robert Dewar  <dewar@adacore.com>
25820         * gnat_rm.texi:
25821         Changes to document new wide wide character support
25822         For AI-285
25823         Update documentation on Normalize_Scalars and Initialize_Scalars
25825 2005-02-09  Pascal Obry  <obry@adacore.com>
25827         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
25829 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
25831         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
25832         from the VxWorks kernel) that is needed for getting the active
25833         priority of the different tasks.
25835         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
25836         Use a pragma Elaborate_Body in the spec file instead.
25837         Noticed by code reading.
25839 2005-02-09  Thomas Quinot  <quinot@adacore.com>
25841         * exp_util.ads: Minor correction in comment.
25843 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
25845         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
25846         since this procedure is now too complex to be worth inlining.
25848 2005-02-09  Richard Henderson  <rth@redhat.com>
25850         * utils.c (gnat_define_builtin): Remove.
25851         (gnat_install_builtins): Use build_common_builtin_nodes.
25853 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
25855         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
25856         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
25857         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
25858         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
25859         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
25860         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
25861         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
25862         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
25863         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
25864         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
25865         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
25866         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
25867         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
25868         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
25869         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
25870         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
25871         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
25872         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
25873         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
25874         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
25875         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
25876         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
25877         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
25878         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
25879         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
25880         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
25881         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
25882         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
25883         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
25884         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
25885         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
25886         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
25887         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
25888         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
25889         library.
25891 2005-01-27  Laurent Guerby  <laurent@guerby.net>
25893         * Makefile.in: Fix a-intnam.ads from previous commit,
25894         add 2005 to copyright.
25895         * a-intman-rtems.ads: Renamed to...
25896         * a-intnam-rtems.ads:
25898 2005-01-27  Laurent Guerby  <laurent@guerby.net>
25900         * Makefile.in: Rename GNAT RTEMS specific files.
25901         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
25902         5rosinte.ads, 5rparame.adb: Replaced by files below.
25903         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
25904         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
25906 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
25907             Laurent Guerby  <laurent@guerby.net>
25909         PR ada/19488
25910         * 5rosinte.ads: Add No_Key constant.
25911         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
25912         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
25914 2005-01-26  Laurent Guerby  <laurent@guerby.net>
25916         PR ada/19414
25917         * i-cobol.adb (Valid_Numeric): Handle zero length case.
25919 2005-01-20  Richard Henderson  <rth@redhat.com>
25921         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
25922         a-intnam-linux.ads and system-linux-alpha.ads.
25923         * a-intnam-linux-alpha.ads: Remove file.
25924         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
25925         * system-linux-alpha.ads: New file.
25927 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
25929         PR ada/13470
25930         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
25931         set to the new string.
25933 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
25935         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
25936         to True.
25938 2005-01-18  Richard Henderson  <rth@redhat.com>
25940         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
25941         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
25942         for alpha-linux.
25943         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
25945 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
25947         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
25948         (GCC_ZCX_Support): Likewise.
25950 2005-01-11  Bastian Blank  <waldi@debian.org>
25952         * system-linux-s390.ads: Define Preallocated_Stacks.
25953         * system-linux-s390x.ads: Likewise.
25955 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
25957         * gnat_ugn.texi: Fix texi errors with null variables.
25959 2005-01-03  Thomas Quinot  <quinot@adacore.com>
25961         * gen-soccon.c: New utility program to generate g-soccon.ads
25962         automatically.
25964         * socket.c, gsocket.h: Split inclusion of system header files into a
25965         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
25967         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
25968         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
25969         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
25970         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
25971         should not be edited by hand anymore, but should be regenerated using
25972         gen-soccon.
25974 2005-01-03  Robert Dewar  <dewar@adacore.com>
25975             Ed Schonberg  <schonberg@adacore.com>
25976             Vincent Celier  <celier@adacore.com>
25978         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
25979         on/off, since this is an obsolescent feature, for which we now generate
25980         a warning.
25982         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
25983         warning mode is set and obsolescent usage of this attribute occurs.
25984         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
25985         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
25986         predates, and partly motivates, the adoption of the AI.
25987         Implement new Ada 2005 attribute Mod
25989         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
25990         attribute Mod.
25992         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
25994         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
25995         pragma restrictions.
25996         New entry for Ada 2005 attribute Mod.
25998         * par-prag.adb:
25999         Add recognition of new pragma Restrictions No_Dependence
26000         Recognize restriction No_Obsolescent_Features at parse time
26002         * bcheck.adb: Add circuitry for checking for consistency of
26003         No_Dependence restrictions.
26005         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
26006         restrictions.
26008         * restrict.ads, restrict.adb: Add subprograms to deal with
26009         No_Dependence restrictions.
26011         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
26012         restrictions.
26014         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
26015         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
26017         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
26018         dummy parameter to scng instantiation.
26019         Needed for new restriction No_Obsolescent_Features
26021         * scn.adb: (Obsolescent_Check): New procedure
26022         Needed for new restriction No_Obsolescent_Features
26024         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
26025         specified by AI-285, needed for implementation of AI-388 (adding greek
26026         pi to Ada.Numerics).
26027         Add new generic formal to scng, needed for new restriction
26028         No_Obsolescent_Features.
26030         * s-rident.ads: Add new restriction No_Obsolescent_Features.
26032         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
26033         restrictions lines.
26034         (Scan_ALI): When finding an unexpected character on an R line, raise
26035         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
26036         Ignore_Errors is True, default restrictions are set and scanning of the
26037         ALI file continues with the next line. Also, when Bad_R_Line is raised
26038         and Ignore_Errors is True, skip to the end of le line.
26040         * sem_ch10.adb: Check that explicit with's do not violate
26041         No_Dependence restrictions.
26042         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
26043         illegal context clauses containing child units of instance.
26045         * sem_prag.adb: Processing and checking for new No_Dependence
26046         restrictions.
26047         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
26048         analyze and check the External argument.
26050         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
26052 2005-01-03  Robert Dewar  <dewar@adacore.com>
26054         * atree.adb: Add a fifth component to entities
26055         This allows us to add 32 flags and four new fields
26057         * atree.ads: Add a fifth component to entities
26058         This allows us to add 32 flags and four new fields
26060         * einfo.ads, einfo.adb: Document new fields and new flags now available
26061         Add routines for printing new fields
26063         * treepr.adb: Call routines to print out additional fields if present
26065 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
26067         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
26068         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
26070         * Makefile.in: Add support to build shared Ada libraries on solaris x86
26071         Remove gpr2make, replaced by gprmake.
26072         Remove references to gnatmem and libaddr2line.
26073         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
26074         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
26075         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
26076         a-numaux-darwin.ads and a-numaux-darwin.adb
26077         Enable mlib-tgt-lynxos.adb on lynxos.
26079         * Make-lang.in: Remove rules for gpr2make.
26080         When generating sdefault.adb, do not call Relocate_Path
26081         on S3 for function Target_Name, as it is not a path.
26082         Remove references to gnatmem and libaddr2line.
26084         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
26085         files.
26087 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
26089         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
26090         address is incompatible with its base type alignment constraints when
26091         this can be decided statically.
26093 2005-01-03  Olivier Hainque  <hainque@adacore.com>
26095         * decl.c (compatible_signatures_p): New function. The intended purpose
26096         is to check if two function signatures for a call-site and a callee are
26097         compatible enough for the call to be valid. The underlying purpose is
26098         to check if a call to a mapped builtin is using the right interface.
26099         The current code actually does not check antyhing - this a placeholder
26100         for future refinements.
26101         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
26102         builtin calls for convention Intrinsic.
26104         * gigi.h (builtin_decl_for): Declare (new function).
26106         * utils.c (gnat_install_builtins): Install the target specific builtins.
26107         (builtin_decl_for): New function, provide a dummy body for now.
26109 2005-01-03  Geert Bosch  <bosch@adacore.com>
26111         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
26112         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
26113         (Pred): Implement in terms of Succ.
26115         * trans.c (convert_with_check): Reimplement conversion of float to
26116         integer.
26118 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
26119             Vincent Celier  <celier@adacore.com>
26121         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
26122         bounds can be negative, and must be declared Int, not Nat.
26124         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
26125         array is checked after using the index in the array.
26127         * makegpr.adb (Add_Switches): Check if there is a package for the
26128         processor. If there is no package, do not look for switches.
26130 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
26132         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
26133         generation of predefined stream operations (specs and bodies) should
26134         proceed. Under various restrictions these subprograms must not be
26135         generated.
26137 2005-01-03  Thomas Quinot  <quinot@adacore.com>
26139         * exp_dist.adb:
26140         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
26141         amount of PCS-specific code in RACW stubs generation.
26142         (Copy_Specification): Set Etype on copied formal parameter entities, as
26143         this information is needed for PolyORB stubs generation.
26144         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
26145         variable Dynamic_Async.
26146         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
26147         (Build_RPC_Receiver_Specification): Make generic again, as recent
26148         changes have allowed RPC receivers to have the same profile for both
26149         variants of the PCS.
26150         Reorganise RPC receiver generation to reduce differences between the
26151         structure of GARLIC and PolyORB RPC receivers.
26152         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
26153         PCS-specific.
26154         Simplify elaboration code for RCI packages.
26156         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
26157         generation to reduce differences between the structure of GARLIC and
26158         PolyORB RPC receivers.
26160         * s-stratt.adb: Fix typo in comment.
26162 2005-01-03  Thomas Quinot  <quinot@adacore.com>
26164         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
26165         copied from Make_Init_Call).
26167         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
26168         reads and assignments on a temporary variable declared with appropriate
26169         discriminants.
26171 2005-01-03  Robert Dewar  <dewar@adacore.com>
26173         * i-c.adb (To_C): Raise CE if string is null and Append_Null
26175 2005-01-03  Robert Dewar  <dewar@adacore.com>
26177         * i-cstrin.adb (Update): Do not append a null in form called with a
26178         String. This avoids unintended behavior.
26180 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
26182         PR ada/17527
26183         * init.c: Fix warnings on Free BSD section.
26185 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
26187         PR ada/16949
26188         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
26189         xsinfo.adb).
26191 2005-01-03  Vincent Celier  <celier@adacore.com>
26193         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
26194         libraries when Unique_Compile is True (-u switch).
26195         (Gnatmake): ditto.
26197 2005-01-03  Robert Dewar  <dewar@adacore.com>
26199         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
26200         upper case letter or underscore after W, as allowed by spec.
26202 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
26204         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
26205         darwin port by using proper type definitions from header files.
26206         Use SIGTERM instead of SIGABRT for SIGADAABORT.
26208 2005-01-03  Robert Dewar  <dewar@adacore.com>
26210         * par.adb: Enhance error message handling for configuration file
26211         pragmas.
26213 2005-01-03  Robert Dewar  <dewar@adacore.com>
26215         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
26216         removed during the previous update (test properly for case of dividing
26217         largest negative number by -1, which generates overflow).
26219 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
26220             Sergey Rybin  <rybin@adacore.com>
26222         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
26223         to use as the defining identifier for a formal package.
26224         (Remove_Parent): If the instance takes place within (an instance of)
26225         a sibling, preserve private declarations of common parent.
26227 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
26229         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
26230         to determine whether one of the operands is a fixed-point type for
26231         which a user-defined multiplication or division operation might be
26232         defined.
26234         * sem_res.adb (Valid_Conversion): The legality rules for conversions
26235         of access types are symmetric in Ada 2005: either designated type can
26236         be unconstrained.
26238 2005-01-03  Vincent Celier  <celier@adacore.com>
26240         * s-fileio.adb (Temp_File_Record): Change length of string component
26241         Name from L_tmpnam + 1 to max_path_len + 1.
26243 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
26245         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
26246         Self_Id.Deferral_Level = 0.
26247         (Do_Pending_Action): Move this function to the spec.
26249         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
26250         Do_Pending_Action explicitely when needed, in case we're using
26251         No_Abort restrictions.
26253         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
26254         deferral level since it will not get changed by the generated code.
26255         Keeping a default value of 1 would prevent some operations (e.g.
26256         select or delay) to proceed successfully.
26258 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
26259             Robert Dewar  <dewar@adacore.com>
26260             Cyrille Comar  <comar@adacore.com>
26262         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
26263         porting guide chapter (vms version).
26264         Revised doc title (removed "for native platforms") and subtitle.
26265         Add discussion on warning flag for obsolescent features. First we
26266         note that it applies to obsolete GNAT features, which was previously
26267         omitted. Second we contrast the behavior with that of the new
26268         Ada 2005 AI-368 restriction No_Obsolescent_Features.
26269         Preliminary rewriting of GNAT & libraries chapter in order to take
26270         into account default project locations & new project manager
26271         capabilities.
26273 2005-01-03  Robert Dewar  <dewar@adacore.com>
26275         * cstand.adb (Create_Operators): Clean up format and documentation of
26276         unary and binary operator result tables. No change in code, just
26277         reformatting and addition of comments.
26279         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
26280         sem_ch2.adb: Minor reformatting
26282         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
26283         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
26284         comments for Tree_Read and Tree_Write.
26286 2005-01-03  Pascal Obry  <obry@adacore.com>
26288         * exp_attr.ads: Minor reformatting.
26290 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
26292         * comperr.adb (Compiler_Abort): Add specialized message for GAP
26293         versions.
26295 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
26297         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
26298         whether the ancestor type is private, as may be the case with nested
26299         instantiations.
26301 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
26303         PR ada/19128
26304         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
26306 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
26308         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
26309         * utils2.c (build_unary_op): Likewise.
26311 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26313         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
26315 2004-12-19  Richard Henderson  <rth@redhat.com>
26317         * trans.c (gigi): Update gimplify_body call.
26319 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
26321         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
26323 2004-12-07  Ed Falis  <falis@adacore.com>
26325         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
26326         current task being suspended.
26328         * init.c (__gnat_clear_exception): added to reset VxWorks exception
26329         count.
26330         (__gnat_map_signal): removed test for current task being suspended.
26332 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
26334         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
26335         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
26336         targets (such as AAMP).
26338 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
26340         * atree.adb (Visit_Itype): Create a new name for the generated itype,
26341         because the back-end may otherwise treat it as a redefinition of the
26342         old symbol.
26344 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
26346         * back_end.adb (Scan_Back_End_Switches): Accept --param.
26348         * lang-specs.h: Accept --param.
26350 2004-12-07  Vincent Celier  <celier@adacore.com>
26352         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
26353         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
26354         Current_Body_Suffix => Ada_Body_Suffix).
26355         Take into account Externally_Built attribute.
26357         * clean.adb (In_Extension_Chain): Always return False when one of the
26358         parameter is No_Project.
26359         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
26360         Ada_Language_Index).
26361         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
26362         Process_Languages for procedure Parse).
26364         * gnatcmd.adb (Carg_Switches): New table.
26365         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
26366         Adapt to name changes in package Prj (Current_Spec_Suffix =>
26367         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
26369         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
26370         Header_Num and function Hash are now declared in package Prj,
26371         not Prj.Com.
26373         * prj.adb (Suffix_Of): New function.
26374         (Set (Suffix)): New procedure.
26375         (Hash): One function moved from Prj.Com
26376         (Is_Present, Language_Processing_Data_Of): New functions
26377         (Set): Two new procedures
26378         (Add_Language_Name, Display_Language_Name): New procedures
26380         * prj.ads: (Suffix_Of): New function
26381         (Set (Suffix)): New procedure
26382         Add several types and tables for multi-language support.
26383         (Header_Num): Type moved from Prj.Com
26384         (Hash): Two functions moved from Prj.Com
26385         (Is_Present, Language_Processing_Data_Of): New functions
26386         (Set): Two new procedures
26387         (Add_Language_Name, Display_Language_Name): New procedures
26388         (Naming): Component name changes:
26389         Current_Spec_Suffix => Ada_Spec_Suffix,
26390         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
26391         Impl_Suffixes, Supp_Suffixes.
26392         (Project_Data): New components: Externally_Built, Supp_Languages,
26393         First_Language_Processing, Supp_Language_Processing, Default_Linker,
26394         Default_Linker_Path.
26396         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
26397         new package Language_Processing with its attributes (Compiler_Driver,
26398         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
26399         Binder_Driver, Default_Linker).
26401         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
26402         (Header_Num): Type moved to package Prj
26404         * prj-env.adb: Adapt to name changes in package Prj
26405         (Current_Spec_Suffix => Ada_Spec_Suffix,
26406         Current_Body_Suffix => Ada_Body_Suffix).
26408         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
26409         default to the project path, except the "-" is one of the directories
26410         in env var ADA_PROJECT_PATH.
26411         (Current_Project_Path): Global variable, replacing Project_Path
26412         that was in the body of Prj.Part.
26413         (Project_Path): New function
26414         (Set_Project_Path): New procedure
26415         Initialize Current_Project_Path during elaboration of the package
26416         Remove dependency on Prj.Com, no longer needed
26418         * prj-ext.ads (Project_Path): New function
26419         (Set_Project_Path): New procedure
26421         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
26422         suffix is defined for language <lang>.
26423         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
26424         accessing directly the components of Naming.
26425         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
26426         Reorganise of this package.
26427         Break procedure Check in several procedures.
26429         * prj-nmsc.ads: Replace all procedures (Ada_Check,
26430         Other_Languages_Check and Language_Independent_Check) with a single
26431         procedure Check.
26433         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
26434         Process_Languages, no longer needed.
26436         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
26437         Current_Project_Path.
26438         Remove elaboration code, moved to the body of Prj.Ext
26439         Use new function Prj.Ext.Project_Path instead of old variable
26440         Project_Path.
26441         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
26442         When comparing with project paths on the stack, first put the resolved
26443         path in canonical case.
26444         (Parse_Single_Project): Set the path name of the project file in the
26445         tree to the normalized path.
26447         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
26448         parameter Process_Languages, no longer needed.
26449         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
26450         Other_Languages_Check.
26452         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
26453         to store the resolved canonical path of the project file.
26454         Remove dependency to Prj.Com, no longer needed
26456         * prj-util.adb: Adapt to name changes in package Prj
26457         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
26458         Ada_Body_Suffix).
26460         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
26461         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
26462         Externally_Built, Include_Option, Language_Processing.
26464         * makegpr.adb: Numerous changes due to changes in packages
26465         Prj and Prj.Nmsc.
26467         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
26468         default to the project path, except whe "-" is one of the directories
26469         in env var ADA_PROJECT_PATH.
26470         (Gnatls): In verbose mode, add the new section "Project Search Path:"
26472 2004-12-07  Robert Dewar  <dewar@adacore.com>
26474         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
26476         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
26477         set -gnatR3m mode.
26479         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
26480         flag. No longer needed now that we handle this in gnat1drv.adb.
26482         * repinfo.ads: Minor reformatting
26484 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26485             Olivier Hainque  <hainque@adacore.com>
26486             Eric Botcazou  <ebotcazou@adacore.com>
26488         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
26489         TYPE_SIZE_UNIT of result type if SIZE is not specified.
26490         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
26491         of a bitfield, which we know is useless and causes trouble because of
26492         alignment implications.
26494         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
26495         BSS sections.
26496         (process_attributes): Clear DECL_COMMON again when a section attribute
26497         is present.
26498         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
26499         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
26500         (create_field_decl): Special case ADDRESSABLE negative to mean
26501         "no bitfield creation", to be used by make_aligning_type. Don't
26502         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
26503         fields claimed addressable still have to be bitfields. Use
26504         value_factor_p instead of a raw binop construction to check for the
26505         position's alignment.
26507 2004-12-07  Geert Bosch  <bosch@adacore.com>
26509         * eval_fat.adb: Revert previous change.
26511 2004-12-07  Thomas Quinot  <quinot@adacore.com>
26512             Ed Schonberg  <schonberg@adacore.com>
26514         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
26515         with an implicit dereference as its prefix, use
26516         Insert_Explicit_Dereference instead of merely rewriting the prefix into
26517         an explicit dereference. This ensures that a reference to the original
26518         prefix is generated, if appropriate.
26520         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
26521         dereference is rewritten to an explicit one, generate a reference to
26522         the entity denoted by its prefix using the original prefix node, so
26523         the dereference can be properly recorded as a read of the denoted
26524         access value, if appropriate.
26526         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
26527         emitting 'assigned but never read' warning on a variable on the basis
26528         that it has an access type.
26529         (Check_References): Emit unreferenced warning when the scope is a
26530         subprogram body.
26532 2004-12-07  Robert Dewar  <dewar@adacore.com>
26533             Ed Schonberg  <schonberg@adacore.com>
26535         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
26536         intrinsic
26538         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
26539         leaving call unchanged.
26540         This deals with the case where the pragma Import specified
26541         an external name, to be handled by the back end.
26543         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
26544         subprogram which is Imported with convention Intrinsic if an
26545         External_Name argument is specified.
26546         (Process_Import_Or_Interface): Properly diagnose link name argument.
26547         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
26548         with Sem_Ch6.Cannot_Inline.
26549         (Process_Inline): Provide separate warning for inapplicable inline
26550         pragma.
26551         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
26552         treatment is uniform on different targets.
26554 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
26556         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
26557         construct is rewritten, preserve end label to permit source navigation.
26559 2004-12-07  Thomas Quinot  <quinot@adacore.com>
26561         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
26562         Specific_Build_Stub_Target): New subprograms.
26563         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
26564         the PCS implementation used, using the above PCS-customized subprograms.
26565         Minor reformatting.
26566         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
26567         for generation of DSA code targeted to the PolyORB PCS.
26568         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
26569         implementation of the partition communication subsystem in ancillary
26570         subprograms.
26571         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
26572         PolyORB_Support.Build_Stub_Type): New subrograms containing the
26573         PCS-specific part of Add_Stub_Type.
26574         (Insert_Partition_Check): Use runtime library function to perform
26575         E.4(19) check.
26577         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
26578         (RE_Same_Partition): New entity, from s-parint.
26580         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
26582 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
26584         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
26585         Output the copyright message on a separate line from the version
26586         message.
26588 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
26590         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
26591         compile-time warning.
26593 2004-12-07  Robert Dewar  <dewar@adacore.com>
26595         * g-regpat.adb: (Match): Change a misuse of or to or else
26597 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
26599         * lib-xref.adb:
26600         (Generate_Reference): Handle properly a reference to an entry formal,
26601          when an accept statement has a pragma Unreferenced for it.
26603         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
26604         and the Has_Pragma_Unreferenced flag for each formal before analyzing
26605         the body, to ensure that warnings are properly emitted for each accept
26606         statement of a given task entry.
26608 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
26610         * Makefile.in: Add support for foreign threads on VMS.
26612 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26614         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
26615         Remove.
26616         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
26618         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
26620         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
26621         exception.
26622         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
26624 2004-12-07  Robert Dewar  <dewar@adacore.com>
26626         * nlists.adb (Prepend_Debug): Remove parameters and nest within
26627         Prepend.
26628         (Remove_Next_Debug): Same fix
26630         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
26631         maintain back pointers now, though we did not used to, and comments
26632         were out of date).
26633         (Prepend): Remove pragma Inline.
26634         (Remove_Next): Same cleanup
26636 2004-12-07  Thomas Quinot  <quinot@adacore.com>
26638         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
26639         used to record an implicit dereference as a read operation on its
26640         prefix when operating under -gnatc. Necessary to avoid spurious
26641         'variable assigned but never read' warnings in that mode.
26642         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
26643         is a non-overloaded implicit dereference, call the above subprogram to
26644         ensure proper recording of references.
26646 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
26648         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
26649         to be resolved later as part of Analyze_Iteration_Scheme's call to
26650         Make_Index.
26652 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
26654         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
26655         prefix is not a scalar type, place error message on prefix, not on
26656         type entity.
26658 2004-12-07  Bernard Banner  <banner@adacore.com>
26660         * vxaddr2line.adb: Add support for x86 vxworks
26662 2004-12-07  Thomas Quinot  <quinot@adacore.com>
26664         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
26665         documentation of the behaviour of these functions when passed an IP
26666         address that has no record in the system hosts database and no reverse
26667         record in the DNS.
26669         * cstand.adb, a-tags.ads: Fix typos in comment.
26671 2004-12-07  Robert Dewar  <dewar@adacore.com>
26673         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
26674         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
26675         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
26676         s-poosiz.ads: Minor reformatting
26678         * make.adb: Minor reformatting
26679         Add some ??? comments asking for more comments
26681         * s-poosiz.adb: Minor reformatting
26682         Add comments on alignment requirement
26684         * sinfo.ads: Remove obsolete comment and fix typo.
26686 2004-12-07  Vincent Celier  <celier@adacore.com>
26687             Sergey Rybin  <rybin@adacore.com>
26689         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
26690         Files" with the new tool and package names.
26691         Reformatting to suppress most of the warnings for line too long
26692         Document the new section "Project Search Path:" in the output of
26693         gnatls -v.
26694         Add gnatmetric section
26696 2004-12-07  Vincent Celier  <celier@adacore.com>
26698         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
26699         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
26700         and -eit to -ept. Added qualifier
26701         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
26703 2004-11-27  Andreas Schwab  <schwab@suse.de>
26705         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
26707 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
26709         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
26710         internal implementation unit GNAT.Sockets.Thin,
26711         as their usage for sockets is non-portable (using the read and write
26712         functions from the system runtime library is fine on UNIX but won't
26713         work under Windows).
26715         * mingw32.h: Update copyright notice.
26717 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
26719         * ada-tree.h: Minor reformatting of previous change to avoid lines
26720         longer than 79 characters.
26722 2004-11-25  Olivier Hainque  <hainque@adacore.com>
26724         * tb-gcc.c: GCC infrastructure based implementation of
26725         __gnat_backtrace.
26727 2004-11-24  Steven Bosscher  <stevenb@suse.de>
26729         * misc.c (gnat_post_options): Don't clear
26730         flag_inline_functions.
26732 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
26734         PR ada/17986
26735         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
26736         tree.
26738 2004-11-21  Andreas Jaeger  <aj@suse.de>
26740         * stylesw.adb: Change Style_Check_Subprogram_Order to
26741         Style_Check_Order_Subprograms.
26743 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
26745         * adaint.h, adaint.c
26746         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
26747         to avoid warnings.
26748         Add also a cast to kill another warning.
26749         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
26750         parameter with the priority class of the parent process instead of
26751         always using the NORMAL_PRIORITY_CLASS.
26752         (__gnat_dup): New function.
26753         (__gnat_dup2): New function.
26754         (__gnat_is_symbolic_link): Enable the effective body of this
26755         function when __APPLE__ is defined.
26757         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
26758         Update comments.
26760 2004-11-18  Olivier Hainque  <hainque@adacore.com>
26762         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
26763         address of which may be used to represent "others" and "all others"
26764         choices in exception tables, instead of the current harcoded
26765         (void *)0 and (void *)1.
26766         (Setup_Exception): Do nothing in the GNAT SJLJ case.
26768         * gigi.h (others_decl, all_others_decl): New decls representing the
26769         new Others_Value and All_Others_Value objects.
26770         (struct attrib): Rename "arg" component as "args", since GCC expects a
26771         list of arguments in there.
26773         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
26774         corresponding objects exported by a-exexpr, instead of hardcoded dummy
26775         addresses.
26777         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
26778         others_decl and all_others_decl instead of hardcoded dummy addresses
26779         to represent "others" and "all others" choices, which is cleaner and
26780         more flexible with respect to the possible eh pointer encoding policies.
26782         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
26783         (process_attributes): Account for the naming change of the "args"
26784         attribute list entry component.
26786         * decl.c (build_attr_list): Rename into prepend_attributes to allow
26787         cumulating attributes for different entities into a single list.
26788         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
26789         attributes for the current entity and propagate first subtype
26790         attributes to other subtypes.
26791         <E_Procedure>: Attribute arguments are attr->args and not
26792         attr->arg any more.
26793         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
26794         argument provided, as this is what GCC expects. Use NULL_TREE instead
26795         of 0 for trees.
26797 2004-11-18  Robert Dewar  <dewar@adacore.com>
26799         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
26800         Minor reformatting througout (including new function specs)
26801         Add ??? comments asking for clarification.
26803 2004-11-18  Thomas Quinot  <quinot@adacore.com>
26805         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
26806         incomplete duplicate implementation of this subprogram from butil.
26808 2004-11-18  Thomas Quinot  <quinot@adacore.com>
26810         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
26811         procedures factors the common processing for building an RPC receiver
26812         for an RCI package or an RACW type.
26813         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
26814         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
26815         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
26816         in use.
26817         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
26818         Add_RACW_Features.
26819         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
26820         Add_RAST_Features.
26821         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
26822         distribution subprogram identifiers that are either subprogram numbers
26823         or strings.
26824         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
26825         string distribution identifiers assigned to a given subprogram.
26826         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
26827         (Add_RAS_Dereference_TSS): Add comments.
26828         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
26829         is not referenced yet because it will be used by the PolyORB DSA
26830         implementation.
26831         (Insert_Partition_Check): Remove fossile code.
26832         (First_RCI_Subprogram_Id): Document this constant.
26833         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
26834         RAS_Access TSS.
26835         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
26836         replaced with calls to Get_Library_Unit_Name_String. Previously there
26837         were several instances of the same code in different locations in the
26838         compiler; this checkin completes the replacement of all of these
26839         instances with calls to a common subprogram.
26840         Minor reformatting.
26842         * sem_dist.adb: Remove comment noting that RPC receiver generation
26843         should be disabled for RACWs that implement RASs.
26844         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
26846         * sem_util.ads, sem_util.adb (Has_Stream): New function
26847         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
26848         qualified name of a library unit into the name buffer.
26849         (Note_Possible_Modification): Generate a reference only
26850         if the context comes from source.
26852         * snames.ads (PCS_Names): New subtype corresponding to names of
26853         supported implementations of the Partition Communication Subsystem
26854         (PCS) (i.e. the runtime library support modules for the distributed
26855         systems annex).
26857 2004-11-18  Robert Dewar  <dewar@adacore.com>
26858             Ed Schonberg  <schonberg@adacore.com>
26860         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
26861         (Has_Rep_Pragma): New function
26862         (Has_Attribute_Definition_Clause): New function
26863         (Record_Rep_Pragma): Moved here from sem_ch13.adb
26864         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
26866         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
26868         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
26869         (Expand_Pragma_Psect_Object): New procedure
26870         These procedures contain the revised and cleaned up processing for
26871         these two pragmas. This processing was formerly in Sem_Prag, but
26872         is more appropriately moved here. The cleanup involves making sure
26873         that the pragmas are properly attached to the tree, and that no
26874         nodes are improperly shared.
26876         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
26877         pragmas to Exp_Prag, which is more appropriate.
26878         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
26879         check for duplicates Remove use of Is_Psected flag, no longer needed.
26880         Use new Make_String_Literal function with string.
26882         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
26883         that are functions return universal values, that have to be converted
26884         to the context type.
26885         Use new Make_String_Literal function with string.
26886         (Get_Stream_Convert_Pragma): New function, replaces the use of
26887         Get_Rep_Pragma, which had to be kludged to work in this case.
26889         * freeze.adb: Use new Has_Rep_Pragma function
26891         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
26892         function with string.
26893         Use new Has_Rep_Pragma function.
26895         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
26896         string argument.
26898 2004-11-18  Robert Dewar  <dewar@adacore.com>
26900         * errout.ads, errout.adb: (First_Sloc): New function
26902         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
26903         check (-gnatyx) instead of being included as a redundant construct
26904         warning.
26906         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
26907         Style_Check_Order_Subprograms.
26909         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
26910         stylesw.adb: Add Style_Check_Xtra_Parens
26912         * usage.adb: Add line for -gnatyx (check extra parens)
26914         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
26916 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
26917             Robert Dewar  <dewar@adacore.com>
26919         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
26920         discriminant of a constrained subtype, analyze the copy of the
26921         corresponding constraint, because in some cases it may be only
26922         partially analyzed.
26923         Removes long-lived ??? comments.
26925         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
26926         handled controlled or secondary-stack expressions within the
26927         iteration_scheme of a loop.
26929         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
26930         bounds that may contain functions calls, to prevent memory leaks when
26931         the bound contains a call to a function that uses the secondary stack.
26932         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
26933         generate temporaries for loop bounds that might contain function calls
26934         that require secondary stack and/or finalization actions.
26936         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
26937         selected component and the selector is overloadable (not just a
26938         function) treat as function call, Analyze_Call will disambiguate if
26939         necessary.
26940         (Analyze_Selected_Component): Do not generate an actual subtype for the
26941         selected component if expansion is disabled. The actual subtype is only
26942         needed for constraint checks.
26943         (Analyze_Allocator): If restriction No_Streams is set, then do
26944         not permit objects to be declared of a stream type, or of a
26945         composite type containing a stream.
26947         * restrict.ads: Remove the a-stream entry from Unit_Array, since
26948         No_Streams no longer prohibits with'ing this package.
26950         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
26951         discriminants, but the parent base has unknown discriminants, there is
26952         no discriminant constraint to inherit. Such a discrepancy can arise
26953         when the actual for a formal type with unknown discriminants is a
26954         similar private type whose full view has discriminants.
26955         (Analyze_Object_Declaration): If restriction No_Streams is set, then
26956         do not permit objects to be declared of a stream type, or of a
26957         composite type containing a stream.
26959 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
26961         * exp_dbug.ads: Update documentation to reflect simpler encoding for
26962         protected operations.
26964         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
26965         generated name, it complicates decoding in gdb and hinders debugging
26966         of protected operations.
26967         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
26968         flag for the protected entry barrier function.
26969         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
26970         flag for the protected entry function.
26972 2004-11-18  Nicolas Setton  <setton@adacore.com>
26974         * expect.c: Define __unix__ when __APPLE__ is defined.
26976         * Makefile.in: Inform the value of the variable GMEM_LIB in the
26977         Darwin-specific section.
26979         * lang-specs.h: Change the placement of the %1 marker.
26980         Works around the fact that gcc adds -fPIC by default under Darwin.
26982 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
26984         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
26985         type of the object with the packed array type, set the Analyzed flag
26986         on the object if it is an entity or simple indexed component, to avoid
26987         spurious type errors.
26989 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
26991         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
26992         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
26993         separate line from the version message.
26995 2004-11-18  Ed Falis  <falis@adacore.com>
26997         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
26998         vthreads.
26999         (init_float): Eliminate initialization of floating point status for
27000         AE653. The instructions have no effect for vThreads.
27002 2004-11-18  Vincent Celier  <celier@adacore.com>
27004         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
27005         gnatbind is invoked with -shared.
27007 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
27009         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
27010         for Detect_Blocking which is redundant with the check done within the
27011         procedure Protected_Single_Entry_Call.
27012         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
27013         Detect_Blocking which is redundant with the check done within the
27014         procedure Protected_Single_Entry_Call.
27016 2004-11-18  Vincent Celier  <celier@adacore.com>
27018         * makegpr.adb (Compile): Put the compiling switches (in package
27019         Compiler and on the command line) immediately after "-c", instead of
27020         at the end of the command line invocation of the compiler, when
27021         compiling a non-Ada file.
27022         (Build_Global_Archive): When there is no need to rebuild the archive,
27023         set Global_Archive_Exists, so that the archive is passed to the linker
27024         if one is needed.
27026 2004-11-18  Robert Dewar  <dewar@adacore.com>
27027             Sergey Rybin  <rybin@adacore.com>
27029         * gnat_ugn.texi:
27030         Remove extra paren check from list of checks for redundant constructs
27031         Add documentation of new -gnatyx style check (check extra parens)
27032         Remove paragraph about gnatelim debug options.
27034         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
27035         objects rather than forbidding dependencies on the package Ada.Streams.
27037         * sinfo.ads: Add ??? note that we should document pragmas passed to
27038         back end.
27040         * g-expect.ads: Fix a few typos in the comments.
27042 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
27044         * misc.c (gnat_handle_option): Use %< and %> for quoting in
27045         warning message.
27047 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
27049         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
27051 2004-11-07  Andreas Schwab  <schwab@suse.de>
27053         * Makefile.in (install-gnatlib): Remove spurious hyphen.
27055 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
27057         PR ada/18228
27058         * Makefile.in (darwin): Set soext to .dylib.
27060 2004-10-26  Vincent Celier  <celier@gnat.com>
27061             Thomas Quinot   <quinot@act-europe.fr>
27063         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
27064         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
27065         there is no use of GNAT.Sockets.Constants.
27066         Remove remaining pragma Import for C_Write
27067         Remove C_Read and C_Write from internal implementation unit
27068         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
27069         the read and write functions from the system runtime library is fine
27070         on UNIX but won't work under Windows).
27072         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
27073         (Check_Selector): Use C_Recv instead of C_Read.
27074         Selectors are the GNAT.Sockets abstraction to perform a select()
27075         call on a set of descriptors. To allow abortion of an ongoing
27076         select operation, some data is written to a dedicated socket that
27077         is always monitored.
27078         Under Windows, the write and read library functions cannot operate
27079         on sockets, so we need to use send and recv instead, which is portable
27080         across all supported platforms.
27082         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
27083         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
27084         (using the read and write functions from the system runtime library is
27085         fine on UNIX but won't work under Windows).
27087 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
27089         * mlib-tgt-darwin.adb: New file.
27091         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27092         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27093         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27094         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
27095         subprogram body.
27097         * Makefile.in: Add support for building shared libraries under Darwin.
27098         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
27099         the low level EH init subprogram to be called from __gnat_initialize.
27101         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
27102         indicates which options to pass to the archive indexer.
27104         * mlib-utl.adb: Add support for calling ranlib with additional
27105         options. This is needed for instance under Mac OS X.
27106         (Ranlib_Options): New global variable, used to store the potential
27107         options to pass to ranlib.
27108         (Ar): Use Ranlib_Options when spawning ranlib.
27109         (Initialize): Set the value of ranlib option.
27111 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
27113         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
27114         instead of 8K, to reflect the real potential needs for stack-checking
27115         in the ZCX case.
27117 2004-10-26  Pascal Obry  <obry@gnat.com>
27119         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
27121         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
27122         Windows only the initial thread stack size can be set so it is good to
27123         start we a low stack size.
27124         The OS will adjust the size as needed.
27126 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
27127             Nicolas Setton  <setton@act-europe.fr>
27129         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
27130         "__unix__" instead of "unix".
27131         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
27132         sections were just mistakenly ignored. The former is
27133         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
27134         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
27135         of hpux. This prevents an unwanted definition of the symbol
27136         convert_addresses in adaint.o.
27138 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
27140         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
27141         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
27143 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
27145         * a-filico.ads, a-filico.adb: fix incorrect header.
27147 2004-10-26  Javier Miranda  <miranda@gnat.com>
27149         * a-ststio.ads: Fix typo in identifier
27151 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
27153         * sem_ch4.adb: Minor reformatting.
27155 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27157         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
27158         enabled, check the result of unary and binary operations when the
27159         expression is the right-hand side of an assignment.
27161 2004-10-26  Vincent Celier  <celier@gnat.com>
27163         * clean.adb (Delete): Do not output warnings when in quiet output and
27164         not in verbose mode.
27165         (Force_Deletions): New Boolean flag, defaulted to False
27166         (Delete): Only delete a file if it is writable, and when
27167         Force_Deletions is True.
27168         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
27169         (Usage): Line for new switch -f
27170         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
27171         own.
27173 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
27175         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
27176         JM type only if its size matches that of the wrapper.  When a size is
27177         prescribed and the field is not aliased, remove the wrapper of a JM
27178         type only if the size is not greater than that of the packed array.
27179         (gnat_to_gnu_entity): Change the extension of packed array wrappers
27180         from LJM to JM.
27182 2004-10-26  Geert Bosch  <bosch@gnat.com>
27184         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
27185         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
27186         (Pred): Implement in terms of Succ.
27188 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27190         * exp_aggr.adb (Safe_Component): An aggregate component that is an
27191         unchecked conversion is safe for in-place use if the expression of the
27192         conversion is safe.
27193         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
27194         be expandable in place even if the aggregate does not come from source.
27195         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
27196         designated object of an allocator in place, rather than building it
27197         first on the stack. The previous scheme forces a full copy of the array,
27198         and may be altogether unsusable if the size of the array is too large
27199         for stack allocation.
27201 2004-10-26  Robert Dewar  <dewar@gnat.com>
27203         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
27204         compares if the component is atomic.
27206         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
27207         array assignment if the component type is atomic.
27209 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27210             Eric Botcazou  <ebotcazou@act-europe.fr>
27212         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
27213         is aliased and is a by_reference type, do not pass by copy.
27214         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
27215         detect whether the call is in the right side of an assignment or
27216         the expression of an object declaration.  Recurse on component
27217         association within aggregates.
27218         Call it in the condition that determines whether the temporary is
27219         necessary for correct stack-checking.
27221 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
27223         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
27224         RACW_Type, used in the PolyORB version.
27225         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
27226         version and the GARLIC version.
27228         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
27229         Rename RCI_Info to RCI_Locator for better consistency between the
27230         GARLIC and PolyORB versions of the distributed systems annex.
27231         (DSA_Implementation_Name): This enumeration lists the possible
27232         implementations of the Partition Communication Subsystem for the
27233         Distributed Systems Annex (DSA). The three available implementations
27234         are the dummy stub implementation (No_DSA), and two versions based on
27235         two different distribution runtime libraries: GARLIC and PolyORB. Both
27236         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
27237         technology.
27238         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
27239         that organization.
27241         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
27242         between the GARLIC and PolyORB versions of the distributed systems
27243         annex.
27244         Remove RE_Unbounded_Reclaim_Pool since it is unused.
27246 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
27248         * gnat1drv.adb: Suppress calling the back end when
27249         Frontend_Layout_On_Target is true.
27251 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
27253         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
27254         Set_Read_Only): New subprograms.
27255         These new routines allow the user to set or unset the Owner execute
27256         and Owner write permission flags on a file.
27258         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
27259         GNAT.OS_Lib.Set_Executable instead of rolling our own.
27261 2004-10-26  Matthew Gingell  <gingell@gnat.com>
27263         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
27265 2004-10-26  Pascal Obry  <obry@gnat.com>
27267         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
27268         memory before the faulting page we properly test the process read
27269         access for this address using appropriate Win32 routine.
27270         (HPUX sections): guard with "__hpux__" instead of "hpux".
27272 2004-10-26  Robert Dewar  <dewar@gnat.com>
27274         * lib-xref.adb (Generate_Reference): Don't complain about reference to
27275         entry parameter if pragma Unreferenced set, since we do not properly
27276         handle the case of multiple parameters.
27278 2004-10-26  Vincent Celier  <celier@gnat.com>
27280         * prj-env.adb: (Contains_ALI_Files): New Boolean function
27281         (Ada_Objects_Path.Add): For a library project, add to the object path
27282         the library directory only if there is no object directory or if the
27283         library directory contains ALI files.
27284         (Set_Ada_Paths.Add.Recursive_Add): Ditto
27286 2004-10-26  Vincent Celier  <celier@gnat.com>
27288         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
27289         extension of library projects.
27291         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
27292         path defaults to ".:<prefix>/lib/gnat".
27293         (Parse): For an extending all project, allow direct import of a project
27294         that is virtually extended.
27296         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
27297         the specified name is directly imported, return its ID. Otherwise, if
27298         an extension of this project is imported, return the ID of the
27299         extension.
27301 2004-10-26  Robert Dewar  <dewar@gnat.com>
27303         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
27304         (Sub3): New procedure, used by Scaled_Divide
27305         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
27306         correct more than one instance of failure to propagate carries
27307         correctly.
27308         (Double_Divide): Handle overflow case of largest negative number
27309         divided by minus one.
27311         * s-arit64.ads (Double_Divide): Document that overflow can occur in
27312         the case of a quotient value out of range.
27313         Fix comments.
27315 2004-10-26  Robert Dewar  <dewar@gnat.com>
27317         * s-bitops.adb (Bit_Eq): Remove redundant check.
27319         * s-bitops.ads: Minor comment updates
27320         Change some occurrences of Address to System.Address
27322         * s-carsi8.ads: Fix minor cut-and-paste error in comments
27324 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27326         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
27327         accessibility check to prefix that is a protected operation.
27329 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27331         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
27332         empty, post message on stub.
27334 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27335             Javier Miranda  <miranda@gnat.com>
27337         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
27338         current instance appears within a unit that is directly in the context
27339         of the main unit.
27340         Used to determine whether the body of the instance should be analyzed
27341         immediately after its spec, to make its subprogram bodies available
27342         for front-end inlining.
27343         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
27344         constraint is not allowed on the component type (AARM 12.5.3(3))
27346 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
27348         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
27349         'Storage_Pool): enhance, document & limit detection of non-sharable
27350         internal pools.
27352         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
27354         * s-pooglo.ads: Add more documentation now that this pool is properly
27355         documented.
27357 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27359         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
27360         or protected type with discriminants, do not constrain the
27361         corresponding record type if the subtype declaration has no
27362         discriminant constraints. This can be the case in source code, or in
27363         the subtype declaration created to rename an actual type within an
27364         instantiation.
27366 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27368         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
27369         different kind of stub (possibly wrong name for file), do not check
27370         for conformance.
27371         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
27372         includes call to some function that returns an unconstrained type, do
27373         not inline.
27375 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27377         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
27378         appear in the code for the main unit. Dependencies among units in the
27379         context of the main unit are established when those other units are
27380         compiled. Otherwise spurious elaboration constraints can generate
27381         incorrect elaboration circularities.
27383 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
27384             Ed Schonberg   <schonberg@gnat.com>
27386         * sem_util.adb (Is_Aliased_View): Defend against the case where this
27387         subprogram is called with a parameter that is not an object name. This
27388         situation arises for some cases of illegal code, which is diagnosed
27389         later, and in this case it is wrong to call Is_Aliased, as that might
27390         cause a compiler crash.
27391         (Explain_Limited_Type): Refine previous fix to include
27392         inherited components of derived types, to provide complete information.
27394         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
27395         is the prival for a protected object.
27396         It is necessary to mark this entity as a variable, in addition to
27397         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
27398         modified to avoid checking the Aliased flag on entities that are not
27399         objects. (Checking that flag for non-objects is erroneous and could
27400         lead to a compiler crash).
27402 2004-10-26  Robert Dewar  <dewar@gnat.com>
27404         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
27405         X_Frac = 0.5, then we know that the number X must be positive.
27406         (Succ): Remove the same redundant test, and also fix the primary test
27407         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
27408         Minor reformatting
27409         (Decompose): Add fuller comments to spec
27411 2004-10-26  Pascal Obry  <obry@gnat.com>
27413         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
27414         validity (process must have read access). Set to 0 in all other cases.
27415         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
27416         violation on Win32.
27417         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
27418         segmentation violation.
27420 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
27422         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
27423         whose type is a constructed subtype of an aliased object with an
27424         unconstrained nominal subtype, convert the actual to the constructed
27425         subtype before taking its address.
27427 2004-10-26  Vincent Celier  <celier@gnat.com>
27429         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
27430         (Is_Path_Name_Case_Sensitive): New function
27432         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
27433         (Base_Name, Simple_Name, Current_Directory, Compose,
27434         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
27435         the result.
27437 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
27438             Vasiliy Fofanov  <fofanov@act-europe.fr>
27439             Vincent Celier   <celier@gnat.com>
27441         * gnat_ugn.texi: Generalize "finding memory problems" section into a
27442         "memory management issues" section and document some of the useful
27443         memory pools provided as part of the GNAT library.
27444         Remove "virtual" from declaration of A::method2 in
27445         the simple example of Ada/C++ mixed system.
27446         Library Projects may be virtually extended: their virtual extensions
27447         are not Library Projects.
27448         Added section on extending project hierarchies.
27450 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
27452         * adaint.c (__gnat_get_libraries_from_registry): Cast value
27453         to LPBYTE.
27454         (__gnat_portable_spawn): Remove const.
27456         * mingw32.h (MAXPATHLEN): Check for previous definition.
27458 2004-10-17  Matthias Klose  <doko@debian.org>
27460         * gnatvsn.ads: Set gnat library version to 4.0.
27462 2004-10-05  Vincent Celier  <celier@gnat.com>
27464         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
27466 2004-10-04  Laurent Guerby  <laurent@guerby.net>
27468         PR ada/15156
27469         * Makefile.in: Define and use RANLIB_FLAGS.
27471 2004-10-04  Pascal Obry  <obry@gnat.com>
27473         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
27474         other x86 platforms).
27476 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
27478         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
27479         in general and triggers stack alignment adjustment for thread entry
27480         points on targets where this is necessary.
27482 2004-10-04  Bernard Banner  <banner@gnat.com>
27484         PR ada/13897
27485         * Makefile.in: Add section for powerpc linux
27486         Add variant i-vxwork-x86.ads
27488         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
27490 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
27492         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
27493         table registration calls when need be. Ensures no reference to the crt
27494         ctors symbol are issued in the SJLJ case, which avoids possible
27495         undefined symbol errors in the case of modules to be statically linked
27496         with the kernel.
27498 2004-10-04  Javier Miranda  <miranda@gnat.com>
27500         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
27501         in-line the code corresponding to subprogram Analyze_Actuals. In
27502         addition, analyze the actuals only in case of subprogram call.
27504 2004-10-04  Ed Falis  <falis@gnat.com>
27506         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
27508 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
27510         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
27511         in the documentation.
27513 2004-10-04  Robert Dewar  <dewar@gnat.com>
27515         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
27516         IF and CASE.
27517         (Analyze_Block_Statement): Add circuitry to detect following dead code
27518         (Check_Unreachable_Code): Handle case of block exit
27520 2004-10-04  Robert Dewar  <dewar@gnat.com>
27522         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
27523         (XMatchD): Avoid warning for Logic_Error call
27525 2004-10-04  Robert Dewar  <dewar@gnat.com>
27527         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
27528         consider expressions buried within a procedure actual to be an actual.
27529         This caused some blowups with uses of packed slices within a procedure
27530         actual.
27532 2004-10-04  Robert Dewar  <dewar@gnat.com>
27534         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
27535         longer need to be initialized to zero.
27536         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
27537         initialized to zero.
27539         * checks.adb (Expr_Known_Valid): Packed arrays are now always
27540         considered valid, even if the representation is modular. That's correct
27541         now that we no longer initialize packed modular arrays to zero.
27543         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
27544         suffixes. These are now documented as the only cases in which the
27545         debugger ignores outer records.
27546         Previously, the spec allowed arbitrary suffixes for this purpose.
27547         Change name of LJM to JM for packed array pad records
27548         Create separate section on packed array handling, and add a whole new
27549         set of comments to this section describing the situation with packed
27550         modular types and justification requirements depending on endianness.
27552 2004-10-04  Robert Dewar  <dewar@gnat.com>
27554         * a-except.adb: Add a comment for last change
27556         * einfo.ads: Minor spelling correction in comment
27558         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
27560         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
27561         messages.
27563         * sem_util.ads: Minor comment update
27565 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
27567         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
27568         Inline_Always when in Configurable_Run_Time mode.
27570         * sem_prag.adb (Process_Convention): If entity is an inherited
27571         subprogram, apply convention to parent subprogram if in same scope.
27572         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
27573         when in Configurable_Run_Time mode.
27575 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
27577         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
27578         class_wide type after component list has been inherited.
27580 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
27582         * sem_ch12.adb (Check_Generic_Actuals): New predicate
27583         Denotes_Previous_Actual, to handle properly the case of a private
27584         actual that is also the component type of a subsequent array actual.
27585         The visibility status of the first actual is not affected when the
27586         second is installed.
27587         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
27588         make fully recursive the treatment of formals of packages declared
27589         with a box.
27590         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
27591         the above on exit from an instantiation.
27592         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
27593         current instantiation which is now complete.
27594         (Analyze_Package_Instantiation): No instantiated body is needed if the
27595         main unit is generic. Efficient, and avoid anomalies when a instance
27596         appears in a package accessed through rtsfind.
27598 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
27600         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
27601         do not generate a declaration for a temporary if the call is part of a
27602         library-level instantiation.
27604 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
27606         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
27607         searching for a limited component to flag.
27609         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
27610         expansion of Input, to account for the fact that the implicit call
27611         generated by the attribute reference must freeze the user-defined
27612         stream subprogram. This is only relevant to 'Input, because it can
27613         appear in an object declaration, prior to the body of the subprogram.
27615         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
27616         expansion can proceed and further errors uncovered.
27617         (Minor clean up): Fix cases of using | instead of \ for continuation
27618         messages.
27620 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27622         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
27624         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
27625         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
27626         Use gcc_assert and gcc_unreachable.
27628         * decl.c (gnat_to_gnu_entity, case object): Check and process a
27629         specified alignment before validating size.
27630         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
27631         stripped-down declaration for the type of the inner field when making
27632         a JM type.
27634         * utils.c (finish_record_type): Do not compute the size in units
27635         incrementally. Instead compute it once for the rep clause case.
27636         Use gcc_assert and gcc_unreachable.
27638 2004-10-04  Vincent Celier  <celier@gnat.com>
27640         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
27641         in file name.
27642         (Is_Valid_Path_Name): Take '/' as a directory separator.
27644 2004-10-04  Vincent Celier  <celier@gnat.com>
27646         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
27647         (Extended_Project) only if Extended_Project is defined, to avoid
27648         assertion error.
27649         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
27650         resolved path.
27651         (Parse_Single_Project): Ditto.
27653         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
27654         Add_To_Project_Path for virtual projects.
27656 2004-10-04  Vincent Celier  <celier@gnat.com>
27658         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27659         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27660         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27661         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
27662         parameter Options_2.
27664         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
27665         Build_Dynamic_Library with an empty Options_2.
27667         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
27668         default anymore.
27670         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
27671         directory separator, if any.
27672         (Gprmake): Do not allow mains on the command line for library projects.
27673         Do not attempt to link when the project is a library project.
27674         (Library_Opts): New table to store Library_Options.
27675         (Build_Library): If Library_Options is specified, pass these options
27676         when building a shared library.
27678 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
27680         * s-tposen.adb (Service_Entry): The object must be always unlocked at
27681         the end of this procedure now that the unlock operation was inserted
27682         by the expander.
27684 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
27686         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
27687         corresponding to the Preallocated_Stacks flags in System.
27688         (Get_Target_Parameters): Including the processing for
27689         Preallocated_Stacks.
27691         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
27692         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
27693         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
27694         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
27695         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
27696         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
27697         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
27698         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
27699         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
27700         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
27701         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
27702         used to signal whether the compiler creates the required stacks and
27703         descriptors for the different tasks (when True) or it is done by the
27704         underlying operating system at run time (when False).
27705         It is initially set to False in all targets.
27707         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
27708         if it is supported by the target.
27709         (Make_Task_Create_Call): Pass the stack address if it has been
27710         previously created. Otherwise pass a Null_Address.
27712         * snames.adb: Add _stack.
27714         * snames.ads: Add Name_uStack. Required to allow the expander to
27715         statically allocated task stacks.
27717         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
27718         Stack_Address argument.
27719         Check that its value is equal to Null_Address because this target does
27720         not support the static stack allocation.
27722 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
27724         * usage.adb: Change "pragma inline" to "pragma Inline" in information
27725         and error messages
27727 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
27729         * exp_dist.adb: Split declaration of asynchronous flag out of
27730         Add_RACW_Read_Attribute.
27731         Minor reformatting for better alignment with PolyORB version.
27732         Store the entity for the asynchronous flag of an RACW, rather than the
27733         expression, in the asynchronous flags table. This will allow this flag
27734         to be used in other subprograms beside Add_RACW_Read_Attribute.
27736 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
27738         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
27739         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27740         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
27741         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
27742         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
27743         sockets constant MSG_NOSIGNAL (Linux-specific).
27744         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
27745         all Send operations.
27746         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
27747         from trigerring SIGPIPE.
27748         Rename components to avoid clash with Ada 2005 possible reserved
27749         word 'interface'.
27750         (Check_Selector): When the select system call returns with an error
27751         condition, propagate Socket_Error to the caller.
27753 2004-10-01  Jan Hubicka  <jh@suse.cz>
27755         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
27757 2004-09-23  Robert Dewar  <dewar@gnat.com>
27759         PR ada/17540
27760         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
27761         instead do this at freeze time (we won't do it if there is an address
27762         clause).
27763         Change "pragma inline" to "pragma Inline" in information and error
27764         messages.
27765         Minor reformatting.
27767         * freeze.adb (Check_Address_Clause): Remove previous change, not the
27768         right way of doing things after all.
27769         (Freeze_Entity): For object, set Is_Public for imported entities
27770         unless there is an address clause present.
27772 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
27774         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
27775         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
27776         ensures proper handling of types with rep clauses, which might have
27777         their TYPE_SIZE set already.
27779 2004-09-21  Robert Dewar  <dewar@gnat.com>
27781         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
27782         packed array types in both little- and big-endian cases. This change
27783         ensures that we no longer count on the unused bits being initialized
27784         for such types (and in particular ensures that equality testing will
27785         only read the relevant bits).
27786         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
27787         These changes mean that we no longer need to initialize small packed
27788         arrays.
27789         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
27790         optimization to an LJM field as to its parent field.
27792         * ada-tree.h, trans.c, utils.c, utils2.c:
27793         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
27795 2004-09-20  Jan Hubicka  <jh@suse.cz>
27797         * utils.c (gnat_finalize): Remove.
27798         (end_subprog_body): Directly call cgraph_finalize_function;
27799         do not lower the nested functions.
27801 2004-09-20  Robert Dewar  <dewar@gnat.com>
27803         PR ada/17540
27804         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
27805         if an address clause is present, since that means that the Import
27806         should be ignored.
27808 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
27810         * 5tsystem.ads: Removed, no longer used.
27812 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
27813             Zack Weinberg  <zack@codesourcery.com>
27815         * ada-tree.def: Use tree_code_class enumeration constants
27816         instead of code letters.
27817         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
27818         Update for new tree-class enumeration constants.
27820 2004-09-17  Vincent Celier  <celier@gnat.com>
27822         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
27823         capabilities of the general project manager.
27825 2004-09-09  Vincent Celier  <celier@gnat.com>
27827         * a-direct.ads: Add pragma Ada_05
27828         (Directory_Entry_Type): Give default value to component Kind to avoid
27829         not initialized warnings.
27831         * a-direct.adb (Current_Directory): Remove directory separator at the
27832         end.
27833         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
27834         an existing directory.
27835         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
27836         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
27837         Convert the result to File_Size.
27839         * prj.ads: (Project_Error): New exception
27841         * prj-attr.adb: Except in procedure Initialize, Fail comes from
27842         Prj.Com, not from Osint.
27843         (Attrs, Package_Attributes): Tables moved to private part of spec
27844         (Add_Attribute, Add_Unknown_Package): Moved to new child package
27845         Prj.Attr.PM.
27846         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
27847         Prj.Project_Error after call to Fail.
27848         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
27849         Fail. Check that package name is not already in use.
27851         * prj-attr.ads: Comment updates to indicate that all subprograms may be
27852         used by tools, not only by the project manager, and to indicate that
27853         exception Prj.Prj_Error may be raised in case of problem.
27854         (Add_Unknown_Package, Add_Attribute): Moved to new child package
27855         Prj.Attr.PM.
27856         (Attrs, Package_Attributes): Table instantiations moved from the body to
27857         the private part to be accessible from Prj.Attr.PM body.
27859         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
27860         from new package Prj.Attr.PM.
27861         (Parse_Attribute_Declaration): Call Add_Attribute from new package
27862         Prj.Attr.PM.
27864         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
27866         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
27867         instead of Elaboration_Checks).
27869         * a-calend.adb: Minor reformatting
27871 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27873         * gigi.h (maybe_pad_type): New declaration.
27874         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
27876         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
27878         * cuintp.c: Convert to use buildN.
27880         * decl.c (maybe_pad_type): No longer static.
27881         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
27882         target pointer.
27883         Convert to use buildN.
27885         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
27886         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
27887         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
27888         RHS.
27889         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
27890         (gnat_gimplify_expr, case ADDR_EXPR): New case.
27891         Convert to use buildN.
27893         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
27894         TREE_READONLY for const.
27895         Convert to use buildN.
27897         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
27898         (create_var_decl): Refine when TREE_STATIC is set.
27899         Convert to use buildN.
27901 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
27903         * gnat_ugn.texi: Delete text relating to checking of ali and object
27904         consistency.
27906         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
27907         routines.
27909 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
27911         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
27912         pragmas recognized by GNAT.
27914         * gnat_rm.texi: Document pragma Detect_Blocking.
27916         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
27917         raise Program_Error if called from a protected operation.
27919         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
27920         the protected action nesting level.
27921         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
27922         protected action nesting level.
27923         (Unlock): When pragma Detect_Blocking is active decrease the protected
27924         action nesting level.
27926         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
27927         Protected_Action_Nesting.
27929         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
27930         Common_ATCB record. It contains the dynamic level of protected action
27931         nesting for each task. It is needed for checking whether potentially
27932         blocking operations are called from protected operations.
27933         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
27934         Detect_Blocking is active or not in the partition.
27936         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
27937         raise Program_Error if called from a protected operation.
27938         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
27939         Program_Error if called from a protected operation.
27940         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
27941         Program_Error if called from a protected operation.
27943         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
27944         raise Program_Error if called from a protected operation.
27946         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
27947         raise Program_Error if called from a protected operation, and increase
27948         the protected action nesting level.
27949         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
27950         Program_Error if called from a protected operation, and increase the
27951         protected action nesting level.
27952         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
27953         protected action nesting level.
27955         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
27956         raise Program_Error if called from a protected operation, and increase
27957         the protected action nesting level.
27958         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
27959         Program_Error if called from a protected operation, and increase the
27960         protected action nesting level.
27961         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
27962         raise Program_Error if called from a protected operation.
27963         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
27964         active, raise Program_Error if called from a protected operation.
27965         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
27966         protected action nesting level.
27968         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
27969         insertion of the statement raising Program_Error. The run time
27970         contains the required machinery for handling that.
27972         * sem_util.ads: Change comment associated to procedure
27973         Check_Potentially_Blocking_Operation.
27974         This procedure does not insert a call for raising the exception because
27975         that is currently done by the run time.
27977         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
27979         * init.c: Add the global variable __gl_detect_blocking that indicates
27980         whether pragma Detect_Blocking is active (1) or not (0). Needed for
27981         making the pragma available at run time.
27982         (__gnat_set_globals): Pass and update the detect_blocking parameter.
27984         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
27985         pragma Detect_Blocking is active.
27987         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
27989         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
27990         DB is found in the ali file. Any unit compiled with pragma
27991         Detect_Blocking active forces its effect in the whole partition.
27993         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
27994         Detect_Blocking is active and delay is called from a protected
27995         operation.
27997         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
27998         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
27999         Detect_Blocking is active (0 otherwise).
28000         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
28001         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
28002         otherwise).
28004 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
28006         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
28007         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
28008         package.
28010         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
28011         (Register_Receiving_Stub): Add Subp_Info formal parameter.
28012         Update API in placeholder implemetation of s-parint to reflect changes
28013         in distribution runtime library.
28015         * sem_ch3.adb (Expand_Derived_Record): Rename to
28016         Expand_Record_Extension.
28018         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
28019         primitive operations of potentially distributed object types that have
28020         non-controlling anonymous access formals.
28022         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
28023         subprogram.
28024         New implementation of expansion for remote access-to-subprogram types,
28025         based on the RACW infrastructure.
28026         This version of sem_dist is compatible with PolyORB/DSA as well as
28027         GLADE.
28029         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
28030         Asynchrronous that applies to a remote access-to-subprogram type, mark
28031         the underlying RACW type as asynchronous.
28033         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
28034          __gnat_using_gnu_linker to 1.
28036         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
28037         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
28038         GNAT.Perfect_Hash_Generators, and remove the empty
28039         GNAT.Perfect_Hash package.
28041         * atree.adb: Minor reformatting
28043         * exp_ch3.adb (Expand_Derived_Record): Rename to
28044         Expand_Record_Extension.
28045         (Build_Record_Init_Proc.Build_Assignment): The default expression in
28046         a component declaration must remain attached at that point in the
28047         tree so New_Copy_Tree copies it if the enclosing record type is derived.
28048         It is therefore necessary to take a copy of the expression when building
28049         the corresponding assignment statement in the init proc.
28050         As a side effect, in the case of a derived record type, we now see the
28051         original expression, without any rewriting that could have occurred
28052         during expansion of the ancestor type's init proc, and we do not need
28053         to go back to Original_Node.
28055         * exp_ch3.ads (Expand_Derived_Record): Rename to
28056         Expand_Record_Extension.
28058         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
28059         Returns the RACW type used to implement a remote access-to-subprogram
28060         type.
28061         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
28062         New subprograms. Used to create a proxy tagged object for a remote
28063         subprogram. The proxy object is used as the designated object
28064         for RAS values on the same partition (unless All_Calls_Remote applies).
28065         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
28066         System.Partition_Interface.Get_Unique_Remote_Pointer.
28067         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
28068         Renamed from Add_RAS_*_Attribute.
28069         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
28070         subprograms.
28071         New implementation of expansion for remote access-to-subprogram types,
28072         based on the RACW infrastructure.
28074         * exp_dist.ads (Copy_Specification): Update comment to note that this
28075         function can copy the specification from either a subprogram
28076         specification or an access-to-subprogram type definition.
28078 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
28080         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
28081         in an instance, between an explicit subprogram an one inherited from a
28082         type derived from an actual.
28084         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
28085         add a polling call if the subprogram is to be inlined by the back-end,
28086         to avoid repeated calls with multiple inlinings.
28088         * checks.adb (Apply_Alignment_Check): If the expression in the address
28089         clause is a call whose name is not a static entity (e.g. a dispatching
28090         call), treat as dynamic.
28092 2004-09-09  Robert Dewar  <dewar@gnat.com>
28094         * g-trasym.ads: Minor reformatting
28096         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
28097         packed arrays, since unused bits are expected to be zero for a
28098         comparison.
28100 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
28102         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
28103         comment.
28105 2004-09-09  Pascal Obry  <obry@gnat.com>
28107         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
28108         enable map file generation. Add the right option to generate the map
28109         file if Map_File is set to True.
28111         * gnatdll.adb (Gen_Map_File): New variable.
28112         (Syntax): Add info about new -m (Map_File) option.
28113         (Parse_Command_Line): Add support for -m option.
28114         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
28115         Minor reformatting.
28117 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
28119         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
28120         new gnatdist implementation.
28121         Define a subpackage isolating the output routines specific to this
28122         verbose mode.
28124 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
28126         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
28128         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
28130 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
28132         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
28133         internal unit.
28135         * opt.ads: Add Ada_Version_Runtime constant used to decide which
28136         version of the language is used to compile the run time.
28138 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
28140         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
28141         of variable length temporaries for function return now that the
28142         back-end and gigi support it.
28144 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28146         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
28148         * trans.c (struct stmt_group): Delete field GLOBAL.
28149         (gnat_init_stmt_group): Do not initialize it.
28150         (call_to_gnu): Use save_expr, not protect_multiple_eval.
28151         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
28152         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
28153         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
28154         (start_stmt_group): Likewise.
28155         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
28157         * utils2.c (ggc.h): Include.
28158         (build_call_raise): Call build_int_cst, not build_int_2.
28160         * utils.c (gnat_init_decl_processing): Fix arg to
28161         build_common_tree_nodes.
28162         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
28163         (gnat_define_builtin): Set built_in_decls.
28164         (init_gigi_decls): Call build_int_cst, not build_int_2.
28166         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
28167         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
28168         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
28169         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
28170         SET_TYPE_MODULE): Use them.
28171         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
28172         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
28173         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
28174         SET_TYPE_ADA_SIZE): Likewise.
28175         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
28176         (DECL_CONST_CORRESPONDING_VAR,
28177         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
28178         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
28179         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
28180         (TYPE_RM_SIZE_NUM): New macro.
28181         (TYPE_RM_SIZE): Modified to use above.
28183         * cuintp.c: (build_cst_from_int): New function.
28184         (UI_To_gnu): Use it.
28186         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
28187         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
28188         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
28189         MIN_EXPR for the size, copy it into new.
28191 2004-09-01  Robert Dewar  <dewar@gnat.com>
28193         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
28194         packed indexed component where array is an IN OUT formal. This
28195         generated garbage code previously.
28197         * gnat_ugn.texi: Document -fverbose-asm
28199         * gnat-style.texi: Minor updates (note that boolean constants and
28200         variables are joined with AND/OR rather than short circuit forms).
28202 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
28204         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
28205         it is an upward conversion of an untagged type with no representation
28206         change.
28208 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
28210         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
28211         System.Partition_Interface.
28213         * checks.adb (Apply_Access_Checks): Do not generate checks when
28214         expander is not active (but check for unset reference to prefix of
28215         dereference).
28217         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
28218         pragma Debug as an if statement with a constant condition, for
28219         consistent treatment of entity references contained within the
28220         enclosed procedure call.
28222 2004-09-01  Vincent Celier  <celier@gnat.com>
28224         * bindgen.adb: (Set_EA_Last): New procedure
28225         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
28226         Set_EA_Last.
28227         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
28228         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
28229         linked without errors.
28230         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
28231         ST and EA.
28232         (Gen_Exception_Table_C): Correct same bugs
28234         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
28236         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
28237         on Windows, make sure that the drive letter is in upper case.
28239         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
28240         Windows, when the drive letter is added and Case_Sensitive is True, the
28241         drive letter is forced to upper case.
28243         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
28244         to Options_2 for the call to MLib.Utl.Gcc.
28246         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
28247         directory separator when defining BASE_DIR.
28249 2004-09-01  Pascal Obry  <obry@gnat.com>
28251         * gprcmd.adb (Extend): Do not output trailing directory separator. This
28252         is not needed and it confuses Windows GNU/make which does not report
28253         directory terminated by a slash as a directory.
28254         (gprcmd): Idem for "pwd" internal command.
28256         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
28257         target names rewrite to fix regressions with recent version of
28258         GNU/make. Starting with GNU/make 3.80 the pipe character was not
28259         handled properly anymore.
28261 2004-09-01  Andreas Schwab  <schwab@suse.de>
28263         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
28264         * raise.c [!IN_RTS]: Undef abort.
28266 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
28268         * utils2.c (build_allocator): Use ssize_int.
28270         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
28272 2004-08-27  Andreas Schwab  <schwab@suse.de>
28274         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
28276 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
28277             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28279         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
28281 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
28283         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
28284         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28285         * utils.c (init_gigi_decls): Likewise.
28286         * utils2.c (build_call_raise, build_allocator): Likewise.
28288 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
28290         * utils.c (gnat_init_decl_processing): Adjust
28291         build_common_tree_nodes call.
28293 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
28295         * utils2.c (build_allocator): Use build_int_cst for negative
28296         size types.
28298 2004-08-18  Richard Henderson  <rth@redhat.com>
28300         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
28302 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
28304         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
28305         call.s
28306         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
28307         (gnat_to_gnu): Likewise.
28309 2004-08-16  Pascal Obry  <obry@gnat.com>
28311         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
28312         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
28313         option and not mdll anymore. Update comment.
28315 2004-08-16  Pascal Obry  <obry@gnat.com>
28317         * bld.adb (Put_Include_Project): Properly handle directory separators
28318         on Windows.
28320 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
28322         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
28323         decreasing the number of allocated junk nodes while searching for the
28324         appropriate subprogram.
28326 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
28328         * cuintp.c (UI_To_gnu): Use build_int_cst..
28329         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28330         * utils.c (init_gigi_decls): Likewise.
28331         * utils2.c (build_call_raise): Likewise.
28333 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
28335         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
28336         for a global aliased object with a variable size and an unconstrained
28337         nominal subtype, pretend there is no initializer if the one we have is
28338         incomplete, and avoid referencing an inexistant component in there. The
28339         part we have will be rebuilt anyway and the reference may confuse
28340         further operations.
28342 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
28344         * einfo.ads: Minor reformatting
28346         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
28347         restrictions in the ALI if we only want to warn about violations.
28349 2004-08-13  Vincent Celier  <celier@gnat.com>
28351         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
28352         when creating a new Unit_Record in table Units.
28354         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
28355         that are violated, if any.
28357         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
28358         add directory separator if path already ends with a directory separator.
28360 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
28362         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
28363         unit, this is an attempt to inline a construct that is not available in
28364         the current restricted mode, so abort rather than trying to continue.
28366         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
28367         discriminants that rename those of the parent, recover names of
28368         original discriminants for the constraint on the full view of the
28369         parent.
28370         (Complete_Private_Subtype): Do not create a subtype declaration if the
28371         subtype is an itype.
28373         * gnat_rm.texi: Added section on implementation of discriminated
28374         records with default values for discriminants.
28376 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
28378         PR ada/15601
28379         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
28380         the second operand is overloaded.
28382 2004-08-10  Richard Henderson  <rth@redhat.com>
28384         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
28385         add __builtin_alloca.
28387 2004-08-10  Richard Henderson  <rth@redhat.com>
28389         * config-lang.in (boot_language): Yes.
28391 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
28393         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
28394         from complaining on potential uninitialized reference.
28395         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
28396         new specification and test explicitly for non-zero return value.
28398         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
28399         returning C.int, to avoid using a derived boolean type.
28401         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
28402         Duplicate_Subexpr_No_Checks in preference to direct use of
28403         Remove_Side_Effects and New_Copy_Tree.
28404         Clear Comes_From_Source on prefix of 'Size attribute reference.
28406         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
28407         g-socthi-vxworks.adb: Change calls to
28408         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
28409         and test explicitly for non-zero return value.
28411         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
28412         (Is_Socket_In_Set): Declare imported function as returning C.int, to
28413         avoid using a derived boolean type.
28415 2004-08-09  Albert Lee  <lee@gnat.com>
28417         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
28419 2004-08-09  Pascal Obry  <obry@gnat.com>
28421         * gnat_ugn.texi: Document new way to build DLLs on Windows using
28422         GCC's -shared option.
28424         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
28425         Options_2 parameter (options put after object files).
28427 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
28429         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
28430         ignore overflows on low and high bounds of an index to also account for
28431         differences in signedness between sizetype and gnu_index_subtype.
28432         These are as legitimate as the ones caused by a lower TYPE_PRECISION
28433         on sizetype.
28435 2004-08-09  Robert Dewar  <dewar@gnat.com>
28437         * s-solita.ads, s-solita.adb: Minor reformatting
28439         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
28440         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
28441         obsolescent section
28442         Add note that No_Implicit_Conditionals does not suppress
28443         run time constraint checks.
28445         * vms_conv.ads: Minor reformatting
28447         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
28448         and necessary for following change).
28449         (Mark): Return new format Mark_Id containing sec stack address
28450         (Release): Use sec stack address from Mark_Id avoiding Self call
28452         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
28453         pointer (cleanup and necessary for following change).
28454         Define Mark_Id as record containing address of secondary stack, that way
28455         Release does not need to find the stack again, decreasing the number of
28456         calls to Self and improving efficiency.
28458         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
28460         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
28461         case variable into the individual case branches when possible.
28463         * sem_ch11.adb: Minor reformatting
28465         * prj.ads: Correct spelling of suffixs
28467         * prj-nmsc.adb: Minor reformatting
28468         Correct spelling suffixs throughout (also in identifiers)
28470         * freeze.adb: Minor spelling correction
28472         * exp_ch2.adb: Cleanups to handling of Current_Value
28473         (no functional effect).
28475         * bld.adb: Correct spelling of suffixs
28477         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
28479 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
28481         PR ada/15408
28482         * sem_ch7.adb (Install_Private_Declarations): In the body of the
28483         package or of a child, private entities are both immediately_visible
28484         and not hidden.
28486 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
28488         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
28489         there are no range checks on the value of the literal.
28491         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
28492         wrapped is the triggering alternative of an asynchronous select, action
28493         statements mustbe inserted before the select itself.
28495         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
28496         case where the prefix is a protected function call.
28497         (Resolve_Attribute, case 'Access): The attribute reference on a
28498         subprogram is legal in a generic body if the subprogram is declared
28499         elsewhere.
28501 2004-08-09  Vincent Celier  <celier@gnat.com>
28503         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
28504         languages, otherwise building the library may fail with unresolved
28505         symbols.
28506         (Compile_Sources): Do not build libraries if -c switch is used
28508         * gnatlink.adb (Process_Args): New switches -M and -Mmap
28509         (Write_Usage): If map file creation is supported, output new switches
28510         -M and -Mmap.
28511         (Gnatlink): When -M is specified, add the necessary switch(es) to the
28512         gcc call, when supported.
28514         * Makefile.in: Added indepsw.o to the object list for gnatlink
28515         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
28517         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
28518         indepsw.adb, indepsw.ads: New files.
28520 2004-08-09  Bernard Banner  <banner@gnat.com>
28522         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
28524         * Makefile.in: add section for vxworks x86
28526 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
28528         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
28529         per-object constrained components where the discriminant is of an
28530         Access type.
28531         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
28532         the parent initialization procedure for derived Unchecked_Unions.
28533         Instead, derived Unchecked_Unions build their own initialization
28534         procedure.
28535         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
28536         Check the body of the subprogram for details.
28537         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
28538         functions for derived Unchecked_Union types by introducing a condition.
28539         Allow the creation of TSS equality functions for Unchecked_Unions.
28540         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
28541         Add formal parameter Discr to function signature. Discr is used to
28542         control the generated case statement for Unchecked_Union types.
28543         (Make_Eq_If): Rename formal parameter Node to E in function signature.
28545         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
28546         Unchecked_Unions.
28547         Check the body of the subprogram for details.
28548         (Expand_Composite_Equality): Augment composite type equality to include
28549         correct handling of Unchecked_Union components.
28550         (Expand_N_In): Add condition to detect illegal membership tests when the
28551         subtype mark is a constrained Unchecked_Union and the expression lacks
28552         inferable discriminants, and build a Raise_Program_Error node.
28553         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
28554         to detect types that contain components of unconstrained Unchecked_Union
28555         subtype. Add condition to detect equality between types that have an
28556         unconstrained Unchecked_Union component, and build a Raise_Program_Error
28557         node. Add condition to detect equality between Unchecked_Union types
28558         that lack inferable discriminants, and build a Raise_Program_Error node.
28559         Otherwise build a TSS equality function call.
28560         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
28561         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
28562         with the operand lacking inferable discriminants, and build a Raise_
28563         Program_Error node.
28564         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
28565         composite equality.
28566         (Has_Inferable_Discriminants): Implement new predicate for objects and
28567         expressions of Unchecked_Union type. Check the body of subprogram for
28568         details.
28569         (Has_Unconstrained_UU_Components): Add function
28570         Component_Is_Unconstrained_UU. It is used to detect whether a single
28571         component is of an unconstrained Unchecked_Union subtype. Add function
28572         Variant_Is_Unconstrained_UU. It is used to detect whether a single
28573         component inside a variant is of an unconstrained Unchecked_Union type.
28575         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
28576         inferred discriminant values. Add condition to generate a case
28577         statement with an inferred discriminant as the switch.
28578         (Make_Component_List_Assign): Introduce a Boolean flag that determines
28579         the behaviour of the subprogram in the presence of an Unchecked_Union.
28580         Add condition to trigger the usage of the inferred discriminant value
28581         as the generated case statement switch.
28582         (Make_Field_Assign): Introduce a Boolean flag that determines the
28583         behaviour of the subprogram in the presence of an Unchecked_Union. Add
28584         condition to trigger the usage of the inferred discriminant value as
28585         the right-hand side of the generated assignment.
28587         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
28588         parameter generation when dealing with Unchecked_Unions.
28590         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
28591         checks for Unchecked_Unions.
28593         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
28595         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
28596         Raise_Program_Error nodes for the execution of Read and Write
28597         attributes of Unchecked_Union types and the execution of Input and
28598         Output attributes of Unchecked_Union types that lack default
28599         discriminant values.
28601         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
28602         Unchecked_Union. Add procedure Check_Component. It is used to inspect
28603         per-object constrained components of Unchecked_Unions for being
28604         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
28605         check individual components withing a variant.
28607         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
28608         comparison of Unchecked_Unions.
28609         (Resolve_Equality_OP): Remove guard that prevents equality between
28610         Unchecked_Unions.
28612         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
28613         of component subtypes for Unchecked_Union components.
28614         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
28615         since it is the actual subtype.
28617         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
28618         pass of Unchecked_Union subtypes as generic actuals to formal types
28619         that lack known_discriminant_parts or that are derived Unchecked_Union
28620         types, and do nothing. In any other case, produce an error message.
28622         * sem_ch3.adb (Analyze_Component_Declaration): Add function
28623         Contains_POC. It determines whether a constraint uses the discriminant
28624         of an enclosing record type.
28625         Add condition to detect per-object constrained component and set the
28626         appropriate flag.
28627         (Derived_Type_Declaration): Remove guard that prevents derivation from
28628         Unchecked_Union types.
28629         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
28630         Union subtypes.
28632         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
28633         references to Unchecked_Union discriminants.
28635         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
28636         formal generation when dealing with Unchecked_Unions.
28637         (Set_Actual_Subtypes): Add condition to prevent generation of actual
28638         subtypes for Unchecked_Unions.
28640         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
28641         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
28642         completions of discriminated partial views by Unchecked_Unions and
28643         produce an error message.
28645 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28647         * trans.c (struct stmt_group): New field, GLOBAL.
28648         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
28649         (struct elab_info): New struct.
28650         (elab_info_list, gnu_elab_proc_stack): New variables.
28651         (Compilation_Unit_to_gnu): New procedure.
28652         (gigi): Call it and also handle elaboration procs we've saved.
28653         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
28654         global field from parent.
28655         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
28656         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
28657         (start_stmt_group): Initialize global field from parent.
28658         (add_decl_expr): Set to global for current statement group.
28659         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
28660         post.
28662         * utils.c (global_bindings_p): True when no current_function_decl; no
28663         longer check current_binding_level.
28665 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
28667         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
28668         choice.
28670         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
28672 2004-08-06  Andreas Schwab  <schwab@suse.de>
28674         * utils.c (gnat_define_builtin): Remove second parameter of
28675         make_decl_rtl.
28676         (begin_subprog_body): Likewise.
28678 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
28680         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
28681         optimization, not supported by the tree-ssa back-end.
28683 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
28685         * s-mastop-irix.adb: Update comments.
28687         * a-except.adb (Exception_Information): Raise Constraint_Error if
28688         exception Id is Null_Id.
28689         This is required behavior, which is more reliably and clearly checked
28690         at the top level interface level.
28692 2004-07-26  Javier Miranda  <miranda@gnat.com>
28694         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
28695         call if a component has no default_expression and the box is used.
28697         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
28698         default_expression and you use box, it behaves as if you had declared a
28699         stand-alone object.
28700         (Resolve_Record_Aggregate): If a component has no default_expression and
28701         you use box, it behaves as if you had declared a stand-alone object.
28703         * sem_ch10.adb (Install_Siblings): Do not make visible the private
28704         entities of private-with siblings.
28706 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
28708         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
28709         for a component of an itype, set the parent pointer for analysis,
28710         there is no list in which to insert it.
28712         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
28713         bona-fide renamings, not for inherited operations.
28715         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
28716         actual for a formal that is an access parameter, create local
28717         finalization list even if the expression is not an aggregate.
28719 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
28721         PR ada/16213
28722         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
28723         Diagnose properly illegal subprogram renamings that are library units.
28725 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
28727         PR ada/15588
28728         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
28729         conversion rewritten as an unchecked conversion, check that original
28730         expression is a variable.
28732         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
28733         unchecked_conversion, create new node rather than rewriting in place,
28734         to preserve original construct.
28736 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28738         * gigi.h (gnat_expand_body): Deleted.
28740         * Make-lang.in: (trans.o): Depends on function.h.
28742         * misc.c: (gnat_expand_body): Moved to here.
28744         * trans.c (gnat_expand_body_1): Deleted.
28745         (gnat_expand_body): Moved from here.
28746         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
28747         (add_stmt): Check for marked visited with global_bindings_p.
28748         (gnat_gimplify_expr, case COMPONENT_REF): New case.
28749         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
28751         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
28752         VIEW_CONVERT_EXPR if not operation type.
28754         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
28755         fat pointer.
28757         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
28758         changes: reformatting of negation operators, removing unneeded
28759         inequality comparison with zero, converting equality comparisons with
28760         zero to negations, changing int/0/1 to bool/false/true, replace calls
28761         to gigi_abort with abort, and various other similar changes.
28763 2004-07-26  Vincent Celier  <celier@gnat.com>
28765         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
28766         "setup".
28768         * make.adb (Gnatmake): Fail when a library is not present and there is
28769         no object directory.
28771         * mlib-prj.adb (Check_Library): No need to check if the library needs
28772         to be rebuilt if there is no object directory, hence no object files
28773         to build the library.
28775         * opt.ads (Setup_Projects): New Boolean flag.
28777         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
28778         Location.
28779         Create directory when Kind /= "" and in "gnat setup". Report error if
28780         directory cannot be created.
28781         (Ada_Check): Create library interface copy dir if it does not exist
28782         and we are in "gnat setup".
28783         (Find_Sources): No error if in "gnat setup" and no Ada sources were
28784         found.
28785         (Language_Independent_Check): Create object directory, exec directory
28786         and/or library directory if they do not exist and we are in
28787         "gnat setup".
28789         * vms_conv.ads: (Command_Type): New command Setup.
28791         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
28793         * vms_data.ads: Add qualifiers/switches for new built-in command
28794         "setup".
28796 2004-07-25  Richard Henderson  <rth@redhat.com>
28798         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
28799         DECL_IGNORED_P on RESULT_DECL.
28801 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
28803         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
28804         allocation and potentially overflowing update with
28805         Tailored_Exception_Information. Use the sec-stack free procedural
28806         interface to output Exception_Information instead.
28808         * a-except.adb (To_Stderr): New subprogram for character, and string
28809         version moved from a-exextr to be visible from other separate units.
28810         (Tailored_Exception_Information): Remove the procedural version,
28811         previously used by the default Last_Chance_Handler and not any more.
28812         Adjust various comments.
28814         * a-exexda.adb: Generalize the exception information procedural
28815         interface, to minimize the use of secondary stack and the need for
28816         local buffers when the info is to be output to stderr:
28817         (Address_Image): Removed.
28818         (Append_Info_Character): New subprogram, checking for overflows and
28819         outputing to stderr if buffer to fill is of length 0.
28820         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
28821         (Append_Info_Address, Append_Info_Exception_Name,
28822         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
28823         Append_Info_Basic_Exception_Traceback,
28824         Append_Info_Exception_Information): New subprograms.
28825         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
28826         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
28827         Exception_Info_Maxlength, Exception_Name_Length,
28828         Exception_Message_Length): New subprograms.
28829         (Exception_Information): Use Append_Info_Exception_Information.
28830         (Tailored_Exception_Information): Use
28831         Append_Info_Basic_Exception_Information.
28832         Export services for the default Last_Chance_Handler.
28834         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
28835         other separate units.
28837 2004-07-20  Vincent Celier  <celier@gnat.com>
28839         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
28841 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
28843         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
28844         emit itype references for the designated types of component types that
28845         are declared outside of the full record declaration, and that may
28846         denote a partial view of that record type.
28848 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
28850         PR ada/15607
28851         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
28852         which is the designated type in an access component declaration, to the
28853         list of incomplete dependents of the parent type, to avoid elaboration
28854         issues with out-of-scope subtypes.
28855         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
28856         full view of the parent.
28858 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
28860         PR ada/15610
28861         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
28862         entities that are hidden, such as references to generic actuals
28863         outside an instance.
28865 2004-07-20  Javier Miranda  <miranda@gnat.com>
28867         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
28868         support to the new notation.
28869         (Analyze_Selected_Component): Add call to Try_Object_Operation.
28871 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
28873         * s-taprob.adb: Adding the elaboration code required for initializing
28874         the tasking soft links that are common to the full and the restricted
28875         run times.
28877         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
28878         restricted run time has been moved to the package
28879         System.Soft_Links.Tasking.
28881         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
28882         restricted run time has been moved to the package
28883         System.Soft_Links.Tasking.
28885         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
28887         * s-solita.ads, s-solita.adb: New files.
28889 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28891         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
28892         Case_Statement_to_gnu): Split off from gnat_to_gnu.
28893         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
28894         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
28895         Exception_Handler_to_gnu_zcx): Likewise.
28897 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
28899         * gigi.h (builtin_function): Declare.
28901 2004-07-15  Robert Dewar  <dewar@gnat.com>
28903         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
28904         reformatting
28906         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
28907         access values as an example of a warning.
28909         * gnat_rm.texi: Document new attribute Has_Access_Values
28911         * gnat-style.texi: Document that box comments belong on nested
28912         subprograms
28914         * sem_util.ads (Has_Access_Values): Improved documentation
28916         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
28918         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
28919         (Process_Interface_Name): Call to this new procedure
28920         (Set_Extended_Import_Export_External_Name): Call to this new procedure
28922         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
28924         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
28926         * einfo.ads: Minor comment typo fixed
28928 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
28930         * snames.adb: Add _atcb.
28932         * snames.ads: Add Name_uATCB.
28934         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
28935         (in the expanded code) when using the restricted run time.
28937         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
28938         a in parameter in order to allow ATCBs to be preallocated (in the
28939         expanded code).
28941         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
28942         order to allow ATCBs to be preallocated. In case of error, the ATCB is
28943         deallocated in System.Tasking.Stages.
28945         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
28946         order to allow ATCBs to be preallocated.
28948         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
28949         here. It was previously done in Initialize_ATCB.
28951         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
28953         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
28954         Restricted run time.
28956         * exp_ch3.adb: When using the Restricted run time, pass the
28957         preallocated Ada_Task_Control_Block when creating a task.
28959 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
28961         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
28962         function call that is itself an actual in an enclosing call, diagnose
28963         problem here rather than assuming that resolution will catch it.
28965         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
28966         the local copy of a generic unit for a formal package, and the generic
28967         is a child unit, install private part of ancestors before compiling
28968         private part of spec.
28970         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
28971         use scope entities rather than tree structures, to handle properly
28972         parent units that are instances rewritten as bodies for inlining
28973         purposes.
28975         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
28976         Remove_Parents): Handle properly a parent unit that is an
28977         instantiation, when the unit has been rewritten as a body for inlining
28978         purposes.
28980         * par.adb (Goto_List): Global variable to collect goto statements in a
28981         given unit, for use in detecting natural loops.
28983         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
28984         use in detecting natural loops.
28986         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
28987         backwards goto's, and rewrite as a infinite loop, to improve locality
28988         of temporaries.
28990         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
28991         subcomponent that includes an indexed reference, to prevent the
28992         generation of copies that would miscompile the desired assignment
28993         statement.
28994         (Build_Task_Image_Decls): Add a numeric suffix to
28995         generated name for string variable, to avoid spurious conflicts with
28996         the name of the type of a single protected object.
28998         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
28999         loop with an explicit exit statement, to avoid generating an
29000         out-of-range value with 'Succ leading to spurious constraint_errors
29001         when compiling with -gnatVo.
29003 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
29005         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
29006         might not be analyzed yet, even if its Etype is already set (case of an
29007         unchecked conversion built using Unchecked_Convert_To, for example).
29008         If the prefix has already been analyzed, this will be a nop anyway.
29010         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
29011         controller type, or an assignment of a record type with controlled
29012         components, copy only user data, and leave the finalization chain
29013         pointers untouched.
29015 2004-07-15  Vincent Celier  <celier@gnat.com>
29017         * make.adb (Collect_Arguments): Improve error message when attempting
29018         to compile a source not part of any project, when -x is not used.
29020         * prj.ads: (Defined_Variable_Kind): New subtype
29022         * prj-attr.adb (Register_New_Package): Two new procedures to register
29023         a package with or without its attributes.
29024         (Register_New_Attribute): Mew procedure to register a new attribute in a
29025         package.
29026         New attribute oriented subprograms: Attribute_Node_Id_Of,
29027         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29028         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29029         Next_Attribute.
29030         New package oriented subprograms: Package_Node_Id_Of,
29031         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29033         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
29034         type.
29035         (Package_Node_Id): Now a private, self initialized type
29036         (Register_New_Package): New procedure to register a package with its
29037         attributes.
29038         New attribute oriented subprograms: Attribute_Node_Id_Of,
29039         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29040         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29041         Next_Attribute.
29042         New package oriented subprograms: Package_Node_Id_Of,
29043         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29045         * prj-dect.adb (Parse_Attribute_Declaration,
29046         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
29048         * prj-makr.adb (Make): Parse existing project file before creating
29049         other files. Fail if there was an error during parsing.
29051         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
29052         new spec of Prj.Attr.
29054         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
29055         to new spec of Prj.Attr.
29057 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29059         * utils2.c: Fix typo in comment.
29061 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29063         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
29064         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
29066 2004-07-14  Andreas Schwab  <schwab@suse.de>
29068         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
29070 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29072         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
29073         object type.
29074         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
29075         TYPE_STUB_DECL.
29077         * misc.c (gnat_types_compatible_p): New function.
29078         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
29079         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
29081         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
29082         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
29083         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
29084         (mark_visited): Don't mark dummy type.
29085         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
29086         parameter, we must remove any LJM building from GNU_NAME.
29087         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
29088         (pos_to_constructor): Use int_const_binop.
29089         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
29090         PARM_DECL.
29092         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
29093         (gnat_pushlevel): Set TREE_USE on BLOCK node.
29094         (gnat_install_builtins): Add __builtin_memset.
29096 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
29098         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
29099         for a renaming, stabilize the initialization expression if we are at a
29100         local level.  At the local level, uses of the renaming may be performed
29101         by a direct dereference of the initializing expression, and we don't
29102         want possible variables there to be evaluated for every use.
29104         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
29105         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
29106         them on the way.  Account for the fact that we may introduce side
29107         effects in the process.
29109 2004-07-13  Richard Henderson  <rth@redhat.com>
29111         * misc.c (default_pass_by_ref): Use pass_by_reference.
29113 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
29115         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
29116         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
29118 2004-07-08  Richard Henderson  <rth@redhat.com>
29120         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
29121         commentary.
29123 2004-07-06  Vincent Celier  <celier@gnat.com>
29125         * vms_conv.ads: Minor reformatting.
29126         Alphabetical order for enumerated values of type Command_Type, to have
29127         the command in alphabetical order for the usage.
29129         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
29130         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
29132         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
29134         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
29135         (Add_Archive_Path): Only add the global archive if there is one.
29136         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
29137         or not any object file to put in the global archive, and don't build
29138         a global archive if there is none.
29139         (X_Switches): New table
29140         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
29141         in the X_Switches table, if any.
29142         (Initialize): Make sure the X_Switches table is empty
29143         (Scan_Arg): Record -X switches in table X_Switches
29145         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
29147         * make.adb: Minor comment fix
29149         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
29150         invoked with directory information, add the directory in front of the
29151         path.
29153         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
29154         invoked with directory information, add the directory in front of the
29155         path.
29157         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
29158         when Keep_Temporary_Files is False.
29159         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
29160         directory information, add the directory in front of the path.
29161         When not on VMS, handle new switch -dn before the command to set
29162         Keep_Temporary_Files to True.
29163         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
29164         everywhere.
29166         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
29167         invoked with directory information, add the directory in front of the
29168         path.
29170 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
29172         * snames.ads, snames.adb (Name_Stub): New name for the distributed
29173         systems annex.
29175         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
29176         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
29178         * g-socket.adb (To_Timeval): Fix incorrect conversion of
29179         Selector_Duration to Timeval for the case of 0.0.
29181         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
29182         documentation from Evolve_And_Then.
29184 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
29186         * s-taprop-tru64.adb, s-taprop-os2.adb,
29187         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
29189 2004-07-06  Robert Dewar  <dewar@gnat.com>
29191         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
29192         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
29193         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
29194         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
29195         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
29196         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
29197         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
29198         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
29199         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
29200         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
29201         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
29202         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
29203         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
29204         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
29205         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
29206         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
29207         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
29208         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
29209         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
29210         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
29211         vms_data.ads: Minor reformatting,
29212         Fix bad box comment format.
29214         * gnat_rm.texi: Fix minor grammatical error
29216         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
29218         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
29219         more cases of discriminated records to be recognized as not needing a
29220         secondary stack.
29221         (Has_Access_Values): New function.
29223         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
29225         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
29226         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
29227         with LRM terminology).
29228         Change terminology in comments primitive type => elementary type.
29230 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
29232         PR ada/15602
29233         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
29234         parameters do not impose any requirements on the presence of a body.
29236 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
29238         PR ada/15593
29239         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
29240         compilation unit and is in an open scope at the point of instantiation,
29241         assume that a body may be present later.
29243 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
29245         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
29246         Improve error message when specified size is not supported.
29248         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
29249         is never a primitive operation.
29251 2004-07-05  Andreas Schwab  <schwab@suse.de>
29253         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
29254         RECORD_OR_UNION_CHECK.
29255         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
29257 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
29259         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
29260         dependency on xgnatugn, instead build it via a submake.
29261         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
29263 2004-07-04  Richard Henderson  <rth@redhat.com>
29265         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
29267 2004-07-01  Richard Henderson  <rth@redhat.com>
29269         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
29270         * utils.c (max_size): Likewise.
29272 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29274         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
29275         and rest_of_type_compilation; add arg to create_*_decl.
29276         (annotate_decl_with_node): Deleted.
29277         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
29278         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
29279         (get_current_block_context, gnat_pushdecl): New declarations.
29280         (gnat_init_stmt_group): Likewise.
29281         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
29282         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
29283         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
29284         (gnat_init): Call gnat_init_stmt_group.
29285         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
29286         (gnu_pending_elaboration_list): Deleted.
29287         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
29288         (gigi): Rearrange initialization calls and move some to last above.
29289         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
29290         Delete calls to add_decl_expr; add arg to create_*_decl.
29291         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
29292         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
29293         begin_subprog_body and call it.
29294         Don't push and pop ggc context.
29295         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
29296         (add_stmt): Remove handling of DECL_EXPR from here.
29297         If not in function, mark visited.
29298         (add_decl_expr): Put global at top level.
29299         Check for cases of DECL_INITIAL we have to handle here.
29300         (process_type): Add extra arg to create_type_decl.
29301         (build_unit_elab): Rework to just gimplify.
29302         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
29303         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
29304         (get_pending_elaborations, pending_elaborations_p): Likewise.
29305         (push_pending_elaborations, pop_pending_elaborations): Likewise.
29306         (get_elaboration_location, insert_elaboration_list): Likewise.
29307         (gnat_binding_level): Renamed from ada_binding_level.
29308         (init_gnat_to_gnu): Don't clear pending_elaborations.
29309         (global_bindings_p): Treat as global if no current_binding_level.
29310         (set_current_block_context): New function.
29311         (gnat_pushdecl): Renamed from pushdecl; major rework.
29312         All callers changed.
29313         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
29314         (finish_record_type): Call call pushdecl for stub decl.
29315         (function_nesting_depth): Deleted.
29316         (begin_subprog_body): Delete obsolete code.
29317         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
29319 2004-06-28  Robert Dewar  <dewar@gnat.com>
29321         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29322         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
29323         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
29324         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29325         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
29327         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
29328         deal with problem of inefficient slices on machines with strict
29329         alignment, when the slice is a component of a composite.
29331         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
29332         machines, we need the check there as well.
29334 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
29336         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
29337         determine safe copying direction for overlapping slice assignments
29338         when component is controlled.
29340         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
29341         formal derived type in the actual for a formal package are visible in
29342         the enclosing instance.
29344 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
29346         PR ada/15600
29347         * sem_util.adb (Trace_Components): Diagnose properly an illegal
29348         circularity involving a private type whose completion includes a
29349         self-referential component.
29350         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
29351         renaming or an instantiation from an implicit derived operation.
29353 2004-06-28  Pascal Obry  <obry@gnat.com>
29355         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
29356         DLL.
29357         (Library_File_Name_For): Idem.
29359 2004-06-28  Matthew Gingell  <gingell@gnat.com>
29361         * g-traceb.ads: Add explanatory note on the format of addresses
29362         expected by addr2line.
29364 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
29366         * Makefile.in: Force debugging information on s-tasdeb.adb,
29367         a-except.adb and s-assert.adb needed by the debugger.
29369 2004-06-28  Vincent Celier  <celier@gnat.com>
29371         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
29372         Need_To_Build_Lib.
29373         (Gnatmake): Ditto.
29375         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
29377         * prj.adb: Minor reformatting
29378         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
29380         * prj.ads: Comment updates
29381         Minor reformatting
29382         (Project_Data): Change Flag1 to Need_To_Build_Lib.
29383         Remove Flag2: not used.
29385         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
29386         declaration.
29388         * gnat_ugn.texi: Put a "null;" declaration in one project file example
29390         * gnat_rm.texi: Document Empty declarations "null;".
29392         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
29393         front of the linker options.
29394         (Link_Foreign): Put the global archives and the libraries in front of
29395         the linker options.
29397 2004-06-28  Javier Miranda  <miranda@gnat.com>
29399         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
29400         (RTU_Loaded): Code cleanup
29401         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
29402         withed predefined units.
29404         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
29405         explicitly withed predefined units.
29406         Fix typo in comment
29408         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
29409         explicitly withed predefined units.
29411 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29413         * ada-tree.def (DECL_STMT): Deleted.
29414         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
29415         (DECL_STMT_VAR): Deleted.
29416         * decl.c: add_decl_stmt now add_decl_expr.
29417         * gigi.h: Likewise.
29418         * trans.c: Likewise.
29419         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
29420         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
29421         (add_stmt): Only handle padded type here.
29422         (add_stmt_with_node): Allow gnat_node to not be present.
29423         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
29424         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
29425         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
29426         make a SAVE_EXPR for the entire fat pointer.
29427         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
29428         (create_index_type): Make a DECL_EXPR.
29429         (end_subprog_body): Don't call allocate_struct_function here but
29430         do clear cfun.
29432 2004-06-25  Pascal Obry  <obry@gnat.com>
29434         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
29435         Relocatable from Build_Dynamic_Library call.
29437         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
29438         Relocatable are now synonym.
29440         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
29442         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
29443         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
29444         call.
29446         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
29447         Lib_Address and Relocatable.
29448         (Default_DLL_Address): Removed.
29450         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29451         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29452         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
29453         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
29454         (Default_DLL_Address): Removed.
29456         * mlib-tgt-mingw.adb: Ditto.
29457         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
29459         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
29460         the initial thread stack size.
29462         * a-strmap.ads: Move package L to private part as it is not used in
29463         the spec. Found while reading code.
29465 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
29467         * tracebak.c: Introduce support for a GCC infrastructure based
29468         implementation of __gnat_backtrace.
29470         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
29471         any more. Use accessors instead. This eases maintenance and relaxes
29472         some alignment constraints.
29473         (_GNAT_Exception structure): Remove the Ada specific fields
29474         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
29475         a-exexpr.adb.
29476         (is_handled_by, __gnat_eh_personality): Replace component references to
29477         exception structure by use of the new accessors.
29479         * init.c (__gnat_initialize): Adjust comments to match the just
29480         reverted meaning of the -static link-time option.
29482         * adaint.c (convert_addresses): Arrange not to define a stub for
29483         mips-irix any more, as we now want to rely on a real version from a
29484         recent libaddr2line.
29486         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
29487         the personality routine can use them and not have to rely on a C
29488         counterpart of the record anymore. This simplifies maintenance and
29489         relaxes the constraint of having Standard'Maximum_Alignment match
29490         BIGGEST_ALIGNMENT.
29491         Update comments, and add a section on the common header alignment issue.
29493 2004-06-25  Geert Bosch  <bosch@gnat.com>
29495         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
29496         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
29498 2004-06-25  Robert Dewar  <dewar@gnat.com>
29500         * gnat_rm.texi: Fix section on component clauses to indicate that the
29501         restriction on byte boundary placement still applies for bit packed
29502         arrays.
29503         Add comment on stack usage from Initialize_Scalars
29505         * gnat_ugn.texi: Add documentation for -gnatyLnnn
29507         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
29508         limiting nesting level.
29510         * usage.adb: Add line for -gnatyLnnn switch
29512         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
29513         sem_ch13.adb, exp_aggr.adb: Minor reformatting
29515         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
29516         type as well as on the subtype. This corrects a problem in freeze in
29517         setting alignments of atomic types.
29519         * sem_eval.ads: Minor comment typo fixed
29521         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
29522         level.  Minor reformatting.
29524         * fname.adb (Is_Predefined_File_Name): Require a letter after the
29525         minus sign. This means that file names like a--b.adb will not be
29526         considered predefined.
29528         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
29529         record Test new flag and give diagnostic for bad component clause.
29530         (Freeze_Entity): Set alignment of array from component alignment in
29531         cases where this is safe to do.
29533         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
29534         arrays.
29536         * cstand.adb: (Create_Standard): Set alignment of String to 1
29538         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
29540         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
29541         code in the common constrained array cases.
29543         * a-storio.adb: Change implementation to avoid possible alignment
29544         problems on machines requiring strict alignment (data should be moved
29545         as type Buffer, not type Elmt).
29547         * checks.adb (Apply_Array_Size_Check): Improve these checks by
29548         killing the overflow checks which we really do not need (64-bits is
29549         enough).
29551 2004-06-25  Vincent Celier  <celier@gnat.com>
29553         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
29554         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
29555         inconditionally for the main project.
29556         (Recursive_Add_Archives.Add_Archive_Path): New procedure
29557         (Link_Executables.Check_Time_Stamps): New procedure
29558         (Link_Executables.Link_Foreign): New procedure
29559         Changes made to reduce nesting level of this package
29560         (Check): New procedure
29561         (Add_Switches): When not in quiet output, check that a switch is not
29562         the concatenation of several valid switches. If it is, issue a warning.
29563         (Build_Global_Archive): If the global archive is rebuilt, linking need
29564         to be done.
29565         (Compile_Sources): Rebuilding a library archive does not imply
29566         rebuilding the global archive.
29567         (Build_Global_Archive): New procedure
29568         (Build_Library): New name for Build_Archive, now only for library
29569         project
29570         (Check_Archive_Builder): New procedure
29571         (Create_Global_Archive_Dependency_File): New procedure
29572         (Gprmake): Call Build_Global_Archive before linking
29573         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
29574         throughout.
29575         (Scan_Arg): Display the Copyright notice when -v is used
29577         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
29578         for gnatls.
29580         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
29581         COMPILE.
29582         Add new GNAT LIST qualifier /FILES=
29583         Added qualifier /DIRECTORY= to GNAT METRIC
29584         Added qualifier /FILES= to GNAT METRIC
29585         Added qualifier /FILES to GNAT PRETTY
29587         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
29588         to take into account both versions of the switch.
29590         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
29591         always be the last switch to the gcc driver. Disable switch storing so
29592         that switches automatically added by the gcc driver are not put in the
29593         ALI file.
29595         * prj.adb (Project_Empty): Take into account changes in components of
29596         Project_Data.
29598         * prj.ads (Languages_Processed): New enumaration value All_Languages.
29600         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
29601         used. Split Boolean component Ada_Sources_Present in two Boolean
29602         components Ada_Sources_Present and Other_Sources_Present.
29603         Minor reformatting
29605         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
29606         instead of Sources_Present.
29607         (Set_Ada_Paths.Add.Recursive_Add): Ditto
29609         * prj-nmsc.adb: Minor reformatting
29610         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
29611         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
29612         Check_Ada_Naming_Scheme.
29613         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
29614         throughout.
29616         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
29617         In_Limited.
29618         Make sure that all cycles where there is at least one "limited with"
29619         are detected.
29620         (Parse_Single_Project): New Boolean parameter In_Limited
29622         * prj-proc.adb (Recursive_Check): When Process_Languages is
29623         All_Languages, call first Prj.Nmsc.Ada_Check, then
29624         Prj.Nmsc.Other_Languages_Check.
29626         * prj-proc.adb (Process): Use Ada_Sources_Present or
29627         Other_Sources_Present (instead of Sources_Present) depending on
29628         Process_Languages.
29630         * lang-specs.h: Keep -g and -m switches in the same order, and as the
29631         last switches.
29633         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
29634         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
29635         False.
29636         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
29637         False.
29639         * lib.ads (Disable_Switch_Storing): New procedure.
29641         * make.adb: Modifications to reduce nesting level of this package.
29642         (Check_Standard_Library): New procedure
29643         (Gnatmake.Check_Mains): New procedure
29644         (Gnatmake.Create_Binder_Mapping_File): New procedure
29645         (Compile_Sources.Compile): Add switch -gnatez as the last option
29646         (Display): Never display -gnatez
29648         * Makefile.generic:
29649         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
29651         * gnatcmd.adb (Check_Project): New function
29652         (Process_Link): New procedure to reduce nesting depth
29653         (Check_Files): New procedure to reduce the nesting depth.
29654         For GNAT METRIC, include the inherited sources in extending projects.
29655         (GNATCmd): When GNAT LS is invoked with a project file and no files,
29656         add the list of files from the sources of the project file. If this list
29657         is too long, put it in a temp text files and use switch -files=
29658         (Delete_Temp_Config_Files): Delete the temp text file that contains
29659         a list of source for gnatpp or gnatmetric, if one has been created.
29660         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
29661         in the project file is too large, create a temporary text file that
29662         list them and pass it to the tool with "-files=<temp text file>".
29663         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
29665         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
29666         generated file is in not in Ada.
29668         * gnatls.adb: Remove all parameters And_Save that are no longer used.
29669         (Scan_Ls_Arg): Add processing for -files=
29670         (Usage): Add line for -files=
29672         * g-os_lib.adb (On_Windows): New global constant Boolean flag
29673         (Normalize_Pathname): When on Windows and the path starts with a
29674         directory separator, make sure that the resulting path will start with
29675         a drive letter.
29677         * clean.adb (Clean_Archive): New procedure
29678         (Clean_Project): When there is non-Ada code, delete the global archive,
29679         the archive dependency files, the object files and their dependency
29680         files, if they exist.
29681         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
29683 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
29685         * sinfo.ads: Fix typo in comment.
29687         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
29688         the TSS for remote access-to-subprogram types, since these TSS are
29689         always present once the type has been analyzed.
29690         (RAS_E_Dereference): Same.
29692         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
29693         reference raises Bad_Attribute, mark the reference as analyzed so the
29694         node (and any children resulting from rewrites that could have occurred
29695         during the analysis that ultimately failed) is not analyzed again.
29697         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
29699         * exp_dist.adb: Minor comment fix.
29701         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
29702         type is an anonymous access type, no unchecked deallocation of the
29703         allocated object can occur. If the object is controlled, attach it with
29704         a count of 1. This allows attachment to the Global_Final_List, if
29705         no other relevant list is available.
29706         (Get_Allocator_Final_List): For an anonymous access type that is
29707         the type of a discriminant or record component, the corresponding
29708         finalisation list is the one of the scope of the type.
29710 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
29712         * sem_ch3.adb (Replace_Type): When computing the signature of an
29713         inherited subprogram, use the first subtype if the derived type
29714         declaration has no constraint.
29716         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
29717         before applying previous optimization. Minor code cleanup.
29719         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
29720         placed at the beginning of an unpacked record without explicit
29721         alignment, a slice of it will be aligned and does not need a copy when
29722         used as an actual.
29724 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
29726         PR ada/15591
29727         PR ada/15592
29728         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
29729         reference is written with expressions mimicking parameters.
29731 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
29733         PR ada/15589
29734         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
29735         STEP 2a. The constraints of a full type declaration of a derived record
29736         type are checked for conformance with those declared in the
29737         corresponding private extension declaration. The message
29738         "not conformant with previous declaration" is emitted if an error is
29739         detected.
29741 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
29743         * g-traceb.ads: Document the need for -E binder switch in the spec.
29745         * g-trasym.ads: Document the need for -E binder switch in the spec.
29747 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
29749         * sem_prag.adb: Add handling of pragma Detect_Blocking.
29751         * snames.h, snames.ads, snames.adb: Add entry for pragma
29752         Detect_Blocking.
29754         * s-rident.ads: Change reference to pragma Detect_Blocking.
29756         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
29757         system.ads.
29759         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
29760         to indicate whether pragma Detect_Blocking is active.
29762         * par-prag.adb: Add entry for pragma Detect_Blocking.
29764         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
29765         of not handling WITH.
29766         Note that this replaces the previous update which was incorrect.
29768 2004-06-25  Javier Miranda  <miranda@gnat.com>
29770         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
29771         use-clauses to have a clean environment.
29773         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
29774         the installation of the use-clauses to stablish a clean environment in
29775         case of compilation of a separate unit; otherwise the call to
29776         use_one_package is protected by the barrier Applicable_Use.
29778         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
29779         the installation of the use-clauses to stablish a clean environment in
29780         case of compilation of a separate unit.
29781         (End_Use_Clauses): Minor comment cleanup.
29783 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
29785         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
29787 2004-06-23  Richard Henderson  <rth@redhat.com>
29789         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
29791 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29793         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
29794         now bool instead of int.
29795         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
29796         * trans.c (gnu_switch_label_stack): New function.
29797         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
29798         elaboration of renamed entity returns.
29799         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
29800         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
29801         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
29802         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
29803         DECL_SIZE_UNIT and simplify variable-sized case.
29804         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
29805         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
29806         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
29807         (build_unit_elab): Disable for now.
29808         * utils.c (mark_visited): New function.
29809         (pushdecl): Walk tree to call it for global decl.
29810         (update_pointer_to): Update all variants of pointer and ref types.
29811         Add arg to COMPONENT_REF.
29812         (convert): Likewise.
29813         Move check for converting between variants lower down.
29814         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
29815         (build_allocator): Don't force type of MODIFY_EXPR.
29816         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
29817         put_var_into_stack.
29819 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29821         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
29822         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
29823         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
29824         subprograms.
29825         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
29826         all callers changed.
29827         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
29828         the way that EXIT_STMT finds the loop label.
29829         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
29830         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
29831         (add_stmt): Use annotate_with_locus insted of setting directly.
29832         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
29833         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
29834         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
29835         (build_vms_descriptor): Add extra args to ARRAY_REF.
29836         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
29837         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
29838         New cases.
29839         (build_binary_op): Don't make explicit CONVERT_EXPR.
29840         Add extra rgs to ARRAY_REF.
29842 2004-06-14  Pascal Obry  <obry@gnat.com>
29844         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
29845         Windows.  Fix minor typo.
29847         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
29848         which is now supported on Windows. With this implementation using the
29849         Library Project feature is no different on Windows than on UNIX.
29851 2004-06-14  Vincent Celier  <celier@gnat.com>
29853         * makegpr.adb (Compile_Sources): Nothing to do when there are no
29854         non-Ada sources.
29856         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
29858         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
29859         found, show the project name and the path of the previously parsed
29860         project file.
29862 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
29864         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
29865         array, avoid copying the actual before the call.
29867 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
29869         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
29870         Instead, allocate memory on worst-case alignment assumptions, and then
29871         return an aligned address within the allocated zone.
29873 2004-06-14  Robert Dewar  <dewar@gnat.com>
29875         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
29876         elab entities in predefined units in No_Run_Time_Mode.
29877         (Gen_Adainit_C): Same fix
29878         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
29879         units in No_Run_Time_Mode
29880         (Gen_Elab_Calls_C): Same fix
29882         * symbols-vms-alpha.adb: Minor reformatting
29884         * g-debpoo.ads: Minor reformatting
29886         * lib.adb (In_Same_Extended_Unit): Version working on node id's
29888         * lib.ads (In_Same_Extended_Unit): Version working on node id's
29890         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
29891         working on nodes.
29893         * make.adb: Minor reformatting
29895         * par-ch12.adb: Minor reformatting
29897         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
29899         * prj-strt.adb: Minor reformatting
29901         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
29902         be more general.
29904         * sem_attr.adb: Minor reformatting
29906         * sem_ch7.adb: Minor reformatting
29908         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
29909         for type in the same unit as the object declaration.
29911         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
29912         static string expressions and not just string literals.
29913         Minor reformatting
29914         (Set_Warning): Reset restriction warning flag for restriction pragma
29915         Implement pragma Profile_Warnings
29916         Implement pragma Profile (Restricted)
29917         Give obolescent messages for old restrictions and pragmas
29919         * snames.h, snames.ads, snames.adb: Add new entry for pragma
29920         Profile_Warnings.
29922         * s-rident.ads: Add declarations for restrictions required by profile
29923         Restricted and profile Ravenscar.
29925         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
29927         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
29928         configuration pragmas.
29930 2004-06-11  Vincent Celier  <celier@gnat.com>
29932         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
29933         gnatsym, when symbol policy is Restricted.
29935         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
29936         gnatsym, when symbol policy is Restricted.
29938         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
29939         read the symbol file.
29940         (Finalize): Fail in symbol policy Restricted if a symbol in the original
29941         symbol file is not in the object files. Do not create a new symbol file
29942         when symbol policy is Restricted.
29944         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
29945         in Scng.
29947         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
29948         Restricted.
29949         (Usage): Line for new switch -R
29951         * make.adb (Initialize): When the platform is not VMS, add the
29952         directory where gnatmake is invoked in the front of the path, if
29953         gnatmake is invoked with directory information.  Change the Scan_Args
29954         while loop to a for loop.
29955         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
29956         if Depth is equal or greater than the proposed depth, there is nothing
29957         to do.
29958         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
29959         instead of 0.
29961         * prj.ads: Add new symbol policy Restricted.
29963         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
29964         with the new parameters Check_All_Labels and Case_Location.
29966         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
29967         (Library_Symbol_File needs to be defined).
29969         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
29970         and Case_Location If Check_All_Labels is True, check that all values of
29971         the string type are used, and output warning(s) if they are not.
29973         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
29974         and Case_Location.
29976         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
29978         * gnat_ugn.texi: Update documentation about the library directory in
29979         Library Projects.
29981         * makegpr.adb (Display_Command): In verbose mode, also display the
29982         value of the CPATH env var, when the compiler is gcc.
29983         (Initialize): Change the Scan_Args while loop to a for loop
29984         (Compile_Individual_Sources): Change directory to object directory
29985         before compilations.
29987         * symbols.ads: New symbol policy Restricted.
29989 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
29991         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
29992         is now taken care of internally in the Exception_Propagation package
29993         and does not require clients assistance any more.
29995         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
29996         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
29997         functions. Helpers to maintain a predicate required in the handling of
29998         occurrence transfer between tasks.
29999         This is now handled internally and does not require clients assistance
30000         for the setup/propagate separation anymore.
30001         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
30002         allocation strategy, handle the Setup_And_Not_Propagated predicate and
30003         document.
30005         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
30006         raise_after_setup, now that everything is handled internally within the
30007         setup/propagation engine.
30009 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
30011         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
30012         Add additional conditions for the case of an actual being a simple
30013         name or literal. Improve inlining by preventing the generation
30014         of temporaries with a short lifetime (one use).
30016 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
30018         PR ada/15587
30019         * einfo.ads: Minor comment updates for Has_Completion and
30020         E_Constant list of flags.
30022         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
30023         and constant redeclarations now set the Has_Completion flag of their
30024         defining identifiers.
30026         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
30027         Inspect_Deferred_Constant_Completion.
30028         Used to detect private deferred constants that have not been completed
30029         either by a constant redeclaration or pragma Import. Emits error message
30030         "constant declaration requires initialization expression".
30032         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
30033         completes a deferred constant.
30035 2004-06-11  Geert Bosch  <bosch@gnat.com>
30037         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
30039         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
30040         calculating exponent for scaling denormal numbers.
30041         (Leading_Part): Properly raise Constraint_Error for zero or negative
30042         Adjustment.
30043         (Remainder): Properly raise Constraint_Error for zero divisor.
30045 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
30047         * sem_util.adb: Minor reformatting.
30049         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
30050         dereference when accessing the entry parameter record.
30051         (Check_Array_Type): Always check for possible implicit dereference.
30052         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30053         Abort if a pointer is still present (denoting that an implicit
30054         dereference was left in the tree by the front-end).
30056         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
30057         dereference when accessing the entry parameter record.
30058         (Check_Array_Type): Always check for possible implicit dereference.
30059         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30060         Abort if a pointer is still present (denoting that an implicit
30061         dereference was left in the tree by the front-end).
30063 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
30065         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
30066         message, like the compiler itself does. Easier to parse the output.
30068         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
30070         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
30071         be base names, and not includes directories.
30073 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
30075         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
30076         so that dependencies are properly taken into account by make.
30078 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
30080         PR ada/15622
30081         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
30082         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
30084 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
30086         * Makefile.in (install-gnatlib): install target-specific run-time files.
30088         * Make-lang.in: Remove obsolete targets.
30090 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
30092         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
30093         specification, to catch misuses of program unit names.
30095         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
30096         superfluous conversions in an instance.
30098 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
30100         PR ada/15403
30101         * sem_ch12.adb (Save_References): If operator node has been folded to
30102         enumeration literal, associated_node must be discarded.
30104 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
30106         * s-stchop-vxworks.adb: Add required pragma Convention to
30107         Task_Descriptor because it is updated by a C function.
30109 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
30111         PR ada/15568
30112         * Makefile.in: Remove target specific SO_OPT on IRIX
30114 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30116         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
30117         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
30118         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
30119         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
30120         (STMT_STMT, USE_STMT): New statement codes.
30121         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
30122         * ada-tree.h: Reflect above changes.
30123         (struct tree_loop_id): Deleted.
30124         (union lang_tree_node, struct lang_decl, struct lang_type):
30125         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
30126         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
30127         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
30128         (IS_ADA_STMT): New macro.
30129         * decl.c (annotate_decl_with_node): New function.
30130         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
30131         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
30132         Call add_stmt_with_node to do needed assignments.
30133         Add call to update setjmp buffer directly, not via EXPR_STMT.
30134         (maybe_variable): Argment GNAT_NODE deleted.
30135         * gigi.h (maybe_variable): Likewise.
30136         (make_transform, add_stmt_with_node, set_block_for_group): New.
30137         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
30138         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
30139         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
30140         (set_lineno, set_lineno_from_sloc): Likewise.
30141         (record_code_position, insert_code_for): Likewise.
30142         (gnat_poplevel): Now returns void.
30143         (end_subprog_body): Now takes argument.
30144         * misc.c (cgraph.h, tree-inline.h): New includes.
30145         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
30146         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
30147         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
30148         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
30149         (gnat_parse_file): Don't set immediate_size_expand.
30150         Call cgraph functions.
30151         (gnat_expand_expr): Remove most cases.
30152         (record_code_position, insert_code_for): Remove from here.
30153         * trans.c (toplev.h, tree-gimple.h): Now included.
30154         (discard_file_names): Deleted.
30155         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
30156         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
30157         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
30158         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
30159         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
30160         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
30161         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
30162         (set_block_for_group, add_stmt_list): Likewise.
30163         (start_stmt_group): Renamed from start_block_stmt.
30164         (end_stmt_group): Likewise, from end_block_stmt.
30165         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
30166         (gigi): Don't set discard_file_names or call set_lineno.
30167         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
30168         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
30169         Numerous changes throughout to reflect new names and complete
30170         function-at-a-time implementation.
30171         (gnat_expand_stmt): Delete or comment out all cases.
30172         (process_inlined_subprograms): Use add_stmt.
30173         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
30174         call set_lineno; also remove unneeded block handling.
30175         (process_type): Remove unneeded block handling.
30176         (build_unit_elab): Remove calls to deleted functions.
30177         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
30178         (tree-dump.h): Likewise.
30179         (struct ada_binding_level): Add field jmpbuf_decl.
30180         (gnat_define_builtin, gnat_install_builtins): New.
30181         (gnat_gimplify_function, gnat_finalize): Likewise.
30182         (gnat_poplevel): No longer return BLOCK, set it instead.
30183         Remove code dealing with nested functions.
30184         (gnat_init_decl_processing): Also set size_type_node.
30185         Call gnat_install_builtins.
30186         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
30187         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
30188         Remove special-case for "main".
30189         (end_subprog_body): Add arg and rework for tree-ssa.
30190         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
30191         Add case for BOOLEAN_TYPE.
30192         * utils2.c (rtl.h): Now include.
30193         (build_call_raise): Test Debug_Flag_NN directly.
30194         (build_call_alloc_dealloc): Don't use local stack allocation for now.
30195         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
30196         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
30198 2004-06-07  Robert Dewar  <dewar@gnat.com>
30200         * a-direct.ads, einfo.ads: Minor comment updates
30202         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
30203         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30204         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
30205         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
30206         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
30208         * s-interr-sigaction.adb: Remove unreferenced variable
30209         (Attached_Interrupts).  Minor reformatting.
30210         Avoid use of variable I (replace by J).
30212         * par-ch10.adb: Fix text of one error message
30214         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
30215         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
30216         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
30217         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
30218         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
30219         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
30220         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
30221         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
30222         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
30223         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
30224         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
30225         2005 support.
30227 2004-06-07  Doug Rupp  <rupp@gnat.com>
30229         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
30231         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
30233         * mlib-tgt-vms-ia64.adb: New file.
30235         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
30236         Add mlib-tgt-vms-ia64.adb
30237         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
30238         Move to alpha specific ifeq section.
30239         Add VMS specific versions of symbols.adb
30240         Renaming of 5q vms files.
30242         * 5qsystem.ads renamed to system-vms_64.ads.
30244 2004-06-07  Vincent Celier  <celier@gnat.com>
30246         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
30247         explain that when a time of day corresponding to the non existing hour
30248         on the day switching to DST is specified, Split may return a different
30249         value for Seconds.
30251         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
30252         to GNAT PRETTY.
30254         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
30255         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
30257         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
30258         to False.
30259         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
30260         the linking options.
30261         (Build_Library.Check_Libs): On VMS, if there is a dependency on
30262         g-trasym.ads, set Gtrasymobj_Needed to True.
30264         * prj-attr.adb: Add new package Metrics for gnatmetric
30266         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
30267         canonical case to take into account files with upper case characters on
30268         Windows.
30269         (Ada_Check): Load the reference symbol file name in the name buffer to
30270         check it, not the symbol file name.
30272         * snames.ads, snames.adb: Add standard name Metrics (name of project
30273         file package for gnatmetric).
30275         * vms_conv.ads: Add Metric to Comment_Type
30277         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
30279         * vms_data.ads: Add qualifiers for GNAT METRIC
30281         * makegpr.adb (Link_Executables): Take into account the switches
30282         specified in package Linker of the main project.
30284 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
30286         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
30287         the index of the last element is Units.Last, not Units.Table'Last
30288         (which is usually not a valid index within the actually allocated
30289         storage for the table).
30291         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
30292         determines whether to generate a call to a checked storage pool
30293         Dereference action.
30294         Generate such a call only for a dereference that either comes from
30295         source, or is the result of rewriting a dereference that comes from
30296         source.
30298 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
30300         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
30302 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
30304         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
30305         file level, elaborate the stride for inner dimensions in alignment
30306         units, not bytes.
30308         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
30309         in a comment.
30311 2004-06-07  Javier Miranda  <miranda@gnat.com>
30313         * exp_ch6.adb: Correct wrong modification in previous patch
30315 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
30317         * g-trasym.ads: Corrected comment to properly reflect level of support
30318         on VMS.
30320 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
30322         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
30323         includes case of a variable referenced on the left hand side of an
30324         assignment, therefore remove redundant code. Variables and prefixes of
30325         indexed or selected components are now marked as referenced on left
30326         hand side. Warnings are now properly emitted when variables or prefixes
30327         are assigned but not read.
30329         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
30330         left hand side referenced variables. Private access types do not
30331         produce the warning "variable ... is assigned but never read".
30332         Add also additional checks to left hand side referenced variables.
30333         Aliased, renamed objects and access types do not produce the warning
30334         "variable ... is assigned but never read" since other entities may read
30335         the memory location.
30337 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
30339         * Makefile.in: In the powerpc/vxworks-specific section, restore
30340         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
30341         by mistake).
30343 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
30345         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
30346         predefined operators.
30347         Removes spurious type errors from g-trasym-vms.adb.
30349         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
30350         distinct from the operator appearing in the source, call appropriate
30351         routine to insert conversions when needed, and complete resolution of
30352         node.
30353         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
30354         interpretations for rewritten right operand.
30355         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
30356         the other operand is overloaded and the context is a type conversion.
30358 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30360         * ada-tree.def (BLOCK_STMT): Now has two operands.
30361         (BREAK_STMT): New.
30363         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
30365         * gigi.h: (gnat_poplevel): Now returns a tree.
30367         * trans.c (end_block_stmt): Add arg; all callers changed.
30368         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
30369         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
30370         (add_stmt): Set TREE_TYPE.
30371         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
30372         (gnat_expand_stmt, case BREAK_STMT): New case.
30374         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
30376 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
30378         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
30379         procedure Set_Stack_Size that is not needed.
30381 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
30383         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
30384         used for gnatpp input file and for the files upon which it depends
30386 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
30388         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
30390 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
30392         * gnatvsn.ads: Bump version numbers appropriately.
30393         Add new build type.
30395 2004-06-07  Pascal Obry  <obry@gnat.com>
30397         * gnat_ugn.texi: Improve comments about imported names and link names
30398         on Windows. Add a note about the requirement to use -k gnatdll's option
30399         when working with a DLL which has stripped stdcall symbols (no @nn
30400         suffix).
30402 2004-05-27  Vincent Celier  <celier@gnat.com>
30404         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
30405         COMMENTS_LAYOUT=UNTOUCHED
30407         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
30408         symbols-vms-alpha.adb
30410 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
30412         * sem.ads: Clarify documentation on checks suppression.
30414         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
30416 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
30418         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
30419         the case of multiple derivations.
30420         (Is_Object_Reference): For a selected component, verify that the prefix
30421         is itself an object and not a value.
30423         * sem_ch12.adb (Same_Instantiated_Constant): New name for
30424         Same_Instantiated_Entity.
30425         (Same_Instantiated_Variable): Subsidiary to
30426         Check_Formal_Package_Instance, to recognize actuals for in-out generic
30427         formals that are obtained from a previous formal package.
30428         (Instantiate_Subprogram_Body): Emit proper error when
30429         generating code and the proper body of a stub is missing.
30431         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
30432         has a universal interpretation, do the disambiguation here.
30434         * exp_ch4.adb (Expand_N_Type_Conversion,
30435         Expand_N_Unchecked_Type_Conversion): Special handling when target type
30436         is Address, to avoid typing anomalies when Address is a visible integer
30437         type.
30439         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
30440         to determine whether a subprogram should not be marked Pure, even when
30441         declared in a pure package.
30443 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
30445         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
30447         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
30448         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
30449         Update the documentation about the Ravenscar profile, following the
30450         definition found in AI-249.
30452         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
30453         setting the Profile (Ravenscar). This must be done in addition to
30454         setting the required restrictions.
30456         * rtsfind.ads: Add the set of operations defined in package
30457         Ada.Interrupts.
30459         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
30460         restriction.
30462 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
30464         lang-specs.h: Always require -c or -S and always redirect to /dev/null
30465         if -gnatc or -gnats is passed.
30467 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
30469         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
30470         a significant reference. Warnings are now properly emitted when a
30471         discriminated type is not referenced.
30473         * lib-xref.adb (Generate_Reference): A deferred constant completion,
30474         record representation clause or record type discriminant does not
30475         produce a reference to its corresponding entity. Warnings are now
30476         properly emitted when deferred constants and record types are not
30477         referenced.
30479 2004-05-27  Geert Bosch  <bosch@gnat.com>
30481         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
30482         Fixes ACATS Annex G tests.
30484 2004-05-27  Robert Dewar  <dewar@gnat.com>
30486         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
30487         handling WITH
30489 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
30491         * s-interr.adb (Server_Task): Take into account case of early return
30492         from sigwait under e.g. linux.
30494 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
30496         * gnat_ugn.texi: Add description for the new gnatpp options:
30497          -rnb - replace the original source without creating its backup copy
30498          -c0 - do not format comments
30500 2004-05-24  Geert Bosch  <bosch@gnat.com>
30502         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
30503         with 192 bits of precision, sufficient to reduce a double-extended
30504         arguments X with a maximum relative error of T'Machine_Epsilon, for X
30505         in -2.0**32 .. 2.0**32.
30506         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
30507         reduction by the processor, which only uses a 68-bit approximation of
30508         Pi.
30509         (Tan): Always reduce arguments and compute function either using
30510         the processor's fptan instruction, or by dividing sin and cos as needed.
30512 2004-05-24  Doug Rupp  <rupp@gnat.com>
30514         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
30515         gcc error on 32/64 bit VMS.
30517 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
30519         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
30520         since this is what we get for stack overflows although not documented
30521         as such.
30522         Document the issues which may require adjustments to our signal
30523         handlers.
30525 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
30527         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
30528         enclosing dynamic scope if the instantiation is within a generic unit.
30530 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
30532         * exp_dbug.ads: Fix typo.
30534         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
30535         Rename it to its proper name: system-linux-ia64.ads
30536         (stamp-gnatlib1): Remove extra target specific run time files when
30537         setting up the rts directory.
30539 2004-05-24  Javier Miranda  <miranda@gnat.com>
30541         * einfo.ads, einfo.adb (Limited_Views): Removed.
30542         (Limited_View): New attribute that replaces the previous one. It is
30543         now a bona fide package with the limited-view list through the
30544         first_entity and first_private attributes.
30546         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
30547         limited-private-with clause.
30548         (Install_Limited_Withed_Unit): Install the private declarations of a
30549         limited-private-withed package. Update the installation of the shadow
30550         entities according to the new structure (see Build_Limited_Views)
30551         (Build_Limited_Views): Replace the previous implementation of the
30552         limited view by a package entity that references the first shadow
30553         entity plus the first shadow private entity (required for limited-
30554         private-with clause)
30555         (New_Internal_Shadow_Entity): Code cleanup.
30556         (Remove_Limited_With_Clause): Update the implementation to undo the
30557         new work carried out by Build_Limited_Views.
30558         (Build_Chain): Complete documentation.
30559         Replace Ada0Y by Ada 0Y in comments
30560         Minor reformating
30562         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
30563         types the level of accessibility depends on the enclosing type
30564         declaration.
30566         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
30567         entities. Complete documentation of previous change.
30569 2004-05-24  Robert Dewar  <dewar@gnat.com>
30571         * namet.adb: Minor reformatting
30572         Avoid use of name I (replace by J)
30573         Minor code restructuring
30575         * sem_ch6.adb: Minor reformatting
30577         * lib-writ.adb: Do not set restriction as active if this is a
30578         Restriction_Warning case.
30580         * sem_prag.adb: Reset restriction warning flag if real pragma
30581         restriction encountered.
30583         * s-htable.adb: Minor reformatting
30584         Change rotate count to 3 in Hash (improves hash for small strings)
30586         * 5qsystem.ads: Add comments for type Address (no literals allowed).
30588         * gnat_ugn.texi: Add new section of documentation "Code Generation
30589         Control", which describes the use of -m switches.
30591 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
30593         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
30594         through the DECL_INITIAL for renamed variables.
30596 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
30598         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
30600 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
30602         * exp_dbug.ads: Correct comments concerning handling of overloading,
30603         since we no longer use $ anymore.
30605 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
30607         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
30608         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
30609         with illegal subunits.
30611 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
30613         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
30614         body with front-end inlining enabled, check whether an inline pragma
30615         appears immediately after the body and applies to it.
30617         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
30618         enabled and the pragma appears after the body of the subprogram.
30620 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30622         Part of function-at-a-time conversion
30624         * misc.c (adjust_decl_rtl): Deleted.
30625         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
30626         Define.
30628         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
30629         (add_decl_stmt, add_stmt, block_has_vars): New functions.
30630         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
30632         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
30633         when making a decl.
30634         (gnat_to_gnu_entity): Likewise.
30635         Use add_stmt to update setjmp buffer.
30636         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
30637         flush_addressof.
30638         No longer call adjust_decl_rtl.
30639         (DECL_INIT_BY_ASSIGN_P): New macro.
30640         (DECL_STMT_VAR): Likewise.
30642         * trans.c (gigi): Call start_block_stmt to make the outermost
30643         BLOCK_STMT.
30644         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
30645         Call start_block_stmt and end_block_stmt temporarily.
30646         Use gnat_expand_stmt instead of expand_expr_stmt.
30647         (add_decl_stmt): New function.
30648         (tree_transform): Call it.
30649         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
30650         (end_block_stmt): Set type and NULL_STMT.
30651         (gnat_expand_stmt): Make recursize call instead of calling
30652         expand_expr_stmt.
30653         (gnat_expand_stmt, case DECL_STMT): New case.
30654         (set_lineno_from_sloc): Do nothing if global.
30655         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
30656         (start_block_stmt, add_stmt, end_block_stmt): New functions.
30657         (build_block_stmt): Call them.
30658         (gnat_to_code): Don't expand NULL_STMT.
30659         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
30660         args.
30661         (tree_transform): Likewise.
30662         (tree_transform, case N_Null_Statement): Return NULL_STMT.
30663         (gnat_expand_stmt, case NULL_STMT): New case.
30664         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
30665         IF_STMT_TRUE.
30667         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
30668         TREE_ADDRESSABLE.
30670         * utils.c (create_var_decl): Do not call expand_decl or
30671         expand_decl_init.
30672         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
30673         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
30674         here.
30675         (struct e_stack): Add chain_next to GTY.
30676         (struct binding_level): Deleted.
30677         (struct ada_binding_level): New struct.
30678         (free_block_chain): New.
30679         (global_binding_level, clear_binding_level): Deleted.
30680         (global_bindings_p): Rework to see if no chain.
30681         (kept_level_p, set_block): Deleted.
30682         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
30683         new data structure and work directly on BLOCK node.
30684         (gnat_poplevel): Similarly.
30685         (get_decls): Look at BLOCK_VARS.
30686         (insert_block): Work directly on BLOCK node.
30687         (block_has_var): New function.
30688         (pushdecl): Rework for new binding structures.
30689         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
30690         poplevel.
30691         (build_subprog_body): Likewise.
30692         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
30694         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
30696         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
30697         (DECL_STMT_VAR): Likewise.
30699 2004-05-17  Robert Dewar  <dewar@gnat.com>
30701         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
30702         procedure
30704         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
30705         of restriction synonyums by using
30706         Restrict.Process_Restriction_Synonyms.
30708         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
30710         * s-restri.ads (Tasking_Allowed): Correct missing comment
30712         * s-rident.ads: Add entries for restriction synonyms
30714         * ali.adb: Fix some problems with badly formatted ALI files that can
30715         result in infinite loops.
30717         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
30718         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
30719         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30720         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
30721         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
30722         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
30723         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
30724         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
30725         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
30726         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
30727         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
30728         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
30729         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
30730         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
30731         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
30732         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
30733         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
30734         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
30735         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
30736         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
30737         to Task_Id (minor cleanup).
30739 2004-05-17  Vincent Celier  <celier@gnat.com>
30741         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
30742         directory separator.
30744         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
30745         project being extended, if Languages is not declared in extending
30746         project.
30748 2004-05-17  Javier Miranda  <miranda@gnat.com>
30750         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
30751         limited view of a visible sibling.
30753 2004-05-14  Robert Dewar  <dewar@gnat.com>
30755         * gnat_ugn.texi: Minor change to -gnatS documentation
30757         * sprint.adb: Remove some instances of Assert (False) and for this
30758         purpose replace them by output of a ??? string.
30760         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
30761         Assert (False).
30763         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
30764         flag processing. This was suppressing required dependencies in
30765         No_Run_Time mode and is not needed since the binder does not generate
30766         references for things in libgnat anyway.
30768         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
30769         warning.
30771 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
30773         * gnat_ugn.texi: Document AIX-specific issue with initialization of
30774         resolver library.
30776         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
30777         action for the case of an actual parameter in an init proc call.
30779 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
30781         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
30782         subtype, check visible entities in base type.
30784         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
30785         actions if the object is a renaming.
30787         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
30788         Check_Formal_Package_Instance, to determine more precisely when the
30789         formal and the actual denote the same entity.
30791 2004-05-14  Javier Miranda  <miranda@gnat.com>
30793         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
30795         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
30796         corresponding to a private_with must be removed from visibility; it
30797         will be made visible later, just before we analyze the private part of
30798         the package.
30799         (Check_Private_Child_Unit): Allow private_with clauses in public
30800         siblings.
30801         (Install_Siblings): Make visible the private entities of private-withed
30802         siblings.
30803         (Install_Withed_Unit): Do not install the private withed unit if we
30804         are compiling a package declaration and the Private_With_OK flag was
30805         not set by the caller. These declarations will be installed later,
30806         just before we analyze the private part of the package.
30808         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
30809         during the evaluation of the expression that initializes the object,
30810         decorate it with the expected type to avoid cascade errors.
30811         Code cleanup.
30813         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
30814         subprogram we have to install the private_with clauses after its
30815         specification has been analyzed (as documented in AI-262.TXT).
30817         * sem_ch8.adb (Has_Private_With): New function. Determines if the
30818         current compilation unit has a private with on a given entity.
30819         (Find_Direct_Name): Detect the Beaujolais problem described in
30820         AI-262.TXT
30822         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
30823         provides the functionality of the function Is_Ancestor that was
30824         previously available in sem_ch10. It has been renamed to avoid
30825         overloading.
30827         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
30829 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30831         * utils.c (build_vms_descriptor): Use SImode pointers.
30833 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
30835         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
30837 2004-05-14  GNAT Script  <nobody@gnat.com>
30839         * Make-lang.in: Makefile automatically updated
30841 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
30843         Renaming of target specific files for clarity
30845         * Makefile.in: Rename GNAT target specific files.
30847         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
30848         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
30849         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
30850         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
30851         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
30852         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
30853         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
30854         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
30855         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
30856         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
30857         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
30858         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
30859         51osinte.adb, 51osinte.ads, 51system.ads,
30860         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
30861         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
30862         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
30863         56tpopsp.adb, 57system.ads, 58system.ads,
30864         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
30865         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
30866         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
30867         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
30868         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
30869         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
30870         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
30871         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
30872         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
30873         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
30874         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
30875         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
30876         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
30877         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
30878         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
30879         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
30880         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
30881         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
30882         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
30883         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
30884         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
30885         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
30886         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
30887         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
30888         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
30889         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
30890         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
30891         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
30892         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
30893         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
30894         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
30895         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
30896         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
30897         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
30898         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
30899         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
30900         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
30901         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
30902         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
30903         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
30905         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
30906         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
30907         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
30908         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
30909         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
30910         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
30911         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
30912         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
30913         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
30914         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
30915         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
30916         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
30917         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
30918         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
30919         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
30920         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
30921         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
30922         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
30923         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
30924         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
30925         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
30926         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
30927         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
30928         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
30929         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
30930         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
30931         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
30932         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
30933         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
30934         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
30935         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
30936         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
30937         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
30938         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
30939         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
30940         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
30941         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
30942         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
30943         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
30944         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
30945         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
30946         s-osinte-vms.ads, s-osinte-vxworks.adb,
30947         s-osinte-vxworks.ads, s-osprim-mingw.adb,
30948         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
30949         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
30950         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
30951         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
30952         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
30953         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
30954         s-stchop-vxworks.adb, s-taprop-dummy.adb,
30955         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
30956         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
30957         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
30958         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
30959         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
30960         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
30961         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
30962         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
30963         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
30964         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
30965         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
30966         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
30967         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
30968         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
30969         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
30970         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
30971         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
30972         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
30973         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
30974         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
30975         system-irix-o32.ads, system-linux-x86_64.ads,
30976         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30977         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
30978         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
30979         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
30980         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
30981         system-vxworks-mips.ads, system-vxworks-ppc.ads,
30982         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
30983         above.
30985 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
30987         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
30989 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
30991         Merge from tree-ssa-20020619-branch.
30993         * config-lang.in (boot_language, build_by_default): Set
30994         to no.
30995         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
30996         (max_size): Add static chain op for call_expr.
30998 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
31000         PR target/15331
31001         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
31003 2004-05-11  Roger Sayle  <roger@eyesopen.com>
31005         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
31006         COND_EXPR.
31008 2004-05-10  Doug Rupp  <rupp@gnat.com>
31010         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
31011         system.aux_dec.
31013         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
31015         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
31017         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
31018         Fixes undefined symbols in IA64 gnatlib.
31020         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
31022         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
31023         Short_Address). This will be moved to system.auxdec.
31025 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
31027         * sem_util.adb: Replace test for presence of a node that is always
31028         present with a call to Discard_Node.
31030         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
31031         Analyze on the library unit node after generation of distribution stub
31032         constructs.  The call was a no-op because Unit_Node has already been
31033         Analyzed, and the tree fragments for the distribution stubs are
31034         analyzed as they are inserted in Exp_Dist.
31035         Update comment regarding to distribution stubs to reflect that we
31036         do not generate stub in separate files anymore.
31038         * einfo.ads: Clarify the fact that a tagged private type has the
31039         E_Record_Type_With_Private Ekind.
31041         * erroutc.adb: Minor reformatting
31043         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
31044         values if line length is increased using -gnatyM (noticed during code
31045         reading).
31047         * eval_fat.adb: Minor reformatting
31048         Put spaces around exponentiation operator
31050 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
31052         PR ada/15005
31053         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
31054         has been rewritten as an explicit dereference, retrieve type of
31055         original node to check for possibly unconstrained record type.
31057 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
31059         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
31060         overriding, use the operation of the parent unconditionally.
31062         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
31063         operation when either operand is a literal, to avoid further
31064         ambiguities.
31066         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
31067         overridden by a previous explicit declaration, mark the previous entity
31068         as overriding.
31070         * sem_disp.adb (Check_Dispatching_Operation): New predicate
31071         Is_Visibly_Controlled, to determine whether a declaration of a
31072         primitive control operation for a derived type overrides an inherited
31073         one. Add warning if the explicit declaration does not override.
31075 2004-05-10  Vincent Celier  <celier@gnat.com>
31077         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
31078         some cases when the sources are no longer present.
31080         * make.adb (Collect_Arguments): Fail if an external source, not part
31081         of any project need to be compiled, when switch -x has not been
31082         specified.
31084         * makeusg.adb: Document new switch -x
31086         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
31087         defaulted to False.
31089         * switch-m.adb (Scan_Make_Switches): New switch -x
31091         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
31092         gnatmake switch -x.
31094         * gnat_ugn.texi: Document new gnatmake switch -x
31096 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
31098         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
31100         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
31101         (process_attributes): Likewise.
31103 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
31105         * s-inmaop.ads: Fix spelling mistake in one of the comments.
31107 2004-05-10  Robert Dewar  <dewar@gnat.com>
31109         * gnat_ugn.texi: Document that for config pragma files, the maximum
31110         line length is always 32767.
31112         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
31113         literals is now allowed.
31115         * gnat-style.texi: Remove statement about splitting long lines before
31116         an operator rather than after, since we do not follow this rule at all.
31117         Clarify rule (really lack of rule) for spaces around exponentiation
31119         * sem_elim.adb: Allow concatenation of string literals as well as a
31120         single string literal for pragma arguments.
31122         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
31124         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
31125         written for append case.
31127         * frontend.adb: Changes to avoid checking max line length in config
31128         pragma files.
31130         * g-os_lib.ads: Minor reformatting
31132         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
31133         wrong in any case. Instead use standard value. Noticed during code
31134         reading.
31136         * opt.ads (Max_Line_Length): New field, used to implement removal of
31137         limitation on length of lines when scanning config pragma files.
31139         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
31140         makeutl.ads, makeutl.adb: Minor reformatting
31142         * scn.adb: Do not check line length while scanning config pragma files
31143         Do not check line length while scanning out license information
31145         * scng.adb: Changes to avoid line length checks while parsing config
31146         pragma files.
31148 2004-05-10  GNAT Script  <nobody@gnat.com>
31150         * Make-lang.in: Makefile automatically updated
31152 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
31154         * osint.adb (Find_Program_Name): Fix handling of VMS version
31155         number.
31157 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
31159         * g-os_lib.ads (Invalid_Time): New constant
31161         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
31162         return OS_Time instead of time_t to match what is imported by Ada.
31163         Now return -1 if the file doesn't exist, instead of a random value
31165 2004-05-05  Robert Dewar  <dewar@gnat.com>
31167         * usage.adb: Add line for -gnatR?s switch
31169         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
31171         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
31172         and for Match (Data_First, Data_last)
31174         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
31175         written when we are dealing with multi-unit files.
31177 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
31179         * Makefile.in: Remove unused targets and variables.
31181 2004-05-05  Vincent Celier  <celier@gnat.com>
31183         * switch-m.adb: New gnatmake switch -eI
31185         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
31186         of new gnatmake switch -eInnn.
31188         * makegpr.adb: Take into account new parameters Index and Src_Index in
31189         Prj.Util.
31191         * clean.adb: Implement support for multi-unit sources, including new
31192         switch -i.
31194         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
31195         Src_Index.
31197         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
31198         (Extract_From_Q): New out parameter Index
31199         (Mark, Is_Marked): Subprograms moved to Makeutl
31200         (Switches_Of): New parameter Source_Index
31201         (Add_Switch): New parameter Index
31202         (Check): New parameter Source_Index
31203         (Collect_Arguments): New parameter Source_Index
31204         (Collect_Arguments_And_Compile): New parameter Source_Index
31205         (Compile): New parameter Source_Index
31206         Put subprograms in alphabetical order
31207         Add support for multi-source sources, including in project files.
31209         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
31210         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
31211         Make.
31213         * makeusg.adb: New gnatmake switch -eInnn
31215         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
31216         Prj.Util.Value_Of.
31218         * opt.ads (Main_Index): New variable, defaulted to 0.
31220         * osint.ads, osinte.adb (Add_File): New parameter Index
31221         (Current_Source_Index): New function
31223         * prj.adb: Take into account new components Index and Src_Index
31225         * prj.ads (String_Element): New component Index
31226         (Variable_Value): New component Index
31227         (Array_Element): New component Src_Index
31229         * prj-attr.adb: Indicate that optional index may be specified for
31230         attributes Main, Executable, Spec, Body and some of Switches.
31232         * prj-attr.ads (Attribute_Kind): New values for optional indexes
31233         (Attribute_Record): New component Optional_Index
31235         * prj-com.ads (File_Name_Data): New component Index
31237         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
31239         * prj-env.adb (Put): Output optional index
31241         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
31242         attributes Spec and Body.
31244         * prj-nmsc.adb: Process optional indexes
31246         * prj-pp.adb: Ouput "at" for optional indexes
31248         * prj-proc.adb: Take into account optional indexes
31250         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
31251         Optional_Index. For string literal,
31252         process optional index when Optional_Index is True.
31253         (Parse_Expresion): New Boolean parameter Optional_Index
31255         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
31256         (Set_Source_Index_Of): New procedure
31258         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
31259         index.
31261         * prj-util.ads (Executable_Of): New parameter Index
31262         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
31263         New parameter Src_Index, defaulted to 0.
31265 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
31267         PR ada/15257
31268         * sem_ch3.adb (Access_Definition): If this is an access parameter
31269         whose designated type is imported through a limited_with clause, do
31270         not add the enclosing subprogram to the list of private dependents of
31271         the type.
31273 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
31275         PR ada/15258
31276         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
31277         a limited_with clause, and the other is its non-limited view.
31279 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
31281         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
31283         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
31284         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
31285         Stand.Boolean_Literals to produce references to entities
31286         Standard_False and Standard_True from compile-time computed boolean
31287         values.
31289         * stand.ads (Boolean_Literals): New variable, provides the entity
31290         values for False and True, for use by the expander.
31292 2004-05-05  Doug Rupp  <rupp@gnat.com>
31294         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
31295         5vinmaop.adb: Unchecked convert Short_Address vice Address
31297         * adaint.c, raise.c: Caste CRTL function return value
31298         to avoid gcc error on 32/64 bit IVMS.
31300         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
31301         target = IA64/VMS.
31303         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
31305         * 5qsystem.ads (Address): Declare as Long_Integer
31306         (Short_Address): Declare as 32 bit subtype of Address
31307         Declare  abstract address operations to avoid gratuitous ambiguities.
31309 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
31311         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
31312         instead of the old Boolean_Entry_Barriers.
31313         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
31315 2004-05-05  GNAT Script  <nobody@gnat.com>
31317         * Make-lang.in: Makefile automatically updated
31319 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
31321         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
31323 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
31325         PR ada/15152
31326         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
31327         alone. Replacing object references by literals is inappropriate in a
31328         so low level context.
31330 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
31332         * a-exexpr.adb: Add comments
31334 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
31336         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
31337         declare the Ancestor_Tags array in Type_Specific_Data with a small size
31338         without risking a bounds check error when accessing one of its
31339         components.
31340         (Type_Specific_Data): Define Ancestor_Tags as a small array.
31341         This prevents us from hitting a limitation during the debug info
31342         generation when using stabs.
31344         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
31345         small array.
31346         This prevents us from hitting a limitation during the debug info
31347         generation when using stabs.
31349 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
31351         lang-specs.h: Remove -gnatz* from specs.
31353 2004-05-03  Vincent Celier  <celier@gnat.com>
31355         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
31357         * Make-lang.in, Makefile.in: Add gprmake
31359 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
31361         * sem_aggr.adb: Fix typo in comment.
31363 2004-05-03  Robert Dewar  <dewar@gnat.com>
31365         * make.adb: Minor reformatting
31367         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
31369         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
31370         so that it works when address is not a private type.
31372         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
31373         properly with rewritten unchecked conversions. This prevents
31374         order-of-elaboration issues that can otherwise arise.
31375         (Minimum_Size): Don't check size of access types under VMS
31377         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
31378         interpretations of integer literals as type System.Address.
31380         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
31381         (Is_Descendent_Of): New function
31383 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
31385         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31386         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
31387         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
31389         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
31390         of the old Max_Entry_Queue_Depth.
31392         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31393         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
31394         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
31396         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
31397         New entry for proper handling of Max_Entry_Queue_Depth.
31398         New entry for proper handling of No_Dynamic_Interrupts.
31400         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
31401         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31402         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
31403         the GNAT specific restriction Max_Entry_Queue_Depth.
31404         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
31405         the GNAT specific restriction No_Dynamic_Interrupts.
31407         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
31408         instead of the old Boolean_Entry_Barriers.
31409         Use the new restriction No_Dynamic_Attachment instead of the old
31410         No_Dynamic_Interrupts.
31412         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
31413         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31415         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
31416         of the old Max_Entry_Queue_Depth.
31418 2004-05-03  GNAT Script  <nobody@gnat.com>
31420         * Make-lang.in: Makefile automatically updated
31422 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
31424         * checks.adb (Enable_Range_Check): If the prefix of an index component
31425         is an access to an unconstrained array, perform check unconditionally.
31427 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31429         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
31430         Component_Clause.
31432 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
31434         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
31435         alternate stack setting. There was no support for the tasking cases
31436         and the changes eventually caused a number of side-effect failures in
31437         the non-tasking case too.
31439 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
31441         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
31442         -gnats is passed.
31444 2004-04-29  Vincent Celier  <celier@gnat.com>
31446         * make.adb (Gnatmake): Increase max size of argument array for
31447         gnatbind for the potential addition of -F.
31448         If there are Stand-Alone Library projects, invoke gnatbind with -F to
31449         be sure that elaboration flags will be checked.
31451         * switch-c.adb: Correct call to Scan_Pos for -gnateI
31453 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
31455         * sem_warn.adb (Check_References): Move '<access-variable> may be
31456         null' warning out of under Warn_On_No_Value_Assigned.
31458 2004-04-29  Ed Falis  <falis@gnat.com>
31460         * gnat_ugn.texi: Fixed texi error
31462 2004-04-29  Robert Dewar  <dewar@gnat.com>
31464         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
31465         abstract operations if they come from predefined files.
31467         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
31468         Dynamic, not RM).
31470         * s-addope.adb: Correct obvious error in mod function
31472 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
31474         * Makefile.in: Add target pairs for powerpc darwin*
31475         tasking support.
31477         * a-intnam-darwin.ads, s-osinte-darwin.adb,
31478         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
31480 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
31482         * Makefile.in: Add target macro definitions for s390*-linux*.
31483         * system-linux-s390.ads: New file.
31484         * system-linux-s390x.ads: New file.
31486 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
31488         * gnat_ugn.texi: Correct argument to @setfilename.
31490 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
31492         * a-exexpr.adb (Unwind_Word): New data type.
31493         (Unwind_Exception): Use it as type of Private1 and Private2.
31495         * raise.c (db_action_for): Fix debug printf.
31497 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
31499         * a-wtmoio.ads: Formal type must be a modular type, not a signed
31500         integer type.
31502 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31504         * decl.c (gnat_to_gnu_entity, case object): Call
31505         __builtin_update_setjmp_buf.
31507         * gigi.h (update_setjmp_buf): Deleted.
31508         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
31510         * misc.c: (update_setjmp_buf): Deleted.
31512         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
31513         around block of RTL.
31515         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
31517 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
31519         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
31520         subprogram for which no pragma All_Calls_Remote applies, store the
31521         address of the real subprogram in the underlying record type, so local
31522         dereferences do not go through the PCS.
31524 2004-04-26  Robert Dewar  <dewar@gnat.com>
31526         * i-c.ads: Add some type qualifications to avoid ambiguities when
31527         compiling with s-auxdec.ads and a non-private address type.
31529 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
31531         * Makefile.rtl: Fix error in previous check-in:
31532         Add s-addope.o to non tasking object list (rather than tasking object
31533         list).
31535 2004-04-26  Javier Miranda  <miranda@gnat.com>
31537         * sem_aggr.adb: Fix typo in comments
31538         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
31539         Required to check the null-exclusion attribute.
31541         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
31542         case of anonymous access types in record and array components. For a
31543         component definition the level is the same of the enclosing composite
31544         type.
31546         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
31547         that are anonymous access types the level of accessibility depends on
31548         the enclosing type declaration. In order to have this information, set
31549         the scope of the anonymous access type to the enclosing record type
31550         declaration.
31551         (Array_Type_Declaration): In case of components that are anonymous
31552         access types the level of accessibility depends on the enclosing type
31553         declaration. In order to have this information, set the scope of the
31554         anonymous access type to the enclosing array type declaration.
31556         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
31557         access type.
31559         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
31560         renaming of anonymous access-to-constant types allowed if and only if
31561         the renamed object is access-to-constant.
31563         * sem_util.adb (Type_Access_Level): In case of anonymous access types
31564         that are component_definition or discriminants of a nonlimited type,
31565         the level is the same as that of the enclosing component type.
31567 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
31569         * sem_elim.adb: Some minor code reorganization from code reading. Fix
31570         misprint in the function name (File_Name_Match).
31572 2004-04-23  Laurent Guerby  <laurent@guerby.net>
31574         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
31575         install.
31577 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31579         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
31581 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
31583         * adaint.c (__gnat_try_lock): No longer requires that the parent
31584         directory be writable, the directory itself is enough.
31585         (gnat_is_absolute_path): Change profile, so that the call from
31586         GNAT.OS_Lib can be made more efficient.
31588         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
31589         from GNAT.OS_Lib can be made more efficient.
31591         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
31592         one copy of the file name. Found by code reading.
31594 2004-04-23  Vincent Celier  <celier@gnat.com>
31596         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
31597         Correct documentation on gnatmake switches transmitted to the compiler
31599         * ali.ads: Minor comment fix
31601 2004-04-23  Javier Miranda  <miranda@gnat.com>
31603         * sem_ch6.adb: (Confirming Types): Code cleanup
31605         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
31606         subprogram types: E_Anonymous_Access_Subprogram_Type and
31607         E_Anonymous_Access_Protected_Subprogram_Type.
31609 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
31611         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31612         whether a pragma All_Calls_Remote applies to the subprogram on which
31613         'Access is taken.
31614         No functional change is introduced by this revision; the new parameter
31615         will be used to allow calls to local RCI subprograms to be optimized
31616         to not use the PCS in the case where no pragma All_Calls_Remote applies,
31617         as is already done in the PolyORB implementation of the DSA.
31619         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31620         whether a pragma All_Calls_Remote applies to the subprogram on which
31621         'Access is taken.
31622         No functional change is introduced by this revision; the new parameter
31623         will be used to allow calls to local RCI subprograms to be optimized
31624         to not use the PCS in the case where no pragma All_Calls_Remote applies,
31625         as is already done in the PolyORB implementation of the DSA.
31627 2004-04-23  Robert Dewar  <dewar@gnat.com>
31629         * Makefile.rtl: Add entry for s-addope.o in run time library list
31630         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
31631         * s-addope.ads, s-addope.adb: New files.
31633         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
31634         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
31635         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
31636         System.Address to be non-private and signed.
31638         * sem_elim.adb: Minor reformatting (fairly extensive)
31639         Some minor code reorganization from code reading
31640         Add a couple of ??? comments
31642 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31644         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
31645         (tree_transform, case N_If_Statement): Remove non-determinism.
31647         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
31649 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
31651         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
31652         Eliminate' section.
31654         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
31655         no longer used as a parameter name for Eliminate pragma).
31657 2004-04-22  Laurent Guerby  <laurent@guerby.net>
31659         PR optimization/14984
31660         PR optimization/14985
31661         * trans.c (gigi): Fix non determinism leading to bootstrap
31662         comparison failures.
31664 2004-04-21  Pascal Obry  <obry@gnat.com>
31666         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
31667         passed to spawnvp() to properly handle program pathname with spaces on
31668         Win32.
31670 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
31672         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
31673         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
31674         unlocked in case of exceptions.
31676 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
31678         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
31679         This function does not exist anymore.
31681 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
31683         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
31685         * link.c: Move variables to the __gnat name space.
31687         * Makefile.in: list link.o explicitly when needed.
31689         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
31691 2004-04-21  Javier Miranda  <miranda@gnat.com>
31693         * einfo.adb (Original_Access_Type): New subprogram
31694         (Set_Original_Access_Type): New subprogram
31695         (Write_Field21_Name): Write the name of the new field
31697         * einfo.ads (Original_Access_Type): New field present in access to
31698         subprogram types.
31699         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
31700         E_Anonymous_Access_Protected_Subprogram_Type.
31702         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
31703         subprogram types.
31705         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
31706         to anonymous access to subprogram types.
31708         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
31709         to subprogram types.
31711         * sem_ch3.adb (Access_Definition): Complete decoration of entities
31712         corresponding to anonymous access to subprogram types.
31713         (Analyze_Component_Declaration): Add new actual to the call to
31714         subprogram replace_anonymous_access_to_protected_subprogram.
31715         (Array_Type_Declaration): Add new actual to the call to subprogram
31716         replace_anonymous_access_to_protected_subprogram.
31717         (Process_Discriminants): Add new actual to the call to subprogram
31718         replace_anonymous_access_to_protected_subprogram.
31719         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
31721         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
31722         formal.
31724         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
31725         access to subprogram types.
31727         * sem_util.adb (Has_Declarations): Addition of package_specification
31728         nodes.
31730 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
31732         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
31733         inlined flags to renamed entity only if in current unit.
31735 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
31737         * s-parint.ads: Add DSA implementation marker.
31739         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
31740         value of System.Partition_Interface.DSA_Implementation to determine
31741         what version of the distributed systems annex is available (no
31742         implementation, GLADE, or PolyORB).
31744 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
31746         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
31748 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31750         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
31751         with new type if alias sets differ.
31752         Fixes ACATS c41103b.
31754 2004-04-21  Vincent Celier  <celier@gnat.com>
31756         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
31757         Add array Lang_Args for the language specific compiling argument
31758         switches.
31760         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
31762 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
31764         * gnat_rm.texi: Update the descripton of the Eliminate pragma
31765         according to the recent changes in the format of the parameters of the
31766         pragma (replacing Homonym_Number with Source_Location).
31768 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
31770         * 5isystem.ads: Removed, unused.
31772         * gnat_rm.texi: Redo 1.13 change.
31774 2004-04-19  Robert Dewar  <dewar@gnat.com>
31776         * s-stoele.ads: Clean up definition of Storage_Offset (the new
31777         definition is cleaner, avoids the kludge of explicit Standard operator
31778         references, and also is consistent with a visible System.Address with
31779         no visible operations.
31781         * s-geveop.adb: Add declarations to avoid assumption of visible
31782         operations on type System.Address (since these might not be available
31783         if Address is a non-private type for which the operations
31784         are made abstract).
31786         * sem_eval.adb: Minor reformatting
31788         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
31789         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
31790         reformatting (new function spec format).
31792         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
31793         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
31794         s-caun64.adb: Add declarations to avoid assumption of visible
31795         operations on type System.Address (since these might not be available
31796         if Address is a non-private type for which the operations are made
31797         abstract).
31799         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
31801         * exp_intr.adb: Minor comment update
31803         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
31805         * 5omastop.adb: Add declarations to avoid assumption of visible
31806         operations on type System.Address (since these might not be available
31807         if Address is a non-private type for which the operations
31808         are made abstract).
31810 2004-04-19  Vincent Celier  <celier@gnat.com>
31812         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
31814         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
31815         defaulted to Ada.
31817         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
31818         defaulted to Ada.
31819         Call Check with Process_Languages.
31820         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
31821         with Process_Languages.
31822         (Recursive_Check): New Boolean parameter Process_Languages. Call
31823         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
31824         Process_Languages.
31826         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
31828         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
31829         parameter Ada_Main, defaulted to True.
31830         Check for Ada specific characteristics only when Ada_Main is True.
31832         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
31834         * prj.adb: (Project_Empty): Add new Project_Data components.
31836         * prj.ads: New types and tables for non Ada languages.
31837         (Project_Data): New components Languages, Impl_Suffixes,
31838         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
31839         Include_Path, Include_Data_Set.
31841         * prj-env.ads, prj-env.adb: Minor reformatting
31843         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
31844         Put subprograms in alphabetical order
31846         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
31847         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
31848         Opt.Follow_Links.
31850         * mlib-prj.adb: Back out modification in last version, as they are
31851         incorrect.
31852         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
31854         * make.adb: (Mains): Moved to package Makeutl
31855         (Linker_Opts): Moved to package Makeutl
31856         (Is_External_Assignment): Moved to package Makeutl
31857         (Test_If_Relative_Path): Moved to package Makeutl
31858         (Gnatmake): Move sorting of linker options to function
31859         Makeutl.Linker_Options_Switches.
31861         * makeutl.ads, makeutl.adb: New files.
31863         * Makefile.in: Add makeutl.o to the object files for gnatmake
31865         * makeusg.adb: Add line for new switch -eL.
31867         * gnatls.adb (Image): New function.
31868         (Output_Unit): If in verbose mode, output the list of restrictions
31869         specified by pragmas Restrictions.
31871         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
31872         Text_IO.
31874         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
31875         needed, to put it in the range 1970 (included) - 2026 (excluded).
31876         (Time_Of): Do not shift Unix_Min_Year (1970).
31877         Shift the date by multiple of 56 years, if needed, to put it in the
31878         range 1970 (included) - 2026 (excluded).
31880         * adaint.h, adaint.c (__gnat_set_executable): New function.
31882 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31884         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
31885         and pop GC context.
31886         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
31887         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
31888         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
31889         (tree_transform, case N_Code_Statement): Likewise.
31890         (gnat_expand_stmt, case LABEL_STMT): Don't look at
31891         LABEL_STMT_FIRST_IN_EH.
31892         (gnat_expand_stmt, case ASM_STMT): New case.
31894         * utils2.c (build_unary_op): Properly set TREE_READONLY of
31895         UNCONSTRAINED_ARRAY_REF.
31897         * utils.c (poplevel): Temporarily push/pop GC context around inline
31898         function expansion.
31900         * decl.c (maybe_variable): Properly set TREE_READONLY of
31901         UNCONSTRAINED_ARRAY_REF.
31902         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
31904         * ada-tree.def: (ASM_STMT): New.
31906         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
31907         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
31908         ASM_STMT_INPUT): New.
31909         (ASM_STMT_CLOBBER): Likewise.
31911 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
31913         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
31914         general rcheck mechanism to raise Program_Error for E.4(18), instead
31915         of a custom raiser in System.Partition_Interface.
31916         Part of general cleanup work before PolyORB integration.
31918         * snames.ads, snames.adb: Add new runtime library entities and names
31919         for PolyORB DSA.
31921         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
31922         exp_dist.
31923         (Build_Subprogram_Id): New subprogram provided by exp_dist
31924         Code reorganisation in preparation for PolyORB integration.
31926         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
31927         exp_dist.
31928         (Build_Subprogram_Id): New subprogram provided by exp_dist
31930         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
31931         actual parameter types for call to dereference of an
31932         access-to-subprogram type.
31934         * rtsfind.ads: Add new runtime library entities and names for PolyORB
31935         DSA.
31937         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
31938         instead, which has the same behaviour here since we never pass it a
31939         NULL pointer.
31941         * link.c (run_path_option, Solaris case): Use -Wl, as for other
31942         platforms.
31944         * Makefile.in: adjust object file lists for gnatlink and gnatmake
31945         to account for new dependency upon Interfaces.C.Strings + link.o
31946         For x86 FreeBSD, use 86numaux.
31948         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
31949         from Mlib.Tgt to Mlib.
31951         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
31952         target-independent.
31954         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
31955         target-specific versions of this subprogram, now implemented as a
31956         target-independent function in Mlib.
31958         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
31959         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
31960         (Linker_Library_Path_Option): Remove target-specific versions of this
31961         subprogram, now implemented as a target-independent function in Mlib.
31963         * atree.adb: (Allocate_Initialize_Node): New subprogram.
31964         Factors out node table slots allocation.
31965         (Fix_Parents): New subprogram.
31966         Encapsulate the pattern of fixing up parent pointers for syntactic
31967         children of a rewritten node.
31968         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
31969         (Rewrite): Use New_Copy when creating saved copy of original node.
31970         (Replace): Use Copy_Node to copy nodes.
31972 2004-04-19  Javier Miranda  <miranda@gnat.com>
31974         * sprint.adb (Sprint_Node_Actual): Give support to the new
31975         Access_To_Subprogram node available in Access_Definition nodes. In
31976         addition, give support to the AI-231 node fields: null-exclusion,
31977         all-present, constant-present.
31979         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
31981         * sinfo.ads, sinfo.adb:
31982         New field Access_To_Subprogram_Definition in Access_Definition nodes
31984         * sem_ch6.adb (Process_Formals): Move here the code that creates and
31985         decorates internal subtype declaration corresponding to the
31986         null-excluding formal. This code was previously in Set_Actual_Subtypes.
31987         In addition, carry out some code cleanup on this code. In case of
31988         access to protected subprogram call
31989         Replace_Anonymous_Access_To_Protected_Subprogram.
31990         (Set_Actual_Subtypes): Code cleanup.
31992         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
31993         Find_Type in case of anonymous access renamings. Add warning in case of
31994         null-excluding attribute used in anonymous access renaming.
31996         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
31997         subprogram
31999         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
32000         subprogram.
32001         (Access_Definition): In case of anonymous access to subprograms call
32002         the corresponding semantic routine to decorate the node.
32003         (Access_Subprogram_Declaration): Addition of some comments indicating
32004         some code that probably should be added here. Detected by comparison
32005         with the access_definition subprogram.
32006         (Analyze_Component_Declaration): In case of access to protected
32007         subprogram call Replace_Anonymous_Access_To_Protected.
32008         (Array_Type_Declaration): In case of access to protected subprogram call
32009         Replace_Anonymous_Access_To_Protected_Subprogram.
32010         (Process_Discriminants): In case of access to protected subprogram call
32011         Replace_Anonymous_Access_To_Protected_Subprogram.
32013         * par.adb (P_Access_Definition): New formal that indicates if the
32014         null-exclusion part was present.
32015         (P_Access_Type_Definition): New formal that indicates if the caller has
32016         already parsed the null-excluding part.
32018         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
32019         (P_Identifier_Declarations): Code cleanup and give support to renamings
32020         of anonymous access to subprogram types.
32021         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
32022         (P_Array_Type_Definition): Give support to AI-254.
32023         (P_Component_Items): Give support to AI-254.
32024         (P_Access_Definition): New formal that indicates if the header was
32025         already parsed by the caller.
32026         (P_Access_Type_Definition): New formal that indicates if the caller has
32027         already parsed the null-excluding part.
32029         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
32030         call to P_Access_Definition.
32032 2004-04-19  Geert Bosch  <bosch@gnat.com>
32034         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
32035         the delicate semantics of floating-point to integer conversion.
32036         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
32038         * eval_fat.adb (Machine_Mantissa): Moved to spec.
32039         (Machine_Radix): New function.
32041         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
32042         conversion checks.
32043         (Machine_Radix): New function also for use in conversion checks.
32045 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
32047         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
32049         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
32050         to decorate the access-to-protected subprogram and the equivalent type.
32052         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
32053         to anonymous access to subprogram types.
32055         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
32056         constant-folding, for legality checks in contexts that require an RM
32057         static expression.
32059         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
32060         temporary but stack checking is not enabled, increment serial number
32061         to so that symbol generation is consistent with and without stack
32062         checking.
32064         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
32065         independent on whether stack checking is enabled, caller must check
32066         the corresponding flag.
32068         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
32069         range checks.
32070         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
32071         parent if it has discriminants.
32072         (Build_Derived_Private_Type): Constructed full view does
32073         not come from source.
32074         (Process_Discriminants): Default discriminants on a tagged type are
32075         legal if this is the internal completion of a private untagged
32076         derivation.
32078         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
32079         no constraint checks, because it corresponds to an existing object.
32081         * sem_prag.adb (Process_Convention): Pragma applies
32082         only to subprograms in the same declarative part, i.e. the same unit,
32083         not the same scope.
32085         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
32086         ignore type mismatch on a numeric conversion if expression comes from
32087         expansion.
32089 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
32091         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
32092         Homonym_Number parameter, add processing for Source_Location parameter
32093         corresponding.
32094         (Check_Eliminated): Remove the check for homonym numbers, add the check
32095         for source location traces.
32097         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
32098         with Arg_Source_Location corresponding to the changes in the format of
32099         the pragma.
32101         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
32102         Eliminate pragma corresponding to the changes in the format of the
32103         pragma: Homonym_Number is replaced with Source_Location, two ways of
32104         distinguishing homonyms are mutially-exclusive.
32106 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
32108         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
32110         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
32111         No_Dollar_In_Label, no longer necessary, as it is always True.
32112         (Strip_Suffixes): Likewise.
32114 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
32116         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
32117         modulus for compatibility with size clause on targets with 16-bit
32118         Integer.
32120         * layout.adb (Discrimify): In the case of private types, set Vtyp to
32121         full type to fix type mismatches on calls to size functions for
32122         discriminant-dependent array components.
32124 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
32126         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
32127         lib.
32129 2004-04-19  Pascal Obry  <obry@gnat.com>
32131         * mdll-utl.adb (Locate): New version is idempotent.
32133 2004-04-17  Laurent Guerby  <laurent@guerby.net>
32135         PR ada/14988 (partial)
32136         * impunit.adb: Fix typo.
32138 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
32140         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
32141         and install-rts-cert targets.  Remove all gnatlib and gnattools
32142         targets and all other rts-* targets (moved to libada).  Remove (now)
32143         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
32144         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
32146 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32148         * trans.c (tree_transform): Shortcut returning error_mark_node for
32149         statements in annotate_only_mode.
32150         (tree_transform, case N_Label, case N_Return_Statement,
32151         N_Goto_Statement): Make statement tree instead of generating code.
32152         (tree_transform, case N_Assignment_Statement): No longer check
32153         type_annotate_only.
32154         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
32155         RETURN_STMT): New.
32156         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
32157         New fcns.
32158         (gnat_to_gnu): Collect any RTL generated and deal with it.
32159         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
32160         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
32161         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
32163         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
32165         * ada-tree.def (EXPR_STMT): Fix typo in name.
32166         (BLOCK_STMT, IF_STMT): New nodes.
32168         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
32169         LABEL_STMT_FIRST_IN_EH): New macros.
32170         (RETURN_STMT_EXPR): Likewise.
32172         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
32173         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
32175 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
32177         * atree.ads: Correct documentation on extended nodes.
32179         * link.c: Set run_path_option for FreeBSD.
32181 2004-04-08  Vincent Celier  <celier@gnat.com>
32183         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
32184         one of the ALI file, do not link with DEC lib.
32186         * par.adb Remove the last two characters ("%s" or "%b") when checking
32187         if a language defined unit may be recompiled.
32189 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
32191         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
32192         removal of abstract operation leaves no possible interpretation for
32193         expression.
32195         * sem_eval.adb (Eval_Qualified_Expression): Use
32196         Set_Raises_Constraint_Error on node when needed, so that it does not
32197         get optimized away by subsequent optimizations.
32199         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
32200         operands even when they are not wrapped in a type conversion.
32202 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
32204         * sem_prag.adb (Set_Exported): Warn about making static as result of
32205         export only when the export is coming from source. This may be not
32206         be true e.g. on VMS where we expand export pragmas for exception codes
32207         together with imported or exported exceptions, and we don't want the
32208         user to be warned about something he didn't write.
32210 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
32212         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
32213         duplication between normal entities and those declared as renamings.
32214         No functional change.
32216         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
32217         inline functions returning an unconstrained result.
32219 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
32221         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
32222         conform to what other front-ends do.
32224 2004-04-08  Doug Rupp  <rupp@gnat.com>
32226         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
32227         libraries.
32229 2004-04-06  Pascal Obry  <obry@gnat.com>
32231         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
32233         * osint.adb (Program_Name): Do not look past a directory separator.
32235 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
32237         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
32239         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
32240         requirement for preserving a copy of the original assignment node.
32242         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
32244 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
32246         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
32247         when supported.
32249 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
32251         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
32252         operator calls in functional notation, and apply
32253         Universal_Interpretation to operands, not to their type.
32255 2004-04-06  Robert Dewar  <dewar@gnat.com>
32257         * 5wdirval.adb: Minor reformatting
32259 2004-04-06  Ed Falis  <falis@gnat.com>
32261         * gnat_rm.texi: Improve a reference to the GCC manual
32263 2004-04-05  Vincent Celier  <celier@gnat.com>
32265         * adaint.h, adaint.c: Add function __gnat_named_file_length
32267         * impunit.adb: Add Ada.Directories to the list
32269         * Makefile.in: Add VMS and Windows versions of
32270         Ada.Directories.Validity package body.
32272         * Makefile.rtl: Add a-direct and a-dirval
32274         * mlib-tgt.ads: Minor comment update.
32276         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
32277         a-direct.ads, a-direct.adb: New files.
32279 2004-04-05  Vincent Celier  <celier@gnat.com>
32281         PR ada/13620
32282         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
32283         just to the compiler.
32285 2004-04-05  Robert Dewar  <dewar@gnat.com>
32287         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
32288         returned string is 1.
32290         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
32292         * eval_fat.ads: Minor reformatting
32294         * g-curexc.ads: Document that lower bound of returned string values
32295         is always one.
32297         * gnatlink.adb: Add ??? comment for previous change
32298         (need to document why this is VMS specific)
32300         * s-stoele.ads: Minor reformatting
32302         * tbuild.ads: Minor reformatting throughout (new function specs)
32304         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
32305         after WITH.
32307         * scng.adb: Minor reformatting
32309 2004-04-05  Geert Bosch  <bosch@gnat.com>
32311         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
32312         (Leading_Part): Still perform truncation to machine number if the
32313         specified radix_digits is greater or equal to machine_mantissa.
32315 2004-04-05  Javier Miranda  <miranda@gnat.com>
32317         * par-ch3.adb: Complete documentation of previous change
32318         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
32319         (aliased must appear before constant).
32321         * par-ch4.adb: Complete documentation of previous change.
32323         * par-ch6.adb: Complete documentation of previous change.
32325         * sinfo.ads: Fix typo in commment.
32327 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
32329         * sem_ch3.adb (Inherit_Components): If derived type is private and has
32330         stored discriminants, use its discriminants to constrain parent type,
32331         as is done for non-private derived record types.
32333         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
32334         Ada 2005 AI-310: an abstract non-dispatching operation is not a
32335         candidate interpretation in an overloaded call.
32337         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
32338         expression is Null and target type is not an access type (e.g. a
32339         non-private address type).
32341 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
32343         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
32344         statement whose right-hand side is an inlined call, save a copy of the
32345         original assignment subtree to preserve enough consistency for
32346         Analyze_Assignment to proceed.
32348         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
32349         complete assignment subtree which is now unnecessary, as the expansion
32350         of inlined call has been improved to preserve a consistent assignment
32351         tree.  Note_Possible_Modification must be called only
32352         after checks have been applied, or else unnecessary checks will
32353         be generated.
32355         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
32356         of explicit dereferences that do not Come_From_Source:
32357          - be selective on cases where we must go back to the dereferenced
32358            pointer (an assignment to an implicit dereference must not be
32359            recorded as modifying the pointer);
32360          - do not rely on Original_Node being present (Analyze_Assignment
32361            calls Note_Possible_Modification on a copied tree).
32363         * sem_warn.adb (Check_References): When an unset reference to a pointer
32364         that is never assigned is encountered, prefer '<pointer> may be null'
32365         warning over '<pointer> is never assigned a value'.
32367 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
32369         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
32370         the ABI.
32372 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
32374         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
32375         libexc. We currently don't reference anything in this library and
32376         linking it in triggers linker warnings we don't want to see.
32378         * init.c: Update comments.
32380 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32382         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
32383         * utils.c (create_field_decl): Likewise.
32384         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
32386 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
32388         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
32389         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
32390         Add info directory entry and category.
32392 2004-04-02  Jan Hubicka  <jh@suse.cz>
32394         * utils.c: Include function.h
32395         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
32397 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
32399         PR ada/14150
32400         * Make-lang.in: Clean up generation of documentation
32402         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
32404         * xgnatug.adb: Removed, replaced by xgnatugn.adb
32406         * xgnatugn.adb: Replaces xgnatug.adb
32408         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
32410         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
32412         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32413         gnat_ug_wnt.texi: Removed.
32415 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
32417         * utils2.c: Update copyright notice.
32419 2004-04-01  Robert Dewar  <dewar@gnat.com>
32421         * checks.adb: Minor reformatting throughout
32422         Note that prev checkin added RM reference to alignment warning
32424 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
32426         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
32427         non-static when building aggregate for bit-packed array.
32429         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
32430         function call that is itself the actual in a procedure call, build
32431         temporary for it.
32433         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
32434         a string literal, create a temporary for it, constant folding only
32435         handles scalars here.
32437 2004-04-01  Vincent Celier  <celier@gnat.com>
32439         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
32440         Error_Msg_SP): New empty procedures to instantiate the Scanner.
32441         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
32442         tokens.
32443         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
32444         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
32445         and get the checksum.
32447         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
32448         already in the Q.
32449         Increase the Marking_Label at the end of the Multiple_Main_Loop,
32450         instead of at the beginning.
32452         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
32453         directly.
32454         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
32455         on VMS.
32457         * osint.ads (Multi_Unit_Index_Character): New Character global variable
32459         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
32460         not '~' directly.
32462         * par.adb: Remove test on file name to detect language defined units.
32463         Add test on unit name, after parsing, to detect language defined units
32464         that are not compiled with -gnatg (except System.RPC and its children)
32466         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
32467         following units without style checking.
32469         * switch-c.adb: Change -gnatC to -gnateI
32471         * usage.adb: Document new switch -gnateInnn
32473         * scng.adb (Accumulate_Token_Checksum): New procedure
32474         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
32475         word or literal number.
32476         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
32477         numbers.
32479 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
32481         * a-tasatt.adb,
32482         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
32483         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
32484         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
32485         5vtpopde.adb: Add missing 'constant' keywords.
32487 2004-04-01  Javier Miranda  <miranda@gnat.com>
32489         * par-ch4.adb: (P_Allocator): Code cleanup
32491         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
32492         attribute.
32494         * sinfo.ads: Complete documentation of previous change
32496 2004-04-01  Pascal Obry  <obry@gnat.com>
32498         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
32499         only on VMS.  This special handling was done because an old GNU/ld bug
32500         on Windows which has been fixed.
32502 2004-04-01  GNAT Script  <nobody@gnat.com>
32504         * Make-lang.in: Makefile automatically updated
32506 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32508         * decl.c (gnat_to_gnu_entity, make_type_from_size):
32509         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
32510         * trans.c (tree_transform, convert_with_check): Likewise.
32511         * utils.c (gnat_signed_or_unsigned_type): Likewise.
32512         (build_vms_descriptor, unchecked_convert): Likewise.
32513         * utils2.c (nonbinary_modular_operation): Likewise.
32515 2004-03-29  Javier Miranda  <miranda@gnat.com>
32517         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
32518         (Install_Null_Excluding_Check): Local subprogram that determines whether
32519         an access node requires a runtime access check and if so inserts the
32520         appropriate run-time check.
32521         (Apply_Access_Check): Call Install_Null_Excluding check if required
32522         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
32524         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
32526         * einfo.ads: Fix typo in comment
32528         * exp_ch3.adb (Build_Assignment): Generate conversion to the
32529         null-excluding type to force the corresponding run-time check.
32530         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
32531         type to force the corresponding run-time check.
32533         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
32534         the null-excluding type to force the corresponding run-time check.
32536         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
32537         case of access types unless they have the null-excluding attribute.
32539         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
32540         part.
32542         * exp_util.ads: Fix typo in comment
32544         * par.adb (P_Null_Exclusion): New subprogram
32545         (P_Subtype_Indication): New formal that indicates if the null-excluding
32546         part has been scanned-out and it was present
32548         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
32550         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
32551         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
32552         type to force the corresponding run-time check
32553         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
32554         components
32555         (Resolve_Array_Aggregate): Carry out some static checks
32556         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
32558         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
32559         attribute must be set only if specified by means of the null-excluding
32560         part. In addition, we must also propagate the access-constant attribute
32561         if present.
32562         (Access_Subprogram_Declaration, Access_Type_Declaration,
32563         Analyze_Component_Declaration, Analyze_Object_Declaration,
32564         Array_Type_Declaration, Process_Discriminants,
32565         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
32566         and carry out some static checks.
32567         (Build_Derived_Access_Type): Set the null-excluding attribute
32568         (Derived_Type_Declaration, Process_Subtype): Carry out some static
32569         checks.
32571         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
32573         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
32575         * sem_ch6.adb (Process_Formals): Carry out some static checks.
32576         (Set_Actual_Subtypes): Generate null-excluding subtype if the
32577         null-excluding part was present; it is not required to be done here in
32578         case of anonymous access types.
32579         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
32580         value.
32582         * sem_res.adb (Resolve_Actuals): Carry out some static check
32583         (Resolve_Null): Allow null in anonymous access
32585         * sinfo.adb: New subprogram Null_Exclusion_Present
32586         All_Present and Constant_Present available on access_definition nodes
32588         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
32589         object_declaration, derived_type_definition, component_definition,
32590         discriminant_specification, access_to_object_definition,
32591         access_function_definition, allocator, access_procedure_definition,
32592         access_definition, parameter_specification, All_Present and
32593         Constant_Present flags available on access_definition nodes.
32595 2004-03-29  Robert Dewar  <dewar@gnat.com>
32597         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
32598         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
32599         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
32600         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
32601         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
32602         sem_prag.adb: Updates to handle multiple units/file
32604         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
32606         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
32607         sem_util.adb: Minor reformatting
32609         * sem_ch12.adb: Add comment for previous change
32611 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
32613         * osint.adb (Executable_Prefix): Set Exec_Name to the current
32614         executable name when not initialized. Otherwise, use its current value.
32616         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
32617         initialize it to another executable name than the current one. This
32618         allows to configure paths for an executable name (gnatmake) different
32619         from the current one (gnatdist).
32621 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
32623         * exp_ch6.adb (Expand_Call): A call to a function declared in the
32624         current unit cannot be inlined if it appears in the body of a withed
32625         unit, to avoid order of elaboration problems in gigi.
32627         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
32628         information for protected (wrapper) operation as well, to simplify gdb
32629         use.
32631         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
32632         protected body, indicate that the entity for the generated spec comes
32633         from source, to ensure that references are properly generated for it.
32634         (Build_Body_To_Inline): Do not inline a function that returns a
32635         controlled type.
32637         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
32638         apply convention to homonyms that are declared explicitly.
32640         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
32641         that renames an equality operator and the operands are overloaded,
32642         resolve them with the declared formal types, before rewriting as an
32643         operator.
32645 2004-03-29  GNAT Script  <nobody@gnat.com>
32647         * Make-lang.in: Makefile automatically updated
32649 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
32651         * memtrack.adb: Log realloc calls, which are treated as free followed
32652         by alloc.
32654 2004-03-25  Vincent Celier  <celier@gnat.com>
32656         * prj-makr.adb (Process_Directories): Detect when a file contains
32657         several units. Do not include such files in the config pragmas or
32658         in the naming scheme.
32660         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
32661         Resolve links only when not in Trusted_Mode.
32662         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
32663         Do not resolve links for the display names.
32665         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
32666         resolve links when computing the display names.
32668 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
32670         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
32671         attribute reference does not denote a subtype, it can be any
32672         expression that has a classwide type, potentially after an implicit
32673         dereference.  In particular, the prefix can be a view conversion for
32674         a classwide type (for which Is_Object_Reference holds), but it can
32675         also be a value conversion for an access-to-classwide type. In the
32676         latter case, there is an implicit dereference, and the original node
32677         for the prefix does not verify Is_Object_Reference.
32679         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
32680         conversion of a discriminant-dependent component of a mutable object
32681         is one itself.
32683 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
32685         * freeze.adb (Freeze_Entity): When an inherited subprogram is
32686         inherited, has convention C, and has unconstrained array parameters,
32687         place the corresponding warning on the derived type declaration rather
32688         than the original subprogram.
32690         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
32691         indication on renaming declaration, if formal has a box and actual
32692         is absent.
32694         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
32695         determine whether to generate an implicit or explicit reference to
32696         the renamed entity.
32698         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
32699         subprogram renaming comes from a defaulted formal subprogram in an
32700         instance.
32702 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
32704         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
32705         value expressions to ensure that calls within a component definition
32706         will be checked (since those are evaluated during the record type's
32707         elaboration).
32709 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
32711         * s-tpobop.adb: Code clean up:
32712         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
32713         code.
32714         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
32716 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
32718         * Makefile.in: Clean up in the ravenscar run time.
32720 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32722         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
32723         of No_Strict_Aliasing to build_pointer_type_for_mode.
32724         * utils.c (update_pointer_to): Walk pointer and ref chains.
32726 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
32728         * ali.ads: Fix Comment about Dynamic_Elab.
32730         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
32731         Has_RACW, Is_Generic, etc.)
32732         (Output_Object, Gnatls): Take into account ALI files not attached to
32733         an object.
32735 2004-03-22  Vincent Celier  <celier@gnat.com>
32737         * gprep.adb: Change all String_Access to Name_Id
32738         (Is_ASCII_Letter): new function
32739         (Double_File_Name_Buffer): New procedure
32740         (Preprocess_Infile_Name): New procedure
32741         (Process_Files): New procedure
32742         (Gnatprep): Check if output and input are existing directories.
32743         Call Process_Files to do the real job.
32745 2004-03-22  Robert Dewar  <dewar@gnat.com>
32747         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
32748         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
32750 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
32752         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
32753         case when the source contains only comments.
32755 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
32757         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
32758         declaration for a child subprogram body that acts as a spec, indicate
32759         that the entity in the declaration needs debugging information.
32761         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
32762         full view if the subtype is created for a constrained record component;
32763         gigi has enough information to construct the record, and there is no
32764         place in the tree for the declaration.
32766         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
32767         serial number for the dummy body that is built for analysis, to avoid
32768         inconsistencies in the generation of internal names when compiling
32769         with -gnatN.
32771 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
32773         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
32774         object.
32776 2004-03-22  GNAT Script  <nobody@gnat.com>
32778         * Make-lang.in: Makefile automatically updated
32780 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32782         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
32783         * trans.c (tree_transform, emit_index_check): Likewise.
32784         * utils.c (build_template): Likewise.
32785         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
32786         (maybe_unconstrained_array, unchecked_convert): Likewise.
32787         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
32788         (build_unary_op): Likewise.
32789         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
32790         (fill_vms_descriptor): Likewise.
32791         (build_call_alloc_dealloc): Likewise.
32792         ALIGN is unsigned.
32793         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
32795 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
32797         PR other/14630
32798         * gnat_ug.texi: Add info directory category and entry.
32799         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32800         gnat_ug_wnt.texi: Regenerate.
32802 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
32804         * ada-tree.h: Update copyright notice.
32805         Minor reformatting.
32807 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
32809         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
32810         as regular exception objects and not as mere integers representing the
32811         condition code.  The latter approach required some dynamics to mask off
32812         severity bits, which did not fit well into the GCC table based model.
32813         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
32814         exception data objects. We don't it and it would conflict with the other
32815         external symbol we have to generate for such exceptions.
32817         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
32818         the special code for VMS exceptions, since these are now represented
32819         as regular exceptions objects.
32821 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32823         * decl.c (debug_no_type_hash): Remove.
32824         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
32825         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
32827 2004-03-19  Laurent Guerby  <laurent@guerby.net>
32829         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
32830         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
32832 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32834         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
32835         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
32836         (TYPE_RM_SIZE_INT): Directly use type.values.
32837         (TREE_LOOP_ID): Clean up check.
32838         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
32839         TYPE_VALUES, not TYPE_FIELDS.
32840         * trans.c (convert_with_check): Delay access of bounds of basetype
32841         until sure is numeric.
32843 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
32845         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
32847         Code clean up:
32848         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
32849         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
32850         Specific.Set instead of direct call to e.g pthread_setspecific.
32852 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
32854         * adaint.c: Update comments.
32856         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
32857         GNATLIB_SHARED for FreeBSD.
32859 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
32861         * init.c [VxWorks]: Do not fix the stack size for the environment task.
32862         When needed (stack checking) the stack size is retrieved
32863         from the VxWorks kernel.
32865         * Makefile.in: Flag -nostdinc is required when building the run time
32866         for avoiding looking for files in the base compiler.
32867         Add the VxWorks specific version of the package body for
32868         System.Stack_checking.Operations (5zstchop.adb).
32870         * Make-lang.in: Add the object file for
32871         System.Stack_Checking.Operations.
32873         * Makefile.rtl: Add object file for the package
32874         System.Stack_Checking.Operations.
32876         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
32878         * s-stache.ads, s-stache.adb: Move the operations related to stack
32879         checking from this package to package System.Stack_Checking.Operations.
32880         This way, stack checking operations are only linked in the final
32881         executable when using the -fstack-check flag.
32883 2004-03-18  Doug Rupp  <rupp@gnat.com>
32885         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
32886         Reorganize ifeq's.
32888         * 5qsystem.ads, 5xcrtl.ads: New files.
32890 2004-03-18  Vincent Celier  <celier@gnat.com>
32892         * prj.adb (Reset): Reset hash table Files_Htable
32894         * prj-env.adb (Source_Paths, Object_Paths): New tables.
32895         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
32896         the procedures Add_To_Path_File.
32897         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
32898         making sure that each directory is present only once and, for object
32899         dirs, when a directory already present is added, the duplicate is
32900         removed and the directory is always put as the last in the table.
32901         Write the path files at the end of these accumulations.
32903         * prj-nmsc.adb (Record_Source): Add source file name in hash table
32904         Files_Htable for all sources.
32906         * prj-proc.adb (Process): Remove restrictions between not directly
32907         related extending projects.
32909 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
32911         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
32912         (Find_Sources): Minor speed optimization.
32914         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
32915         parameter Trusted_Mode.
32917 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
32919         * scn.adb (Determine_License): Take into account a degenerated case
32920         when the source contains only comments.
32922 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
32924         * sem_warn.adb (Check_References): For a warning on a selected
32925         component that does not come from source, locate an uninitialized
32926         component of the record type to produce a more precise error message.
32928 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
32930         * 3zsoccon.ads: Fix multicast options.
32932         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
32933         in the spec.
32935 2004-03-15  Robert Dewar  <dewar@gnat.com>
32937         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
32938         pragma used for a private type.
32940         * lib-xref.adb (Generate_Reference): Do not generate warning if
32941         reference is in a different unit from the pragma Unreferenced.
32943         * 5vtpopde.adb: Minor reformatting
32944         Fix casing of To_Task_ID
32946         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
32947         flag if we have an unchecked conversion to an access type in the same
32948         unit.
32950 2004-03-15  Geert Bosch  <bosch@gnat.com>
32952         * a-ngcoty.adb (Modulus): In alternate formula for large real or
32953         imaginary parts, use Double precision throughout.
32955         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
32956         we want to be able to compile run-time with -gnata for testing, but
32957         this may also be instantiated in user code that is compiled with -gnata.
32959 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
32961         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
32962         codes. Having a separate type for this is useful to enforce consistency
32963         throughout the various run-time units.
32964         (Exception_Data): Use Exception_Code for Import_Code.
32966         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
32967         Natural and Integer in various places.
32968         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
32969         with the severity bits masked off.
32970         (Register_VMS_Exception): Handle the additional exception data pointer
32971         argument.
32973         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
32974         component, now reflected by an exported accessor.
32975         (is_handled_by): New routine to compute whether the propagated
32976         occurrence matches some handler choice specification. Extracted out of
32977         get_action_description_for, and expanded to take care of the VMS
32978         specifities.
32979         (get_action_description_for): Use is_handled_by instead of an explicit
32980         complex condition to decide if the current choice at hand catches the
32981         propagated occurrence.
32983         * raise.h (Exception_Code): New type for C.
32985         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
32986         System.Standard_Library.Exception_Code, to allow references from the
32987         pragma import/export expander.
32989         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
32990         New accessors to allow easy access to GNAT exception data
32991         characteristics.
32992         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
32993         redundant Handled_By_Others component, helper for the personality
32994         routine which will now be able to call the appropriate exception data
32995         accessor instead.
32997         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
32998         component of Standard_Exception_Type to be the closest possible to
32999         Exception_Code in System.Standard_Library, that we cannot get at this
33000         point. Expand a ??? comment to notify that this type node should
33001         probably be rewritten later on.
33003         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
33004         registration call to include a pointer to the exception object in the
33005         arguments.
33007         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
33008         instead of int and explicit bitmasks.
33010 2004-03-15  Vincent Celier  <celier@gnat.com>
33012         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
33013         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
33015         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
33016         longer needed now that it is in the spec of
33017         System.Tasking.Task_Attributes.
33019         * adaint.h, adaint.c: (__gnat_create_output_file): New function
33021         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
33023         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
33025         * make.adb (Gnatmake): Do not check the executable suffix; it is being
33026         taken care of in Scan_Make_Arg.
33027         (Scan_Make_Arg): Add the executable suffix only if the argument
33028         following -o, in canonical case, does not end with the executable
33029         suffix.  When in verbose mode and executable file name does not end
33030         with executable suffix, output the executable name, in canonical case.
33032         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
33033         to avoid warnings when instantiating Ada.Task_Attributes.
33034         Minor reformating.
33036         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
33037         in the correct order.
33039         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
33040         redirect standard output and error to a file for the invocation of the
33041         compiler, then read the file.
33043         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
33044         directory, instead of the Value.
33045         (Find_Source_Dirs): Remove useless code & comments.
33047 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
33049         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
33050         tagged type is inherited, and the parent operation is not frozen yet,
33051         force generation of a freeze node for the inherited operation, so the
33052         corresponding dispatch entry is properly initialized.
33053         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
33054         when looking for user-defined equality operation.
33056         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
33057         boolean when locating primitive equality of tagged component.
33059         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
33060         bit-aligned field and the right-hand side a string literal, introduce
33061         a temporary before expanding assignment into a loop.
33063         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
33064         priority in full, to ensure that any expanded subepxressions of it are
33065         elaborated in the scope of the init_proc.
33067         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
33068         after object declaration, skipping over code that may have been
33069         generated for validity checks.
33071         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
33072         discriminants, ignore the known discriminants of its full view, if
33073         any, to check legality.
33075         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
33076         component if type has unknown discriminants.
33077         (Analyze_Private_Extension_Declaration): Discriminant constraint is
33078         null if type has unknown discriminants.
33080         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
33081         for end label when present.
33083         * s-fileio.adb (Open): When called with a C_Stream, use given name for
33084         temporary file, rather than an empty string.
33086 2004-03-15  Ed Falis  <falis@gnat.com>
33088         * s-thread.adb: Removed, no longer used.
33090 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33092         * decl.c (target.h): Now include.
33093         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
33094         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
33095         (validate_size): For POINTER_TYPE, get smallest size permitted on
33096         machine.
33098         * fe.h: Sort Einfo decls and add Set_Mechanism.
33100         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
33101         (ada/decl.o): Depends on target.h.
33103         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
33104         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
33106 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
33108         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
33110         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
33111         Insert_Dereference_Action when rewriting an implicit dereference into
33112         an explicit one, this will be taken care of during expansion of the
33113         explicit dereference.
33114         (Expand_N_Slice): Same. Always do the rewriting, even for the case
33115         of non-packed slices, since the dereference action generated by
33116         expansion of the explicit dereference is needed in any case.
33117         (Expand_N_Selected_Component): When rewriting an implicit dereference,
33118         analyze and resolve the rewritten explicit dereference so it is seen
33119         by the expander.
33120         (Insert_Dereference_Action): This procedure is now called only for the
33121         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
33122         dereferences that do not come from source (including explicit
33123         dereferences resulting from rewriting implicit ones), but do not
33124         recursively insert a check for the dereference nodes contained within
33125         the check.
33126         (Insert_Dereference_Action): Clarify and correct comment.
33128 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
33130         PR ada/14131
33131         Move language detection to the top level.
33132         * config-lang.in: Build by default.
33134 2004-03-05  Robert Dewar  <dewar@gnat.com>
33136         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
33138         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
33139         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
33140         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
33141         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
33142         unchecked conversion to spec to avoid warnings.
33144         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
33145         to Task_ID
33147         * 7stpopsp.adb: Correct casing in To_Task_ID call
33149         * a-strsea.ads, a-strsea.adb: Minor reformatting
33151         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
33153         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
33154         Adjust Max_Msg_Length to be clearly large enough.
33156         * fe.h: Define In_Same_Source_Unit
33158         * osint.adb: Add pragma Warnings Off to suppress warnings
33159         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
33160         aliasing warnings.
33162         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
33164         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
33166         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
33168         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
33170         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
33172         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
33173         node. We now do generate them for gcc back end.
33175         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
33176         warning.
33178         * sinput-c.adb: Fix bad name in header.
33179         Add pragma Warnings Off to suppress aliasing warning.
33181         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
33183         * snames.h, snames.ads, snames.adb: Add entry for pragma
33184         No_Strict_Aliasing.
33186 2004-03-05  Vincent Celier  <celier@gnat.com>
33188         * prj-com.ads: Add hash table Files_Htable to check when a file name
33189         is already a source of another project.
33191         * prj-nmsc.adb (Record_Source): Before recording a new source, check
33192         if its file name is not already a source of another project. Report an
33193         error if it is.
33195         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
33196         source file name, call gnatpp with all the sources of the main project.
33198         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
33199         of file names.
33201         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
33202         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
33203         /RUNTIME_SYSTEM=, converted to --RTS=
33204         /NOTABS, converted to -notabs
33206 2004-03-05  Pascal Obry  <obry@gnat.com>
33208         * make.adb: Minor reformatting.
33210 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
33212         Part of implemention of AI-262.
33213         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
33215         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
33216         procedure.
33218         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
33219         when component type is a partially constrained class-wide subtype.
33220         (Constrain_Discriminated_Type): If parent type has unknown
33221         discriminants, a constraint is illegal, even if full view has
33222         discriminants.
33223         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
33224         with unknown discriminants whose full view is a discriminated record.
33226         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
33227         flag, to handle properly derivations of tagged types with unknown
33228         discriminants.
33229         (Analyze_Package_Spec, Analyze_Package_Body): Install
33230         Private_With_Clauses before analyzing private part or body.
33232         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
33233         Has_Discriminants can be true for a given type (documentation).
33235 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
33237         * s-restri.ads: Fix license (GPL->GMGPL).
33239         * s-tassta.adb: Minor reformatting.
33241         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33242         by calls to Exit_One_ATC_Level, since additional clean up is performed
33243         by this function.
33245         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33246         by calls to Exit_One_ATC_Level, since additional clean up is performed
33247         by this function.
33249 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33251         * trans.c: Reflect GCC changes to fix bootstrap problem.
33252         Add warning for suspicious aliasing unchecked conversion.
33254 2004-03-05  GNAT Script  <nobody@gnat.com>
33256         * Make-lang.in: Makefile automatically updated
33258 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
33260         * ali.adb (Read_Instantiation_Instance): Do not modify the
33261         current_file_num when reading information about instantiations, since
33262         this corrupts files in later references.
33264 2004-03-02  Vincent Celier  <celier@gnat.com>
33266         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
33267         before checking if it is read-only.
33269         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
33270         of SRC_DIRS and eliminate duplicates.
33272         * gprcmd.adb: Replace command "path" with command "path_sep" to return
33273         the path separator.
33274         (Usage): Document path_sep
33276         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
33277         C++ compiler. No need for a script.
33278         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
33279         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
33280         subst.
33282         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
33283         where there are Ada sources.
33284         (Set_Ada_Paths): Only add to the include path the source dirs of project
33285         with Ada sources.
33286         (Add_To_Path): Add the Display_Values of the directories, not their
33287         Values.
33289         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
33290         data.
33292         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
33293         is not No_Name.
33294         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
33295         Value is canonicalized.
33296         (Language_Independent_Check): Do not copy Value to Display_Value when
33297         canonicalizing Value.
33299         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
33300         path to find limited with cycles.
33301         (Parse_Single_Project): Use canonical cased path to find the end of a
33302         with cycle.
33304 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
33306         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
33307         and not a child unit.
33309         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
33310         appear in a with_clause.
33312         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
33313         only happen in type_annotate mode, do not try to elaborate it.
33315         * exp_util.adb (Force_Evaluation): If expression is a selected
33316         component on the left of an assignment, use a renaming rather than a
33317         temporary to remove side effects.
33319         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
33320         inlined instance body, which is analyzed before the end of the
33321         enclosing scope.
33323 2004-03-02  Robert Dewar  <dewar@gnat.com>
33325         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
33326         sem_ch4.adb: Use new feature for substitution of keywords in VMS
33328         * errout.ads, errout.adb: Implement new circuit for substitution of
33329         keywords in VMS.
33331         * sem_case.adb (Analyze_Choices): Place message properly when case is
33332         a subtype reference rather than an explicit range.
33334         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
33336 2004-03-02  Doug Rupp  <rupp@gnat.com>
33338         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
33340 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
33342         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
33344 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33346         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
33347         BLKmode bitfield.
33349 2004-02-25  Robert Dewar  <dewar@gnat.com>
33351         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33352         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
33353         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
33354         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
33355         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
33356         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
33357         the defining instance of the type to avoid aliasing problems.
33358         Fix copyright header.  Fix bad comments in package header.
33360         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
33362 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
33364         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
33365         rewritten as references when aliased through an address clause.
33367         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
33368         whether call can be interpreted as an indirect call to the result of a
33369         parameterless function call returning an access subprogram.
33371 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
33373         Code clean up:
33374         * exp_ch7.adb (Make_Clean): Remove generation of calls to
33375         Unlock[_Entries], since this is now done by Service_Entries directly.
33377         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
33379         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
33380         Requeue_Call for better code readability. Change spec and update calls:
33381         PO_Service_Entries now unlock the PO on exit.
33382         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
33383         PO_Service_Entries.
33385         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
33387         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
33389 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
33391         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
33392         protected subprogram call and analyzing the result of such expanding
33393         in case when the called protected subprogram is eliminated.
33395         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
33396         names.
33398 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
33400         * Makefile.in: Clean ups.
33402 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
33404         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
33405         protected operations if original subprogram is flagged as eliminated.
33406         (Expand_N_Subprogram_Body): For a protected operation, create
33407         discriminals for next operation before checking whether the operation
33408         is eliminated.
33410         * exp_ch9.adb (Expand_N_Protected_Body,
33411         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
33412         for internal protected operations if the original subprogram is
33413         eliminated.
33415         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
33416         declared in a single protected object.
33418 2004-02-23  Vincent Celier  <celier@gnat.com>
33420         * prj-attr.adb: Make attribute Builder'Executable an associative array,
33421         case insensitive if file names are case insensitive, instead of a
33422         standard associative array.
33424         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
33425         them as case insensitive on platforms where the file names are case
33426         sensitive.
33428         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
33429         project file has already been parsed that canonical path are compared.
33431 2004-02-23  Robert Dewar  <dewar@gnat.com>
33433         * sinput-c.ads: Correct bad unit title in header
33435         * freeze.adb: Minor reformatting
33437 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33439         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
33440         nonaddressable COMPONENT_REF that is removing padding that we are
33441         taking the address of, take the address of the padded record instead
33442         if item is variable size.
33444 2004-02-20  Robert Dewar  <dewar@gnat.com>
33446         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
33448 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
33450         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
33451         itype references for the constrained designated type of a component
33452         whose base type is already frozen.
33454 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
33456         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
33457         avoid GCC warnings.
33459 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
33461         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
33462         identifier for a phantom package that rewrites the formal package
33463         declaration with a box. The Add semantic decorations for the defining
33464         identifier from the original node (that represents the formal package).
33466 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
33468         * Make-lang.in (ada/stamp-sdefault): Use the top level
33469         move-if-change.
33471 2004-02-19  Richard Henderson  <rth@redhat.com>
33473         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
33475 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
33477         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
33478         Scan_ALI can be used for multiple ALI files without reinitializing
33479         between calls.
33481 2004-02-18  Robert Dewar  <dewar@gnat.com>
33483         * debug.adb: Minor reformatting.
33485 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33487         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
33488         to zero if there is an address clause.
33490 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
33492         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
33494 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
33496         * layout.adb (Layout_Component_List): Revise generation of call to
33497         discriminant-checking function to pass selections of all of the type's
33498         discriminants rather than just the variant-controlling discriminant.
33500 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
33502         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
33503         fail in the current setup and triggers spurious system error messages.
33504         Pretend it occurred and failed instead.
33506 2004-02-18  Vincent Celier  <celier@gnat.com>
33508         * bld.adb: Mark FLDFLAGS as saved
33509         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
33510         it is not the root project.  Put each directory to be
33511         extended between double quotes to prevent it to be expanded on Windows.
33512         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
33513         the project file. Set them back to their initial values if they have not
33514         been set in the project file.
33516         * gprcmd.adb: (Gprdebug, Debug): New global variables
33517         (Display_Command): New procedure
33518         (Usage): Document new command "linkopts"
33519         Call Display_Command when env var GPRDEBUG has the value "TRUE"
33520         Implement new command "linkopts"
33521         Remove quotes that may be around arguments for "extend"
33522         Always call Normalize_Pathname with arguments formatted for the platform
33524         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
33525         Change @echo to @$(display) in target clean to be able to clean silently
33527         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
33529         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
33530         canonical case.
33532         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
33533         = Extending_All when current project is an extending all project.
33535         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
33536         set to True only for LINK command, after Unix switch -o.
33537         (Process_Arguments): Set Output_File_Expected to True for LINK command
33538         after Unix switch -o. When Output_File_Expected is True, never add an
33539         extension to a file name.
33541         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
33542         option file name, only to the --for-linker= switch.
33543         (Option_File_Name): If option file name do not end with ".opt", append
33544         "/OPTIONS".
33546 2004-02-18  GNAT Script  <nobody@gnat.com>
33548         * Make-lang.in: Makefile automatically updated
33550 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
33552         * Make-lang.in (stamp-sdefault): Do not depend on
33553         move-if-change.
33555 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
33557         * config-lang.in: Disable Ada by default until probe logic for
33558         a bootstrap Ada compiler can be moved to the top level configure
33559         script.
33561 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
33563         * decl.c (components_to_record): Don't claim that the internal fields
33564         we make to hold the variant parts are semantically addressable, because
33565         they are not.
33567         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
33568         adjust the comment describing the modular type form when we can use it.
33569         (Install_PAT): Account for the Esiz renaming.
33571         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
33572         sc_onstack context indication before raising the exception to which
33573         the signal is mapped. Allows better handling of later signals possibly
33574         triggered by the resumed user code if the exception is handled.
33576 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
33578         * 5zinit.adb: Removed, no longer used.
33580 2004-02-12  Robert Dewar  <dewar@gnat.com>
33582         * ali.adb: Remove separating space between parameters on R line. Makes
33583         format consistent with format used by the binder for Set_Globals call.
33585         * atree.ads, atree.adb: Minor reformatting (new function header format)
33587         * bindgen.adb: Add Run-Time Globals documentation section containing
33588         detailed documentation of the globals passed from the binder file to
33589         the run time.
33591         * gnatls.adb: Minor reformatting
33593         * init.c (__gnat_set_globals): Add note pointing to documentation in
33594         bindgen.
33596         * lib-writ.ads, lib-writ.adb: Remove separating space between
33597         parameters on R line.
33598         Makes format consistent with format used by the binder for Set_Globals
33599         call.
33601         * osint.ads: Add 2004 to copyright notice
33602         Minor reformatting
33604         * snames.ads: Correct capitalization of FIFO_Within_Priorities
33605         Noticed during code reading, documentation issue only
33607         * usage.adb: Remove junk line for obsolete C switch
33608         Noticed during code reading
33610 2004-02-12  Vincent Celier  <celier@gnat.com>
33612         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
33613         extend for each directory, so that multiple /** directories are
33614         extended individually.
33615         (Recursive_Process): Set the default for LANGUAGES to ada
33617         * gprcmd.adb: Define new command "ignore", to do nothing.
33618         Implement new comment "path".
33620         * Makefile.generic: Suppress output when SILENT is set
33621         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
33622         used, so that the correct compiler is invoked.
33623         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
33624         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
33626 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
33628         * Makefile.in: Clean ups and remove obsolete targets.
33630 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
33632         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
33633         predicate declared in exp_util.
33635         * exp_util.adb: Add comments.
33637         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
33638         visibility before compiling context of the subunit.
33640         * sem_res.adb (Check_Parameterless_Call): If the context expects a
33641         value but the name is a procedure, do not attempt to analyze as a call,
33642         in order to obtain more telling diagnostics.
33644         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
33645         'Access on parameterless function calls.
33646         (Normalize_Actuals): For a parameterless function call with missing
33647         actuals, defer diagnostic until resolution of enclosing call.
33649         * sem_util.adb (Wrong_Type): If the context type is an access to
33650         subprogram and the expression is a procedure name, suggest a missing
33651         'attribute.
33653 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
33654             Nathanael Nerode  <neroden@gcc.gnu.org>
33656         PR ada/6637
33657         PR ada/5911
33658         Merge with libada-branch:
33659         * config-lang.in: Build libada only when ada is built.
33661 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
33663         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
33664         for a tagged type, verify that both formals have the same type.
33666         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
33667         temporary when the formal is an in-parameter and the actual a possibly
33668         unaligned slice.
33670         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
33671         when expansion is disabled, to ensure proper name capture with
33672         overloaded literals.  Condition can be of any boolean type, resolve
33673         accordingly.
33675         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
33676         renaming is for a formal subprogram with a default operator name, and
33677         there is a usable operator that is visible at the point of
33678         instantiation.
33680 2004-02-09  Robert Dewar  <dewar@gnat.com>
33682         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
33683         rewrite to ignore errors in ali files, intended to allow tools downward
33684         compatibility with new versions of ali files.
33686         * ali.ads: Add new parameter Ignore_Errors
33688         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
33689         duplicating the error message giving the file with restrictions.
33691         * debug.adb: Add debug flag I for gnatbind
33693         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
33694         operators for the case where the operator is a defining operator.
33696         * exp_ch3.adb: Minor reformatting (new function spec format).
33698         * exp_ch4.adb: Add comment for previous change, and make minor
33699         adjustment to loop to always check for improper loop termination.
33700         Minor reformatting throughout (new function spec format).
33702         * gnatbind.adb: Implement -di debug flag for gnatbind
33704         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
33706         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
33708         * lib-load.adb: Fix bad assertion.
33709         Found by testing and code reading.
33710         Minor reformatting.
33712         * lib-load.ads: Minor reformatting.
33714         * lib-writ.adb: There is only one R line now.
33716         * lib-writ.ads: Add documentation on making downward compatible changes
33717         to ali files so old tools work with new ali files.
33718         There is only one R line now.
33719         Add documentation on format incompatibilities (with special GPS note)
33721         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
33723         * par-load.adb: Minor reformatting
33725         * sem_ch8.adb: Fix to error message from last update
33726         Minor reformatting and restructuring of code from last update
33728         * par-prag.adb, snames.adb, snames.ads, snames.h,
33729         sem_prag.adb: Implement pragma Profile.
33731         * stylesw.adb: Implement -gnatyN switch to turn off all style check
33732         options.
33734         * usage.adb: Add line for -gnatyN switch
33736         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
33738 2004-02-09  Albert Lee  <lee@gnat.com>
33740         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
33742 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
33744         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
33745         slices.
33747         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
33748         is nested in an instance that is not frozen yet, to avoid
33749         order-of-elaboration problems in gigi.
33751         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
33752         body the attribute is legal.
33754 2004-02-09  Robert Dewar  <dewar@gnat.com>
33756         * s-rident.ads: Minor comment correction
33758         * targparm.adb: Remove dependence on uintp completely. There was
33759         always a bug in Make in that it called Targparm before initializing
33760         the Uint package. The old code appeared to get away with this, but
33761         the new code did not! This caused an assertion error in gnatmake.
33763         * targparm.ads: Fix bad comment, restriction pragmas with parameters
33764         are indeed fully supported.
33766 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
33768         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
33770 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
33772         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
33773         with targetm.calls.promote_prototypes.
33775 2004-02-04  Robert Dewar  <dewar@gnat.com>
33777         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
33778         ali.ads, gprcmd.adb: Minor reformatting
33780         * bindgen.adb: Output restrictions string for new style restrictions
33781         handling
33783         * impunit.adb: Add s-rident.ads (System.Rident) and
33784         s-restri (System.Restrictions)
33786         * lib-writ.adb: Fix bug in writing restrictions string (last few
33787         entries wrong)
33789         * s-restri.ads, s-restri.adb: Change name Restrictions to
33790         Run_Time_Restrictions to avoid conflict with package name.
33791         Add circuit to read and acquire run time restrictions.
33793 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
33795         * restrict.ads, restrict.adb: Use the new restriction
33796         No_Task_Attributes_Package instead of the old No_Task_Attributes.
33798         * sem_prag.adb: No_Task_Attributes is a synonym of
33799         No_Task_Attributes_Package.
33801         * snames.ads, snames.adb: New entry for proper handling of
33802         No_Task_Attributes.
33804         * s-rident.ads: Adding restriction No_Task_Attributes_Package
33805         (AI-00249) that supersedes the GNAT specific restriction
33806         No_Task_Attributes.
33808 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
33810         * sem_prag.adb:
33811         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
33812          body, an identifier may be wrapped in an unchecked conversion.
33814 2004-02-04  Vincent Celier  <celier@gnat.com>
33816         * lib-writ.ads: Comment update for the W lines
33818         * bld.adb: (Expression): An empty string list is static
33820         * fname-uf.adb: Minor comment update
33822         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
33824         * gnatbind.adb: Initialize Cumulative_Restrictions with the
33825         restrictions on the target.
33827 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
33829         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
33830         gen_rtx.
33832 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
33834         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
33836 2004-02-02  Vincent Celier  <celier@gnat.com>
33838         * gprcmd.adb (Check_Args): If condition is false, print the invoked
33839         comment before the usage.
33840         Gprcmd: Fail when command is not recognized.
33841         (Usage): Document command "prefix"
33843         * g-md5.adb (Digest): Process last block.
33844         (Update): Do not process last block. Store remaining characters and
33845         length in Context.
33847         * g-md5.ads (Update): Document that several call to update are
33848         equivalent to one call with the concatenated string.
33849         (Context): Add fields to allow new Update behaviour.
33851         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
33852         defaulted to False.
33853         When May_Fail is True and no existing file can be found, return No_File.
33855         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
33856         functions.
33858         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
33859         spec file name instead on the W line.
33861 2004-02-02  Robert Dewar  <dewar@gnat.com>
33863         * ali.adb: Read and acquire info from new format restrictions lines
33865         * bcheck.adb: Add circuits for checking restrictions with parameters
33867         * bindgen.adb: Output dummy restrictions data
33868         To be changed later
33870         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
33871         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
33872         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
33873         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
33874         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
33876         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
33877         the warning message on access to possibly uninitialized variable S)
33878         Minor changes for new restrictions handling.
33880         * gnatbind.adb: Minor reformatting
33881         Minor changes for new restrictions handling
33882         Move circuit for -r processing here from bcheck (cleaner)
33884         * gnatcmd.adb, gnatlink.adb: Minor reformatting
33886         * lib-writ.adb: Output new format restrictions lines
33888         * lib-writ.ads: Document new R format lines for new restrictions
33889         handling.
33891         * s-restri.ads/adb: New files
33893         * Makefile.rtl: Add entry for s-restri.ads/adb
33895         * par-ch3.adb: Fix bad error messages starting with upper case letter
33896         Minor reformatting
33898         * restrict.adb: Major rewrite throughout for new restrictions handling
33899         Major point is to handle restrictions with parameters
33901         * restrict.ads: Major changes in interface to handle restrictions with
33902         parameters. Also generally simplifies setting of restrictions.
33904         * snames.ads/adb: New entry for proper handling of No_Requeue
33906         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
33907         restriction counting.
33908         Other minor changes for new restrictions handling
33910         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
33911         Restriction_Warnings now allows full parameter notation
33912         Major rewrite of Restrictions for new restrictions handling
33914 2004-02-02  Javier Miranda  <miranda@gnat.com>
33916         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
33917         syntax rule for object renaming declarations.
33918         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
33919         component definitions.
33921         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
33922         components.
33923         (Array_Type_Declaration): Give support to access components. In addition
33924         it was also modified to reflect the name of the object in anonymous
33925         array types. The old code did not take into account that it is possible
33926         to have an unconstrained anonymous array with an initial value.
33927         (Check_Or_Process_Discriminants): Allow access discriminant in
33928         non-limited types.
33929         (Process_Discriminants): Allow access discriminant in non-limited types
33930         Initialize the new Access_Definition field in N_Object_Renaming_Decl
33931         node.  Change Ada0Y to Ada 0Y in comments
33933         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
33934         equality operators.
33935         Change Ada0Y to Ada 0Y in comments
33937         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
33938         renamings Change Ada0Y to Ada 0Y in comments
33940         * sem_type.adb (Find_Unique_Type): Give support to the equality
33941         operators for universal access types
33942         Change Ada0Y to Ada 0Y in comments
33944         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
33946         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
33947         field.
33948         (N_Object_Renaming_Declaration): Addition of Access_Definition field
33949         Change Ada0Y to Ada 0Y in comments
33951         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
33952         component definition and object renaming nodes
33953         Change Ada0Y to Ada 0Y in comments
33955 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
33957         * restrict.adb: Use the new restriction identifier
33958         No_Requeue_Statements instead of the old No_Requeue for defining the
33959         restricted profile.
33961         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
33962         No_Requeue_Statements.
33964         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
33965         that supersedes the GNAT specific restriction No_Requeue. The later is
33966         kept for backward compatibility.
33968 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
33970         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
33971         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
33972         pragma and fix incorrect ones.
33974         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
33975         warning if the pragma is redundant.
33977 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
33979         * 5staprop.adb: Add missing 'constant' keywords.
33981         * Makefile.in: use consistent value for SYMLIB on
33982         platforms where libaddr2line is supported.
33984 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33986         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
33987         annotating types.
33989 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
33991         * init.c (__gnat_install_handler): Setup an alternate stack for signal
33992         handlers in the environment thread. This allows proper propagation of
33993         an exception on stack overflows in this thread even when the builtin
33994         ABI stack-checking scheme is used without support for a stack reserve
33995         region.
33997         * utils.c (create_field_decl): Augment the head comment about bitfield
33998         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
33999         here, because the former is not accurate enough at this point.
34000         Let finish_record_type decide instead.
34001         Don't make a bitfield if the field is to be addressable.
34002         Always set a size for the field if the record is packed, to ensure the
34003         checks for bitfield creation are triggered.
34004         (finish_record_type): During last pass over the fields, clear
34005         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
34006         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
34007         from DECL_BIT_FIELD.
34009 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
34011         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
34012         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
34013         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
34015 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34017         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
34019         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
34020         (ZCX_By_Default): Likewise.
34021         (Front_End_ZCX_Support): Likewise.
34023         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
34024         (Initialize_Lock): Mark Level unreferenced.
34025         (Sleep): Mark Reason unreferenced.
34026         (Timed_Sleep): Likewise.
34027         (Wakeup): Likewise.
34028         (Exit_Task): Use Result.
34029         (Check_No_Locks): Mark Self_ID unreferenced.
34031         * 5gtasinf.adb (New_Sproc): Make Attr constant.
34032         (Bound_Thread_Attributes): Make Sproc constant.
34033         (New_Bound_Thread_Attributes): Likewise.
34035 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
34037         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
34038         one-dimensional array an slice assignments, when component type is
34039         controlled.
34041         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
34042         component type is controlled, and control_actions are in effect, use
34043         TSS procedure rather than generating inline code.
34045         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
34046         arrays with controlled components.
34048 2004-01-26  Vincent Celier  <celier@gnat.com>
34050         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
34051         command line for the non VMS case.
34053         * gnatlink.adb (Process_Binder_File): When building object file, if
34054         GNU linker is used, put all object paths between quotes, to prevent ld
34055         error when there are unusual characters (such as '!') in the paths.
34057         * Makefile.generic: When there are sources in Ada and the main is in
34058         C/C++, invoke gnatmake with -B, instead of -z.
34060         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
34061         from VMS_Conversion.
34062         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
34063         specification of argument file on the command line.
34065 2004-01-26  Bernard Banner  <banner@gnat.com>
34067         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
34069 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
34071         * snames.adb: Update copyright notice.
34072         Add info on slice assignment for controlled arrays.
34074 2004-01-23  Robert Dewar  <dewar@gnat.com>
34076         * exp_aggr.adb: Minor reformatting
34078         * exp_ch9.adb: Minor code clean up
34079         Minor reformatting
34080         Fix bad character in comment
34082         PR ada/13471
34083         * targparm.adb (Get_Target_Parameters): Give clean abort error on
34084         unexpected end of file, along with more detailed message.
34086 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34088         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
34089         PAT.
34091         * decl.c (copy_alias_set): New function.
34092         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
34094 2004-01-23  Doug Rupp  <rupp@gnat.com>
34096         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
34097         lib$${file} in case subsequent character is not a separator.
34099 2004-01-23  Vincent Celier  <celier@gnat.com>
34101         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
34102         when the GCC version is at least 3.
34104         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
34105         Remove all "Opt.", to prepare for opt split
34107         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
34108         Extends_All. Set to True when the project parsed is an extending all
34109         project. Fails for importing an extending all project only when the
34110         imported project is an extending all project.
34111         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
34112         depending on the value of Extends_All returned.
34114         * prj-proc.adb (Process): Check that no project shares its object
34115         directory with a project that extends it, directly or indirectly,
34116         including a virtual project.
34117         Check that no project extended by another project shares its object
34118         directory with another also extended project.
34120         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
34121         Kind = N_With_Clause
34123         * prj-tree.ads: Minor reformatting
34124         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
34126 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
34128         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
34129         applies to a type with an incomplete view, use full view in Name of
34130         clause, for consistency with uses of Get_Attribute_Definition_Clause.
34132 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
34134         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
34135         SCHED_RR, since other values are not supported by this policy.
34136         (Initialize): Move initialization of mutex attribute to package
34137         elaboration, to prevent early access to this variable.
34139         * Makefile.in: Remove mention of Makefile.adalib, unused.
34141         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
34142         1ssecsta.ads: Removed, unused.
34144 2004-01-21  Javier Miranda  <miranda@gnat.com>
34146         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
34147         entity if already built in the current scope.
34149         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
34150         reminder in internal scopes. Required for nested limited aggregates.
34152 2004-01-21  Doug Rupp  <rupp@gnat.com>
34154         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
34155         VMS. Replace all occurences of libgnat- and libgnarl- with
34156         libgnat$(hyphen) and libgnarl$(hyphen).
34157         Fixed shared library build problem on VMS.
34159 2004-01-21  Robert Dewar  <dewar@gnat.com>
34161         * mlib-prj.adb: Minor reformatting
34163 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
34165         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
34166         'constant' keywords for declaration of pointers that are not modified.
34168         * exp_pakd.adb: Fix English in comment.
34170 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
34172         PR ada/10889
34173         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
34174         copy all attributes of the parent, including the foreign language
34175         convention.
34177 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
34179         PR ada/10565
34180         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
34181         for 'delay until' statement.
34183 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
34185         * Make-lang.in: Replace $(docdir) with doc.
34186         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
34187         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
34188         to use consistent MAKEINFO rule.
34189         (ada.man, ada.srcman): Dummy entry.
34190         (ADA_INFOFILES): Define.
34191         (ada.info, ada.srcinfo): New rules.
34193 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
34195         * utils.c: Update copyright notice, missed in previous change.
34197 2004-01-19  Vincent Celier  <celier@gnat.com>
34199         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
34200         args if Bind is True. Set First_ALI, if not already done.
34201         (Build_Library): For Stand Alone Libraries, extract from one ALI file
34202         an eventual --RTS switch, for gnatbind, and all backend switches +
34203         --RTS, for linking.
34205 2004-01-19  Robert Dewar  <dewar@gnat.com>
34207         * sem_attr.adb, memtrack.adb: Minor reformatting
34209 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
34211         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
34212         that rename enumeration literals. This is properly done in sem_eval.
34214         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
34215         to functions that rename enumeration literals.
34217         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
34218         functions that rename enumeration literals.
34220 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
34222         * Make-lang.in (utils.o): Depend on target.h.
34223         * utils.c: Include target.h.
34224         (process_attributes): Use targetm.have_named_sections instead
34225         of ASM_OUTPUT_SECTION_NAME.
34227 2004-01-16  Andreas Jaeger  <aj@suse.de>
34229         * Makefile.in: Add $(DESTDIR).
34231 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
34233         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
34234         also when not defining if a Size clause applies. That information is
34235         not to be ignored.
34237 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
34239         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
34240         symbolic links for the shared gnat run time when needed.
34242 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
34244         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
34245         for writing, and terminate with an error message if not.
34247 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
34249         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
34250         warning on an access to subprogram in an instance, when the target
34251         type is declared in the same generic unit.
34252         (Eval_Attribute): If 'access is known to fail accessibility check,
34253         rewrite as a raise statement.
34255 2004-01-15  GNAT Script  <nobody@gnat.com>
34257         * Make-lang.in: Makefile automatically updated
34259 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
34261         * Make-lang.in (ada.srcextra): Dummy entry.
34263 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
34265         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
34267 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
34269         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
34270         components that are initialized with aggregates.
34272 2004-01-13  Vincent Celier  <celier@gnat.com>
34274         * gnatlink.adb (Process_Binder_File): To find directory of shared
34275         libgcc, if "gcc-lib" is not a subdirectory, look for the last
34276         subdirectory "lib" in the path of the shared libgnat or libgnarl.
34278         * make.adb (Gnatmake): If GCC version is at least 3, link with
34279         -shared-libgcc, when there is at least one shared library project.
34281         * opt.ads (GCC_Version): New integer constant.
34283         * adaint.c (get_gcc_version): New function.
34285 2004-01-13  Robert Dewar  <dewar@gnat.com>
34287         * sem_dist.adb, sem_res.adb, sem_util.adb,
34288         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
34289         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
34291 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
34293         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
34294         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
34295         declarations.
34297 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
34299         * misc.c: Remove trailing spaces.
34300         Update copyright notice missed in previous change.
34302         PR ada/13572
34303         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
34304         prefix/share/make
34306         * Makefile.generic: Update copyright.
34307         Add license notice.
34309         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
34310         of prefix/share/make.
34312         * Makefile.prolog: Update copyright.
34313         Add license notice.
34315 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
34317         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
34318         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
34319         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
34320         instead of String.
34322         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
34323         signature.
34325 2004-01-12  Javier Miranda  <miranda@gnat.com>
34327         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
34328         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
34329         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
34330         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
34331         Component_Definition node.
34333 2004-01-12  Ed Falis  <falis@gnat.com>
34335         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
34337 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
34339         * link.c: Change default libgnat kind to STATIC for FreeBSD.
34341 2004-01-12  Bernard Banner  <banner@gnat.com>
34343         * Makefile.in: map 86numaux to a-numaux for x86_64
34345 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
34347         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
34348         generated to rename a generic actual, go to the actual itself, the
34349         subtype is not a user-visible entity.
34351         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
34352         part is a private subtype, reset the visibility of its full view, if
34353         any, to be consistent.
34355         PR ada/13417
34356         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
34357         to use a generic package G as a formal package for another generic
34358         declared within G.
34360 2004-01-12  Robert Dewar  <dewar@gnat.com>
34362         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
34364         * usage.adb: Remove mention of obsolete -gnatwb switch
34365         Noticed during code reading
34367 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
34369         * 1ssecsta.adb: Minor changes for -gnatwa warnings
34371 2004-01-12  GNAT Script  <nobody@gnat.com>
34373         * Make-lang.in: Makefile automatically updated
34375 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
34377         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
34379 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34381         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
34383 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
34385         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
34386         Update comment and copyright date.
34387         * stamp-xgnatug: Delete.
34389 2004-01-05  Robert Dewar  <dewar@gnat.com>
34391         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
34392         be modified by the binder generated main program if the -D switch is
34393         used.
34395         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
34396         imported functions (since now we expect this to be done for imported
34397         functions)
34399         * 5vtaprop.adb: Add several ??? for sections requiring more comments
34400         Minor reformatting throughout
34402         * 5zinit.adb: Minor reformatting
34403         Add 2004 to copyright date
34404         Minor changes to avoid -gnatwa warnings
34405         Correct some instances of using OR instead of OR ELSE (noted while
34406         doing reformatting)
34408         * sprint.adb: Minor updates to avoid -gnatwa warnings
34410         * s-secsta.ads, s-secsta.adb:
34411         (SS_Get_Max): New function to obtain high water mark for ss stack
34412         Default_Secondary_Stack is not a constant since it may be modified by
34413         the binder generated main program if the -D switch is used.
34415         * switch-b.adb: New -Dnnn switch for binder
34417         * switch-c.adb:
34418         Make -gnatg imply all warnings currently in -gnatwa
34420         * vms_conv.adb: Minor reformatting
34421         Add 2004 to copyright notice
34422         Add 2004 to printed copyright notice
34424         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
34425         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
34426         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
34427         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
34428         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
34429         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
34430         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
34431         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
34432         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
34433         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
34434         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
34435         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
34436         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
34437         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
34438         checks.adb, clean.adb, cstand.adb, einfo.ads,
34439         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
34440         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
34441         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
34442         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
34443         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
34444         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
34445         Minor reformatting and code clean ups.
34446         Minor changes to prevent -gnatwa warnings
34448         * ali.adb: Minor reformatting and cleanup of code
34449         Acquire new SS indication of secondary stack use from ali files
34451         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
34452         (since now we expect this to be done for imported functions)
34454         * bindgen.adb: Generate call to modify default secondary stack size if
34455         -Dnnn switch given
34457         * bindusg.adb: Add line for new -D switch
34459         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
34460         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
34461         Add circuitry for both records and arrays to avoid gigi
34462         processing if the type involved has non-bit-aligned components
34464         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
34465         N_String_Literal node always references an E_String_Literal_Subtype
34466         entity. This may not be true in the future.
34467         (Possible_Bit_Aligned_Component): Move processing of
34468         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
34470         * exp_ch6.adb (Expand_Thread_Body): Pick up
34471         Default_Secondary_Stack_Size as variable so that we get value modified
34472         by possible -Dnnn binder parameter.
34474         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
34475         (Type_May_Have_Bit_Aligned_Components): New function.
34477         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
34478         (Type_May_Have_Bit_Aligned_Components): New function.
34480         * fe.h: (Set_Identifier_Casing): Fix prototype.
34481         Add declaration for Sem_Elim.Eliminate_Error_Msg.
34482         Minor reformatting.
34484         * freeze.adb (Freeze_Entity): Add RM reference to error message about
34485         importing constant atomic/volatile objects.
34486         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
34487         unless explicit Pure_Function pragma given, to avoid insidious bug of
34488         call to non-pure imported function getting eliminated.
34490         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
34491         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
34492         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
34493         Add 2004 to printed copyright notice
34495         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
34496         stack used.
34498         * Makefile.rtl: Add entry for g-sestin.o
34499         g-sestin.ads: New file.
34501         * mdll.adb: Minor changes to avoid -gnatwa warnings
34503         * mlib-tgt.adb: Minor reformatting
34505         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
34506         New switch Sec_Stack_Used (GNAT, GNATBIND)
34507         Make Default_Secondary_Stack_Size a variable instead of a constant,
34508         so that it can be modified by the new -Dnnn bind switch.
34510         * rtsfind.adb (Load_Fail): Give full error message in configurable
34511         run-time mode if all_errors mode is set. This was not done in the case
34512         of a file not found, which was an oversight.
34513         Note if secondary stack unit is used by compiler.
34515         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
34516         ineffective elaborate all pragmas on non-visible packages (this
34517         happened when a renamed subprogram was called). Now the elaborate all
34518         always goes on the package containing the renaming rather than the one
34519         containing the renamed subprogram.
34521         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
34522         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
34524         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
34525         has an Etype that references an E_String_Literal.
34526         (Eval_String_Literal): Avoid assumption that N_String_Literal node
34527         always references an E_String_Literal_Subtype entity. This may not
34528         be true in the future.
34530         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
34531         pragma location.
34533         * sem_res.adb (Resolve): Specialize msg for function name used in proc
34534         call.
34536 2004-01-05  Ed Falis  <falis@gnat.com>
34538         * g-debuti.adb: Replaced direct boolean operator with short-circuit
34539         form.
34541 2004-01-05  Vincent Celier  <celier@gnat.com>
34543         * bld.adb: Minor comment updates
34544         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
34545         of Item_Name).
34547         * make.adb (Gnatmake): Special process for files to compile/check when
34548         -B is specified. Fail when there are only foreign mains in attribute
34549         Main of the project file and -B is not specified. Do not skip bind/link
34550         steps when -B is specified.
34552         * makeusg.adb: Document new switch -B
34554         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
34556         * switch-m.adb: (Scan_Make_Switches): Process -B switch
34558         * vms_data.ads: Add new GNAT PRETTY qualifier
34559         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
34561 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34563         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
34564         case.
34566         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
34567         Set_Identifier_Casing.
34569         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
34570         has size that overflows.
34572 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
34574         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
34575         -gnatwa warning on static condition.
34577 2004-01-05  Doug Rupp  <rupp@gnat.com>
34579         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
34581 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
34583         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
34584         all attributes, including read-only attribute.
34586 2004-01-05  Pascal Obry  <obry@gnat.com>
34588         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
34589         library naming scheme.
34591         * mlib-prj.adb (Build_Library): Generate different names for the static
34592         or dynamic version of the GNAT runtime. This is needed to support the
34593         new shared library naming scheme.
34594         (Process_Binder_File): Add detection of shared library in binder file
34595         based on the new naming scheme.
34597         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
34598         scheme for the shared runtime libraries.
34600         * Makefile.in:
34601         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
34602         scheme.
34603         (install-gnatlib): Do not create symlinks for shared libraries.
34604         (gnatlib-shared-default): Idem.
34605         (gnatlib-shared-dual-win32): New target. Not used for now as the
34606         auto-import feature does not support arrays/records.
34607         (gnatlib-shared-win32): Do not create copy for the shared libraries.
34608         (gnatlib-shared-vms): Fix shared runtime libraries names.
34610         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
34611         dependent runtime shared library name.
34613 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
34615         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
34616         than the object.
34618 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
34620         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
34621         protected objects when allocator has a subtype indication, not a
34622         qualified expression. Note that qualified expressions may have to be
34623         checked when limited aggregates are implemented.
34625         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
34626         pure, emit warning.
34627         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
34628         subprogram is imported, remove warning.
34630 2004-01-05  Geert Bosch  <bosch@gnat.com>
34632         * s-poosiz.adb: Update copyright notice.
34633         (Allocate): Use Task_Lock to protect against concurrent access.
34634         (Deallocate): Likewise.
34636 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
34638         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
34639         comment.
34641 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
34643         * gnat_ug.texi: Force a CVS commit by updating copyright.
34644         * gnat_ug_vxw.texi: Regenerate.
34645         * gnat_ug_wnt.texi: Regenerate.
34646         * gnat_ug_vms.texi: Regenerate.
34647         * gnat_ug_unx.texi: Regenerate.
34649 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
34651         * trans.c: Remove uses of "register" specifier in
34652         declarations of local variables.
34654 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
34656         * stamp-xgnatug: New stamp file.
34657         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
34658         (ada/doctools/xgnatug): Add $(build_exeext).
34659         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
34660         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
34662 2003-12-17  Ed Falis  <falis@gnat.com>
34664         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
34665         eliminate warning.
34667         * a-exextr.adb: Add context clause for
34668         Ada.Exceptions.Last_Chance_Handler.
34670 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
34672         * cstand.adb (Create_Standard): Change the way how the declaration of
34673         the Duration type is created (making it the same way as it is for all
34674         the other standard types).
34676 2003-12-17  Robert Dewar  <dewar@gnat.com>
34678         * s-crtl.ads: Fix header format
34679         Change Pure to Preelaborate
34681 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
34683         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
34684         the expression type only if it is declared in the current unit.
34686         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
34687         are universal and already analyzed, as can occur in constrained
34688         subcomponents that depend on discriminants, when one constraint is a
34689         subtype mark.
34691         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
34692         type Any_Fixed is legal as the argument of a conversion, if only one
34693         fixed-point type is in context.
34695 2003-12-17  GNAT Script  <nobody@gnat.com>
34697         * Make-lang.in: Makefile automatically updated
34699 2003-12-15  Robert Dewar  <dewar@gnat.com>
34701         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
34702         sec stack size.
34704 2003-12-15  Vincent Celier  <celier@gnat.com>
34706         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
34707         (Gnatchop): Do not set failure status when reporting the number of
34708         warnings.
34710 2003-12-15  Doug Rupp  <rupp@gnat.com>
34712         * s-ctrl.ads: New file.
34714         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
34716         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
34717         (GNATBIND_OBJS): Add ada/s-crtl.o.
34719         * Makefile.in [VMS]: Clean up ifeq rules.
34721         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
34722         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
34723         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
34724         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
34725         s-tasdeb.adb: Update copyright.
34726         Import System.CRTL.
34727         Make minor modifications to use System.CRTL declared functions instead
34728         of importing locally.
34730 2003-12-15  GNAT Script  <nobody@gnat.com>
34732         * Make-lang.in: Makefile automatically updated
34734 2003-12-11  Ed Falis  <falis@gnat.com>
34736         * 5zinit.adb: Clean up.
34738         * 5zintman.adb (Notify_Exception): replaced case statement with a call
34739         to __gnat_map_signal, imported from init.c to support
34740         signal -> exception mappings that depend on the vxWorks version.
34742         * init.c:
34743         Created and exported __gnat_map_signal to support signal -> exception
34744         mapping that is dependent on the VxWorks version.
34745         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
34747 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
34749         * 5wosinte.ads: Link with -mthreads switch.
34751 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
34753         * init.c (__gnat_install_handler [NetBSD]): Set
34754         __gnat_handler_installed, as done on all other platforms.
34755         Remove duplicated code.
34757 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
34759         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
34761 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
34763         * sinfo.ads: Fix inconsistent example code in comment.
34765 2003-12-11  Robert Dewar  <dewar@gnat.com>
34767         * a-tiinau.adb: Add a couple of comments
34769         * sem_ch3.adb: Minor reformatting
34771         * sem_prag.adb:
34772         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
34773         Minor reformatting throughout
34775 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
34777         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
34778         bounds of a loop, create a separate block in order to generate proper
34779         cleanup actions to prevent memory leaks.
34781         * sem_res.adb (Resolve_Call): After a call to
34782         Establish_Transient_Scope, the call may be rewritten and relocated, in
34783         which case no further processing is needed.
34785         * sem_util.adb: (Wrong_Type): Refine previous fix.
34786          Fixes ACATS regressions.
34788         PR ada/13353
34789         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
34790         be inlined.
34792 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
34794         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
34795         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
34796         obsolete files.
34798         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
34799         (rts-zfp): Ditto.
34801 2003-12-08  Robert Dewar  <dewar@gnat.com>
34803         * 7sintman.adb: Minor reformatting
34805         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
34806         standard linker options to get standard libraries linked. We now plan
34807         to provide dummy versions of these libraries to match the appropriate
34808         configurable run-time (e.g. if a library is not needed at all, provide
34809         a dummy empty library).
34811         * targparm.ads: Configurable_Run_Time mode no longer affects linker
34812         options (-L parameters and standard libraries). What we plan to do is
34813         to provide dummy libraries where the libraries are not required.
34815         * gnatbind.adb: Minor comment improvement
34817 2003-12-08  Javier Miranda  <miranda@gnat.com>
34819         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
34820         aggregate in the parent. Otherwise constants with limited aggregates
34821         are not supported. Add new formal to pass the component type (Ctype).
34822         It is required to call the corresponding IP subprogram in case of
34823         default initialized components.
34824         (Gen_Assign): In case of default-initialized component, generate a
34825         call to the IP subprogram associated with the component.
34826         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
34827         of aggregate with default initialized components.
34828         (Has_Default_Init_Comps): Improve implementation to recursively check
34829         all the present expressions.
34831         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
34832         to indicate that the initialization call corresponds to a
34833         default-initialized component of an aggregate.
34834         In case of default initialized aggregate with tasks this parameter is
34835         used to generate a null string (this is just a workaround that must be
34836         improved later). In case of discriminants, this parameter is used to
34837         generate a selected component node that gives access to the discriminant
34838         value.
34840         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
34841         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
34842         allocated aggregates with default-initialized components.
34844         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
34845         the box notation is used in positional aggregates.
34847 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
34849         * lib.ads: Fix typo in comment
34851 2003-12-08  Vincent Celier  <celier@gnat.com>
34853         * prj.adb (Project_Empty): New component Unkept_Comments
34854         (Scan): Remove procedure; moved to Prj.Err.
34856         * prj.ads (Project_Data): New Boolean component Unkept_Comments
34857         (Scan): Remove procedure; moved to Prj.Err.
34859         * prj-dect.adb: Manage comments for the different declarations.
34861         * prj-part.adb (With_Record): New component Node
34862         (Parse): New Boolean parameter Store_Comments, defaulted to False.
34863         Set the scanner to return ends of line and comments as tokens, if
34864         Store_Comments is True.
34865         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
34866         comments are associated with these nodes. Store the node IDs in the
34867         With_Records.
34868         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
34869         With_Records.
34870         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
34871         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
34872         current project. Call Tree.Restore afterwards. Set the various nodes
34873         for comment storage (Next_End, End_Of_Line, Previous_Line,
34874         Previous_End).
34876         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
34877         defaulted to False.
34879         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
34880         to False. When Truncated is True, truncate the string, never go to the
34881         next line.
34882         (Write_End_Of_Line_Comment): New procedure
34883         (Print): Process comments for nodes N_With_Clause,
34884         N_Package_Declaration, N_String_Type_Declaration,
34885         N_Attribute_Declaration, N_Typed_Variable_Declaration,
34886         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
34887         Process nodes N_Comment.
34889         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
34890         without comments and there are some comments, set the flag
34891         Unkept_Comments to True.
34892         (Scan): If there are comments, set the flag Unkept_Comments to True and
34893         clear the comments.
34894         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
34895         (Next_End_Nodes: New table
34896         (Comment_Zones_Of): New function
34897         (Scan): New procedure; moved from Prj. Accumulate comments in the
34898         Comments table and set end of line comments, comments after, after end
34899         and before end.
34900         (Add_Comments): New procedure
34901         (Save, Restore, Seset_State): New procedures
34902         (There_Are_Unkept_Comments): New function
34903         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
34904         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
34905         procedures.
34906         (First_Comment_After, First_Comment_After_End): New functions
34907         (First_Comment_Before, First_Comment_Before_End): New functions
34908         (Next_Comment): New function
34909         (End_Of_Line_Comment, Follows_Empty_Line,
34910         Is_Followed_By_Empty_Line): New functions
34911         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
34912         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
34913         (Set_Next_Comment): New procedure
34914         (Default_Project_Node): Associate comment before if the node can store
34915         comments.
34917         * scans.ads (Token_Type): New enumeration value Tok_Comment
34918         (Comment_Id): New global variable
34920         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
34921         defaulted to False.
34922         (Scan): Store position of start of comment. If comments are tokens, set
34923         Comment_Id and set Token to Tok_Comment when scanning a comment.
34924         (Set_Comment_As_Token): New procedure
34926         * sinput-p.adb: Update Copyright notice
34927         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
34928         that no longer exists.
34930 2003-12-08  Javier Miranda  <miranda@gnat.com>
34932         * sem_aggr.adb: Add dependence on Exp_Tss package
34933         Correct typo in comment
34934         (Resolve_Aggregate): In case of array aggregates set the estimated
34935         type of the aggregate before calling resolve. This is needed to know
34936         the name of the corresponding IP in case of limited array aggregates.
34937         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
34938         in case of default initialized array components.
34940         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
34941         types. Required to give support to limited aggregates in generic
34942         formals.
34944 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
34946         * sem_ch3.adb (Check_Initialization): For legality purposes, an
34947         inlined body functions like an instantiation.
34948         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
34949         until bounds are analyzed, to diagnose premature use of type.
34951         * sem_util.adb (Wrong_Type): Improve error message when the type of
34952         the expression is used prematurely.
34954 2003-12-08  GNAT Script  <nobody@gnat.com>
34956         * Make-lang.in: Makefile automatically updated
34958 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
34960         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
34961         they are automatically generated by Make-lang.in and cause nothing but
34962         maintenance troubles.
34964 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
34966         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
34967         version of this unit).
34969 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
34971         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
34972         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
34973         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
34974         the body of System.Interrupt_Management common to several targets.
34975         Update copyright notice when appropriate.
34977         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
34978         constant.
34980         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
34981         to ensure that the kernel fills in the interrupted context structure
34982         before calling a signal handler, which is necessary to be able to
34983         unwind past it. Update the copyright notice.
34985 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
34987         * a-elchha.ads: New file.
34989         * a-elchha.adb: New default last chance handler. Contents taken from
34990         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
34992         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
34993         is moved to a-elchha.adb to provide a target-independent default last
34994         chance handler.
34996         * Makefile.rtl: Add a-elchha.o
34998         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
35000 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
35002         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
35003         declared in an instance, do not inline the call if the instance is not
35004         frozen yet, to prevent order of elaboration problems.
35006         * sem_prag.adb: Add comments for previous fix.
35008 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
35010         * g-table.adb: Use the right variable in Set_Item.
35011         Update copyright notice.
35013 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
35015         * Makefile.in: Remove unused rules.
35017 2003-12-05  Vincent Celier  <celier@gnat.com>
35019         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
35020         -nostdlib. Not needed here after all.
35022 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
35024         PR ada/11724
35025         * adaint.h, adaint.c, g-os_lib.ads:
35026         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
35027         on some platforms (including FreeBSD), it is a 64 bit value.
35028         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
35030 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
35032         * gnatvsn.ads (Library_Version): Now contain only the relevant
35033         version info.
35034         (Verbose_Library_Version): New constant.
35036         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
35037         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
35038         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
35040         * gnatlbr.adb: Clean up: replace Library_Version by
35041         Verbose_Library_Version.
35043         * make.adb, lib-writ.adb, exp_attr.adb:
35044         Clean up: replace Library_Version by Verbose_Library_Version.
35046         * 5lintman.adb: Removed.
35048         * Makefile.in:
35049         Update and simplify computation of LIBRARY_VERSION.
35050         Fix computation of GSMATCH_VERSION.
35051         5lintman.adb is no longer used: replaced by 7sintman.adb.
35053 2003-12-03  Robert Dewar  <dewar@gnat.com>
35055         * exp_ch5.adb:
35056         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
35057         name. Modified to consider small non-bit-packed arrays as troublesome
35058         and in need of component-by-component assigment expansion.
35060 2003-12-03  Vincent Celier  <celier@gnat.com>
35062         * lang-specs.h: Process nostdlib as nostdinc
35064         * back_end.adb: Update Copyright notice
35065         (Scan_Compiler_Arguments): Process -nostdlib directly.
35067 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
35069         * Makefile.in:
35070         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
35071         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
35072         included in HIE_NONE_TARGET_PAIRS.
35074 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
35076         * sem_attr.adb:
35077         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
35078         is legal in an instance, because legality is cheched in the template.
35080         * sem_prag.adb:
35081         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
35082         appplied to an unchecked conversion of a formal parameter.
35084         * sem_warn.adb:
35085         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
35086         variables.
35088 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
35090         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
35091         routines. The second one is new functionality to deal with backtracing
35092         through signal handlers.
35093         (unwind): Split into the two separate subroutines above.
35094         Update the documentation, and deal properly with sizeof (REG) different
35095         from sizeof (void*).
35097 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
35099         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
35100         so that the debugger can reliably access the value of the parameter,
35101         and therefore is able to display the exception name when an exception
35102         breakpoint is reached.
35104 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
35106         * fmap.adb: Fix typo in warning message.
35108         * g-socket.ads, g-socket.adb: Make Free a visible instance of
35109         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
35111 2003-12-01  Vincent Celier  <celier@gnat.com>
35113         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
35114         ther is no Afile.
35115         (Build_Library): Get the switches only if Default_Switches is declared
35116         in package Binder.
35118 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
35120         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
35121         actuals that are indexed components, reanalyze actual to ensure that
35122         packed array references are properly expanded.
35124         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
35125         attempted assignment to a discriminant.
35127 2003-12-01  Robert Dewar  <dewar@gnat.com>
35129         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
35130         reformatting.
35132         * switch-c.adb: Minor reformatting of comments
35134 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
35136         * Makefile.in: Clean ups.
35138 2003-12-01  GNAT Script  <nobody@gnat.com>
35140         * Make-lang.in: Makefile automatically updated
35142 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
35144         * 5wsystem.ads: Disable zero cost exception, not ready yet.
35146 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
35148         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
35149         to force serialization.
35151 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
35153         * g-socket.ads, g-socket.adb:
35154         Clarify documentation of function Stream. Introduce a Free procedure
35155         to release the returned Stream once it becomes unused.
35157         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
35159 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
35161         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
35162         since NT 4 cannot handle timeout values that are too large,
35163         e.g. DWORD'Last - 1.
35165 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
35167         * exp_ch4.adb:
35168         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
35169         in procedure calls and whose expansion must be deferred.
35171         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
35172         is in exp_ch4.
35174         * sem_ch3.adb:
35175         (Build_Derived_Array_Type): Create operator for unconstrained type
35176         if ancestor is unconstrained.
35178 2003-11-26  Vincent Celier  <celier@gnat.com>
35180         * make.adb (Project_Object_Directory): New global variable
35181         (Change_To_Object_Directory): New procedure
35182         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
35183         of Change_Dir directly. Do not change working directory to object
35184         directory of main project after each compilation.
35185         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
35186         directly.
35187         Change to object directory of main project before binding step.
35188         (Initialize): Initialize Project_Object_Directory to No_Project
35190         * mlib-prj.adb:
35191         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
35192         binding a Stand-Alone Library.
35194         * output.adb: Update Copyright notice
35195         (Write_Char): Output buffer when full
35197 2003-11-26  Robert Dewar  <dewar@gnat.com>
35199         * sem_ch13.adb: (Check_Size): Reset size if size is too small
35201         * sem_ch13.ads:
35202         (Check_Size): Fix documentation to include bit-packed array case
35204         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
35206         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
35208         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
35210 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
35212         PR ada/13142
35213         * utils.c (init_gigi_decls): Change name of built-in setjmp to
35214         __builtin_setjmp, since this is apparently needed by recent
35215         non Ada changes.
35217 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35219         * adadecode.c: Only include ctype.h if not IN_GCC.
35220         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
35222 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
35224         * Makefile.in:
35225         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
35226         signals and interrupts.
35228         * 5zintman.ads: New File.
35230         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
35231         add exception signals to the set of unmasked signals.
35233         * 5ztaprop.adb:
35234         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
35235         between signals and interrupts.
35236         Add to Unblocked_Signal_Mask the set of signals that are in
35237         Keep_Unmasked.
35239         * 7sinmaop.adb:
35240         Adding a check to see whether the Interrupt_ID we want to unmask is in
35241         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
35242         reason is that the index type of the Keep_Unmasked array is not always
35243         Interrupt_ID; it may be a subtype of Interrupt_ID.
35245 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
35247         * exp_util.adb:
35248         (Remove_Side_Effects): Condition constantness of object created for a
35249          an unchecked type conversion on the constantness of the expression
35250          to ensure the correct value for 'Constrained when passing components
35251          of view-converted class-wide objects.
35253 2003-11-24  Robert Dewar  <dewar@gnat.com>
35255         * par-load.adb (Load): Improve handling of misspelled and missing units
35256         Removes several cases of compilation abandoned messages
35258         * lib.adb: (Remove_Unit): New procedure
35260         * lib.ads: (Remove_Unit): New procedure
35262         * lib-load.adb: Minor reformatting
35264 2003-11-24  Vincent Celier  <celier@gnat.com>
35266         * make.adb:
35267         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
35268         (Marking_Label): Label to mark processed source files. Incremented for
35269         each executable.
35270         (Gnatmake): Increase Marking_Labet for each executable
35271         (Is_Marked): Compare against marking label
35272         (Mark): Mark with marking label
35274 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
35276         * s-thread.ads:
35277         Move the declaration of the TSD for System.Threads to System.Soft_Links.
35278         Add some comments.
35280         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
35281         (rts-cert): build a single relocatable object for the run-time lib.
35282         Fix perms.
35284 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
35286         * Make-lang.in:
35287         Use gnatls rather than gcc to obtain the location of GNAT RTL for
35288         crosstools build.
35290 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
35292         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
35293         can not use it as before (that is, as a variable) when dumping it into
35294         the tree file. Add a local variable to store the result of this
35295         function and to be used as the string to be written into the tree.
35297         * scn.adb (Initialize_Scanner): Add comments explaining the recent
35298         changes.
35300         * sinput.adb (Source_First, Source_Last): In case of
35301         Internal_Source_File, replace returning attributes of
35302         Internal_Source_Ptr (which is wrong) with returning attributes of
35303         Internal_Source.
35305 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
35307         * sem_ch3.adb:
35308         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
35309         used for implicit concatenation operators.
35310         Code cleanup.
35312         * sem_elab.adb:
35313         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
35314         task bodies that are in the scope of a Suppress pragma.
35315         (Check_A Call): Use the flag to prevent spurious elaboration checks.
35317         * sinfo.ads, sinfo.adb:
35318         New flag No_Elaboration_Check on function/procedure calls, to properly
35319         suppress checks on calls in task bodies that are within a local suppress
35320         pragma.
35322         * exp_ch4.adb:
35323         (Expand_Concatenate_Other): Use the proper integer type for the
35324         expression for the upper bound, to avoid universal_integer computations
35325         when possible.
35327 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
35329         * .cvsignore: Delete.
35331 2003-11-21  Andreas Schwab  <schwab@suse.de>
35333         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
35335 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
35337         * 5wsystem.ads: Enable zero cost exception.
35339 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
35341         * 5ztiitho.adb: Remove an unreferenced variable.
35343 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
35345         * adaint.c: For FreeBSD, use mkstemp.
35347 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
35349         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
35351 2003-11-21  Robert Dewar  <dewar@gnat.com>
35353         * bld.adb: Remove useless USE of gnatvsn
35355         * gnatchop.adb: Minor reformatting
35356         Clean up version handling to be more consistent
35358         * gnatxref.adb: Minor reformatting
35360         * gprcmd.adb: Minor reformatting
35361         Fix output of copyright to be more consistent with other tools
35363 2003-11-21  Vincent Celier  <celier@gnat.com>
35365         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
35367 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
35369         * atree.adb (Initialize): Add initializations for global variables
35370         used in New_Copy_Tree.
35372         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
35373         Internal_Source_File as the actual).
35374         Put the set of statements creating Any_Character before the set of
35375         statements creating Any_Array to have Any_Character fully initialized
35376         when it is used in creating Any_Array.
35378         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
35379         not call Scan in case if the actual is Internal_Source_File
35380         Add 2003 to copyright note.
35382         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
35383         processing Internal_Source_File.
35385         * types.ads: Add the constant Internal_Source_File representing the
35386         source buffer for artificial source-code-like strings created within
35387         the compiler (the definition of Source_File_Index is changed).
35389 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
35391         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
35392         56system.ads: New file, FreeBSD version.
35394 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
35396         * Make-lang.in (ada.extraclean): Delete.
35398 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
35400         * gnatmem.adb: Clean up verbose output.
35402         * gprcmd.adb: Change copyright to FSF.
35404 2003-11-19  Vincent Celier  <celier@gnat.com>
35406         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
35407         and Version (ignored).
35409         * symbols.ads: (Policy): New type
35410         (Initialize): New parameter Reference, Symbol_Policy and
35411         Library_Version.
35412         Remove parameter Force.
35413         Minor reformatting.
35415         * snames.ads, snames.adbadb: New standard names
35416         Library_Reference_Symbol_File and Library_Symbol_Policy
35418         * mlib-prj.adb:
35419         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
35420         project.
35422         * mlib-tgt.adb:
35423         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
35425         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
35427         * prj.adb: (Project_Empty): New component Symbol_Data
35429         * prj.ads: (Policy, Symbol_Record): New types
35430         (Project_Data): New component Symbol_Data
35432         * prj-attr.adb:
35433         New attributes Library_Symbol_File, Library_Symbol_Policy and
35434         Library_Reference_Symbol_File.
35436         * prj-nmsc.adb:
35437         (Ada_Check): When project is a Stand-Alone library project, process
35438         attribute Library_Symbol_File, Library_Symbol_Policy and
35439         Library_Reference_Symbol_File.
35441         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
35442         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
35443         5sml-tgt.adb (Build_Dynamic_Library): New parameter
35444         Symbol_Data (ignored).
35446         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
35447         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
35448         functions Option_File_Name and Version_String. Set new options of
35449         gnatsym related to symbol file, symbol policy and reference symbol
35450         file.
35452         * 5vsymbol.adb:
35453         Extensive modifications to take into account the reference symbol file,
35454         the symbol policy, the library version and to put in the symbol file the
35455         minor and major IDs.
35457         * bld.adb (Process_Declarative_Items): Put second argument of
35458         gprcmd to_absolute between single quotes, to avoid problems with
35459         Windows.
35461         * bld-io.adb: Update Copyright notice.
35462         (Flush): Remove last character of a line, if it is a back slash, to
35463         avoid make problems.
35465         * gnatsym.adb:
35466         Implement new scheme with reference symbol file and symbol policy.
35468         * g-os_lib.ads: (Is_Directory): Clarify comment
35470 2003-11-19  Robert Dewar  <dewar@gnat.com>
35472         * atree.adb: Move New_Copy_Tree global variables to head of package
35474         * errout.adb: Minor reformatting
35476 2003-11-19  Javier Miranda  <miranda@gnat.com>
35478         * sem_ch4.adb: (Diagnose_Call): Improve error message.
35479         Add reference to Ada0Y (AI-50217)
35481         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
35482         sem_util.adb: Add reference to AI-50217
35484         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
35486         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
35488         * sem_aggr.adb: Complete documentation of AI-287 changes
35490         * par-ch4.adb: Document previous changes.
35492         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
35493         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
35494         Ada0Y (AI-50217)
35496         * exp_aggr.adb: Add references to AI-287 in previous changes
35498 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
35500         * exp_ch6.adb:
35501         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
35502         in the rewriting is the result of an inlined call.
35504         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
35505         parameter is a type conversion, use original node to construct the
35506         post-call assignment, because expression may have been rewritten, e.g.
35507         if it is a packed array.
35509         * sem_attr.adb:
35510         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
35511         body, just as it is in an instance.
35512         Categorization routines
35514         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
35515         Instantiate_Object): Set proper sloc reference for message on missing
35516         actual.
35518 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
35520         * Makefile.in: Add FreeBSD libgnat pairs.
35522         * usage.adb: Fix typo in usage message.
35524 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
35526         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
35527         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
35528         pragma Thread_Body.
35529         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
35531         * s-thread.adb: This file is now a dummy implementation of
35532         System.Thread.
35534 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
35536         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
35538 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
35540         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35541         instanciation references in the parent type description.
35543 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35545         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
35547         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
35548         TYPE_PRECISION directly from esize.
35550 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
35552         * cstreams.c:
35553         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
35555         * init.c: Initialization routines for FreeBSD
35557         * link.c: Link info for FreeBSD
35559         * sysdep.c: Add the case of FreeBSD
35561 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
35563         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
35564         already called in System.Threads.
35566         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
35567         environment task, as it has been moved to System.Threads.Initialization.
35569 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
35571         * adaint.c (__gnatlib_install_locks): Only reference
35572         __gnat_install_locks on VMS, since other platforms can avoid using
35573         --enable-threads=gnat
35575 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35577         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
35579         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
35580         TYPE_PACKED_ARRAY_TYPE_P.
35581         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
35583         Part of PR ada/12806
35584         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
35585         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
35587 2003-11-17  Vincent Celier  <celier@gnat.com>
35589         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
35590         to False.
35591         Do not set exit status to Failure when Warning is True.
35592         (Gnatchop): Make errors "no compilation units found" and
35593         "no source files written" warnings only.
35595         * make.adb (Gnatmake): When using a project file, set
35596         Look_In_Primary_Dir to False.
35597         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
35598         and Local_Configuration_Pragmas in the project where they are declared
35599         not an extending project which might have inherited them.
35601         * osint.adb (Locate_File): If Name is already an absolute path, do not
35602         look for a directory.
35604         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
35605         -gnats (Check_Syntax) is used, issue only a warning, not an error.
35607         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
35608         in objects of type Variable_Value.
35610         * prj.ads: (Variable_Value): New component Project
35612         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
35613         is in a project extended by Project.
35615         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
35616         Project of Variable_Values to this new parameter value.
35617         (Expression): Set component Project of Variable_Values.
35618         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
35619         Set the component Project in array elements.
35621 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
35623         * errout.adb: (Initialize): Add initialization for error nodes.
35625         * sem_ch12.adb (Initialize): Add missing initializations for
35626         Exchanged_Views and Hidden_Entities.
35628 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
35630         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
35631         already instantiated tree for use in subsequent inlining.
35632         (Analyze_Associations, Instantiate_Formal_Subprogram,
35633         Instantiate_Object): improve error message for mismatch in
35634         instantiations.
35636         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
35637         instantiations of subprograms declared in instances.
35639 2003-11-17  Javier Miranda  <miranda@gnat.com>
35641         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
35642         executed only under the Extensions_Allowed flag.
35644 2003-11-17  Robert Dewar  <dewar@gnat.com>
35646         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
35647         zeroes suppressed.
35648         (Address_Image): Fix bug of returning 0x instead of 0x0
35649         Minor reformatting (function specs).
35651         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
35652         (missed case of 33-63)
35654         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
35656         * s-thread.adb: Add comments for pragma Restriction
35658         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
35659         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
35661 2003-11-17  Ed Falis  <falis@gnat.com>
35663         * s-thread.adb: Added No_Tasking restriction for this implementation.
35665 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
35667         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35668         instanciation references in the parent type description.
35670 2003-11-17  GNAT Script  <nobody@gnat.com>
35672         * Make-lang.in: Makefile automatically updated
35674 2003-11-16  Jason Merrill  <jason@redhat.com>
35676         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
35677         and TAGS files that include them for each front end.
35679 2003-11-14  Andreas Jaeger  <aj@suse.de>
35681         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
35682         is the canonical version.
35683         * misc.c (gnat_handle_option): Likewise.
35685         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
35687         * 5nsystem.ads: New file for x86_64-linux-gnu.
35689 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
35691         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
35693         * comperr.adb: Fix logic in previous change.
35695 2003-11-13  Vincent Celier  <celier@gnat.com>
35697         * 5bml-tgt.adb (Build_Dynamic_Library): Use
35698         Osint.Include_Dir_Default_Prefix instead of
35699         Sdefault.Include_Dir_Default_Name.
35701         * gnatlbr.adb: Update Copyright notice
35702         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
35703         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
35704         instead of Sdefault.Object_Dir_Default_Name
35706         * gnatlink.adb:
35707         (Process_Binder_File): Never suppress the option following -Xlinker
35709         * mdll-utl.adb:
35710         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
35711         Sdefault.Object_Dir_Default_Name.
35713         * osint.ads, osint.adb:
35714         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
35715         Minor reformatting.
35717         * vms_conv.ads: Minor reformating
35718         Remove GNAT STANDARD and GNAT PSTA
35720         * vms_conv.adb:
35721         Allow GNAT MAKE to have several files on the command line.
35722         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
35723         Sdefault.Object_Dir_Default_Name.
35724         Minor Reformating
35725         Remove data for GNAT STANDARD
35727         * vms_data.ads:
35728         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
35729         Remove data for GNAT STANDARD
35730         Remove options and documentation for -gnatwb/-gnatwB: these warning
35731         options no longer exist.
35733 2003-11-13  Ed Falis  <falis@gnat.com>
35735         * 5zthrini.adb: (Init_RTS): Made visible
35737         * 5zthrini.adb:
35738         (Register): Removed unnecessary call to taskVarGet that checked whether
35739          an ATSD was already set as a task var for the argument thread.
35741         * s-thread.adb:
35742         Updated comment to reflect that this is a VxWorks version
35743         Added context clause for System.Threads.Initialization
35744         Added call to System.Threads.Initialization.Init_RTS
35746 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
35748         * 5zthrini.adb:
35749         (Init_RTS): New procedure, for the initialization of the run-time lib.
35751         * s-thread.adb:
35752         Remove dependancy on System.Init, so that this file can be used in the
35753         AE653 sequential run-time lib.
35755 2003-11-13  Robert Dewar  <dewar@gnat.com>
35757         * bindgen.adb: Minor reformatting
35759 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
35761         * checks.adb:
35762         (Apply_Discriminant_Check): Do no apply check if target type is derived
35763         from source type with no applicable constraint.
35765         * lib-writ.adb:
35766         (Ensure_System_Dependency): Do not apply the style checks that may have
35767         been specified for the main unit.
35769         * sem_ch8.adb:
35770         (Find_Selected_Component): Further improvement in error message, with
35771         RM reference.
35773         * sem_res.adb:
35774         (Resolve): Handle properly the case of an illegal overloaded protected
35775         procedure.
35777 2003-11-13  Javier Miranda  <miranda@gnat.com>
35779         * exp_aggr.adb:
35780         (Has_Default_Init_Comps): New function to check the presence of
35781         default initialization in an aggregate.
35782         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
35783         extension aggregate of a limited record. In addition, a new formal
35784         was added to do not initialize the record controller (if any) during
35785         this recursive expansion of ancestors.
35786         (Init_Controller): Add support for limited record components.
35787         (Expand_Record_Aggregate): In case of default initialized components
35788         convert the aggregate into a set of assignments.
35790         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
35791         describing the new syntax.
35792         Nothing else needed to be done because this subprogram delegates part of
35793         its work to P_Precord_Or_Array_Component_Association.
35794         (P_Record_Or_Array_Component_Association): Give support to the new
35795         syntax for default initialization of components.
35797         * sem_aggr.adb:
35798         (Resolve_Aggregate): Relax the strictness of the frontend in case of
35799         limited aggregates.
35800         (Resolve_Record_Aggregate): Give support to default initialized
35801         components.
35802         (Get_Value): In case of default initialized components, duplicate
35803         the corresponding default expression (from the record type
35804         declaration). In case of default initialization in the *others*
35805         choice, do not check that all components have the same type.
35806         (Resolve_Extension_Aggregate): Give support to limited extension
35807         aggregates.
35809         * sem_ch3.adb:
35810         (Check_Initialization): Relax the strictness of the front-end in case
35811         of aggregate and extension aggregates. This test is now done in
35812         Get_Value in a per-component manner.
35814         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
35815         expression corresponds to a limited aggregate. This test is now done
35816         in Get_Value.
35818         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
35819         Box_Present flag.
35821         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
35822         present in an N_Component_Association node
35824 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
35826         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
35827         type-conformant entry only if they are homographs.
35829 2003-11-13  GNAT Script  <nobody@gnat.com>
35831         * Make-lang.in: Makefile automatically updated
35833 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35835         * adadecode.c: Use <> form of include for ctype.h.
35836         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
35838 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35840         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
35841         Works around PR middle-end/6552.
35843 2003-11-10  Ed Falis  <falis@gnat.com>
35845         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
35847         * 5zinit.adb: (Install_Handler): Moved back to spec
35848         (Install_Signal_Handlers): Deleted
35850         * 5zthrini.adb: Added context clause for System.Storage_Elements
35851         (Register): Only handles creation of taskVar; initialization moved to
35852         Thread_Body_Enter.
35853         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
35854         Added declaration of environment task secondary stack and
35855         initialization.
35857         * s-thread.adb: Implement bodies for thread body processing
35859         * s-thread.ads:
35860         Added comment identifying supported targets for pragma Thread_Body.
35862 2003-11-10  Pascal Obry  <obry@gnat.com>
35864         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
35865         GNAT_MAX_PATH_LEN.
35867         * s-fileio.adb:
35868         (Open): Properly check for string length before copying into the buffer.
35869         Raises Name_Error if buffer is too small. Note that this was a potential
35870         buffer overflow.
35872 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
35874         * bindgen.adb, comperr.adb: Code clean ups.
35875         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
35877 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
35879         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
35881 2003-11-10  Vincent Celier  <celier@gnat.com>
35883         * gprcmd.adb:
35884         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
35885         installation.
35887         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
35889         * prj.adb: (Project_Empty): Add new boolean component Virtual
35891         * prj.ads: (Virtual_Prefix): New constant string
35892         (Project_Data): New boolean component Virtual
35894         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
35895         a library project is extended by a virtual extending project.
35897         * prj-part.adb:
35898         Modifications throughout to implement extending-all project, including:
35899         (Virtual_Hash, Processed_Hash): New hash tables
35900         (Create_Virtual_Extending_Project): New procedure
35901         (Look_For_Virtual_Projects_For): New procedure
35903         * prj-proc.adb:
35904         (Process): After checking the projects, if main project is an
35905         extending-all project, set the object directory of all virtual extending
35906         project to the object directory of the main project.
35907         Adjust error message when a virtual extending project has the same
35908         object directory as an project being extended.
35909         (Recursive_Process): If name starts with the virtual prefix, set Virtual
35910         to True in the project data.
35912         * prj-tree.adb:
35913         (Default_Project_Node): Add new boolean component Extending_All
35914         (Is_Extending_All): New function
35915         (Set_Is_Extending_All): New procedure
35917         * prj-tree.ads: (Is_Extending_All): New function
35918         (Set_Is_Extending_All): New procedure
35919         (Project_Node_Record): New boolean component Extending_All
35921         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
35923         * vms_data.ads:
35924         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
35926         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
35927         "gprcmd prefix" to define it.
35929 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
35931         * einfo.ads: Fix a typo and remove an extraneous word in comments.
35933         * lib-load.adb:
35934         (Create_Dummy_Package_Unit): Set the scope of the entity for the
35935         created dummy package to Standard_Standard, not to itself, to
35936         defend other parts of the front-end against encoutering a cycle in
35937         the scope chain.
35939         * sem_ch10.adb:
35940         (Analyze_With_Clause): When setting the entities for the successive
35941         N_Expanded_Names that constitute the name of a child unit, do not
35942         attempt to go further than Standard_Standard in the chain of scopes.
35943         This case arises from the placeholder units created by
35944         Create_Dummy_Package_Unit in the case of a with_clause for a
35945         nonexistent child unit.
35947 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
35949         * exp_ch6.adb:
35950         (Expand_Thread_Body): Place subprogram on scope stack, so that new
35951         declarations are given the proper scope.
35953         * sem_ch13.adb:
35954         (Check_Expr_Constants): Reject an expression that contains a constant
35955         created during expansion, and that appears after the object to which
35956         the address clause applies.
35958         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
35959         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
35960         that uses 'Range of a function call with controlled components, so
35961         that the function result can be finalized before starting the loop.
35963         * sem_ch8.adb:
35964         (Find_Selected_Component): Improve error message when prefix is
35965         an implicit dereference of an incomplete type.
35967 2003-11-10  Robert Dewar  <dewar@gnat.com>
35969         * opt.ads: New Print_Standard flag for -gnatS switch
35971         * sem_ch13.adb: Remove some additional checks for unaligned arrays
35973         * cstand.adb (Create_Standard): Print out package standard if -gnatS
35974         switch set
35976         * debug.adb: Update doc for -gnatds to discuss relationship with new
35977         -gnatS flag
35979         * sinfo.adb: Add new field Entity_Or_Associated_Node
35981         * sinfo.ads: Add new field Entity_Or_Associated_Node
35982         Update documentation for Associated_Node and Entity fields to clarify
35983         relationship and usage.
35985         * sprint.adb:
35986         (Write_Id): Properly process Associated_Node field in generic template
35988         * switch-c.adb:
35989         Recognize new -gnatS switch for printing package Standard
35990         This replaces gnatpsta
35992         * usage.adb:
35993         Add line for  new -gnatS switch for printing package Standard
35994         This replaces gnatpsta
35996 2003-11-10  Andreas Jaeger  <aj@suse.de>
35998         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
35999         integer.
36001 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
36003         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
36004         by gnat1.
36006 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
36008         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
36009         no longer needed.
36011         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
36013         * sysdep.c: Add handling of cygwin.
36015 2003-11-10  GNAT Script  <nobody@gnat.com>
36017         * Make-lang.in: Makefile automatically updated
36019 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
36021         PR 12950
36022         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
36023         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
36024         Replace GNAT_ROOT by GCC_ROOT.
36026         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
36028 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
36030         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
36031         and update for changed meaning of GET_MODE_BITSIZE.
36033 2003-11-04  Doug Rupp  <rupp@gnat.com>
36035         * sysdep.c: Problem discovered during IA64 VMS port.
36036         [VMS] #include <unixio.h> to get proper prototypes.
36038         * adaint.c:
36039         Issues discovered/problems fixed during IA64 VMS port.
36040         [VMS] #define _POSIX_EXIT for proper semantics.
36041         [VMS] #include <unixio.h> for proper prototypes.
36042         [VMS] (fork): #define IA64 version.
36043         (__gnat_os_exit): Remove unnecessary VMS specific code.
36045 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36047         Part of PR ada/12806
36048         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
36049         tree, not integer.
36051         * decl.c:
36052         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
36053         not integer.
36055         * targtyps.c, decl.c, misc.c,
36056         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
36057         routines to work around change in FP sizing semantics in GCC.
36059         * utils.c:
36060         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
36062         * gigi.h: (enumerate_modes): New function.
36064         * Make-lang.in: (ada/misc.o): Add real.h.
36066         * misc.c: (enumerate_modes): New function.
36068 2003-11-04  Robert Dewar  <dewar@gnat.com>
36070         * 3vtrasym.adb: Minor reformatting
36071         Use terminology encoded/decoded name, rather than C++ specific notion
36072         of mangling (this is the terminology used throughout GNAT).
36074         * einfo.h: Regenerated
36076         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
36078         * exp_ch6.adb:
36079         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
36081         * par-prag.adb: Add dummy entry for Thread_Body pragma
36083         * rtsfind.ads:
36084         Add entries for System.Threads entities for thread body processing
36086         * sem_attr.adb:
36087         (Analyze_Pragma, Access attributes): Check these are not applied to a
36088         thread body, since this is not permitted
36090         * sem_prag.adb: Add processing for Thread_Body pragma.
36091         Minor comment fix.
36093         * sem_res.adb:
36094         (Resolve_Call): Check for incorrect attempt to call a thread body
36095          procedure with a direct call.
36097         * snames.ads, snames.adb: Add entry for Thread_Body pragma
36098         Add names associated with thread body expansion
36100         * snames.h: Add entry for Thread_Body pragma
36102         * s-thread.adb: Add entries for thread body processing
36103         These are dummy bodies so far
36105         * s-thread.ads: Add documentation on thread body handling.
36106         Add entries for thread body processing.
36108 2003-11-04  Javier Miranda  <miranda@gnat.com>
36110         * sem_ch10.adb:
36111         (Build_Limited_Views): Return after posting an error in case of limited
36112         with_clause on subprograms, generics, instances or generic renamings
36113         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
36114         on subprograms, generics, instances or generic renamings
36116 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
36118         * raise.c (setup_to_install): Correct mistake in last revision; two
36119         arguments out of order.
36121         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
36122         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
36123         notice, missed in previous change.
36124         Remove trailing blanks and other style errors introduced in previous
36125         change.
36127 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
36129         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
36130         rid of the wrapper for a LJM type, ensuring we don't do that if the
36131         field is addressable.  This avoids potential low level type view
36132         mismatches later on, for instance in a by-reference argument passing
36133         process.
36135 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36137         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
36138         aligned at byte boundary.
36140 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
36142         * decl.c (components_to_record): Do not delete the empty variants from
36143         the end of the union type.
36145 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
36147         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
36148         operation for a derived type, an explicit declaration may use a local
36149         subtype of Boolean.
36151 2003-11-04  Vincent Celier  <celier@gnat.com>
36153         * make.adb (Gnatmake): Allow main sources on the command line with a
36154         library project when it is only for compilation (no binding or
36155         linking).
36157 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36159         * Makefile.in: Remove many duplicate variables.
36161 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
36163         * Make-lang.in (dvi): Move targets to $(docobjdir).
36164         (gnat_ug_vms.dvi): Simplify rule and adjust target.
36165         (gnat_ug_wnt.dvi): Likewise.
36166         (gnat_ug_unx.dvi): Likewise.
36167         (gnat_ug_vxw.dvi): Likewise.
36168         (gnat_rm.dvi): Likewise.
36169         (gnat-style.dvi): Likewise.
36171 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
36173         * gigi.h: Missed commit from update for C90.
36175 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
36177         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
36179 2003-10-31  Andreas Schwab  <schwab@suse.de>
36181         * raise.c (get_action_description_for): Fix typo in last change.
36183 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
36185         PR ada/12761
36186         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
36187         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
36189 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
36191         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
36192         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
36193         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
36194         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
36195         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
36197 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
36199         * 3vtrasym.adb:
36200         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
36201         numbers when symbol name is too long.
36203 2003-10-30  Ed Falis  <falis@gnat.com>
36205         * g-signal.ads, g-signal.adb: New files
36207         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
36209         * Makefile.rtl: Introduce GNAT.Signals
36211 2003-10-30  Robert Dewar  <dewar@gnat.com>
36213         * freeze.adb: Minor reformatting
36215         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
36217         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
36218         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
36219         New handling of Id_Check parameter to improve recognition of keywords
36220         used as identifiers.
36221         Update copyright notice to include 2003
36223 2003-10-29  Robert Dewar  <dewar@gnat.com>
36225         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
36226         sem_ch10.adb: Minor reformatting
36228         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
36229         (Expand_Assign_Record): Test right hand side for bit unaligned as well
36231 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
36233         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
36234         Support for TBK$SYMBOLIZE-based symbolic traceback.
36236 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
36238         * exp_disp.adb:
36239         Revert previous change, that did not work well when pragma No_Run_Time
36240         was used in conjunction with a run-time other than ZFP.
36242 2003-10-29  Vincent Celier  <celier@gnat.com>
36244         * make.adb:
36245         (Gnatmake): When there are no Ada mains in attribute Main, disable the
36246          bind and link steps only is switch -z is not used.
36248 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
36250         * Makefile.generic: Remove duplicated setting of CC.
36252         * Makefile.prolog: Set CC to gcc by default, to override make's
36253         default (cc).
36255         * einfo.h: Regenerated.
36257 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
36259         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
36260         current body, after compiling subunit.
36262         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
36263         when in deleted code, because gigi needs properly ordered freeze
36264         actions to annotate types.
36266         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
36267         prevent the premature freezing of record type that contains
36268         subcomponents with a private type that does not yet have a completion.
36270 2003-10-29  Javier Miranda  <miranda@gnat.com>
36272         * sem_ch12.adb:
36273         (Analyze_Package_Instantiation): Check that instances can not be used in
36274         limited with_clauses.
36276         * sem_ch8.adb:
36277         (Analyze_Package_Renaming): Check that limited withed packages cannot
36278         be renamed. Improve text on error messages related to limited
36279         with_clauses.
36281         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
36283         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
36284         Update copyright notice.
36286         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
36287         (Install_Limited_Context_Clauses): New subprogram that isolates all the
36288         checks required for limited context_clauses and installs the limited
36289         view.
36290         (Install_Limited_Withed_Unit): Complete its documentation.
36291         (Analyze_Context): Check that limited with_clauses are only allowed in
36292         package specs.
36293         (Install_Context): Call Install_Limited_Context_Clauses after the
36294         parents have been installed.
36295         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
36296         package as 'From_With_Type'; this mark indicates that the limited view
36297         is installed. Used to check bad usages of limited with_clauses.
36298         (Build_Limited_Views): Do not add shadow entities to the scope's list
36299         of entities. Do not add real entities to the Non_Limited_Views chain.
36300         Improve error notification.
36301         (Remove_Context_Clauses): Remove context clauses in two phases:
36302         limited views first and regular views later (to maintain the
36303         stack model).
36304         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
36305         its visible entities.
36307 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
36309         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
36310         with any type that Is_Fixed_Point_Type.
36312         * sinfo.ads: Fix documentation for Associated_Node attribute.
36314 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
36316         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
36317         both '-gnatc' and '-gnatt' are specified.
36319         * atree.adb (Initialize): Add initialization for Node_Count (set to
36320         zero).
36322 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36324         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
36325         do not consider as Pure.
36327         Part of implementation of function-at-a-time:
36329         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
36330         (tree_transform): Add new argument to build_component_ref.
36331         (tree_transform, case N_Assignment_Statement): Make and return an
36332         EXPR_STMT.
36333         (tree_transform): If result IS_STMT, set flags and return it.
36334         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36336         * utils2.c (build_simple_component_ref, build_component_ref): Add new
36337         arg, NO_FOLD_P.
36338         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
36339         (build_allocator): Likewise.
36341         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
36342         Add new arg to build_component_ref.
36343         (maybe_unconstrained_array, unchecked_convert): Likewise.
36345         * ada-tree.def (EXPR_STMT): New code.
36347         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
36349         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
36350         build_component_ref calls.
36352         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
36354         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36355         (build_component_ref): Add new argument, NO_FOLD_P.
36357 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
36359         * Makefile.generic: Add missing substitution on object_deps handling.
36361         PR ada/5909
36362         * Make-lang.in (check-ada): Enable ACATS test suite.
36364 2003-10-27  Robert Dewar  <dewar@gnat.com>
36366         * exp_ch3.adb:
36367         (Freeze_Array_Type): We do not need an initialization routine for types
36368         derived from String or Wide_String. They should be treated the same
36369         as String and Wide_String themselves. This caused problems with the
36370         use of Initialize_Scalars.
36372         * exp_ch5.adb:
36373         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
36374         composites. This allows use of component clauses that are not byte
36375         aligned.
36377         * sem_prag.adb:
36378         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
36379         is an attempt to pack an array of atomic objects.
36381         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
36383 2003-10-27  Pascal Obry  <obry@gnat.com>
36385         * g-dirope.adb:
36386         (Basename): Check for drive letters in a pathname only on DOS based OS.
36388 2003-10-27  Vincent Celier  <celier@gnat.com>
36390         * make.adb:
36391         (Gnatmake): When unable to change dir to the object dir, display the
36392         content of the parent dir of the obj dir, to try to understand why this
36393         happens.
36395 2003-10-27  GNAT Script  <nobody@gnat.com>
36397         * Make-lang.in: Makefile automatically updated
36399 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
36401         * sem_ch12.adb:
36402         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
36403         should not be done in Save/Restore_Scope_Stack, because it is performed
36404         locally.
36406         * sem_ch8.adb:
36407         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36408         whether use clauses should be removed/restored.
36410         * sem_ch8.ads:
36411         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36412         whether use clauses should be removed/restored.
36414 2003-10-26  Andreas Jaeger  <aj@suse.de>
36416         * Makefile.in: Remove duplicated lines.
36418 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
36420         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
36421         minimize the differences with ACT tree.
36423         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
36424         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
36425         Gnatvsn.Gnat_Static_Version_String to reduce differences between
36426         ACT and FSF trees.
36428 2003-10-24  Pascal Obry  <obry@gnat.com>
36430         PR ada/12014
36431         * adadecode.c (ostrcpy): New function.
36432         (__gnat_decode): Use ostrcpy of strcpy.
36433         (has_prefix): Set first parameter a const.
36434         (has_suffix): Set first parameter a const.
36435         Update copyright notice. Fix source name in header.
36436         Removes a trailing space.
36438 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
36440         * exp_disp.adb:
36441         Remove the test against being in No_Run_Time_Mode before generating a
36442         call to Register_Tag. It is redundant with the test against the
36443         availability of the function Register_Tag.
36445 2003-10-24  Vincent Celier  <celier@gnat.com>
36447         * g-catiio.adb: (Month_Name): Correct spelling of February
36449         * make.adb: (Mains): New package
36450         (Initialize): Call Mains.Delete
36451         (Gnatmake): Check that each main on the command line is a source of a
36452         project file and, if there are several mains, each of them is a source
36453         of the same project file.
36454         (Gnatmake): When a foreign language is specified in attribute Languages,
36455         no main is specified on the command line and attribute Mains is not
36456         empty, only build the Ada main. If there is no Ada main, just compile
36457         the Ada sources and their closure.
36458         (Gnatmake): If a main is specified on the command line with directory
36459         information, check that the source exists and, if it does, that the path
36460         is the actual path of a source of a project.
36462         * prj-env.adb:
36463         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
36464         Full_Path is True, return the full path instead of the simple file name.
36465         (Project_Of): New function
36467         * prj-env.ads:
36468         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
36469         defaulted to False.
36470         (Project_Of): New function
36472 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
36474         * Makefile.generic:
36475         Ensure objects of main project are always checked and rebuilt if needed.
36476         Set CC to gcc by default.
36477         Prepare new handling of link by creating a global archive (not activated
36478         yet).
36480         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36481         stringt.h: Update copyright notice. Remove trailing blanks.
36482         Fix source name in header.
36484 2003-10-24  Robert Dewar  <dewar@gnat.com>
36486         * sem_ch12.adb: Minor reformatting
36488         * sem_ch3.adb:
36489         Minor reformatting (including new function return style throughout)
36491         * sem_ch3.ads:
36492         Minor reformatting (including new function return style throughout)
36494 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
36496         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36497         stringt.h: Update copyright notice. Remove trailing blanks.
36498         Fix source name in header.
36500 2003-10-24  GNAT Script  <nobody@gnat.com>
36502         * Make-lang.in: Makefile automatically updated
36504 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
36506         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
36507         stringt.h: Convert to ISO C90 declarations and definitions.
36509 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
36511         PR ada/11978
36512         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
36513         External_Tag attribute definition clauses.
36515 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
36517         PR ada/7613
36518         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
36519         child unit, generate a fully qualified name to avoid spurious errors
36520         when the context contains renamings of different child units with
36521         the same simple name.
36523         * exp_dbug.ads: Add documentation on name qualification for renamings
36524         of child units.
36526 2003-10-23  Robert Dewar  <dewar@gnat.com>
36528         * g-regpat.ads, g-regpat.adb: Minor reformatting
36530 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
36532         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
36534 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36536         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
36537         Machine call.
36539         * urealp.h: (Machine): Update to proper definition.
36541 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
36543         * init.c, adaint.c: Minor reformatting.
36545 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
36547         * adaint.c (w32_epoch_offset): Define static const at file level.
36548         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
36549         rather than t_create, t_access in call to GetFileTime. Use union
36550         to convert between FILETIME and  unsigned long long.
36551         (__gnat_file_time_name): Test for invalid file handle.
36552         (__gnat_set_filetime_name): Support win32 targets using
36553         w32api SetFileTime.
36555 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
36557         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
36559         * ctrl_c.c (__gnat_int_handler): Remove declaration.
36561         * decl.c (creat_concat_name):  Const-ify prefix.
36563         * adaint.c: Include ctype.h if __MINGW32__.
36564         (__gnat_readlink): Mark arguments as possibly unused.
36565         (__gnat_symlink): Likewise.
36566         (__gnat_is_symbolic_link): Likewise.
36567         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
36568         declaration
36569         (__gnat_file_time_name): Don't declare struct stat statbuf when
36570         not needed.
36571         (__gnat_is_absolute_path): Add parenthesis around condition of
36572         'if' statement to avoid warning.
36573         (__gnat_plist_init): Specify void as parameter.
36574         (plist_enter): Likewise.
36575         (plist_leave): Likewise.
36576         (remove_handle): Make static. Initialize prev.
36578 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
36580         PR ada/10110
36581         * Makefile.in: Disable build of gnatpsta.
36582         * cstreams.c (__gnat_full_name): Minor improvements and clean up
36583         of previous change.
36585 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36587         * tracebak.c (MAX): Avoid redefinition warning.
36589         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
36590         Change msg to const char *.
36591         (__gnat_install_handler): Remove ss, unused.
36592         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
36593         to const char *.
36594         * cstreams.c (__gnat_full_name): Declare p only when used.
36595         (__gnat_full_name) [sgi] Return buffer.
36597 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
36599         * mingw32.h: New file.
36600         * gnat_wrapper.adb: New file.
36602 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
36604         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
36605         string match a pre compiled regular expression (the corresponding
36606         version of the function working on a raw regular expression)
36607         Fix typos in various comments
36608         Update copyright notice in spec
36610 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
36612         * exp_ch3.adb:
36613         (Component_Needs_Simple_Initialization): Return False when the type is a
36614         packed bit array. Revise spec comments to document this case.
36616         * exp_prag.adb:
36617         (Expand_Pragma_Import): Set any expression on the imported object to
36618         empty to avoid initializing imported objects (in particular this
36619         covers the case of zero-initialization of bit arrays).
36620         Update copyright notice.
36622 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
36624         * sem_ch12.adb:
36625         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
36626         a subunit is missing.
36627         (Instantiate_Subprogram_Body): If body of function is missing, set type
36628         of return expression explicitly in dummy body, to prevent cascaded
36629         errors when a subunit is missing.
36630         Fixes PR 5677.
36632         * sem_ch3.adb:
36633         (Access_Subprogram_Declaration): Verify that return type is valid.
36634         Fixes PR 8693.
36636         * sem_elab.adb:
36637         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
36638         generic.
36639         Fixes PR 12318.
36641         * sem_util.adb:
36642         (Corresponding_Discriminant): If the scope of the discriminant is a
36643         private type without discriminant, use its full view.
36644         Fixes PR 8247.
36646 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
36648         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
36649         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
36650         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
36651         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
36652         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
36653         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
36654         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
36655         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
36656         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
36657         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
36658         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
36659         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
36660         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
36661         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
36662         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
36663         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
36664         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
36665         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
36666         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
36667         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
36668         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
36669         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
36670         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
36671         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
36672         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
36673         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
36674         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
36675         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
36676         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
36677         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
36678         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
36679         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
36680         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
36681         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
36682         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
36683         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
36684         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
36685         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
36686         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
36687         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
36688         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
36689         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
36690         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
36691         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
36692         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
36693         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
36694         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
36695         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
36696         vms_conv.ads, vms_conv.adb, vms_data.ads,
36697         vxaddr2line.adb: Files added. Merge with ACT tree.
36699         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
36700         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
36701         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
36702         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
36703         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
36704         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
36705         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
36706         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
36707         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
36708         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
36710         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
36711         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
36712         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
36713         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
36714         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
36715         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
36716         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
36717         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
36718         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
36719         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
36720         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
36721         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
36722         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
36723         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
36724         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
36725         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
36726         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
36727         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
36728         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
36729         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
36730         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
36731         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
36732         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
36733         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
36734         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
36735         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
36736         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
36737         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
36738         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
36739         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
36740         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
36741         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
36742         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
36743         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
36744         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
36745         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
36746         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
36747         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
36748         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
36749         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
36750         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
36751         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
36752         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
36753         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
36754         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
36755         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
36756         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
36757         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
36758         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
36759         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
36760         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
36761         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
36762         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
36763         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
36764         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
36765         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
36766         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
36767         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
36768         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
36769         checks.adb, checks.ads, cio.c, comperr.adb,
36770         comperr.ads, csets.adb, cstand.adb, cstreams.c,
36771         debug_a.adb, debug_a.ads, debug.adb, decl.c,
36772         einfo.adb, einfo.ads, errout.adb, errout.ads,
36773         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
36774         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
36775         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
36776         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
36777         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
36778         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
36779         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
36780         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
36781         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
36782         fe.h, fmap.adb, fmap.ads, fname.adb,
36783         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
36784         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
36785         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
36786         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
36787         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
36788         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
36789         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
36790         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
36791         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
36792         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
36793         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
36794         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
36795         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
36796         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
36797         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
36798         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
36799         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
36800         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
36801         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
36802         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
36803         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
36804         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
36805         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
36806         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
36807         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
36808         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
36809         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
36810         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
36811         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
36812         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
36813         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
36814         layout.adb, lib.adb, lib.ads, lib-list.adb,
36815         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
36816         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
36817         link.c, live.adb, make.adb, make.ads,
36818         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
36819         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
36820         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
36821         misc.c, mkdir.c, mlib.adb, mlib.ads,
36822         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
36823         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
36824         namet.adb, namet.ads, namet.h, nlists.ads,
36825         nlists.h, nmake.adt, opt.adb, opt.ads,
36826         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
36827         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
36828         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
36829         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
36830         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
36831         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
36832         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
36833         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
36834         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
36835         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
36836         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
36837         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
36838         prj-util.adb, prj-util.ads, raise.c, raise.h,
36839         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
36840         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
36841         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
36842         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
36843         scans.ads, scn.adb, scn.ads, s-crc32.adb,
36844         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
36845         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
36846         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
36847         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
36848         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
36849         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
36850         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
36851         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
36852         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
36853         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
36854         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
36855         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
36856         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
36857         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
36858         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
36859         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
36860         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
36861         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
36862         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
36863         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
36864         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
36865         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
36866         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
36867         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
36868         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
36869         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
36870         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
36871         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
36872         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
36873         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
36874         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
36875         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
36876         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
36877         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
36878         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
36879         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
36880         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
36881         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
36882         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
36883         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
36884         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
36885         stringt.adb, stringt.ads, stringt.h, style.ads,
36886         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
36887         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
36888         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
36889         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
36890         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
36891         table.adb, table.ads, targparm.adb, targparm.ads,
36892         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
36893         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
36894         ttypes.ads, types.ads, types.h, uintp.adb,
36895         uintp.ads, uintp.h, uname.adb, urealp.adb,
36896         urealp.ads, urealp.h, usage.adb, utils2.c,
36897         utils.c, validsw.adb, validsw.ads, widechar.adb,
36898         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
36899         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
36900         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
36901         gnatvsn.ads: Merge with ACT tree.
36903         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
36905 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
36907         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
36908         (gnat_ug_vmx.info): Likewise.
36909         (gnat_ug_vxw.info): Likewise.
36910         (gnat_ug_wnt.info): Likewise.
36911         (gnat_rm.info): Likewise.
36912         (gnat-style.info): Likewise.
36914         * Make-lang.in (ada.install-info): Remove target.
36915         (info): New target.
36916         (install-info): Likewise.
36917         (gnat_ug_unx.info): Simplify rule.
36918         (gnat_ug_vmx.info): Likewise.
36919         (gnat_ug_vxw.info): Likewise.
36920         (gnat_ug_wnt.info): Likewise.
36921         (gnat_rm.info): Likewise.
36922         (gnat-style.info): Likewise.
36924 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
36926         * Make-lang.in: Replace uses of $(target_alias) with
36927         $(target_noncanonical).
36928         * ada/Makefile.in: Remove unused mention of $(target_alias).
36930 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
36932         * Make-lang.in (ada.info): Replace with ...
36933         (info): ... this.
36934         (ada.dvi): Replace with ...
36935         (dvi): ... this.
36937 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
36939         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
36940         initialize dconstp5 and dconstmp5.
36942 2003-09-28  Richard Henderson  <rth@redhat.com>
36944         * trans.c (tree_transform): Update call to expand_asm_operands.
36946 2003-09-21  Richard Henderson  <rth@redhat.com>
36948         * trans.c, utils.c: Revert.
36950 2003-09-21  Richard Henderson  <rth@redhat.com>
36952         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
36953         change to const.
36955 2003-09-04  Michael Matz  <matz@suse.de>
36957         * misc.c: Include "target.h".
36958         * Make-lang.in (misc.o): Add dependency on target.h.
36960 2003-09-03  DJ Delorie  <dj@redhat.com>
36962         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
36963         hook.
36965 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
36967         * Makefile.in: Update substitutions to match changes to
36968         configure.  Use include directives instead of @-insertions
36969         to read in host and target fragments.  Add a rule to
36970         regenerate ada/Makefile.
36972 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
36974         * lang-options.h: Remove.
36975         * lang.opt: Add help text.
36977 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
36979         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
36980         calls.
36982 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
36984         * misc.c (gnat_handle_option): Don't handle filenames.
36986 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
36988         * Make-lang.in: Replace PWD with PWD_COMMAND.
36989         * Makefile.adalib: Likewise.
36990         * Makefile.in: Likewise.
36992 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
36994         * misc.c (gnat_argv): Revert last change.
36995         (gnat_handle_option, gnat_init_options): Copy arguments.
36997 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
36999         * misc.c (gnat_argv): Make const.
37001 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
37003         * misc.c (save_argc, save_argv): Keep non-static!
37005 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
37007         * misc.c (save_argc, save_argv): Make static.
37008         (gnat_init_options): New prototype.
37009         (gnat_init_options): Update.
37011 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
37013         * gnat_ug.texi: Remove unlikely characters from @vars.
37014         * gnat_ug_vms.texi: Regenerate.
37016 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
37018         * misc.c (record_code_position): Adjust emit_note call.
37020 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
37022         * misc.c (gnat_handle_option): Don't check for missing arguments.
37024 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
37026         * utils.c (end_subprog_body): Adjust expand_function_end call.
37028 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
37030         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
37031         Bind_Main_Program.
37033 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
37035         * lang.opt: Declare Ada.
37036         * misc.c (gnat_init_options): Update.
37038 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
37040         * utils.c (begin_subprog_body): Adjust init_function_start call.
37042 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
37044         * Make-lang.in: Update to use options.c and options.h.
37045         * misc.c: Include options.h not aoptions.h.
37046         (gnat_handle_option): Abort on unrecognized switch.
37047         (gnat_init_options): Request Ada switches.
37049 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
37051         * lang.opt: Add -Wall.
37052         * misc.c (gnat_handle_option): Handle it.
37054 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
37056         * misc.c (gnat_handle_option): Fix warnings.
37058 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
37060         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
37062 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
37064         * Make-lang.in: Update to handle command-line options.
37065         * lang.opt: New file.
37066         * misc.c: Include aoptions.h.
37067         (cl_options_count, cl_options): Remove.
37068         (gnat_handle_option): New.
37069         (gnat_decode_option): Remove.
37070         (LANG_HOOKS_DECODE_OPTION): Remove.
37071         (LANG_HOOKS_HANDLE_OPTION): Override.
37073 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
37075         * init.c, misc.c, trans.c, utils.c: Remove dead code.
37077 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
37079         * Makefile.in: Replace "host_canonical" with "host" for autoconf
37080         substitution.
37082 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
37084         * Make-lang.in: Update.
37085         * misc.c: Include opts.h. Define cl_options_count and cl_options.
37087 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
37089         * misc.c (gnat_init_options): Update.
37091 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
37093         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
37094         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
37095         __attribute__ ((__unused__)).
37097 2003-06-05  Jan Hubicka  <jh@suse.cz>
37099         * Make-lang.in:  Add support for stageprofile and stagefeedback
37101 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
37103         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
37104         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
37106 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
37108         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
37109         Remove non-VMS directive.
37110         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
37111         alternatives.
37112         (Examples of gnatls Usage): Remove VMS alternative.
37114 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
37116         PR ada/9953
37117         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
37118         and turn ZCX_By_Default back to False since the underlying support
37119         is not quite there yet.
37121 2003-06-01  Andreas Jaeger  <aj@suse.de>
37123         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
37124         and ROUND_TYPE_SIZE_UNIT.
37126 2003-05-22   Geert Bosch  <bosch@gnat.com>
37128         * gnat_rm.texi : Remove reference to Ada Core Technologies.
37130 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
37132         * trans.c (tree_transform): Use location_t and input_location
37133         directly.
37134         (build_unit_elab): Likewise.
37135         * utils.c (create_label_decl): Likewise.
37137 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
37139         * trans.c (tree_transform, build_unit_elab,
37140         set_lineno): Rename lineno to input_line.
37141         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
37142         end_subprog_body): Likewise.
37143         * utils2.c (build_call_raise): Likewise.
37145 2003-05-01  Laurent Guerby  <guerby@acm.org>
37147         PR ada/10546
37148         * 5iosinte.ads: Increase pthread_cond_t size to match recent
37149         LinuxThread and NPTL version, merge from ACT.
37151 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
37153         * utils.c (convert): No need to clear TREE_CST_RTL.
37155 2003-04-23   Geert Bosch  <bosch@gnat.com>
37157         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37158         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
37159         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
37160         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
37161         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
37162         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
37163         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
37164         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
37165         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
37166         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
37167         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
37168         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
37169         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
37170         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
37171         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
37172         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
37173         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
37174         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
37175         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
37176         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
37177         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
37178         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
37179         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
37180         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
37181         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
37182         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
37183         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
37184         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
37185         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
37186         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
37187         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
37188         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
37189         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
37190         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
37191         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
37192         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
37193         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
37194         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
37195         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
37196         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
37197         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
37198         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
37199         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
37200         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
37201         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
37202         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
37203         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
37204         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
37205         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
37206         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
37207         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
37208         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
37209         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
37210         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
37211         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
37212         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
37213         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
37214         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
37215         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
37216         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
37217         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
37218         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
37219         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
37220         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
37221         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
37222         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
37223         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
37224         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
37225         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
37226         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
37227         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
37228         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
37229         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
37230         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
37231         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
37232         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
37233         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
37234         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
37235         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
37236         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
37237         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
37238         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
37239         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
37240         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
37241         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
37242         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
37243         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
37244         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
37245         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
37246         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
37247         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
37248         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
37249         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
37250         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
37251         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
37252         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
37253         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
37254         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
37255         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
37256         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
37257         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
37258         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
37259         ali.adb, ali.ads, alloc.ads, argv.c,
37260         atree.adb, atree.ads, atree.h, aux-io.c,
37261         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
37262         binde.adb, binde.ads, binderr.adb, binderr.ads,
37263         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
37264         butil.adb, butil.ads, cal.c, calendar.ads,
37265         casing.adb, casing.ads, ceinfo.adb, checks.adb,
37266         checks.ads, cio.c, comperr.adb, comperr.ads,
37267         config-lang.in, csets.adb, csets.ads, csinfo.adb,
37268         cstand.adb, cstand.ads, cuintp.c, debug.adb,
37269         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
37270         dec-io.ads, dec.ads, deftarg.c, directio.ads,
37271         einfo.adb, einfo.ads, elists.adb, elists.ads,
37272         elists.h, errno.c, errout.adb, errout.ads,
37273         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
37274         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
37275         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
37276         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
37277         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
37278         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
37279         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
37280         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
37281         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
37282         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
37283         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
37284         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
37285         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
37286         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
37287         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
37288         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
37289         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
37290         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
37291         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
37292         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
37293         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
37294         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
37295         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
37296         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
37297         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
37298         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
37299         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
37300         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
37301         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
37302         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
37303         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
37304         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
37305         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
37306         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
37307         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
37308         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
37309         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
37310         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
37311         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
37312         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
37313         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
37314         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
37315         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
37316         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
37317         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
37318         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
37319         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
37320         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
37321         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
37322         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
37323         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
37324         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
37325         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
37326         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
37327         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
37328         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
37329         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
37330         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
37331         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
37332         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
37333         lib.adb, lib.ads, live.adb, live.ads,
37334         machcode.ads, make.adb, make.ads, makeusg.adb,
37335         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
37336         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
37337         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
37338         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
37339         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
37340         mlib.ads, namet.adb, namet.ads, nlists.adb,
37341         nlists.ads, opt.adb, opt.ads, osint-b.adb,
37342         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
37343         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
37344         osint.ads, output.adb, output.ads, par-ch10.adb,
37345         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
37346         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
37347         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
37348         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
37349         par-tchk.adb, par-util.adb, par.adb, par.ads,
37350         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
37351         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
37352         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
37353         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
37354         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
37355         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
37356         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
37357         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
37358         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
37359         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
37360         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
37361         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
37362         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
37363         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
37364         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
37365         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
37366         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
37367         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
37368         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
37369         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
37370         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
37371         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
37372         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
37373         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
37374         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
37375         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
37376         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
37377         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
37378         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
37379         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
37380         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
37381         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
37382         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
37383         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
37384         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
37385         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
37386         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
37387         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
37388         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
37389         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
37390         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
37391         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
37392         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
37393         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
37394         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
37395         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
37396         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
37397         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
37398         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
37399         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
37400         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
37401         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
37402         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
37403         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
37404         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
37405         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
37406         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
37407         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
37408         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
37409         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
37410         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
37411         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
37412         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
37413         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
37414         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
37415         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
37416         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
37417         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
37418         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
37419         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
37420         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
37421         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
37422         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
37423         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
37424         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
37425         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
37426         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
37427         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
37428         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
37429         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
37430         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
37431         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
37432         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
37433         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
37434         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
37435         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
37436         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
37437         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
37438         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
37439         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
37440         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
37441         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
37442         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
37443         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
37444         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
37445         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
37446         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
37447         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
37448         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
37449         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
37450         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
37451         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
37452         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
37453         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
37454         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
37455         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
37456         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
37457         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
37458         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
37459         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
37460         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
37461         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
37462         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
37463         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
37464         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
37465         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
37466         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
37467         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
37468         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
37469         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
37470         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
37471         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
37472         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
37473         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
37474         snames.ads, sprint.adb, sprint.ads, stand.adb,
37475         stand.ads, stringt.adb, stringt.ads, style.adb,
37476         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
37477         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
37478         switch-m.ads, switch.adb, switch.ads, system.ads,
37479         table.adb, table.ads, targparm.adb, targparm.ads,
37480         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
37481         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
37482         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
37483         ttypef.ads, ttypes.ads, types.adb, types.ads,
37484         uintp.adb, uintp.ads, uname.adb, uname.ads,
37485         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
37486         usage.adb, usage.ads, validsw.adb, validsw.ads,
37487         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
37488         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
37489         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
37490         formatting and other trivial changes from ACT.
37492 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
37494         * gigi.h, utils2.c (build_constructor):
37495         Rename gnat_build_constructor. Use build_constructor.
37496         * decl.c (gnat_to_gnu_entity)
37497         * trans.c (tree_transform, pos_to_constructor, extract_values)
37498         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
37499         (unchecked_convert)
37500         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
37501         (fill_vms_descriptor):
37502         Update to match.
37504 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
37506         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
37507         * misc.c (gnat_tree_size): New function.
37508         (LANG_HOOKS_TREE_SIZE): Override.
37510 2003-04-03  Jason Merrill  <jason@redhat.com>
37512         * misc.c (gnat_adjust_rli): #if 0.
37514 2003-03-31   Geert Bosch  <bosch@gnat.com>
37516         PR ada/10020
37517         * link.c : Fix misspelled "const" keyword
37519 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
37521         PR c++/7086
37522         * utils2.c: Adjust calls to put_var_into_stack.
37524 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
37526         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
37528 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
37530         * misc.c (gnat_init): Update for new prototype.
37532 2003-03-05  Olivier Hainque  <hainque@gnat.com>
37534         ada/9961
37535         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
37536         warning, and fix return type for the IN_RTS && !SJLJ case.
37538 2003-03-04  Tom Tromey  <tromey@redhat.com>
37540         * Make-lang.in (ada.tags): New target.
37542 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
37544         ada/9911
37545         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
37546         wrapper, which name remains constant whatever underlying GCC
37547         scheme.
37549         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
37550         the stable interface needed for a-except.
37552 2003-03-02  Andreas Jaeger  <aj@suse.de>
37554         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37555         gnat_ug_wnt.texi: Regenerate.
37557 2003-03-02  Laurent Guerby  <guerby@acm.org>
37559         * Makefile.in (install-gnatlib): Match previous change there
37560         so it works.
37562 2003-02-28  Andreas Schwab  <schwab@suse.de>
37564         * Make-lang.in (install-gnatlib): Change to ada directory before
37565         running make instead of using ada/Makefile directly.
37567 2003-02-18  Ben Elliston  <bje@redhat.com>
37569         Part of PR ada/9406
37570         * gnat_ug.texi (Binder output file): Grammar fix.
37572 2003-02-18  Ben Elliston  <bje@redhat.com>
37574         PR other/7350
37575         * 5qtaprop.adb (Sleep): Fix typo in comment.
37577 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
37579         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
37580         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37581         gnat_ug_wnt.texi: Regenerate.
37583 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
37585         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
37586         be created if necessary.
37587         (ada.install-common): Let $(DESTDIR)$(bindir) be created
37588         if necessary.  Remove erroneous and redundant gnatchop
37589         installation commands.  Test for gnatdll before attempting
37590         to install it.
37591         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
37592         and gnatdll from all plausible locations.
37594 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
37596         * utils2.c (build_unary_op): Don't check flag_volatile.
37597         * gnat_ug.texi: Remove -fvolatile from example.
37598         * gnat_ug_vxw.texi: Likewise.
37600 2003-01-29  Laurent Guerby  <guerby@acm.org>
37602         PR ada/8344
37603         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
37604         * Makefile.in: match previous change.
37605         * Make-lang.in: match previous change.
37607 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
37609         * 5rosinte.ads: Add SIGXCPU.
37610         * 5rtpopsp.adb: New file.
37611         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
37612         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
37613         specific file 5rtpopsp.adb.
37614         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
37615         is likely needed for all newlib targets.
37616         * init.c: Add RTEMS specific version of __gnat_initialize().
37618 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37620         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
37622 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37624         * init.c (__gnat_error_handler): Make msg const.
37626         * gmem.c (convert_addresses): Move declaration ...
37627         * adaint.h: ... here.
37628         * adaint.c (convert_addresses): Adapt addrs type to match
37629         prototype.
37631         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
37633 2003-01-24  Andreas Schwab  <schwab@suse.de>
37635         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
37636         size_t to avoid warning.
37638 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
37640         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
37642 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
37644         * gnat_rm.texi: Remove RCS version number.
37646         * ada-tree.h (union lang_tree_node): Add chain_next option.
37648 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
37650         * Make-lang.in (ada.install-info, ada.install-common,
37651         ada.uninstall): Prepend $(DESTDIR) to the destination
37652         directory in all (un)installation commands.
37653         * Makefile.in (install-gnatlib, install-rts): Ditto.
37655 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
37657         * gnat_rm.texi, gnat_ug.texi: Use @copying.
37658         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37659         gnat_ug_wnt.texi: Regenerate.
37661 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
37663         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
37664         only.
37665         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
37666         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
37667         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
37668         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
37669         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
37670         $(srcdir)/doc/include/gcc-common.texi.
37672 2002-12-15   Geert Bosch  <bosch@gnat.com>
37674         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
37676 2002-12-14   Geert Bosch  <bosch@gnat.com>
37678         PR ada/5690
37679         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
37680         case of a body created for a Renaming_As_Body, on which
37681         conformance checks are not performed.
37683 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
37685         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
37686         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
37687         not already included.
37688         * Make-lang.in: Update dependencies.
37690 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
37691         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
37692         solution to buffer overflow bug on GNU/Linux.
37694 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
37696         PR ada/5856
37697         PR ada/6919
37698         * bindgen.adb: Remove all references to Public_Version.
37699         * comperr.adb: Remove all references to Public_Version and
37700         GNATPRO_Version; correct bug reporting instructions.
37701         * comperr.ads: Change to match bug box.
37702         * gnatvsn.ads: Remove all references to Public version and
37703         GNATPRO version.
37705 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
37707         PR ada/6919
37708         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
37709         GNU/Linux.
37711         PR ada/6558
37712         * config-lang.in: Remove diff_excludes.
37714 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
37716         PR ada/8358
37717         * trans.c (gnu_pending_elaboration_lists): New GC root.
37718         (build_unit_elab): Use..
37720 2002-10-30   Geert Bosch  <bosch@gnat.com>
37722         PR ada/6558
37723         * misc.c : Include optabs.h
37725         * Make-lang.in (misc.o): Add dependency on optabs.h
37727 2002-10-29   Geert Bosch  <bosch@gnat.com>
37729         PR ada/6558
37730         * Make-lang.in (gnatbind): Depend on CONFIG_H
37732 2002-10-29  Geert bosch  <bosch@gnat.com>
37734         PR ada/6558
37735         * misc.c: Unrevert misc.c (1.13)
37737 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
37739         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
37740         maintainership comments.
37742 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
37744         PR ada/5904
37745         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
37746         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
37747         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
37748         7staprop.adb: Correct statements in comments about
37749         maintainership of GNAT.
37751         PR ada/5904
37752         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
37753         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
37754         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
37755         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
37756         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
37757         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
37758         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
37759         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
37760         comments about maintainership of GNAT.
37762         PR ada/6919 (forward port of patch for PR ada/5904)
37763         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
37764         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
37765         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
37766         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
37767         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
37768         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
37769         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
37770         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
37771         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
37772         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
37773         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
37774         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
37775         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
37776         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
37777         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
37778         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
37779         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
37780         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
37781         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
37782         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
37783         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
37784         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
37785         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
37786         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
37787         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
37788         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
37789         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
37790         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
37791         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
37792         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
37793         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
37794         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
37795         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
37796         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
37797         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
37798         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
37799         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
37800         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
37801         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
37802         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
37803         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
37804         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
37805         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
37806         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
37807         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
37808         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
37809         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
37810         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
37811         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
37812         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
37813         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
37814         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
37815         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
37816         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
37817         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
37818         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
37819         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
37820         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
37821         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
37822         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
37823         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
37824         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
37825         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
37826         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
37827         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
37828         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
37829         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
37830         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
37831         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
37832         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
37833         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
37834         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
37835         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
37836         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
37837         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
37838         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
37839         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
37840         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
37841         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
37842         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
37843         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
37844         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
37845         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
37846         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
37847         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
37848         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
37849         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
37850         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
37851         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
37852         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
37853         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
37854         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
37855         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
37856         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
37857         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
37858         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
37859         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
37860         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
37861         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
37862         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
37863         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
37864         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
37865         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
37866         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
37867         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
37868         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
37869         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
37870         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
37871         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
37872         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
37873         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
37874         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
37875         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
37876         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
37877         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
37878         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
37879         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
37880         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
37881         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
37882         par-endh.adb par-labl.adb par-load.adb par-prag.adb
37883         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
37884         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
37885         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
37886         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
37887         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
37888         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
37889         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
37890         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
37891         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
37892         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
37893         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
37894         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
37895         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
37896         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
37897         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
37898         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
37899         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
37900         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
37901         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
37902         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
37903         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
37904         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
37905         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
37906         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
37907         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
37908         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
37909         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
37910         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
37911         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
37912         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
37913         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
37914         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
37915         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
37916         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
37917         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
37918         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
37919         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
37920         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
37921         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
37922         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
37923         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
37924         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
37925         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
37926         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
37927         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
37928         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
37929         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
37930         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
37931         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
37932         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
37933         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
37934         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
37935         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
37936         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
37937         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
37938         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
37939         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
37940         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
37941         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
37942         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
37943         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
37944         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
37945         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
37946         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
37947         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
37948         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
37949         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
37950         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
37951         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
37952         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
37953         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
37954         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
37955         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
37956         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
37957         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
37958         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
37959         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
37960         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
37961         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
37962         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
37963         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
37964         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
37965         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
37966         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
37967         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
37968         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
37969         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
37970         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
37971         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
37972         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
37973         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
37974         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
37975         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
37976         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
37977         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
37978         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
37979         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
37980         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
37981         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
37982         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
37983         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
37984         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
37985         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
37986         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
37987         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
37988         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
37989         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
37990         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
37991         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
37992         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
37993         stringt.ads stringt.h style.adb style.ads stylesw.adb
37994         stylesw.ads switch.adb switch.ads sysdep.c system.ads
37995         table.adb table.ads targparm.adb targparm.ads targtyps.c
37996         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
37997         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
37998         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
37999         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
38000         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
38001         usage.ads utils.c utils2.c validsw.adb validsw.ads
38002         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
38003         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
38004         xtreeprs.adb: Correct statements in comments about maintainership
38005         of GNAT.
38007 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
38009         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
38010         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
38011         * gnatvsn.ads: Gnat_Version_String is now a function.
38012         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
38013         copy the C version_string into a String and return it.
38014         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
38015         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
38016         Remove pragma Ident (Gnat_Version_String).  If this was the
38017         sole use of package Gnatvsn, remove the with statement too.
38018         * gnat1drv.adb: Tweak -gnatv output.
38020 2002-09-17  Richard Henderson  <rth@redhat.com>
38022         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
38023         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
38024         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
38025         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
38026         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
38027         and real_2expN instead of a loop.
38028         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
38029         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
38031 2002-08-25  Andre Leis  <a.leis@gmx.net>
38032             David Billinghurst  <David.Billinghurst@riotinto.com>
38034         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
38036 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38038         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
38039         Remove $(CONFIG_H) dependency.
38041 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
38043         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
38045 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38047         * adadecode.c (ada_demangle): Use xstrdup in lieu of
38048         xmalloc/strcpy.
38049         * misc.c (gnat_decode_option): Likewise.
38051 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
38053         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
38054         function approach did not work well because of a side effect (the
38055         function call could reallocate the table which was being indexed
38056         using its result). Fixes ada/4851. [RESURRECTED]
38058 2002-07-01  Roger Sayle  <roger@eyesopen.com>
38060         * ada/utils.c (builtin_function): Accept an additional parameter.
38062 2002-06-28  Andreas Jaeger  <aj@suse.de>
38064         PR ada/7144
38065         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
38066         <adi@thur.de>.
38068 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38070         * Makefile.in (SHELL): Set to @SHELL@.
38072 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38074         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
38075         array size calculation.
38077 2002-06-04  Andreas Jaeger  <aj@suse.de>
38079         * Make-lang.in (gnatbind): Readd rule that has been lost in last
38080         patch.
38082 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
38084         Merge from pch-branch:
38086         * config-lang.in (gtfiles): Add ada-tree.h.
38087         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
38088         (SET_TYPE_MODULUS): New.
38089         (SET_TYPE_INDEX): New.
38090         (SET_TYPE_DIGITS_VALUE): New.
38091         (SET_TYPE_RM_SIZE): New.
38092         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
38093         (SET_TYPE_ADA_SIZE): New.
38094         (SET_TYPE_ACTUAL_BOUNDS): New.
38095         (SET_DECL_CONST_CORRESPONDING_VAR): New.
38096         (SET_DECL_ORIGINAL_FIELD): New.
38097         (TREE_LOOP_ID): Correct typo.
38098         * decl.c: Use new macros.
38099         * utils.c: Include debug.h, use new macros.
38100         * utils2.c: Use new macros.
38102         * ada-tree.h: Update all macros for new tree description.
38103         (struct tree_loop_id): New.
38104         (union lang_tree_node): New.
38105         (struct lang_decl): New.
38106         (struct lang_type): New.
38107         * misc.c (gnat_mark_tree): Delete.
38108         (LANG_HOOKS_MARK_TREE): Delete.
38109         * trans.c (tree_transform): No longer any need to cast
38110         for TREE_LOOP_ID.
38112         * utils.c (struct language_function): New dummy structure.
38114         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
38115         (misc.o): Likewise.
38116         (utils.o): Likewise; also gtype-ada.h.
38117         * Make-lang.in (gnat1): Add dependency on s-gtype.
38118         (gnatbind): Add dependency on $(CONFIG_H).
38119         * utils.c: Correct last #include.
38120         (stuct e_stack): Remove unnecessary 'static'.
38121         (mark_e_stack): Remove unused prototype.
38123         * scn-nlit.adb: Remove whitespace after version number to
38124         keep lines under 80 chars.
38125         * snames.adb: Likewise.
38126         * treepr.ads: Likewise.
38128         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
38129         (misc.o): Likewise.
38130         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
38131         * config-lang.in (gtfiles): New.
38132         * decl.c: Use gengtype for roots.
38133         * gigi.h: Use gengtype for roots.
38134         * trans.c: Use gengtype for roots.
38135         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
38137 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
38139         * misc.c (gnat_init): Adjust setting of internal_error_function.
38141 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
38143         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
38144         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38145         gnat_ug_wnt.texi: Regenerate.
38147 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
38149         * 5ntaprop.adb (with System.OS_Primitives): Remove.
38151         * cstreams.c (max_path_len): Move from here ...
38152         * adaint.c (__gnat_max_path_len): ... to here.
38153         * adaint.c (__gnat_max_path_len): Declare.
38154         * g-dirope.adb (Max_Path): Adjust.
38155         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
38156         * i-cstrea.ads (max_path_len): Adjust.
38157         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
38158         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
38160         * Makefile.in, Make-lang.in: Documentation is now built in
38161         Make-lang.in.  Store Info and generated Texinfo files in the
38162         source directory.
38163         * gnat_ug.texi: Remove CVS keywords, correct version number.
38164         Set file name correctly.
38166         * gnat_ug_*.texi: Add.
38167         * .cvsignore: Ignore generated Texinfo files.
38169 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
38171         * ada.h: Add MI guard macro.
38172         (SUBTYPE): Define constants with an anonymous enum, not static
38173         const variables.
38174         (IN): Cast constants to appropriate type before use.
38176 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
38178         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
38179         (experimental)".
38181 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38183         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
38184         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
38185         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
38186         (ALL_ADA_CFLAGS): Likewise.
38187         (ADA_INCLUDES): Likewise.
38188         Adapt for new working dir.
38189         (GNATBIND): Use Makefile.in version.
38190         (.SUFFIXES): Copy from Makefile.in.
38191         (ada-warn): Define.
38192         (.adb.o, .ads.o): Copy from Makefile.in.
38193         Added $(OUTPUT_OPTION).
38194         (GNAT1_C_OBJS): Moved from Makefile.in.
38195         Prefix with ada subdir.
38196         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
38197         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
38198         Adapt for new working dir.
38199         (EXTRA_GNATBIND_OBJS): Likewise.
38200         (ADA_BACKEND): Moved from Makefile.in.
38201         Renamed to avoid conflict with global BACKEND.
38202         Use that one.
38203         (TARGET_ADA_SRCS): Moved from Makefile.in.
38204         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
38205         Use ADA_BACKEND.
38206         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
38207         (ada_extra_files): Moved from Makefile.in.
38208         Prefix with ada subdir.
38209         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
38210         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
38211         (ada/nmake.ads): Likewise.
38212         (update-sources): Moved from Makefile.in.
38213         Prefix with ada subdir.
38214         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
38215         (ADA_TREE_H): Likewise.
38216         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
38217         (ada/memtrack.o): Likewise.
38218         (ada/adadecode.o): Likewise.
38219         Update dependencies.
38220         (ada/adaint.o): New.
38221         (ada/argv.o): Moved from Makefile.in.
38222         Prefix with ada subdir.
38223         Update dependencies.
38224         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
38225         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
38226         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
38227         Prefix with ada subdir.
38228         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
38229         (GNAT DEPENDENCIES): Regenerate.
38230         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
38231         toplevel Makefile.in.
38232         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
38233         (TARGET_ADA_SRCS): Removed.
38234         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
38235         (GNATBIND_OBJS): Likewise.
38236         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
38237         (BACKEND): Removed.
38238         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
38239         (TREE_H): Likewise.
38240         (ada_extra_files): Likewise.
38241         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
38242         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
38243         (update-sources): Likewise.
38244         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
38245         (ADA_TREE_H): Likewise.
38246         (adadecoce.o): Likewise.
38247         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
38248         (GNAT DEPENDENCIES): Likewise.
38250 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38252         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
38253         * Makefile.in: Likewise.
38255 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38257         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
38258         Restore $(CONFIG_H) and prefix.o dependencies.
38259         (ada.stage[1-4]): Depend on stage?-start.
38261         * Makefile.in (b_gnatb.c): Depend on interfac.o.
38263 2002-05-02  Jim Wilson  <wilson@redhat.com>
38265         * utils.c (finish_record_type): Change record_size to record_type.
38267 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
38269         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
38270         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
38271         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
38273 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
38275         * misc.c (gnat_parse_file): Update.
38277 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
38279         * misc.c (gnat_init): Don't set lang_attribute_common.
38281 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
38283         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
38285 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
38287         * gnat_ug.texi: New file.
38289         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
38290         instead of gfdl.texi
38292         * xgnatug.adb, ug_words: New files.
38294         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
38295         gnat_rm and gnat-style manuals.
38297 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
38299         * gigi.h (incomplete_type_error): Remove.
38300         * utils.c (incomplete_type_error): Remove.
38302 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
38304         * trans.c (tree_transform): Add has_scope argument to
38305         expand_start_stmt_expr.
38307 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
38309         * gigi.h (truthvalue_conversion): Rename.
38310         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
38311         * trans.c (tree_transform): Update.
38312         * utils2.c (truthvalue_conversion): Rename, update.
38313         (build_binary_op, build_unary_op): Update.
38315 2002-04-04  Laurent Guerby  <guerby@acm.org>
38317         * make.adb: Implement -margs, remove restriction about file name placement.
38318         * makeusg.adb: Documentation update.
38319         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
38320         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
38322 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
38324         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
38325         (builtin_function): Similarly.
38327 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
38329         * decl.c (gnat_to_gnu_entity): Update.
38330         * gigi.h (mark_addressable): Rename.
38331         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
38332         * trans.c (tree_transform): Update.
38333         * utils.c (create_var_decl): Update.
38334         * util2.c (build_binary_op, build_unary_op,
38335         fill_vms_descriptor): Update.
38336         (mark_addressable): Rename, update.
38338 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
38340         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
38341         Rename.
38342         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
38343         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
38344         * trans.c (tree_transform, convert_with_check): Update.
38345         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
38346         Rename.
38348 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
38350         * gigi.h (finish_incomplete_decl): Rename.
38351         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
38352         * utils.c (gnat_init_decl_processing): Don't set hook.
38353         (finish_incomplete_decl): Rename.
38355 2002-03-29  Andreas Schwab  <schwab@suse.de>
38357         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
38358         directory.
38360 2001-03-28  Robert Dewar  <dewar@gnat.com>
38362         * checks.ads:
38363         (Remove_Checks): New procedure
38365         * checks.adb:
38366         (Remove_Checks): New procedure
38368         * exp_util.adb:
38369         Use new Duplicate_Subexpr functions
38370         (Duplicate_Subexpr_No_Checks): New procedure
38371         (Duplicate_Subexpr_No_Checks_Orig): New procedure
38372         (Duplicate_Subexpr): Restore original form (checks duplicated)
38373         (Duplicate_Subexpr): Call Remove_Checks
38375         * exp_util.ads:
38376         (Duplicate_Subexpr_No_Checks): New procedure
38377         (Duplicate_Subexpr_No_Checks_Orig): New procedure
38378         Add 2002 to copyright notice
38380         * sem_util.adb: Use new Duplicate_Subexpr functions
38382         * sem_eval.adb:
38383         (Eval_Indexed_Component): This is the place to call
38384         Constant_Array_Ref and to replace the value. We simply merge
38385         the code of this function in here, since it is now no longer
38386         used elsewhere. This fixes the problem of the back end not
38387         realizing we were clever enough to see that this was
38388         constant.
38389         (Expr_Val): Remove call to Constant_Array_Ref
38390         (Expr_Rep_Val): Remove call to Constant_Array_Ref
38391         Minor reformatting
38392         (Constant_Array_Ref): Deal with string literals (patch
38393         suggested by Zack Weinberg on the gcc list)
38395 2001-03-28  Ed Schonberg  <schonber@gnat.com>
38397         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
38398         Duplicate_Subexpr_Move_Checks.
38400         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
38401         Duplicate_Subexpr_Move_Checks.
38403         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
38404         value of array exists before retrieving it (it may a private
38405         protected component in a function).
38407 2002-03-28   Geert Bosch  <bosch@gnat.com>
38409         * prj-pp.adb : New file.
38411         * prj-pp.ads : New file.
38413 2002-03-28  Andreas Jaeger  <aj@suse.de>
38415         * Makefile.in (stamp-sdefault): Fix path for Makefile.
38417 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
38419         * misc.c (gnat_expand_expr): Move prototype.
38421 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
38423         * misc.c (insert_default_attributes): Remove.
38425 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
38427         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
38428         (gnat_init): Don't set hook.
38429         (gnat_expand_expr): Fix prototype.
38431 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
38433         * misc.c (ggc_p): Remove.
38435 2002-03-27  Geert Bosch  <bosch@gnat.com>
38437         * prj-makr.ads, prj-makr.adb : New files.
38439 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
38441         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
38442         (lang_mark_tree): Make static, rename.
38444 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
38446         * misc.c (maybe_build_cleanup): Remove.
38448 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
38450         * gigi.h (yyparse): Remove.
38452 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
38454         From Ben Brosgol  <brosgol@gnat.com>
38455         * gnat_rm.texi: Sync with ACT version.
38457 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
38459         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
38460         (gnat_init): Remove old hook.
38462 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
38464         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
38465         (yyparse): Rename gnat_parse_file.
38467 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
38469         Delete all lines containing "$Revision:".
38470         * xeinfo.adb: Don't look for revision numbers.
38471         * xnmake.adb: Likewise.
38472         * xsinfo.adb: Likewise.
38473         * xsnames.adb: Likewise.
38474         * xtreeprs.adb: Likewise.
38476 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38478         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
38479         gnat_tree_code_name): Delete.
38480         (tree_code_type, tree_code_length, tree_code_name): Define.
38481         (gnat_init): Don't try to copy into the various tree_code
38482         arrays.
38484 2002-03-11  Richard Henderson  <rth@redhat.com>
38486         * Makefile.in (.NOTPARALLEL): Add fake tag.
38488 2002-03-07  Geert Bosch  <bosch@gnat.com>
38490         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
38491         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
38492         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
38493         switch-m.adb, switch-m.ads : New files.
38495 2002-03-07  Geert Bosch  <bosch@gnat.com>
38497         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
38498         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
38499         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
38500         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
38501         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
38502         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
38503         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
38504         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
38505         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
38506         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
38507         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
38508         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
38509         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
38510         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
38511         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
38512         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
38513         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
38514         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
38515         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
38516         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
38517         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
38518         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
38519         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
38520         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
38521         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
38522         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
38523         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
38524         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
38525         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
38526         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
38527         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
38528         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
38529         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
38530         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
38531         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
38532         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
38533         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
38534         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
38535         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
38536         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
38537         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
38538         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
38539         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
38540         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
38541         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
38542         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
38543         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
38544         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
38545         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
38546         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
38547         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
38548         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
38549         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
38550         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
38551         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
38552         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
38553         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
38554         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
38555         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
38556         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
38557         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
38558         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
38559         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
38560         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
38561         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
38562         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
38563         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
38564         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
38565         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
38566         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
38567         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
38568         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
38569         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
38570         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
38571         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
38572         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
38573         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
38574         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
38575         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
38576         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
38577         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
38578         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
38579         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
38580         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
38581         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
38582         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
38583         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
38584         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
38585         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
38586         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
38587         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
38588         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
38589         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
38590         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
38591         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
38592         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
38593         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
38595         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
38596         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
38597         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
38598         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
38600         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
38601         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
38603         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
38604         to mdll-fil.ad[bs] and mdll-util.ad[bs]
38606         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
38607         from mdllfile.ad[bs] and mdlltool.ad[bs]
38609 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38611         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
38612         lieu of explicit sizeof/sizeof.
38614 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
38616         * misc.c (copy_lang_decl): Remove.
38618 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
38620         * misc.c: Delete traditional-mode-related code copied from the
38621         C front end but not used, or used only to permit the compiler
38622         to link.
38624 2002-02-07  Richard Henderson  <rth@redhat.com>
38626         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
38627         * adaint.h (__gnat_to_gm_time): Update prototype.
38629 2002-01-30  Richard Henderson  <rth@redhat.com>
38631         * trans.c (tree_transform) [N_Loop_Statement]: Use
38632         expand_exit_loop_top_cond.
38634 2001-12-23  Richard Henderson  <rth@redhat.com>
38636         * utils.c (end_subprog_body): Push GC context around
38637         rest_of_compilation for nested functions.
38639 2001-12-23  Richard Henderson  <rth@redhat.com>
38641         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
38643 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
38645         * gnat-style.texi (Declarations and Types): Remove ancient style
38646         rule which was mandated by code generation issues.
38648         * gnat-style.texi (header): Add @dircategory, @direntry.
38649         (title page): Remove date.
38650         (general) Add @./@: where approriate, and two spaces after the
38651         full stop at the end of a sentence.  Use @samp markup when
38652         referring concrete lexical entities (keywords, attribute names
38653         etc.), and @syntax for ARM grammar elements. Use @r for English
38654         text in comments.  Use @emph for emphasis.  Change "if-statements"
38655         etc. to "if statements" (without @samp). Break long lines.  Make
38656         casing of section names consistent.
38657         (Identifiers): Use @samp markup for variable names.
38658         (Comments): Use @samp markup for comment characters. Line-end
38659         comments may follow any Ada code, not just statements.  Fix
38660         misspelling of "Integer" as "integer".
38661         (Loop statements): Do not use variable name "I", use "J".
38662         (Subprogram Declarations): Document alignment.
38663         (Subprogram Bodies, Block statements): Document empty line before
38664         "begin".
38666 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
38668         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
38669         function approach did not work well because of a side effect (the
38670         function call could reallocate the table which was being indexed
38671         using its result). Fixes ada/4851.
38673 2001-12-19  Robert Dewar  <dewar@gnat.com>
38675         * bindgen.adb: Minor reformatting
38677         * cstand.adb: Minor reformatting
38679         * fmap.adb: Minor reformatting
38680         Change name from Add for Add_To_File_Map (Add is much too generic)
38681         Change Path_Name_Of to Mapped_Path_Name
38682         Change File_Name_Of to Mapped_File_Name
38683         Fix copyright dates in header
38685         * fmap.ads:
38686         Change name from Add for Add_To_File_Map (Add is much too generic)
38687         Change Path_Name_Of to Mapped_Path_Name
38688         Change File_Name_Of to Mapped_File_Name
38689         Fix copyright dates in header
38691         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
38692         Add use clause for Fmap.
38694         * make.adb: Minor reformatting
38696         * osint.adb: Minor reformatting.  Change of names in Fmap.
38697         Add use clause for Fmap.
38699         * prj-env.adb: Minor reformatting
38701         * prj-env.ads: Minor reformatting
38703         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
38704         error found (there were odd exceptions to this general rule in
38705         -gnatec/-gnatem processing)
38707 2001-12-19  Olivier Hainque  <hainque@gnat.com>
38709         * raise.c (__gnat_eh_personality): Exception handling personality
38710         routine for Ada.  Still in rough state, inspired from the C++ version
38711         and still containing a bunch of debugging artifacts.
38712         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
38713         inspired from the C++ library.
38715         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
38716         exception handling integration.
38718 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
38720         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
38721         (HIE_SOURCES): Add s-secsta.ad{s,b}.
38722         (HIE_OBJS): Add s-fat*.o
38723         (RAVEN_SOURCES): Remove files that are no longer required. Add
38724         interrupt handling files.
38725         (RAVEN_MOD): Removed, no longer needed.
38727 2001-12-19  Robert Dewar  <dewar@gnat.com>
38729         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
38730         Add 2001 to copyright date
38732         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
38733         need to force universal inlining for these cases.
38735 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
38737         * s-taprob.adb: Minor clean ups so that this unit can be used in
38738         Ravenscar HI.
38740         * exp_ch7.adb: Allow use of secondary stack in HI mode.
38741         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
38743 2001-12-19  Vincent Celier  <celier@gnat.com>
38745         * prj-tree.ads (Project_Node_Record): Add comments for components
38746         Pkg_Id and Case_Insensitive.
38748 2001-12-19  Pascal Obry  <obry@gnat.com>
38750         * g-socket.adb: Minor reformatting. Found while reading code.
38752 2001-12-19  Robert Dewar  <dewar@gnat.com>
38754         * prj-tree.ads: Minor reformatting
38756 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
38758         * config-lang.in (diff_excludes): Remove.
38760 2001-12-17  Ed Schonberg  <schonber@gnat.com>
38762         * sem_res.adb (Resolve_Selected_Component): do not generate a
38763         discriminant check if the selected component is a component of
38764         the argument of an initialization procedure.
38766         * trans.c (tree_transform, case of arithmetic operators): If result
38767         type is private, the gnu_type is the base type of the full view,
38768         given that the full view itself may be a subtype.
38770 2001-12-17  Robert Dewar  <dewar@gnat.com>
38772         * sem_res.adb: Minor reformatting
38774         * trans.c (tree_transform, case N_Real_Literal): Add missing third
38775         parameter in call to Machine (unknown horrible effects from this
38776         omission).
38778         * urealp.h: Add definition of Round_Even for call to Machine
38779         Add third parameter for Machine
38781 2001-12-17  Ed Schonberg  <schonber@gnat.com>
38783         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
38784         predefined units in No_Run_Time mode.
38786 2001-12-17  Richard Kenner  <kenner@gnat.com>
38788         * misc.c (insn-codes.h): Now include.
38790 2001-12-17  Olivier Hainque  <hainque@gnat.com>
38792         * a-except.adb: Preparation work for future integration of the GCC 3
38793         exception handling mechanism
38794         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
38795         to factorize previous code sequences and make them externally callable,
38796         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
38797         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
38798         Use the new notification routines.
38800 2001-12-17  Emmanuel Briot  <briot@gnat.com>
38802         * prj-tree.ads (First_Choice_Of): Document the when others case
38804 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
38806         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
38807         HI-E mode, in order to support Ravenscar profile properly.
38809         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
38810         mode on 32 bits targets.
38812 2001-12-17  Vincent Celier  <celier@gnat.com>
38814         * fmap.adb: Initial version.
38816         * fmap.ads: Initial version.
38818         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
38819         If search is successfully done, add to mapping.
38821         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
38823         * make.adb:
38824         (Gnatmake): Add new local variable Mapping_File_Name.
38825          Create mapping file when using project file(s).
38826          Delete mapping file before exiting.
38828         * opt.ads (Mapping_File_Name): New variable
38830         * osint.adb (Find_File): Use path name found in mapping, if any.
38832         * prj-env.adb (Create_Mapping_File): New procedure
38834         * prj-env.ads (Create_Mapping_File): New procedure.
38836         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
38837         (Mapping_File)
38839         * usage.adb: Add entry for new switch -gnatem.
38841         * Makefile.in: Add dependencies for fmap.o.
38843 2001-12-17  Ed Schonberg  <schonber@gnat.com>
38845         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
38846         is a package instantiation rewritten as a package body.
38847         (Install_Withed_Unit): Undo previous change, now redundant.
38849 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
38851         * layout.adb:
38852         (Compute_Length): Move conversion to Unsigned to callers.
38853         (Get_Max_Size): Convert Len expression to Unsigned after calls to
38854         Compute_Length and Determine_Range.
38855         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
38856         Compute_Length and Determine_Range.
38857         Above changes fix problem with length computation for supernull arrays
38858         where Max (Len, 0) wasn't getting applied due to the Unsigned
38859         conversion used by Compute_Length.
38861 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
38863         * rtsfind.ads:
38864         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
38865          System.Secondary_Stack.
38866         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
38867          in HI-E mode.
38868         Remove unused entity RE_Exception_Data.
38870         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
38872         * rident.ads (No_Secondary_Stack): New restriction.
38874 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
38876         * gnat_rm.texi: Fix minor typos. Found while reading the section
38877         regarding "Bit_Order Clauses" that was sent to a customer.
38878         Very interesting documentation!
38880 2001-12-17  Robert Dewar  <dewar@gnat.com>
38882         * sem_case.adb (Choice_Image): Avoid creating improper character
38883         literal names by using the routine Set_Character_Literal_Name. This
38884         fixes bombs in certain error message cases.
38886 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
38888         * a-reatim.adb: Minor reformatting.
38890 2001-12-17  Ed Schonberg  <schonber@gnat.com>
38892         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
38893         case where the formal is an extension of another formal in the current
38894         unit or in a parent generic unit.
38896 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
38898         * s-tposen.adb: Update comments.  Minor reformatting.
38899         Minor code clean up.
38901         * s-tarest.adb: Update comments.  Minor code reorganization.
38903 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
38905         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
38906         when Java_VM.
38908 2001-12-17  Robert Dewa  <dewar@gnat.com>
38910         * exp_attr.adb: Minor reformatting
38912 2001-12-17  Ed Schonberg  <schonber@gnat.com>
38914         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
38915         derivations nested within a child unit: verify that the parent
38916         type is declared in an outer scope.
38918 2001-12-17  Robert Dewar  <dewar@gnat.com>
38920         * sem_ch12.adb: Minor reformatting
38922 2001-12-17  Ed Schonberg  <schonber@gnat.com>
38924         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
38925         warning if current unit is a predefined one, from which bodies may
38926         have been deleted.
38928 2001-12-17  Robert Dewar  <dewar@gnat.com>
38930         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
38931         Fix header format. Add 2001 to copyright date.
38933         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
38934         which caused CE during compilation if checks were enabled.
38936 2001-12-17  Vincent Celier  <celier@gnat.com>
38938         * make.adb:
38939         (Switches_Of): New function
38940         (Test_If_Relative_Path): New procedure
38941         (Add_Switches): Use new function Switches_Of
38942         (Collect_Arguments_And_Compile): Use new function Switches_Of.
38943         When using a project file, test if there are any relative
38944         search path. Fail if there are any.
38945         (Gnatmake): Only add switches for the primary directory when not using
38946         a project file. When using a project file, change directory to the
38947         object directory of the main project file. When using a project file,
38948         test if there are any relative search path. Fail if there are any.
38949         When using a project file, fail if specified executable is relative
38950         path with directory information, and prepend executable, if not
38951         specified as an absolute path, with the exec directory.  Make sure
38952         that only one -o switch is transmitted to the linker.
38954         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
38956         * prj-nmsc.adb:
38957         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
38958         when using a non standard naming scheme.
38959         (Check_Ada_Naming_Scheme): Make sure that error messages
38960         do not raise exceptions.
38961         (Is_Illegal_Append): Return True if there is no dot in the suffix.
38962         (Language_Independent_Check): Check the exec directory.
38964         * prj.adb (Project_Empty): Add new component Exec_Directory
38966         * prj.ads:
38967         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
38968         (Project_Data): Add component Exec_Directory
38970         * snames.adb: Updated to match snames.ads revision 1.215
38972         * snames.ads: Added Exec_Dir
38974 2001-12-17  Robert Dewar  <dewar@gnat.com>
38976         * make.adb: Minor reformatting
38978         * prj-nmsc.adb: Minor reformatting
38980         * snames.adb: Updated to match snames.ads
38982         * snames.ads: Alphebetize entries for project file
38984 2001-12-17  Ed Schonberg  <schonber@gnat.com>
38986         * trans.c (process_freeze_entity): Do nothing if the entity is a
38987         subprogram that was already elaborated.
38989 2001-12-17  Richard Kenner  <kenner@gnat.com>
38991         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
38992         and Esize if object is referenced via pointer.
38994 2001-12-17  Ed Schonberg  <schonber@gnat.com>
38996         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
38997         is discrete before analyzing choices.
38999 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
39001         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
39002         containing the name of the Ada Main Program. This string is mainly
39003         intended for the debugger.
39004         (Gen_Output_File_C): Do the equivalent change when generating a C file.
39006 2001-12-17  Robert Dewar  <dewar@gnat.com>
39008         * ali.adb: Set new Dummy_Entry field in dependency entry
39010         * ali.ads: Add Dummy_Entry field to source dependency table
39012         * bcheck.adb (Check_Consistency): Ignore dummy D lines
39014         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
39016         * lib-writ.ads: Document dummy D lines for missing files.
39018         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
39020 2001-12-17  Robert Dewar  <dewar@gnat.com>
39022         * ali.adb: Type reference does not reset current file.
39024         * ali.adb: Recognize and scan renaming reference
39026         * ali.ads: Add spec for storing renaming references.
39028         * lib-xref.ads: Add documentation for handling of renaming references
39030         * lib-xref.adb: Implement output of renaming reference.
39032         * checks.adb:
39033         (Determine_Range): Document local variables
39034         (Determine_Range): Make sure Hbound is initialized. It looks as though
39035          there could be a real problem here with an uninitialized reference
39036          to Hbound, but no actual example of failure has been found.
39038 2001-12-17  Laurent Pautet  <pautet@gnat.com>
39040         * g-socket.ads:
39041         Fix comment of Shutdown_Socket and Close_Socket. These functions
39042         should not fail silently because if they are called twice, this
39043         probably means that there is a race condition in the user program.
39044         Anyway, this behaviour is consistent with the rest of this unit.
39045         When an error occurs, an exception is raised with the error message
39046         as exception message.
39048 2001-12-17  Robert Dewar  <dewar@gnat.com>
39050         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
39051         that it happens before modification of Sloc values for -gnatD.
39053         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
39054         so that it happens before modification of Sloc values for -gnatD.
39056         * switch.adb: Minor reformatting
39058 2001-12-15  Richard Henderson  <rth@redhat.com>
39060         * sem_ch7.adb: Wrap comment.
39062 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
39064         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
39065         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
39066         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
39067         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
39068         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
39069         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
39070         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
39071         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
39072         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
39073         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
39074         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
39075         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
39076         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
39077         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
39078         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
39079         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
39080         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
39081         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
39082         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
39083         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
39084         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
39085         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
39086         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
39087         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
39088         spelling errors.
39090 2001-12-14  Vincent Celier  <celier@gnat.com>
39092         * osint.adb(Create_Debug_File): When an object file is specified,
39093         put the .dg file in the same directory as the object file.
39095 2001-12-14  Robert Dewar  <dewar@gnat.com>
39097         * osint.adb: Minor reformatting
39099         * lib-xref.adb (Output_Instantiation): New procedure to generate
39100         instantiation references.
39102         * lib-xref.ads: Add documentation of handling of generic references.
39104         * ali.adb (Read_Instantiation_Ref): New procedure to read
39105         instantiation references
39107         * ali.ads: Add spec for storing instantiation references
39109         * bindusg.adb: Minor reformatting
39111         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39113         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39115         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39117         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39119         * csets.ads:
39120         Fix header format
39121         Add 2001 to copyright date
39122         Add entry for Latin-5 (Cyrillic ISO-8859-5)
39124 2001-12-14  Matt Gingell  <gingell@gnat.com>
39126         * adaint.c: mktemp is a macro on Lynx and can not be used as an
39127         expression.
39129 2001-12-14  Richard Kenner  <kenner@gnat.com>
39131         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
39132         if operand is CONSTRUCTOR.
39134 2001-12-14  Ed Schonberg  <schonber@gnat.com>
39136         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
39137         before emiting check on right-hand side, so that exception information
39138         is correct.
39140 2001-12-14  Richard Kenner  <kenner@gnat.com>
39142         * utils.c (create_var_decl): Throw away initializing expression
39143         if just annotating types and non-constant.
39145 2001-12-14  Vincent Celier  <celier@gnat.com>
39147         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
39148         Default_Ada_...
39150         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39151         Remove functions.
39152         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
39154         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39155         Remove functions.
39156         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
39158 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
39160         * ChangeLog: Remove piece of diff output.
39162 2001-12-14  Geert Bosch  <bosch@gnat.com>
39164         * config-lang.in: Update copyright notice
39166         * layout.adb: Remove commented out code.
39168         * mdllfile.ads: Update copyright notice. Fix header format.
39170         * sem_case.ads: Likewise.
39172         * sem_ch3.adb: Minor reformatting.
39174 2001-12-12  Geert Bosch  <bosch@gnat.com>
39176         * freeze.ads: Update copyright date.
39178         * g-comlin.ads: Minor reformatting.
39180         * gnat-style.texi: Fix typo.
39182 2001-12-12  Geert Bosch  <bosch@gnat.com>
39184         *  einfo.h: Regenerate.
39186 2001-12-12  Ed Schonberg  <schonber@gnat.com>
39188         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
39189         on known node types, rather than untyped fields. Further cleanups.
39191 2001-12-12  Robert Dewar  <dewar@gnat.com>
39193         * sem_ch12.adb:
39194         (Save_Entity_Descendant): Minor comment update.
39195         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
39196          of an N_Attribute_Reference node. As per note below, this does not
39197         eliminate need for Associated_Node in attribute ref nodes.
39198         (Associated_Node): Documentation explicitly mentions attribute
39199         reference nodes, since this field is used in such nodes.
39201         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
39203 2001-12-12  Robert Dewar  <dewar@gnat.com>
39205         * s-stalib.adb: Add more comments on with statements being needed
39207         * par-ch12.adb: Minor reformatting
39209         * prj-dect.ads: Fix copyright header
39211         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
39212         inputs fit in 32 bits, but the result still overflows.
39214         * s-fatgen.ads: Minor comment improvement
39216 2001-12-12  Ed Schonberg  <schonber@gnat.com>
39218         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
39219         formal derived type, look for an inherited component from the full
39220         view of the parent, if any.
39222 2001-12-12  Robert Dewar  <dewar@gnat.com>
39224         * checks.ads (Apply_Alignment_Check): New procedure.
39226         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
39227         ensure that the alignment of objects with address clauses is
39228         appropriate, and raise PE if not.
39230         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
39231         Exp_Pakd.Known_Aligned_Enough
39233         * mdllfile.ads: Minor reformatting
39235         * mlib-fil.ads: Minor reformatting
39237 2001-12-12  Ed Schonberg  <schonber@gnat.com>
39239         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
39240         fix to any component reference if enclosing record has non-standard
39241         representation.
39243 2001-12-12  Vincent Celier  <celier@gnat.com>
39245         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
39246         Iteration
39248 2001-12-12  Ed Schonberg  <schonber@gnat.com>
39250         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
39251         sem_attr.
39253 2001-12-12  Robert Dewar  <dewar@gnat.com>
39255         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
39257 2001-12-12  Emmanuel Briot  <briot@gnat.com>
39259         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
39260         and it adds dependencies to system.io.
39262 2001-12-12  Pascal Obry  <obry@gnat.com>
39264         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
39265         variable name.
39267 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39269         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
39270         that is the parent of other generics, the instance body replaces the
39271         instance node.  Retrieve the instance of the spec, which is the one
39272         that is visible in clients and within the body.
39274 2001-12-11  Vincent Celier  <celier@gnat.com>
39276         * gnatmain.adb: Initial version.
39278         * gnatmain.ads: Initial version.
39280         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
39282         * snames.adb: Updated to match snames.ads.
39284         * snames.ads: Added Gnatstub.
39286 2001-12-11  Vincent Celier  <celier@gnat.com>
39288         * prj-attr.adb (Initialization_Data): Change name from
39289         Initialisation_Data.
39291 2001-12-11  Emmanuel Briot  <briot@gnat.com>
39293         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
39294         + and * applied to backslashed expressions like \r.
39296 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
39298         * g-os_lib.ads: String_List type added, Argument_List type is now
39299         subtype of String_List.
39301 2001-12-11  Robert Dewar  <dewar@gnat.com>
39303         * g-os_lib.ads: Change copyright to FSF
39304         Add comments for String_List type
39306 2001-12-11  Vincent Celier  <celier@gnat.com>
39308         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
39309         string to the buffer).
39311 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39313         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
39314         sem_attr.
39316         * sem_attr.adb: Simplify previous fix for Address.
39317         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
39318         to avoid anomalies where the bound of the type appears to raise
39319         constraint error.
39321 2001-12-11  Robert Dewar  <dewar@gnat.com>
39323         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
39324         handled.
39326 2001-12-11  Ed Schonber   <schonber@gnat.com>
39328         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
39329         renamed unit before checking for recursive instantiations.
39331 2001-12-11  Emmanuel Briot  <briot@gnat.com>
39333         * prj.ads: Add comments for some of the fields.
39335 2001-12-11  Robert Dewar  <dewar@gnat.com>
39337         * lib-xref.adb (Output_Refs): Don't output type references outside
39338         the main unit if they are not otherwise referenced.
39340 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39342         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
39343         code and diagnose additional illegal uses
39345         * sem_util.adb (Is_Object_Reference): An indexed component is an
39346         object only if the prefix is.
39348 2001-12-11  Vincent Celier  <celier@gnat.com>
39350         * g-diopit.adb: Initial version.
39352         * g-diopit.ads: Initial version.
39354         * g-dirope.adb:
39355         (Expand_Path): Avoid use of Unbounded_String
39356         (Find, Wildcard_Iterator): Moved to child package Iteration
39358         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
39360 2001-12-11  Robert Dewar  <dewar@gnat.com>
39362         * sem_attr.adb: Minor reformatting
39364 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39366         * sem_ch3.adb: Clarify some ???.
39368 2001-12-11  Robert Dewar  <dewar@gnat.com>
39370         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
39371         Exp_Pakd.Known_Aligned_Enough
39373         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
39374         version is moved to Exp_Ch13.
39376 2001-12-11  Robert Dewar  <dewar@gnat.com>
39378         * einfo.ads: Minor reformatting
39380         * exp_ch5.adb: Add comment for previous.change
39382         * ali.adb: New interface for extended typeref stuff.
39384         * ali.ads: New interface for typeref stuff.
39386         * checks.adb (Apply_Alignment_Check): New procedure.
39388         * debug.adb: Add -gnatdM for modified ALI output
39390         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
39392         * lib-xref.adb: Extend generation of <..> notation to cover
39393         subtype/object types. Note that this is a complete rewrite,
39394         getting rid of the very nasty quadratic algorithm previously
39395         used for derived type output.
39397         * lib-xref.ads: Extend description of <..> notation to cover
39398         subtype/object types. Uses {..} for these other cases.
39399         Also use (..) for pointer types.
39401         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
39403         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
39404         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
39406 2001-12-11  Vincent Celier  <celier@gnat.com>
39408         * gnatcmd.adb:
39409         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
39410         Changed /BIND_ONLY to /ACTIONS=BIND
39411         Changed /LINK_ONLY to /ACTIONS=LINK
39413 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39415         * sem_ch8.adb (Find_Selected_Component): improved search for a
39416         candidate package in case of error.
39418         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
39419         chain back on scope stack before reinstalling use clauses.
39421         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
39422         is enabled, do not kill the code for the condition, to preserve
39423         warning.
39425 2001-12-11  Robert Dewar  <dewar@gnat.com>
39427         * checks.adb (Insert_Valid_Check): Apply validity check to expression
39428         of conversion, not to result of conversion.
39430 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39432         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
39433         before freezing parent. If the declarations are mutually recursive,
39434         an access to the current record type may be frozen before the
39435         derivation is complete.
39437 2001-12-05  Vincent Celier  <celier@gnat.com>
39439         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
39440         -c /COMPILE_ONLY, -l /LINK_ONLY
39442         * opt.ads:
39443         (Bind_Only): New Flag
39444         (Link_Only): New flag
39446         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
39447         and -l (Link_Only)
39449         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
39451         * make.adb:
39452         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
39453         (Gnatmake): Set the step flags. Only perform a step if the
39454         corresponding step flag is True.
39455         (Scan_Make_Arg): Reset the bind and link step flags when -u
39456         or -gnatc has been specified.
39458 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39460         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
39461         get bounds from right operand.
39463         * sem_eval.adb: Minor reformatting
39465         * exp_util.adb (Make_Literal_Range): use bound of literal rather
39466         than Index'First, its lower bound may be different from 1.
39468         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
39469         and C48009J
39471 2001-12-05  Vincent Celier  <celier@gnat.com>
39473         * prj-nmsc.adb Minor reformatting
39475         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
39476         set and libraries are not supported.
39478 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39480         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
39481         private view explicitly, so the back-end can treat as a global
39482         when appropriate.
39484 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39486         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
39487          unit, always replace instance node with new body, for ASIS use.
39489 2001-12-05  Vincent Celier  <celier@gnat.com>
39491         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
39492         libraries are not supported and both attributes Library_Name and
39493         Library_Dir are specified.
39495         * prj-proc.adb (Expression): Set location of Result to location of
39496         first term.
39498         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
39499         (prj-nmsc is now importing MLib.Tgt)
39501         * prj-proc.adb: Put the change indicated above that was forgotten.
39503 2001-12-05  Robert Dewar  <dewar@gnat.com>
39505         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
39507 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39509         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
39510         constraint, introduce explicit subtype declaration and derive from it.
39512         * sem_ch3.adb: Minor reformatting
39514 2001-12-05  Robert Dewar  <dewar@gnat.com>
39516         * checks.adb (Determine_Range): Increase cache size for checks.
39517         Minor reformatting
39519         * exp_ch6.adb: Minor reformatting
39520         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
39521         a parameter whose root type is System.Address, since treating such
39522         subprograms as pure in the code generator is almost surely a mistake
39523         that will lead to unexpected results.
39525         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
39526         change handling of conversions.
39528         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
39530 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39532         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
39533         aggregate with static wrong size, attach generated Raise node to
39534         declaration.
39536 2001-12-05  Robert Dewar  <dewar@gnat.com>
39538         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
39539         Fixes compilation abandoned bomb in B24009B.
39541 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39543         * sem_ch12.adb:
39544         Document use of Associated_Node on Selected_Components.
39545         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
39546         to clarify use of untyped descendant fields.
39548 2001-12-05  Robert Dewar  <dewar@gnat.com>
39550         * prj-dect.ads: Add ??? comment
39551         Add 2001 to copyright notice (was not done in after all)
39553         * prj-part.adb: Minor reformatting. Reword one awkward error message.
39555         * prj.ads: Minor reformatting throughout, and add some ??? comments
39557         * snames.ads: Minor reformatting
39559 2001-12-05  Geert Bosch  <bosch@gnat.com>
39561         * snames.adb: Autoupdate
39563 2001-12-05  Vincent Celier  <celier@gnat.com>
39565         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
39567         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
39569         * prj-env.adb: Minor comment changes (modifying -> extends).
39571         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
39573         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
39574         Tok_Extends.
39576         * prj.adb (Initialize): Change Modifying to Extends.
39578         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
39580         * prj.ads: Minor comment change (Modifying -> extending).
39582         * snames.ads: Change modifying to extends.
39584 2001-12-05  Robert Dewar  <dewar@gnat.com>
39586         * sem_warn.adb: Remove stuff for conditionals, we are not going to
39587         do this after all.
39589         * sem_warn.ads: Remove stuff for conditionals, we are not going to
39590         do this after all.  Add 2001 to copyright notice
39592 2001-12-04  Geert Bosch  <bosch@gnat.com>
39594         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
39596 2001-12-04  Robert Dewar  <dewar@gnat.com>
39598         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
39599         location if we already have errors. Stops some cases of cascaded
39600         errors.
39602         * errout.adb: Improve comment.
39604 2001-12-04  Robert Dewar  <dewar@gnat.com>
39606         * sem_ch12.adb:
39607         (Analyze_Formal_Type_Definition): Defend against Error.
39608         (Analyze_Formal_Subprogram): Defend against Error.
39610         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
39611         remove following semicolon if present. Removes cascaded error.
39613 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
39615         * bindgen.adb:
39616         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
39617          exceptions equals 0.
39618         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
39619         Fixes PIWG E tests (which have to be run with -gnatL).
39621 2001-12-04  Robert Dewar  <dewar@gnat.com>
39623         * einfo.ads: Minor reformatting
39625 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39627         * einfo.ads: Block_Node points to the identifier of the block, not to
39628         the block node itself, to preserve the link when the block is
39629         rewritten, e.g. within an if-statement with a static condition.
39631         * inline.adb (Cleanup_Scopes): recover block statement from block
39632         entity using new meaning of Block_Node.
39634         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
39635         identifier of block node, rather than to node itself.
39637 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
39639         * layout.adb:
39640         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
39641         (Discrimify): Go back to setting the Etypes of the selected component
39642         because the Vname component does not exist at this point and will
39643         fail name resolution. Also set Analyzed.
39644         Remove with and use of Sem_Res.
39646 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
39648         * Makefile.in: (HIE_SOURCES): add s-fat*.
39650 2001-12-04  Robert Dewar  <dewar@gnat.com>
39652         * sem_attr.adb:
39653         (Compile_Time_Known_Attribute): New procedure.
39654         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
39655          proper range check.
39657 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39659         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
39660         processing discriminants to diagnose illegal default values.
39662 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39664         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
39665         access discriminant within a type extension that constrains its
39666         parent discriminants.
39668 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39670         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
39671         is malformed, use instance of Any_Id to allow analysis to proceed.
39673         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
39674         type definition is illegal.
39675         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
39676         misplaced.
39678 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39680         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
39681         constants.
39683 2001-12-04  Robert Dewar  <dewar@gnat.com>
39685         * errout.adb: Minor reformatting
39687 2001-12-04  Robert Dewar  <dewar@gnat.com>
39689         * exp_util.adb: Minor reformatting from last change
39691         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
39692         which is a rewriting of an expression, traverse the original
39693         expression to remove warnings that may have been posted on it.
39695 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39697         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
39698         record that has other packed components.
39700 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
39702         * adaint.c: Minor cleanups.
39704 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
39706         * adaint.c: Do not use utime.h on vxworks.
39708 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
39710         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
39711         more confusion than it solves.
39713 2001-12-04  Geert bosch  <bosch@gnat.com>
39715         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
39717 2001-12-04  Geert Bosch  <bosch@gnat.com>
39719         * Makefile.in (update-sources): New target.
39720         For use by gcc_release script.
39722 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39724         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
39725         a configuration pragma, it is now legal wherever a pragma can appear.
39727 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
39729         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
39730         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
39731         is now @CROSS@ -DIN_GCC; update comment.
39733 2001-12-04  Robert Dewar  <dewar@gnat.com>
39735         * einfo.adb (Has_Pragma_Pure_Function): New flag.
39736         Fix problem that stopped ceinfo from working
39738         * einfo.ads (Has_Pragma_Pure_Function): New flag.
39740         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
39742 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
39744         * gnatchop.adb:
39745         (File_Time_Stamp): New procedure.
39746         (Preserve_Mode): New boolean.
39747         (Write_Unit): Pass time stamp.
39748         Implement -p switch (preserve time stamps).
39750         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
39752         * gnatchop.adb: Do usage info for -p switch
39754         * adaint.h (__gnat_set_file_time_name): New function
39756         * adaint.c (__gnat_set_file_time_name): Implement
39758         * adaint.h: Fix typo
39760 2001-12-03  Robert Dewar  <dewar@gnat.com>
39762         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
39763         have Associated_Node.
39765 2001-12-03  Robert Dewar  <dewar@gnat.com>
39767         * prj-proc.adb: Minor reformatting
39769         * make.adb: Minor reformatting
39771 2001-12-03  Geert Bosch  <bosch@gnat.com>
39773         * make.adb: Minor reformatting.
39775 2001-12-03 Robert Dewar  <dewar@gnat.com>
39777         * sem_ch12.adb: Minor reformatting
39779 2001-12-03  Ed Schonberg  <schonber@gnat.com>
39781         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
39782         push Standard on the stack before analyzing the instance body,
39783         in order to have a clean visibility environment.
39785         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
39787 2001-12-03  Ed Schonberg  <schonber@gnat.com>
39789         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
39790         instantiation of a body that contains an inlined body.
39792 2001-12-03  Ed Schonberg  <schonber@gnat.com>
39794         * sem_ch12.adb:
39795         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
39796         to prevent freezing within formal packages.
39797         (Freeze_Subprogram_Body): If body comes from another instance that
39798         appeared before its own body, place freeze node at end of current
39799         declarative part, to prevent a back-end crash.
39800         (Inline_Instance_Body): Handle properly a package instance within
39801         a subprogram instance that is a child unit.
39803 2001-12-01  Graham Stott  <grahams@redhat.com>
39805         * Makefile.in (misc.o): Add missing $(srcdir) prefix
39806         and add optabs.h dependency.
39808         * misc.c: Include optabs.h
39809         (gnat_tree_code_type): Make static and const.
39810         (gnat_tree_code_length): Likewise.
39811         (gnat_tree_code_name): Likewise.
39812         (update_setjmp_buf): Obtain operands mode from insn_data.
39814 2001-11-29  Richard Henderson  <rth@redhat.com>
39816         * init.c: Remove obsolete dwarf2 frame.h section.
39818 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
39820         * Make-lang.in (ada.generated-manpages): New dummy target.
39822 2001-11-29  Ed Schonberg  <schonber@gnat.com>
39824         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
39825         into Command, an array conversion is illegal here. Uncovered by
39826         ACATS B460005.
39828 2001-11-28  Geert Bosch  <bosch@gnat.com>
39830         * init.c: Minor whitespace changes.
39832 2001-11-28  Doug Rupp  <rupp@gnat.com>
39834         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
39835         signal stack.
39837 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
39839         * misc.c (gnat_expand_constant): Move declaration above
39840         definition of lang_hooks.
39841         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
39842         (gnat_init): lang_expand_constant no longer exists.
39844         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
39845         always have vprintf.
39846         (gnat_init): Always call set_internal_error_function.
39848 2001-11-27  Andreas Jaeger  <aj@suse.de>
39850         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
39852 2001-11-27  Laurent Guerby  <guerby@acm.org>
39854         * Makefile.in: Regenerate Ada dependencies.
39856 2001-11-26  Richard Henderson  <rth@redhat.com>
39858         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
39859         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
39860         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
39862 2001-11-25  Laurent Guerby  <guerby@acm.org>
39864         * sysdep.c (rts_get_*): Fix style.
39866 2001-11-19  Laurent Guerby  <guerby@acm.org>
39868         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
39869         since it is of no apparent use and cause warnings.
39871 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
39873         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
39874         static too.
39875         (gnat_init): Don't return NULL.
39876         (finish_parse): Remove.
39878 2001-11-17  Laurent Guerby  <guerby@acm.org>
39880         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
39881         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
39882         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
39883         * lang-spec.h: Add missing struct field to silence warnings.
39884         * sysdep.c (rts_get_*): Provide K&R prototype.
39885         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
39886         * traceback.c (Unlock_Task, Lock_Task): Likewise.
39887         * tracebak.c (__gnat_backtrace): Remove unused variable.
39888         * utils.c (end_subprog_body): Move to K&R style.
39890 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
39892         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
39894 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
39896         * misc.c (gnat_init): Change prototype.  Include the
39897         functionality of the old init_parse and init_decl_processing.
39898         (gnat_init_decl_processing): New prototype.
39899         (init_parse): Remove.
39900         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
39902 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
39904         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
39905         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
39906         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
39907         set_yydebug): Remove.
39909 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
39911         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
39912         (struct lang_hooks): Constify.
39913         (language_string, lang_identify): Remove.
39914         * utils.c (init_decl_processing): Update.
39916 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
39918         * misc.c: Include langhooks-def.h.
39919         * Makefile.in: Update.
39921 2001-10-30  Robert Dewar  <dewar@gnat.com>
39923         * style.adb:
39924         (Check_Identifier): Rewrite circuit to be compatible with use of letters
39925         in the upper half of ASCII.
39926         (Check_Identifier): Minor reformatting
39928 2001-10-30  Geert Bosch  <bosch@gnat.com>
39930         * (Associated_Node, Set_Associated_Node): Do not check for
39931         Freeze_Entity.
39933 2001-10-30  Robert Dewar  <dewar@gnat.com>
39935         * a-reatim.ads: Minor reformatting
39937 2001-10-30  Robert Dewar  <dewar@gnat.com>
39939         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
39940         undocumented declarations.
39942 2001-10-30  Pascal Obry  <obry@gnat.com>
39944         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
39945         to the binder and linker.
39946         Minor style fix.
39948         * mdll.ads: Fix layout.  Update copyright notice.
39950         * mdll.adb: Fix layout.  Update copyright notice.
39952 2001-10-30  Robert Dewar  <dewar@gnat.com>
39954         * usage.adb: Minor fix to output for -gnaty.
39956 2001-10-30  Ed Schonberg  <schonber@gnat.com>
39958         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
39959         to accommodate all its possible values.
39961         * a-reatim.adb (Split): Special-case handling of Time_Span_First
39962         and of small absolute values of T.
39964 2001-10-30  Richard Kenner  <kenner@gnat.com>
39966         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
39967         set_mem_attributes since not needed and wrong if RESULT if a REG;
39968         fixes ACATS failures.
39970 2001-10-30  Geert Bosch  <bosch@gnat.com>
39972         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
39973         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
39975 2001-10-30  Robert Dewar  <dewar@gnat.com>
39977         * bindusg.adb: Undocument -f switch.
39979         * gnatcmd.adb: Remove /FULL_ELABORATION.
39981         * opt.ads (Force_RM_Elaboration_Order): Document that this is
39982         obsolescent.
39984         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
39986         * gnatbind.adb: Minor update of warning msg.
39988 2001-10-30  Vincent Celier  <celier@gnat.com>
39990         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
39991         for project file switches (-P (/PROJECT_FILE=),
39992          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
39993         or MEDIUM or HIGH)
39995 2001-10-30  Geert Bosch  <bosch@gnat.com>
39997         * decl.c: Minor whitespace fixes.
39999 2001-10-30  Richard Kenner  <kenner@gnat.com>
40001         * utils2.c (build_allocator): Test for SIZE overflow in array case too
40003 2001-10-30  Geert Bosch  <bosch@gnat.com>
40005         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
40006         Found due to GCC 3.0 warning of using uninitialized value.
40008         * layout.adb:
40009         (Get_Max_Size): Use variant record for tracking value/expression.
40010          Makes logic clearer and prevents warnings for uninitialized variables.
40011         (Layout_Array_Type): Use variant record for tracking value/expression.
40012          Makes logic clearer and prevents warnings for uninitialized variables.
40014 2001-10-30  Robert Dewar  <dewar@gnat.com>
40016         * lib.adb: Minor reformatting
40018         * s-taprop.ads: Minor reformatting
40020 2001-10-29  Laurent Guerby  <guerby@acm.org>
40022         * init.c:
40023         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
40024         const.
40025         (_gnat_error_handler): Make MSG const.
40027 2001-10-29  Richard Kenner  <kenner@gnat.com>
40029         * sysdep.c: Fix localtime_r problem on LynxOS.
40030         Also remove #elif to avoid warnings.
40032         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
40033         used by this.
40035         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
40037 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
40039         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
40040         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
40041         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
40042         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
40043         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
40044         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
40045         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
40046         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
40047         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
40048         types.ads, urealp.adb: Fix spelling errors.
40050 2001-10-27  Laurent Guerby  <guerby@acm.org>
40052         * trans.c (gigi): Fix non determinism leading to bootstrap
40053         comparison failures for debugging information.
40055 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
40057         * gnat_rm.texi: Use @./@: where appropriate.
40059 2001-10-26  Robert Dewar  <dewar@gnat.com>
40061         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
40063 2001-10-26  Richard Kenner  <kenner@gnat.com>
40065         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
40067 2001-10-26  Richard Kenner  <kenner@gnat.com>
40069         * decl.c (validate_size): Modify message for bad size to avoid
40070         implication that compiler is modifying the size.
40072 2001-10-26  Robert Dewar  <dewar@gnat.com>
40074         * prj-util.adb: Minor reformatting. Fix bad header format.
40076 2001-10-26  Robert Dewar  <dewar@gnat.com>
40078         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
40080         * sinfo.ads: Clarify use of Associated_Node (documentation only).
40082         * sem_ch12.adb: Change Node4 to Associated_Node. Change
40083         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
40084         much more narrowly in places where needed. These are cleanups.
40086 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
40088         * 5zosinte.ads (null_pthread): new constant.
40090         * 5ztaprop.adb:
40091         (Initialize_TCB): Initialize thread ID to null, to be able to verify
40092          later that this field has been set.
40093         (Finalize_TCB): ditto.
40094         (Suspend_Task): Verify that the thread ID is not null before using it.
40095         (Resume_Task): ditto.
40097         * s-tasdeb.adb:
40098         (Resume_All_Tasks): Lock the tasks list before using it.
40099         (Suspend_All_Tasks): ditto.
40101 2001-10-26  Richard Kenner  <kenner@gnat.com>
40103         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
40104         Make constant variant of designated type for Is_Access_Constant.
40105         Call update_pointer_to with main variant.
40107         * trans.c (process_freeze_entity, process_type):
40108         Call update_pointer_to on main variant.
40110         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
40111         If main variant, update all other variants.
40113         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
40114         TREE_STATIC.
40116 2001-10-26  Robert Dewar  <dewar@gnat.com>
40118         * prj-util.adb: Minor reformatting
40120 2001-10-26  Robert Dewar  <dewar@gnat.com>
40122         * prj-util.adb: Minor reformatting
40124 2001-10-26  Robert Dewar  <dewar@gnat.com>
40126         * prj-attr.adb: Minor reformatting throughout
40128 2001-10-26  Robert Dewar  <dewar@gnat.com>
40130         * prj-attr.ads: Minor reformatting
40131         Add ??? comment (this whole spec has almost no comments)
40133 2001-10-26  Vincent Celier  <celier@gnat.com>
40135         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
40136         ("//") that precede the drive letter on Interix.
40138 2001-10-26  Geert Bosch  <bosch@gnat.com>
40140         * gnat_rm.texi: Add GNAT Reference Manual.
40142 2001-10-25  Robert Dewar  <dewar@gnat.com>
40144         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
40145         is Error. Similar change for other renaming cases.
40147 2001-10-25  Robert Dewar  <dewar@gnat.com>
40149         * s-atacco.ads: Add pragma Inline_Always for functions.
40150         Fix header format. Add copyright 2001
40152 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40154         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
40155         return Error rather than Empty so that analysis can proceed.
40157 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40159         * sem_util.adb (Enter_Name): better handling of cascaded error
40160         messages when a unit appears in its own context.
40162 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40164         * sem_util.adb (Defining_Entity): in case of error, attach created
40165         entity to specification, so that semantic analysis can proceed.
40167 2001-10-25  Robert Dewar  <dewar@gnat.com>
40169         * sem_util.adb
40170         (Defining_Entity): Deal with Error.
40171         (Process_End_Label): Deal with bad end label for.
40173 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40175         * sem_elab.adb (Check_A_Call): refine message when call is in an
40176         instance but callee is not declared in the generic unit.
40178 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40180         * sem_elab.adb (Check_A_Call): check for renaming before finding the
40181         enclosing unit, which may already be different from the calling unit.
40183 2001-10-25  Geert Bosch  <bosch@gnat.com>
40185         * 4gintnam.ads: fix header format.
40187 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40189         * sem_res.adb (Resolve_Call): if the call is actually an indexing
40190         operation on the result of a parameterless call, perform elaboration
40191         check after the node has been properly rewritten.
40193         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
40194         inlined within the generic tree, the defining identifier is not a
40195         compilation_unit.
40197 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40199         * sem_res.adb (Resolve): special-case resolution of Null in an
40200          instance or an inlined body to avoid view conflicts.
40202         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
40203          compatibility by retrieving the access type of the generic copy.
40205 2001-10-25  Robert Dewar  <dewar@gnat.com>
40207         * sem_ch3.adb:
40208         (Analyze_Number_Declaration): Handle error expression.
40209         (Signed_Integer_Type_Declaration): Handle error bound.
40210         (Analyze_Subtype_Indication): Handle error range.
40212         * sem_util.adb (Get_Index_Bounds): Check for Error.
40214 2001-10-25  Robert Dewar  <dewar@gnat.com>
40216         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
40217         in no run time mode.
40219 2001-10-25  Pascal Obry  <obry@gnat.com>
40221         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
40222         mode case for ALLOC case.
40224         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
40225         all platforms. Improvement of last change.
40227 2001-10-25  Robert Dewar  <dewar@gnat.com>
40229         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
40231 2001-10-25  Geert Bosch  <bosch@gnat.com>
40233         * osint.adb (Is_Relative): Remove duplicate.
40235 2001-10-25  Pascal Obry  <obry@gnat.com>
40237         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
40238         pathnames in UNIX and DOS style with drive letter.
40239         (Is_Relative): new routine.
40241         * osint.adb: Minor reformatting
40243         * osint.adb (Is_Relative): implementation using
40244         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
40246 2001-10-25  Pascal Obry  <obry@gnat.com>
40248         * g-dirope.adb (Basename): correctly compute offset between the
40249         original Path and the translated one.
40251         * g-dirope.adb: (Base_Name): add some comments.
40253 2001-10-25  Robert Dewar  <dewar@gnat.com>
40255         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
40256         in HIE mode, avoids compilation abandoned message
40258         * exp_imgv.adb: Correct typo in previous change
40260         * exp_imgv.adb: Correct typo in previous change (not my day!)
40262 2001-10-25  Robert Dewar  <dewar@gnat.com>
40264         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
40266 2001-10-25  Pascal Obry  <obry@gnat.com>
40268         * g-awk.ads: Move all pragma inlines next to the routine
40269          declarations. This is more uniform with other GNAT spec.
40271 2001-10-22  Geert Bosch  <bosch@gnat.com>
40273         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
40275 2001-10-19  Geert Bosch  <bosch@gnat.com>
40277         * Makefile.in (tools, gnattools): Remove gnatmem.
40279 2001-10-17  Richard Henderson  <rth@redhat.com>
40281         * Makefile.in (misc.o): Depend on langhooks.h.
40282         * misc.c: Include it.
40283         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
40284         (LANG_HOOKS_DECODE_OPTION): New.
40285         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
40287 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
40289         * trans.c (tree_transform): Adjust to recent change in
40290         expand_asm_operands to implement named asm operands.
40292 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40294         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
40295         renaming of discriminant for mutable record type.
40297 2001-10-11  Robert Dewar  <dewar@gnat.com>
40299         * validsw.adb: Properly save -gnatVn status.
40301 2001-10-11  Robert Dewar  <dewar@gnat.com>
40303         * usage.adb: Add lines for V switch.
40305         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
40306         (/VALIDITY_CHECKING).
40308 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40310         * sem_type.adb (Add_One_Interp): an operator for a type declared in
40311         an extension of System is known to be visible.
40313 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40315         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
40316         properly. Fixes regression on ACATS C34005G.
40318 2001-10-11  Robert Dewar  <dewar@gnat.com>
40320         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
40321         loop in generic instance, since this is likely not very useful.
40323 2001-10-11  Robert Dewar  <dewar@gnat.com>
40325         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
40326         the error message for high integrity mode.
40328         * rtsfind.adb (RTE): Give message if we try to find an entity that
40329         is not available in high integrity mode.
40331         * rtsfind.ads:
40332         (OK_To_Use_In_HIE_Mode): New array.
40333         (RTE): May return Empty in high integrity mode.
40335         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
40336         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
40338         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
40339         unit if not inlined always and in no runtime mode. Fixes problem
40340         caused by new Rtsfind changes.
40342         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
40343         body is deleted.
40345         * rtsfind.adb (RTE): Make sure we do not try to load unit after
40346         giving message for entity not available in high integrity mode.
40348 2001-10-11  Pascal Obry  <obry@gnat.com>
40350         * impunit.adb: Add GNAT.CRC32.
40352 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40354         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
40355         properly the case where one universal operand in a non-static
40356         exponentiation of a real literal.
40358 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40360         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
40361         clause, return the gobal finalization list, for lack of anthing else.
40363 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40365         * exp_ch7.adb (Make_Transient_Block): if statement is within
40366         exception handler, always use new transient scope to place Clean
40367         procedure.
40369 2001-10-11  Pascal Obry  <obry@gnat.com>
40371         * Makefile.in:
40372         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40373         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40374         (GNATLS_RTL_OBJS): add g-crc32.o
40375         (GNATMAKE_RTL_OBJS): add g-crc32.o
40377         * ali-util.adb:
40378         (CRC_Match): new function.
40379         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
40380         instead of the previous simple checksum algorithm.
40381         (Time_Stamp_Mismatch): use CRC_Match for comparison.
40382         (Set_Source_Table): idem.
40384         * ali-util.ads:
40385         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
40386         instead of simple checksum.
40387         (CRC_Match): new function.
40388         (CRC_Error): new constant.
40390         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
40391         a CRC now and not a simple checksum. A CRC uses lower-case hex
40392         letters, fixes ambiguity in parsing.
40394         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
40395         is what this variable will store.
40397         * bcheck.adb: Change reference to chechsum in comments by CRC.
40398         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
40399         rename All_Checksum_Match to All_CRC_Match. Change due to API
40400         renaming since now GNAT does not use a simple checksum but a
40401         CRC using GNAT.CRC32.
40403         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
40404         now and not anymore a simple checksum.
40406         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
40407         places.
40409         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
40411         * scans.adb:
40412         (Restore_Scan_State): rename Checksum to CRC.
40413         (Save_Scan_State): idem.
40415         * scans.ads:
40416         With GNAT.CRC32.
40417         (Checksum): rename to CRC.
40418         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
40420         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
40421         GNAT.CRC32).  Update copyright notice.
40423         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
40424         GNAT.CRC32).  Update copyright notice.
40426         * scn.adb:
40427         (Accumulate_Checksum): removed.
40428         (Update): new procedure. Add a wide-character into the CRC.
40430         * sinput-l.adb:
40431         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
40432         (Load_File): fix initialization of S (change Source_Checksum to
40433         Source_CRC)
40435         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
40436         Source_CRC in S initialization.
40438         * sinput.adb (Source_Checksum): renamed to Source_CRC.
40440         * sinput.ads (Source_Checksum): renamed to Source_CRC.
40441         Update comments for the CRC.
40443         * types.adb (Hex): Use lowercase for the letter part.
40445         * types.ads (Get_Hex_String): Returns the hexadecimal representation
40446         for a word. This is currently used only for CRC. In previous version,
40447         the checksum was using a representation with all letter being
40448         upper-case. With the new implementation (using CRC) we do not remove
40449         the 32th bit of the CRC, so we can have an upper-case starting letter
40450         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
40451         It is ambigous since the CRC was optional and could be followed by
40452         options like EB, EE. So now this routines uses lower-case letter for
40453         the hexadecimal representation. Strange enough only lower case letters
40454         where checked in Scan_ALI (even if this was not a possible case).
40456         * gnatvsn.ads (Library_Version): changed to 3.15a.
40458         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
40459         for the compiler.
40461         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
40462         for the compiler.
40464         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
40465         Add 2001 to copyright notice
40466         (Accumulate_Checksum): Modify to use System.CRC32.
40468         * ali-util.ads: Redo changes of previous revision to continue to use
40469         the word Checksum. Add 2001 to copyright notice.
40471         * ali.adb: Undo some of previous changes, not needed.
40472         Keep the change for lower case letters in the checksum.
40474         * ali.ads: Undo previous change not needed.
40476         * bcheck.adb: Undo most of previous change, not needed.
40477         But do use Checksums_Match for checksum comparison.
40479         * gnatls.adb: Undo most of previous change, not needed.
40480         But do use Checksums_Match for comparing checksums.
40482         * lib-load.adb: Undo previous change, not needed.
40484         * lib-writ.adb: Undo previous change, not needed.
40486         * lib-writ.ads: Document that checksums use lower case,
40487         not upper case letters.
40489         * scans.adb: Undo previous change, not needed
40491         * scans.ads: Undo previous change, not needed.
40493         * scn-nlit.adb: Undo previous changes, not needed.
40495         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
40497         * scn.adb:
40498         (Accumulate_Checksum): Use System.CRC32.
40499         (Initialize_Checksum): New procedure.
40500         Remove other changes of previous revision.
40502         * sinput-p.adb: Undo previous change, not needed.
40504         * sinput.adb: Undo previous change, not needed.
40506         * sinput-l.adb: Undo previous change, not needed.
40508         * sinput.ads: Undo previous change, not needed.  Keep only comment
40509         on new checksum algorithm
40511         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
40512         Also remove a-tags and a-stream from GNAT sources.
40514         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
40516         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
40518 2001-10-11  Geert Bosch  <bosch@gnat.com>
40520         * einfo.h: Regenerate.
40522         * nmake.ads: Regenerate.
40524         * nmake.adb: Regenerate.
40526         * sinfo.h: Regenerate.
40528         * treeprs.adb: Regenerate.
40530 2001-10-10  Geert Bosch  <bosch@gnat.com>
40532         * gnat-style.texi: New file describing coding guidelines for Ada.
40534 2001-10-10  Ed Schonberg  <schonber@gnat.com>
40536         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
40537         is Flag174.
40539 2001-10-10  Geert Bosch  <bosch@gnat.com>
40541         * snames.ads: Add new names for project facility.
40543         * snames.adb: Update to reflect snames.ads changes.
40545         * snames.h: Update to reflect snames.ads changes.
40547 2001-10-10  Vincent Celier  <celier@gnat.com>
40549         * make.adb:
40550         (Add_Switches): reflect the changes for the switches attributes
40551         Default_Switches indexed by the programming language,
40552         Switches indexed by the file name.
40553         (Collect_Arguments_And_Compile): Idem.
40554         Reflect the attribute name changes.
40556         * prj-attr.adb:
40557         (Initialisation_Data): Change the names of some packages and
40558         attributes.
40559         (Initialize): process case insensitive associative arrays.
40561         * prj-attr.ads:
40562         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
40564         * prj-dect.adb:
40565         (Parse_Attribute_Declaration): For case insensitive associative
40566          arrays, set the index string to lower case.
40568         * prj-env.adb:
40569         Reflect the changes of the project attributes.
40571         * prj-nmsc.adb:
40572         Replace Check_Naming_Scheme by Ada_Check and
40573         Language_Independent_Check.
40575         * prj-nmsc.ads:
40576         Replaced Check_Naming_Scheme by 2 procedures:
40577         Ada_Check and Language_Independent_Check.
40579         * prj-proc.adb:
40580         (Process_Declarative_Items): For case-insensitive associative
40581         arrays, set the index string to lower case.
40582         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
40583         Prj.Nmsc.Check_Naming_Scheme.
40585         * prj-tree.adb:
40586         (Case_Insensitive): New function
40587         (Set_Case_Insensitive): New procedure
40589         * prj-tree.ads:
40590         (Case_Insensitive): New function
40591         (Set_Case_Insensitive): New procedure
40592         (Project_Node_Record): New flag Case_Insensitive.
40594         * prj-util.adb:
40595         (Value_Of): new function to get the string value of a single
40596         string variable or attribute.
40598         * prj-util.ads:
40599         (Value_Of): new function to get the string value of a single
40600         string variable or attribute.
40602         * prj.adb:
40603         (Ada_Default_Spec_Suffix): New function
40604         (Ada_Default_Impl_Suffix): New function
40605         Change definitions of several constants to reflect
40606         new components of record types.
40608         * prj.ads:
40609         (Naming_Data): Change several components to reflect new
40610         elements of naming schemes.
40611         (Project_Data): New flags Sources_Present and
40612         Language_Independent_Checked.
40613         (Ada_Default_Spec_Suffix): New function.
40614         (Ada_Default_Impl_Suffix): New function.
40616         * snames.ads:
40617         Modification of predefined names for project manager: added
40618         Implementation, Specification_Exceptions, Implementation_Exceptions,
40619         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
40620         Default_Switches, _Languages, Builder, Cross_Reference,
40621         Finder. Removed Body_Part, Specification_Append, Body_Append,
40622         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
40623         Gnatlink.
40625         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40626         Add comments.
40628         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
40629         not that it is Nil_Variable_Value.
40631         * prj.ads: Add ??? for uncommented declarations
40633 2001-10-10  Ed Schonberg  <schonber@gnat.com>
40635         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
40636         constant, do not indicate possible modification, so that gigi can
40637         treat it as a bona fide constant.
40639 2001-10-10  Robert Dewar  <dewar@gnat.com>
40641         * sem_prag.adb: Add processing for pragma External.
40643         * snames.ads: Add entry for pragma External.
40645         * par-prag.adb: Add pragma External.
40647         * snames.adb: Updated to match snames.ads.
40649 2001-10-10  Ed Schonberg  <schonber@gnat.com>
40651         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
40652         a dynamic task if the allocator appears in an indexed assignment
40653         or selected component assignment.
40655         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
40656         For a dynamic task in an assignment statement, use target of
40657         assignment to generate meaningful name.
40659 2001-10-10  Ed Schonberg  <schonber@gnat.com>
40661         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
40662         a generic package.
40664         * einfo.ads: Body_Entity is also defined for generic package.
40665         Documentation change only
40667         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
40668         others_choice for a discriminated component initialization,
40669         convert discriminant references into the corresponding discriminals.
40671         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
40672         only if original type is private and expression has to be wrapped
40673         in a conversion.
40675         * checks.adb:
40676         (Apply_Constraint_Check): Do not perform length check
40677         if expression is an aggregate with only an others_choice.
40678         (Length_N_Cond): two references to the same in_parameter
40679         (typically the discriminal in an init_proc) denote the same value.
40680         Two useful optimization uncovered by bugfixes above.
40682 2001-10-10  Robert Dewar  <dewar@gnat.com>
40684         * xeinfo.adb: Change int to char in translation of enumeration types.
40685         This fixes a problem in the C representation of component alignment.
40686         Add 2001 to copyright notice
40688 2001-10-10  Richard Kenner  <kenner@gnat.com>
40690         * decl.c: (validate_size): Do check size of object of integral type
40691         if it is a packed array type.
40693 2001-10-10  Richard Kenner  <kenner@gnat.com>
40695         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
40696         VAR_DECL for constant if not Is_Public but -O0.
40698 2001-10-10  Richard Kenner  <kenner@gnat.com>
40700         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
40702 2001-10-10  Geert Bosch  <bosch@gnat.com>
40704         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
40705         use '/' as switch character, allowing for absolute file names.
40707 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
40709         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
40710         FSF address.
40712 2001-10-08  Geert Bosch  <bosch@gnat.com>
40714         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
40715         Automatically build utilities when files need to be regenerated.
40717 2001-10-08  Geert Bosch  <bosch@gnat.com>
40719         * xsnames.adb: New utility for updating snames.ads and snames.adb
40721 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
40723         * Make-lang.in (ADAFLAGS): Add -W -Wall.
40724         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
40725         (gnat1): Also depend on attribs.o.
40726         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
40727         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
40728         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
40729         (ADAFLAGS): Add -W -Wall.
40730         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
40731         take out CFLAGS.
40733         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
40734         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
40735         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
40736         Use $(ADAC), not $(CC), as compilation command.
40738         (gnattools): Depend directly on tools to build, don't use
40739         recursive make.
40740         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
40742         * einfo.h, sinfo.h: New files (autogenerated).
40744 2001-10-08  Richard Henderson  <rth@redhat.com>
40746         * comperr.adb (Abort_In_Progress): New.
40747         (Compiler_Abort): Use it to prevent recursion.
40749 2001-10-08  Robert Dewar  <dewar@gnat.com>
40751         * atree.adb: Set Error_Posted in Error node, helps error recovery.
40753         * par-endh.adb (Output_End_Expected): We should also not test
40754         Error_Posted on the Error node, since now it is always set.
40756         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
40757         to help error recovery. Part of general work on 9407-004.
40759         * par.adb: Add ??? for misuse of error
40761         * sem_res.adb:
40762         (Resolve): Defend against Error, fixes 9407-003.
40763         (Resolve_Discrete_Subtype_Indication): Defend against Error.
40765         * sinfo.ads (N_Error): Now has Etype field (which will be set
40766         to Any_Type to help error recovery).
40768 2001-10-08  Richard Kenner  <kenner@gnat.com>
40770         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
40771         Consistently set MEM attributes from expression; fixes
40772         bootstrap failure on x86.
40774 2001-10-08  Geert Bosch  <bosch@gnat.com>
40776         * 5oosinte.adb: Add 2001 to copyright notice.
40778 2001-10-08  Geert Bosch  <bosch@gnat.com>
40780         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
40782         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
40784 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
40786         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
40788 2001-10-05  Geert Bosch  <bosch@gnat.com>
40790         * adaint.h: Small formatting fix.
40792 2001-10-04  Geert Bosch  <bosch@gnat.com>
40794         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
40795         Arg is int, not FILE *, in dummy version of functions.
40797         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
40798         Arg is int, not FILE *.
40800 2001-10-04  Geert Bosch  <bosch@gnat.com>
40802         * 3lsoccon.ads: Added file, missed with initial check ins.
40804         * 4lintnam.ads: Fix header format.
40805         Change Linux to GNU/Linux.
40807         * 5iosinte.adb: Change Linux to GNU/Linux.
40809         * 5iosinte.ads: Change Linux to GNU/Linux.
40811         * 5itaprop.adb: Change Linux to GNU/Linux.
40813         * 5itaspri.ads: Change Linux to GNU/Linux.
40814         Update copyright notice.
40816         * 5lintman.adb: Change Linux to GNU/Linux.
40818         * 5lml-tgt.adb: Change Linux to GNU/Linux.
40820         * 5losinte.ads: Change Linux to GNU/Linux.
40822         * 5lsystem.ads: Change Linux to GNU/Linux.
40824         * 5qosinte.adb: Change Linux to GNU/Linux.
40826         * 5qosinte.ads: Change Linux to GNU/Linux.
40828         * 5qparame.ads: Change Linux to GNU/Linux.
40830         * 5qtaprop.adb: Change Linux to GNU/Linux.
40832         * 5qtaspri.ads: Change Linux to GNU/Linux.
40833         Add 2001 to copyright notice.
40835         * 5vintman.ads: Change Linux to GNU/Linux.
40836         Fix header format.  Add 2001 to copyright notice.
40838         * g-soccon.ads: Change Linux to GNU/Linux.
40840         * g-trasym.ads: Change Linux to GNU/Linux.
40841         Add 2001 to copyright notice.
40843         * memtrack.adb: Change Linux to GNU/Linux.
40845         * s-intman.ads: Change Linux to GNU/Linux.
40846         Add 2001 to copyright notice.  Fix header format.
40848         * s-stache.adb: Change Linux to GNU/Linux.
40850         * adaint.c: Change Linux to GNU/Linux.
40852         * cio.c: Change Linux to GNU/Linux.
40854         * cstreams.c: Change Linux to GNU/Linux.
40856         * init.c: Change Linux to GNU/Linux.
40858         * gmem.c: Change Linux to GNU/Linux.
40860         * tracebak.c: Change Linux to GNU/Linux.
40863 2001-10-02  Geert Bosch  <bosch@gnat.com>
40865         * misc.c (insert_default_attributes): Add dummy version.