* doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in bits,
[official-gcc.git] / gcc / ada / ChangeLog
blobf08dc9f72d719ced03af8190b682b354fa0ce595
1 2008-07-19  Olivier Hainque  <hainque@adacore.com>
2          
3         * targtyps.c (get_target_default_allocator_alignment): Use
4         MALLOC_ABI_ALIGNMENT.
6 2008-07-17  Olivier Hainque  <hainque@adacore.com>
8         * adaint.c (__MINGW32__ section): Include ctype.h and define
9         a fallback ISALPHA if IN_RTS.
10         (__gnat_is_absolute_path): Use ISALPHA instead of isalpha. 
12 2008-07-17  Olivier Hainque  <hainque@adacore.com>
14         * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
15         argument, to apply to references in addition to definitions.  Prevent
16         setting TREE_STATIC on externals.
17         (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
19 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21         PR documentation/15479
22         * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
23         Replace backets around optional parameters with @ovar
24         where possible, use @r{[}, @r{]} otherwise.
25         Replace some @r, @i, and @emph with @var where appropriate.
27 2008-07-02  Eric Botcazou  <ebotcazou@adacore.com>
29         * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
31 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
33         * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
34         -Wc++-compat warnings.
35         * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
36         __gnat_locate_exec_on_path): Likewise.
37         * decl.c (annotate_value): Likewise.
38         * misc.c (gnat_handle_option): Likewise.
39         * trans.c (gnat_to_gnu, extract_encoding, decode_name,
40         post_error_ne_tree): Likewise.
42 2008-06-27  Eric Botcazou  <ebotcazou@adacore.com>
44         * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
45         version of its type, attempt to first convert its elements.
47 2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>
49         * Makefile.in: Fix *86 kfreebsd target specific pairs.
51 2008-06-25  Samuel Tardieu  <sam@rfc1149.net>
53         * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
55 2008-06-24  Eric Botcazou  <ebotcazou@adacore.com>
57         * utils2.c (known_alignment): Derive the alignment from pointed-to
58         types only if it is otherwise unknown.
59         <INTEGER_CST>: Tidy.
60         <MULT_EXPR>: Likewise.
61         <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
62         that of the base.
64 2008-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
66         PR ada/36573
67         * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
69 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71         * gnat_rm.texi (Implementation Defined Characteristics)
72         (Standard Library Routines): Use @smallexample for indented
73         text.  Drop Indentation outside examples.
74         * gnat_ugn.texi: Likewise.
76 2008-06-13  Olivier Hainque  <hainque@adacore.com>
78         * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
79         if undefined.
80         (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
81         realignment with force_align_arg_pointer attribute on foreign
82         convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
83         
84 2008-06-13  Olivier Hainque  <hainque@adacore.com>
86         * utils.c (rest_of_record_type_compilation): When computing
87         encodings for the components of a variable size type, early
88         strip conversions on the current position expression to make
89         sure it's shape is visible.  Use remove_conversions for this
90         purpose.
92 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
94         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
95         constrained subtype of a discriminated type, discard the fields that
96         are beyond its limits according to its size.
98 2008-06-10  Olivier Hainque  <hainque@adacore.com>
100         * utils.c (create_subprog_decl): If this is for the 'main' entry
101         point according to the asm name, redirect main_identifier_node.
103 2008-06-09  Eric Botcazou  <ebotcazou@adacore.com>
105         * decl.c (components_to_record): Adjust the packedness for the
106         qualified union as well.
108 2008-06-09  Arnaud Charlet  <charlet@adacore.com>
110         * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
111         checks non fatal.
113 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
115         * sem_res.adb (Large_Storage_Type): A type is large if it
116         requires as many bits as Positive to store its values and its
117         bounds are known at compile time.
118         * sem_ch13.adb (Minimum_Size): Note that this function returns
119         0 if the size is not known at compile time.
121 2008-06-06  Nicolas Setton  <setton@adacore.com>
122             Olivier Hainque  <hainque@adacore.com>
124         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
125         attribute, parallel descriptive type attached to another
126         type for debug info generation purposes.
127         * utils.c (add_parallel_type): New function, register
128         parallel type to be attached to a type.
129         (get_parallel_type): New function, fetch a registered
130         parallel type, if any.
131         (rest_of_record_type_compilation): Register the parallel
132         type we make for variable size records.
133         * gigi.h (add_parallel_type, get_parallel_type): Declare.
134         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
135         parallel debug types we make.
136         * trans.c (extract_encoding, decode_name): New functions.
137         (gigi): If the DWARF attribute extensions are available, setup
138         to use them.
139         * lang.opt: Register language specific processing request
140         for -gdwarf+.
141         * misc.c (gnat_dwarf_extensions): New global variable. How much
142         do we want of our DWARF extensions. 0 by default.
143         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
144         (gnat_post_options): Map gnat_dwarf_extensions to the
145         commonuse_gnu_debug_info_extensions for later processing.
146         
147 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
149         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
151 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
153         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
154         * gnat_ugn.texi (Style Checking)
155         (Adding the Results of Compiler Checks to gnatcheck Output)
156         (Example of Binder Output File): Fix typos.
157         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
158         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
159         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
160         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
161         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
162         sinfo.ads, utils.c: Fix typos in comments.
163         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
165 2008-05-29  Thomas Quinot  <quinot@adacore.com>
167         * sem_eval.adb: Minor reformatting
169 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
171         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
172         is abstract, do not apply abstractness check on subprogram if this is
173         a renaming declaration.
175 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
177         PR ada/864
178         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
179         allow recognition of program suffix in addition to prefix.
180         
181         * gnatchop.adb (Locate_Executable): Add support for prefix.
182         
183         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
184         mlib-utl.adb: Adjust calls to Program_Name.
186 2008-05-29  Robert Dewar  <dewar@adacore.com>
188         * sem_ch3.adb: Minor reformatting
189         * sem_prag.adb: Minor reformatting
190         * sem_res.adb: Minor reformatting
191         * sinput-p.ads: Minor reformatting
193 2008-05-29  Javier Miranda  <miranda@adacore.com>
195         * sem_util.adb:
196         (Abstract_Interface_List): Add missing support for full type-declaration
197         associated with synchronized types.
199 2008-05-29  Robert Dewar  <dewar@adacore.com>
201         * sem_eval.adb (Is_Same_Value): Take care of several more cases
203 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
205         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
206         access type, wrap the expression in a conversion to force an
207         accessibility check.
209         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
210         accessibility checks even when expansion is disabled in order to
211         generate messages in the presence of previous errors or in
212         semantics-only mode.
214 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
216         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
217         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
219 2008-05-28  Vincent Celier  <celier@adacore.com>
221         PR ada/34446
222         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
223         preprocessing expressions
225 2008-05-28  Vincent Celier  <celier@adacore.com>
227         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
228         for preprocessing
229         
230         * sinput-p.ads: Minor comment update and reformatting
232 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
234         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
235         type has a deeper level than any master only when it is the type of an
236         access parameter.
238 2008-05-28  Javier Miranda  <miranda@adacore.com>
240         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
242 2008-05-28  Javier Miranda  <miranda@adacore.com>
244         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
245         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
246         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
247         Add code that was previously located in
248         Find_Overridden_Synchronized_Primitive because it is only used here.
250 2008-05-28  Sergey Rybin  <rybin@adacore.com>
252         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
253         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
255 2008-05-28  Robert Dewar  <dewar@adacore.com>
257         * restrict.ads:
258         Add missing restrictions, and properly label all GNAT defined ones
259         
260         * rtsfind.ads:
261         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
262         Add entry for Ada.Task_Termination.Set_Specific_Handler
263         Add entry for Ada.Task_Termination.Specific_Handler
264         
265         * s-rident.ads:
266         Add missing restrictions and properly mark all gnat defined ones
267         
268         * sem_ch3.adb:
269         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
270         
271         * sem_res.adb:
272         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
274         * gnat_rm.texi: Add missing restrictions, and properly label all
275         GNAT defined ones
277 2008-05-28  Robert Dewar  <dewar@adacore.com>
279         * restrict.adb:
280         (Check_Restriction): violation of restriction No_Finalization is
281         treated as a serious error to stop expansion
283 2008-05-28  Robert Dewar  <dewar@adacore.com>
285         * exp_util.adb: Minor reformatting
286         * exp_util.ads: Minor reformatting.
288 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
290         * Make-lang.in: Remove gprmake.
292         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
294 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
296         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
297         improper progenitor names, and avoid cascaded errors.
299 2008-05-28  Robert Dewar  <dewar@adacore.com>
301         * gnat_rm.texi: Add note on Old giving warning when applied to constant
303         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
304         a constant
306 2008-05-28  Robert Dewar  <dewar@adacore.com>
308         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
309         size
311 2008-05-28  Robert Dewar  <dewar@adacore.com>
313         * exp_ch5.adb:
314         (Expand_Simple_Function_Return): Copy unaligned result into temporary
316 2008-05-28  Javier Miranda  <miranda@adacore.com>
318         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
319         for user-defined predefined primitives.
320         
321         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
322         (Find_Overridden_Synchronized_Primitive): Ditto.
324         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
326 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
328         * a-ststio.adb, s-direio.adb:
329         Further code clean up of previous change.
330         Update comments.
332 2008-05-27  Vincent Celier  <celier@adacore.com>
334         * prj-nmsc.adb: Minor reformatting
336 2008-05-27  Bob Duff  <duff@adacore.com>
338         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
339         untagged private type with a tagged full type, where the full type has
340         a self reference, create the corresponding class-wide type early, in
341         case the self reference is "access T'Class".
343 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
345         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
346         tasks and context is an object declaration. create master entity before
347         expansion.
349 2008-05-27  Robert Dewar  <dewar@adacore.com>
351         * mlib-prj.adb: Minor reformatting
353         * prj-part.adb: Minor reformatting
355         * prj.ads: Minor reformatting
357         * exp_ch3.adb: Minor reformatting.
359         * sem_ch3.ads: Minor reformatting
361         * sem_eval.adb: Minor reformatting
363 2008-05-27  Vincent Celier  <celier@adacore.com>
365         * gnatcmd.adb:
366         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
368 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
370         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
371         tasks, create an activation chain now, before the expansion into
372         assignments and build-in-place calls that require the presence of an
373         activation chain.
374         (Backend_Processing_Possible): If the component type is inherently
375         limited, the aggregate must be expanded into individual built-in-place
376         assignments.
378         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
379         determine whether an allocation extra parameter must be built, to
380         handle case of a private type whose full type is a discriminated type
381         with defaults.
383 2008-05-27  Bob Duff  <duff@adacore.com>
385         * gnat_rm.texi:
386         Document the new behavior regarding trampolines.
388 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
390         * a-direio.adb, a-sequio.adb: Replace address clause by
391         unrestricted_access, simpler and compatible with .NET.
393 2008-05-27  Vincent Celier  <celier@adacore.com>
395         * prj-part.adb:
396         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
397         a project file, so that symbolic links are not resolved.
399 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
401         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
402         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
403         portable across GNAT targets, since this kind of address clause is not
404         supported by VM back-ends (.NET/JGNAT).
406 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
408         * bindgen.adb: Update comments.
409         
410         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
412 2008-05-27  Vincent Celier  <celier@adacore.com>
414         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
415         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
416         mlib-tgt.adb, prj-env.adb, prj-env.ads:
417         (Path_Information): New record type
418         Use component of type Path_Information when there are two paths, one in
419         canonical format and one in display format.
420         Update the project manager to these new components.
422 2008-05-27  Robert Dewar  <dewar@adacore.com>
424         * makeutl.adb: Minor reformatting
425         * prj-nmsc.adb: Minor reformatting
426         * s-stausa.adb: Minor reformatting
427         * s-stausa.ads: Minor reformatting
428         * sem_ch6.adb: Minor reformatting
430 2008-05-27  Thomas Quinot  <quinot@adacore.com>
432         * sem_res.adb: Minor comment fixes
434 2008-05-27  Thomas Quinot  <quinot@adacore.com>
436         * makeutl.adb: Minor code reorganization
438         * exp_aggr.adb: Add ??? comment
439         Fix typo
441         * exp_ch6.adb: Minor reformatting
443 2008-05-27  Quentin Ochem  <ochem@adacore.com>
445         * s-stausa.adb (Initialize): Updated result initialization, and
446         initialization of environment stack.
447         (Fill_Stack): Improved computation of the pattern zone, taking into
448         account already filled at the calling point.
449         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
450         Measure and Overflow_Guard.
451         (Report_Result): Fixed computation of the result using new fields of
452         Stack_Analyzer.
453         
454         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
455         params by more explicit Stack_Size / Max_Pattern_Size params.
456         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
457         Added Stack_Used_When_Filling field.
458         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
459         Min_Measure and Max_Measure fields.
460         
461         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
463 2008-05-27  Vincent Celier  <celier@adacore.com>
465         * prj-nmsc.adb:
466         (Check_File): Make sure that a unit that replaces the same unit in a
467          project being extended is properly processed.
469 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
471         * sem_ch3.adb:
472         (Get_Discr_Value): Remove obsolete code that failed to find the value
473         of a discriminant for an inherited task component appearing in a type
474         extension.
476 2008-05-27  Thomas Quinot  <quinot@adacore.com>
478         (System.File_IO.{Close, Delete, Reset}):
479         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
480         
481         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
482         Pass File parameter by reference.
484 2008-05-27  Vincent Celier  <celier@adacore.com>
486         * prj-nmsc.adb:
487         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
488         sources of the same project that have the same object file name.
489         (Find_Explicit_Sources): Always remove a source exception that was not
490         found.
492 2008-05-27  Thomas Quinot  <quinot@adacore.com>
494         * sem_ch3.adb: Minor reformatting
496 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
498         * sem_ch6.adb:
499         (Is_Interface_Conformant): Handle properly a primitive operation that
500         overrides an interface function with a controlling access result.
501         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
502         inherited and overriding operations, omit as well the conformance check
503         on result types, to prevent spurious errors.
505 2008-05-27  Vincent Celier  <celier@adacore.com>
507         * makeutl.ads, makeutl.adb:
508         (Set_Location): New procedure
509         (Get_Location): New function
510         (Update_Main): New procedure
512 2008-05-27  Vincent Celier  <celier@adacore.com>
514         * prj-nmsc.adb:
515         (Check_Library): Allow standard project to be extended as a static
516         library project.
517         (Get_Mains): Do not inherit attribute Main in an extending library
518         project.
520 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
522         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
523         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
524         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
525         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
526         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
527         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
528         * system-mingw.ads (Always_Compatible_Rep): Likewise.
529         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
530         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
531         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
532         
533 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
535         * sem_attr.adb: add guard to previous patch.
537 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
539         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
540         a synchronized tagged type, do not attempt to build dispatch table for
541         full view. The table is built for the corresponding record type, which
542         has its own declaration.
544 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
546         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
547         to the known type entity E, rather than setting it to Any_Type. Fixes
548         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
549         for objects whose type had an illegal constraint.
551 2008-05-27  Vincent Celier  <celier@adacore.com>
553         * gnat_ugn.texi:
554         Add succinct documentation for attribute Excluded_Source_List_File
556 2008-05-27  Vincent Celier  <celier@adacore.com>
558         * prj-attr.adb: Add new project level attribute Map_File_Option
559         
560         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
561         
562         * prj.ads: Minor reformatting and comment update
563         (Project_Configuration): New component Map_File_Option
564         
565         * snames.adb: New standard name Map_File_Option
566         
567         * snames.ads: New standard name Map_File_Option
569 2008-05-27  Vincent Celier  <celier@adacore.com>
571         * xsnames.adb: Remove unused variable Oname
573 2008-05-27  Doug Rupp  <rupp@adacore.com>
575         * exp_ch6.adb:
576         (Expand_N_Function_Call): Fix comments. Minor reformatting.
578         * exp_vfpt.ads:
579         (Expand_Vax_Foreign_Return): Fix comments.
581 2008-05-27  Thomas Quinot  <quinot@adacore.com>
583         * exp_dist.adb: Minor reformating
585 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
587         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
588         No_Default_Initialization, which is now delayed until the freeze point
589         of the object. Add a comment about deferral of the check.
590         
591         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
592         on objects is moved here.
594 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
596         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
597         (Compare_Array_S16): Adjust for above change.
598         * s-casi32.adb (Uword): Likewise.
599         (Compare_Array_S32): Likewise.
600         * s-casi64.adb (Uword): Likewise.
601         (Compare_Array_S64): Likewise.
602         * s-caun16.adb (Uhalf): Likewise.
603         (Compare_Array_U16): Likewise.
604         * s-caun32.adb (Uword): Likewise.
605         (Compare_Array_U32): Likewise.
606         * s-caun64.adb (Uword): Likewise.
607         (Compare_Array_U64): Likewise.
608         
609 2008-05-26  Robert Dewar  <dewar@adacore.com>
611         * exp_ch6.adb: Add ??? comment for previous change
613         * exp_vfpt.adb: Minor reformatting
615         * exp_vfpt.ads: Add ??? comment for last change
617         * sem_attr.adb: Add some ??? comments for previous change
619         * s-vaflop.ads: Add comments for previous change
621 2008-05-26  Doug Rupp  <rupp@adacore.com>
623         * s-vaflop-vms-alpha.adb:
624         Remove System.IO use clause, to prevent spurious ambiguities when
625         package is access through rtsfind.
627 2008-05-26  Sergey Rybin  <rybin@adacore.com>
629         * tree_io.ads (ASIS_Version_Number): Update because of the changes
630         made in front-end
632 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
634         * sem_attr.adb:
635         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
636         converted to S (A)'address only if A .. B is known to be a non-null
637         range.
639 2008-05-26  Doug Rupp  <rupp@adacore.com>
641         * s-vaflop.adb:
642         (Return_D, Return_F, Return_G): New functions.
644         * s-vaflop.ads:
645         (Return_D, Return_F, Return_G): New functions.
647         * exp_vfpt.adb:
648         (Expand_Vax_Foreign_Return): New procedure
650         * exp_vfpt.ads:
651         (Expand_Vax_Foreign_Return): New procedure
653         * rtsfind.ads:
654         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
655         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
657         * exp_ch6.adb:
658         Import Exp_Vfpt
659         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
661         * s-vaflop-vms-alpha.adb:
662         (Return_D, Return_F, Return_G): New functions.
664 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
666         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
667         init proc entity when there is actual default initialization associated
668         with the component type, to avoid spurious errors on objects of scalar
669         array types that are marked Is_Public when No_Default_Initialization
670         applies.
672 2008-05-26  Thomas Quinot  <quinot@adacore.com>
674         * rtsfind.ads, rtsfind.adb:
675         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
676         (Check_RPC): Support per-PCS-kind API versioning.
677         
678         exp_dist.ads, exp_dist.adb:
679         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
680         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
681          library function Get_RACW.
682         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
683         library function Get_Reference.
684         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
685         through an intermediate Any.
686         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
687         going through an intermediate Any.
688         
689         * sem_dist.adb: Minor reformatting.
691 2008-05-26  Javier Miranda  <miranda@adacore.com>
693         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
694         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
695         (Is_Internal): Adding documentation on internal entities that have
696         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
698         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
699         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
700         Added assertion to force entities with this attribute to have
701         attribute Is_Internal set to True.
702         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
704         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
705         renamed as Derive_Progenitor_Subprograms. In addition, its code is
706         a new implementation.
707         (Add_Interface_Tag_Components): Remove special management of
708         synchronized interfaces.
709         (Analyze_Interface_Declaration): Minor reformating
710         (Build_Derived_Record_Type): Minor reformating
711         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
712         predefined primitive inherited from interface type because the body of
713         internally generated predefined primitives of tagged types are generated
714         later by Freeze_Type
715         (Derive_Subprogram): Avoid generating an internal name if the parent
716         subprogram overrides an interface primitive.
717         (Derive_Subprograms): New implementation that keeps separate the
718         management of tagged types not implementing interfaces, from tagged
719         types that implement interfaces.
720         (Is_Progenitor): New implementation.
721         (Process_Full_View): Add documentation
722         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
723         by call to Derive_Progenitor_Subprograms.
725         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
726         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
727         Skip_Controlling_Formals.
729         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
730         (Check_Conventions): New implementation. Remove local subprogram
731         Skip_Check. Remove formal Search_From of routine Check_Convention.
732         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
733         Skip_Controlling_Formals.
734         (New_Overloaded_Entity): Enable addition of predefined dispatching
735         operations.
737         * sem_disp.ads
738         (Find_Primitive_Covering_Interface): New subprogram.
740         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
741         the task body procedure as a primitive of the corresponding tagged
742         type.
743         (Check_Operation_From_Private_Type): Avoid adding twice an entity
744         to the list of primitives.
745         (Find_Primitive_Covering_Interface): New subprogram.
746         (Override_Dispatching_Operation): Add documentation.
748         * sem_type.adb (Covers): Minor reformatings
750         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
751         Collect_Interfaces.
752         Rename formal.
753         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
754         (Implements_Interface): New subprogram.
755         (Is_Parent): Removed.
756         (Primitive_Names_Match): New subprogram.
757         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
758         (Ultimate_Alias): New subprogram.
760         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
761         Collect_Interfaces.
762         Remove special management for synchronized types. Rename formal. Remove
763         internal subprograms Interface_Present_In_Parent and Add_Interface.
764         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
765         on non-record types by code to return false in such case.
766         (Implements_Interface): New subprogram.
767         (Is_Parent): Removed. No special management is now required for
768         synchronized types covering interfaces.
769         (Primitive_Names_Match): New subprogram.
770         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
771         (Ultimate_Alias): New subprogram.
773         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
774         Add internal entities associated with secondary dispatch tables to
775         the list of tagged type primitives that are not interfaces.
776         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
777         (Make_Predefined_Primitive_Specs): Code reorganization to improve
778         the management of predefined equality operator. In addition, if
779         the type has an equality function corresponding with a primitive
780         defined in an interface type, the inherited equality is abstract
781         as well, and no body can be created for it.
783         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
784         exp_util to exp_disp.
785         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
786         an entity corresponds with one of the predefined primitives required
787         to implement interfaces.
788         Update copyright notice.
790         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
791         final check on abstract subprograms all the primitives associated with
792         interface primitives because they must be visible in the public and
793         private part.
794         (Write_DT): Use Find_Dispatching_Type to locate the name of the
795         interface type. This allows the use of this routine, for debugging
796         purposes, when the tagged type is not fully decorated.
797         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
798         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
799         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
800         entity corresponds with one of the predefined primitives required to
801         implement interfaces.
803         * exp_util.adb (Find_Interface_ADT): New implementation
804         (Find_Interface): Removed.
806         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
807         list of interfaces associated with nodes
808         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
810 2008-05-26  Thomas Quinot  <quinot@adacore.com>
812         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
813         condition for assignment to temporary.
815 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
817         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
818         checks on the upper bound if the index type is a modular type, to
819         prevent wrap-around computations when size is close to upper bound of
820         type.
822 2008-05-26  Robert Dewar  <dewar@adacore.com>
824         * sem_ch3.adb: Minor reformatting
826 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
828         * sem_ch12.adb (Remove_Parent): Use specification of instance
829         to retrieve generic parent,
830         to handle properly the case where the instance is a child unit.
831         Add guard to handle properly wrapper packages.
832         Minor reformatting
834 2008-05-26  Thomas Quinot  <quinot@adacore.com>
836         * sinfo.ads: Minor reformatting
838 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
840         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
841         Generate a tag check when the result subtype of a function, defined by
842         an access definition, designates a specific tagged type.
843         (Make_Tag_Check): New routine.
845 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
847         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
849 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
851         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
852         (builtin_decl_for): Likewise.
853         * trans.c (gigi): Likewise.
854         * utils.c (def_builtin_1): Fix formatting.
856 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
858         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
859         Create the statements which map a string name to protected or task
860         entry indix.
862         * exp_ch9.adb: Add with and use clause for Stringt.
863         Minor code reformatting.
864         (Build_Entry_Names): New routine.
865         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
866         for flag Build_Entry_Names which controls the allocation of the data
867         structure for the string names of entries.
869         * exp_ch9.ads (Build_Entry_Names): New subprogram.
871         * exp_util.adb (Entry_Names_OK): New function.
873         * exp_util.ads (Entry_Names_OK): New function.
875         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
876         enumerations RE_Id and RE_Unit_Table.
878         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
879         (Free_Entry_Names_Array): New routine.
881         * s-taskin.ads: Comment reformatting.
882         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
883         Add component Entry_Names to record Ada_Task_Control_Block.
884         (Free_Entry_Names_Array): New routine.
886         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
887         dynamically allocate an array
888         of string pointers. This structure holds string entry names.
889         (Free_Entry_Names): New routine.
890         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
891         (Set_Entry_Names): New routine.
893         * s-tassta.ads:
894         (Create_Task): Add formal Build_Entry_Names. The flag is used to
895         control the allocation of the data structure which stores entry names.
896         (Set_Entry_Name): New routine.
898         * s-tpoben.adb:
899         Add with and use clause for Ada.Unchecked_Conversion.
900         (Finalize): Deallocate the entry names array.
901         (Free_Entry_Names): New routine.
902         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
903         create an array of string pointers to hold the entry names.
904         (Set_Entry_Name): New routine.
906         * s-tpoben.ads:
907         Add field Entry_Names to record Protection_Entries.
908         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
909         (Set_Entry_Name): New routine.
911 2008-05-26  Vincent Celier  <celier@adacore.com>
913         * prj-nmsc.adb:
914         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
916         * prj.ads:
917         (Project_Configuration): New component Shared_Lib_Driver
919 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
921         * inline.adb:
922         (Cleanup_Scopes): For a protected operation, transfer finalization list
923         to protected body subprogram, to force cleanup actions when needed.
925 2008-05-26  Robert Dewar  <dewar@adacore.com>
927         * sem_cat.adb: Minor reformatting
929         * gnatname.adb: Minor reformatting
931         * osint.ads: Minor reformatting
933         * s-carun8.ads: Minor reformatting
935         * g-heasor.ads: Minor comment fix (unit is now pure)
937 2008-05-26  Robert Dewar  <dewar@adacore.com>
939         * exp_ch2.adb:
940         (Expand_Current_Value): Properly type generated integer literal
942 2008-05-26  Sergey Rybin  <rybin@adacore.com>
944         * gnat_ugn.texi: Add description for the new gnatcheck rule -
945         Separate_Numeric_Error_Handlers.
947 2008-05-26  Pascal Obry  <obry@adacore.com>
949         * sem_aggr.adb: Minor reformatting.
951 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
953         * s-osinte-aix.adb:
954         (To_Target_Priority): Setting the time slice value to 0 or greater sets
955         the scheduling policy to FIFO within priorities or round-robin
956         respectively.
957         Hence, the priority must be set in this case to the one selected by the
958         user.
959         
960 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
962         * sem_ch12.adb:
963         (Remove_Parent): If the enclosing scope is an instance whose generic
964         parent is declared within some parent scope of the just completed
965         instance, make full views of the entities in that parent visible, when
966         applicable.
967         
968 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
970         * mingw32.h (STD_MINGW): Set to true for target w64.
972 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
974         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
975         instead of TREE_STATIC on the ADDR_EXPR.
977 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
979         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
980         (Sloc_to_locus): Do not overwrite known GCC locations when translating
981         GNAT standard locations.
983 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
985         * gigi.h (mark_visited): Declare.
986         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
987         only the topmost node of expressions.
988         (elaborate_expression_1): Look deeper for read-only variables.
989         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
990         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
991         (mark_visited_r): New function.
993 2008-05-23  Vincent Celier  <celier@adacore.com>
995         * snames.adb: New standard name Excluded_Source_List_File.
997         * snames.ads: New standard name Excluded_Source_List_File.
999         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
1001         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
1002         Get excluded sources from
1003         file indicated by attribute Excluded_Source_List_File, when present and
1004         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
1006 2008-05-23  Robert Dewar  <dewar@adacore.com>
1008         * exp_dist.adb: Minor reformatting
1010 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
1012         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
1013         slice, convert it to an indexed component, which is equivalent, more
1014         efficient, and usable even if the slice itself is not addressable.
1016 2008-05-23  Olivier Hainque  <hainque@adacore.com>
1018         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
1019         convention also allows access to named compiler built-in subprograms
1020         such as the GCC __builtin family.
1022 2008-05-23  Vincent Celier  <celier@adacore.com>
1024         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
1025         sep. If there are several possibilities, choose the one with the
1026         longer prefix.
1028 2008-05-23  Vincent Celier  <celier@adacore.com>
1030         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
1031         back end switches when executable specified with --GCC= is same as
1032         default, even if there are additional options.
1034         * gnat_ugn.texi:
1035         Document when the back end switches from the ALI file are taken into
1036         account when gnatlink is invoked with --GCC=
1038 2008-05-23  Thomas Quinot  <quinot@adacore.com>
1040         * s-os_lib.adb:
1041         (copy_File): Do not open destination file if source file is unreadable.
1043 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
1045         * utils.c (handle_type_generic_attribute): Adjust to accept
1046         fixed arguments before an elipsis.
1048 2008-05-21  Thomas Quinot  <quinot@adacore.com>
1050         * g-sothco.ads, g-sothco.adb: New files.
1052 2008-05-20  Thomas Quinot  <quinot@adacore.com>
1054         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
1056         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
1057         Add missing "with" of Ada.Unchecked_Conversion
1059         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads, 
1060         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads, 
1061         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads, 
1062         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads, 
1063         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads, 
1064         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads: 
1065         Move common code out of GNAT.Sockets.Thin implementations and into
1066         Thin_Common.
1067         New constant SIZEOF_fd_set
1068         New flag Has_Sockaddr_Len
1069         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1071         * g-stsifd-sockets.adb
1072         (Create): Remove call to Set_Length; use Set_Family to set the family
1073         and (on appropriate platforms) length fields in struct sockaddr.
1075         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb, 
1076         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb, 
1077         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
1078         Move common code out of GNAT.Sockets.Thin implementations and into
1079         Thin_Common.
1081         * g-socket.ads, g-socket.adb: 
1082         Move common code out of GNAT.Sockets.Thin implementations and into
1083         Thin_Common.
1084         (Connect_Socket, Accept_Socket): Provide new versions of these two
1085         routines that operate with a user specified timeout.
1086         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
1087         this is now handled automatically by Set_Family on platforms that
1088         require it.
1090         * gen-soccon.c: 
1091         Move common code out of GNAT.Sockets.Thin implementations and into
1092         Thin_Common.
1093         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
1094         this constant to 0 (not -1) because we use it to initialize an
1095         unsigned_char value.
1096         Align values for numeric constants only.
1097         Handle the case of systems that do not support AF_INET6.
1098         New constant SIZEOF_fd_set
1099         New flag Has_Sockaddr_Len
1100         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1102         * gsocket.h: New flag Has_Sockaddr_Len
1103         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1105 2008-05-20  Santiago Uruena  <uruena@adacore.com>
1107         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
1109 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
1111         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
1112         the underlying issue with malloc/free has been fixed. Remove associated
1113         comments.
1114         Minor reformatting.
1115         Related to PR ada/24533
1117 2008-05-20  Robert Dewar  <dewar@adacore.com>
1119         * ali.adb: Correct casing of ASCII.NUL
1121         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
1122         properly.
1124 2008-05-20  Robert Dewar  <dewar@adacore.com>
1125             Gary Dismukes  <dismukes@adacore.com>
1127         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
1128         overflow if result converted to wider integer type.
1129         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
1130         discriminated types when discriminant checks are suppressed.
1132 2008-05-20  Vincent Celier  <celier@adacore.com>
1134         * cstand.adb (Print_Standard): Issue the correct Size clause for type
1135         Wide_Wide_Character.
1137 2008-05-20  Tristan Gingold  <gingold@adacore.com>
1139         * decl.c: Do not emit a variable for a object that has an address
1140         representation clause whose value is known at compile time.
1141         When a variable has an address clause whose value is known at compile
1142         time, refer to this variable by using directly the address instead of
1143         dereferencing a pointer.
1145 2008-05-20  Robert Dewar  <dewar@adacore.com>
1147         PR ada/30740
1148         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
1149         subtypes, always False for non-modular types.
1150         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
1151         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
1152         for Shared_Storage package.
1153         (Is_RACW_Stub_Type): New entity flag.
1155         * exp_ch4.adb
1156         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
1157         case where we have a modular type with a non-binary modules.
1158         Comments reformattings.
1160         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
1161         all types.
1163 2008-05-20  Javier Miranda  <miranda@adacore.com>
1165         * exp_aggr.adb
1166         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
1167         tests did not covered the case in which the type of the aggregate has
1168         no progenitors but some its parents has progenitors.
1170 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
1171             Hristian Kirtchev  <kirtchev@adacore.com>
1173         * exp_ch3.adb
1174         (Expand_N_Object_Declaration): Correct the condition which triggers the
1175         generation of a call to Displace when initializing a class-wide object.
1176         (Build_Dcheck_Functions): Build discriminant-checking for null variants
1177         when Frontend_Layout_On_Target is true to ensure that they're available
1178         for calling when a record variant size function is built in Layout.
1180 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1182         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1183         procedure for a derived type retrieve the discriminant values from the
1184         parent using the corresponding discriminant.
1185         (Expand_N_Assignment_Statement): Skip generation of implicit
1186         if-statement associated with controlled types if we are
1187         compiling with restriction No_Finalization.
1189 2008-05-20  Vincent Celier  <celier@adacore.com>
1191         * prj.adb (Hash (Project_Id)): New function
1192         (Project_Empty): Add new component Interfaces_Defined
1194         * prj.ads (Source_Data): New component Object_Linked
1195         (Language_Config): New components Object_Generated and Objects_Linked
1196         (Hash (Project_Id)): New function
1197         (Source_Data): New Boolean components In_Interfaces and
1198         Declared_In_Interfaces.
1199         (Project_Data): New Boolean component Interfaces_Defined
1201         * prj-attr.adb: 
1202         New project level attribute Object_Generated and Objects_Linked
1203         Add new project level attribute Interfaces
1205         * prj-dect.adb: Use functions Present and No throughout
1206         (Parse_Variable_Declaration): If a string type is specified as a simple
1207         name and is not found in the current project, look for it also in the
1208         ancestors of the project.
1210         * prj-makr.adb: 
1211         Replace procedure Make with procedures Initialize, Process and Finalize
1212         to implement H414-023: process different directories with different
1213         patterns.
1214         Use functions Present and No throughout
1216         * prj-makr.ads: 
1217         Replace procedure Make with procedures Initialize, Process and Finalize
1219         * prj-nmsc.adb
1220         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
1221         the language configuration.
1222         (Process_Project_Level_Array_Attributes): Process new attributes
1223         Object_Generated and Object_Linked.
1224         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
1225         False, to indicate that the erreor/warning is a continuation.
1226         (Check): Call Report_No_Sources with Contnuation = True after the first
1227         call.
1228         (Error_Msg): Process successively contnuation character and warning
1229         character.
1230         (Find_Explicit_Sources): Check that all declared sources have been found
1231         (Check_File): Indicate in hash table Source_Names when a declared source
1232         is found.
1233         (Check_File): Set Other_Part when found
1234         (Find_Explicit_Sources): In multi language mode, check if all exceptions
1235         to the naming scheme have been found. For Ada, report an error if an
1236         exception has not been found. Otherwise, disregard the exception.
1237         (Check_Interfaces): New procedure
1238         (Add_Source): When Other_Part is defined, set mutual pointers in spec
1239         and body.
1240         (Check): In multi-language mode, call Check_Interfaces
1241         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
1242         for an excluded source.
1243         (Remove_Source): A source replacing a source in the interfaces is also
1244         in the interfaces.
1246         * prj-pars.adb: Use function Present
1248         * prj-part.adb: Use functions Present and No throughout
1249         (Parse_Single_Project): Set the parent project for child projects
1250         (Create_Virtual_Extending_Project): Register project with no qualifier
1251         (Parse_Single_Project): Allow an abstract project to be extend several
1252         times. Do not allow an abstract project to extend a non abstract
1253         project.
1255         * prj-pp.adb: Use functions Present and No throughout
1256         (Print): Take into account the full associative array attribute
1257         declarations.
1259         * prj-proc.adb: Use functions Present and No throughout
1260         (Expression): Call itself with the same From_Project_Node for the
1261         default value of an external reference.
1263         * prj-strt.adb: Use functions Present and No throughout
1264         (Parse_Variable_Reference): If a variable is specified as a simple name
1265         and is not found in the current project, look for it also in the
1266         ancestors of the project.
1268         * prj-tree.ads, prj-tree.adb (Present): New function
1269         (No): New function
1270         Use functions Present and No throughout
1271         (Parent_Project_Of): New function
1272         (Set_Parent_Project_Of): New procedure
1274         * snames.ads, snames.adb: 
1275         Add new standard names Object_Generated and Objects_Linked
1277 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
1279         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
1280         and the derived type are of the same kind.
1281         (Expand_Call): Generate type conversions for actuals of
1282         record or array types when the parent and the derived types differ in
1283         size and/or packed status.
1285 2008-05-20  Javier Miranda  <miranda@adacore.com>
1286             Ed Schonberg  <schonberg@adacore.com>
1288         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
1289         generating dispatch tables of locally defined tagged types statically.
1290         Remove implicit if-statement that is no longer required.
1291         (Expand_Dispatching_Call): If this is a call to an instance of the
1292         generic dispatching constructor, the type of the first argument may be
1293         a subtype of Tag, so always use the base type to recognize this case.
1295 2008-05-20  Thomas Quinot  <quinot@adacore.com>
1297         * exp_dist.adb
1298         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
1299         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
1300         assigning NULL into the result, to avoid a spurious warning.
1301         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
1302         is not frozen.
1303         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
1304         type.
1305         (Build_From_Any_Function, Build_To_Any_Function,
1306         Build_TypeCode_Function): For a type that has user-specified stream
1307         attributes, use an opaque sequence of octets as the representation.
1309 2008-05-20  Kevin Pouget  <pouget@adacore.com>
1311         * exp_smem.ads, exp_smem.adb: Construction of access and assign
1312         routines has been replaced by an instantiation of
1313         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
1314         shared variable declaration.
1315         Calls to access and assign routines have been replaced by calls to
1316         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
1317         instantiated package.
1318         
1319         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
1320         It identifies the new generic package added in s-shasto.
1322         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
1323         is instantiated for each shared passive variable. It provides
1324         supporting procedures called upon each read or write access by the
1325         expanded code.
1327         * sem_attr.adb:
1328         For this runtime unit (always compiled in GNAT mode), we allow
1329         stream attributes references for limited types for the case where
1330         shared passive objects are implemented using stream attributes,
1331         which is the default in GNAT's persistent storage implementation.
1333 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1335         * freeze.adb
1336         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
1337         convention from its base type, do not set the type to that of integer,
1338         because it may inherit a size clause.
1339         Warn on a size clause with a size different
1340         from that of Integer, if the type has convention C.
1342 2008-05-20  Vincent Celier  <celier@adacore.com>
1344         * gnatname.adb
1345         (Scan_Args): Rewrite to take into account new switch --and to separate
1346         arguments into sections.
1347         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
1348         section, then Finalize.
1350 2008-05-20  Tristan Gingold  <gingold@adacore.com>
1352         * init.c: Enable stack probing on ppc-linux.
1354         * tracebak.c: Add symbolic traceback for ppc-linux.
1356         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
1358 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
1360         * Makefile.in
1361         (common-tools): New rule, to avoid parallel build failure on gnat tools.
1362         Reenable parallel builds on this Makefile.
1364         * Make-lang.in: Update dependencies.
1366 2008-05-20  Robert Dewar  <dewar@adacore.com>
1368         * opt.ads (Treat_Restrictions_As_Warnings): New switch
1370         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
1371         Treat_Restrictions_As_Warnings.
1373         * switch-c.adb: Recognize new switch -gnatr
1375         * usage.adb: Add line for -gnatr
1377 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
1379         * par-ch3.adb
1380         (P_Access_Definition): Change the error message when parsing "access
1381         all" in Ada 95 mode. The message no longer forces the user to recompile
1382         in 05 mode only to discover that anonymous access types are not allowed
1383         to have "all".
1385 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
1387         * par-ch9.adb
1388         (P_Protected): Update the error message on missing "-gnat05" switch when
1389         using interfaces in conjunction with protected types. Remove the
1390         incorrect error message associated with the presence of "private" after
1391         a "with".
1393 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1395         * sem_aggr.adb: Update comments.
1396         Improve previous change for PR ada/17985
1398 2008-05-20  Thomas Quinot  <quinot@adacore.com>
1400         * sem_cat.adb
1401         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
1402         the visible part of the spec of a remote types unit.
1403         (Validate_Remote_Access_Object_Type_Declaration):
1404         New local subprogram Is_Valid_Remote_Object_Type, replaces
1405         Is_Recursively_Limited_Private.
1406         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
1407         non-controlling formals (and the return type, even though this is not
1408         explicit in the standard) must support external streaming.
1409         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
1410         as above for of RAS types and RCI subprograms. (The return type is not
1411         checked yet).
1412         Update comments related to RACWs designating limited interfaces per
1413         ARG ruling on AI05-060.
1415         * sem_util.ads, sem_util.adb
1416         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
1417         Is_Remote_Call_Interface to identify RACW types in a stable and
1418         consistent way. We used to rely in this predicate on the privateness of
1419         the designated type and its ancestors, but depending on the currently
1420         visible private parts, this caused false negatives. We now uniformly
1421         rely on checks made at the point where the RACW type is declared.
1422         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
1424 2008-05-20  Javier Miranda  <miranda@adacore.com>
1425             Ed Schonberg  <schonberg@adacore.com>
1426             Hristian Kirtchev  <kirtchev@adacore.com>
1428         * sem_ch3.adb
1429         (Analyze_Object_Declaration): Fix over-conservative condition
1430         restricting use of predefined assignment with tagged types that have
1431         convention CPP.
1432         (Analyze_Object_Declaration): Relax the check regarding deferred
1433         constants declared in scopes other than packages since they can be
1434         completed with pragma Import.
1435         Add missing escaping of all-caps word 'CPP' in error messages.
1436         (Build_Discriminated_Subtype): Do not inherit representation clauses
1437         from parent type if subtype already carries them, because they are
1438         inherited earlier during derivation and already include those that may
1439         come from a partial view.
1441         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
1442         Check the declarations of a subprogram body for proper deferred
1443         constant completion.
1445         * sem_ch7.ads, sem_ch7.adb
1446         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
1448 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1449             Thomas Quinot  <quinot@adacore.com>
1451         * sem_ch4.adb
1452         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
1453         F is a parameterless function that returns an array, and S is a subtype
1454         mark.
1455         (Analyze_Call): Insert dereference when the prefix is a parameterless
1456         function that returns an access to subprogram and the call has
1457         parameters.
1458         Reject a non-overloaded call whose name resolves to denote
1459         a primitive operation of the stub type generated to support a remote
1460         access-to-class-wide type.
1462 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1464         * sem_ch8.adb
1465         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
1466         when there is a use clause for the same entity in the context.
1467         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
1468         created for a stream attribute of an abstract type or interface type.
1470 2008-05-20  Thomas Quinot  <quinot@adacore.com>
1472         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
1473         subprogram.
1475         * sem_type.adb
1476         (Add_One_Interp): Ignore any interpretation that is a primitive
1477         operation of an RACW stub type (these primitives are only executed
1478         through dispatching, never through static calls).
1479         (Collect_Interps): When only one interpretation has been found, set N's
1480         Entity and Etype to that interpretation, otherwise Entity and Etype may
1481         still refer to an interpretation that was ignored by Add_One_Interp,
1482         in which case would end up with being marked as not overloaded but with
1483         an Entity attribute not pointing to its (unique) correct interpretation.
1485 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1487         * sem_eval.adb
1488         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
1489         denotes the whole array of its prefix.
1491 2008-05-20  Robert Dewar  <dewar@adacore.com>
1493         * sem_res.adb (Resolve_Op_Not): Warn on double negation
1495 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1497         * sprint.adb
1498         (Print_Itype): Do not modify the sloc of the component type of a
1499         (packed) array itype, because it is an unrelated type whose source
1500         location is independent of the point of creation of the itype itself.
1502 2008-05-20  Thomas Quinot  <quinot@adacore.com>
1504         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
1505         Append.
1507 2008-05-20  Robert Dewar  <dewar@adacore.com>
1508             Vincent Celier  <celier@adacore.com>
1510         * vms_data.ads: Add entry for -gnatr
1511         Put GNAT SYNC section in proper alpha order
1512         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
1514         * gnat_ugn.texi: Add documentation for new gnatname switch --and
1515         Update the style checks section
1516         Add documentation of -gnatr
1517         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
1518         subsection the explanation how compiler checks should be disabled for
1519         gnatcheck.
1520         Update the list of Ada 95 reserved words used by in the project language
1521         Add documentation for project qualifiers.
1522         Document that abstract projects may be extended by different projects in
1523         the same project tree.
1524         Add documentation for gnatmake switch -d
1526         * ug_words: Add -gnatyy VMS equivalence string.
1527         Add entry for -gnatr
1529 2008-05-20  Bob Duff  <duff@adacore.com>
1531         * a-rttiev.adb
1532         (Set_Handler): Remove code from both of these that implements
1533         RM-D.15(15/2), because it causes a race condition and potential
1534         deadlock.
1535         (Process_Queued_Events): Add comment explaining "exception when others
1536         => null". Add clarifying ".all", even though implicit .all is legal
1537         here.
1539 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
1541         * s-winext.ads: Replace representation clause by pragma Pack. Gives
1542         equivalent representation, but has the advantage of allowing
1543         compilation of this file under 64 bits platforms.
1545         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
1547         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
1549         * adaint.c: 
1550         Don't define dummy implementation of convert_addresses on ppc-linux.
1552 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1554         * exp_ch7.adb
1555         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
1556         if expression is aggregate component.
1558 2008-05-20  Robert Dewar  <dewar@adacore.com>
1560         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
1561         sem_ch12.adb: Update comments. Minor reformatting.
1563         * exp_ch2.adb: Typo
1565         * s-unstyp.ads: Fixed some typos in comments.
1567 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
1569         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
1570         type/constant.
1572         * g-socthi-vxworks.ads: Update to latest socket changes.
1574         * a-caldel-vms.adb: Resync with a-caldel spec.
1576         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
1577         Update comments.
1579 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
1581         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
1582         for dummy types pointed to by the converted pointer types.
1584 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
1586         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
1587         of records and unions.
1588         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
1590 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
1591             Robert Dewar <dewar@adacore.com>
1593         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
1594         restrictions to the prefix of 'Old.
1595         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
1596         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
1597         variables.
1599 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
1601         PR ada/24880
1602         PR ada/26635
1603         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
1604         expression to an integral type with lower precision, use NOP_EXPR
1605         directly in a couple of special cases.
1607 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
1608             Ed Schonberg <schonberg@adacore.com>
1610         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
1611         constraint expressions.
1613 2008-05-12  Tomas Bily  <tbily@suse.cz>
1615         * utils2.c (known_alignment, contains_save_expr_p)
1616         (gnat_mark_addressable): Use CASE_CONVERT.
1617         * decl.c (annotate_value): Likewise.
1618         * trans.c (maybe_stabilize_reference): Likewise.
1619         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
1620         * utils.c (rest_of_record_type_compilation): Likewise.
1621         * trans.c (protect_multiple_eval, Attribute_to_gnu)
1622         (protect_multiple_eval): Likewise.
1624 2008-05-08  Andreas Schwab  <schwab@suse.de>
1626         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
1627         DECL_IS_PURE to DECL_PURE_P.
1629 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1631         * decl.c (maybe_pad_type): Add ??? comment.
1633 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1635         * decl.c (components_to_record): Zero the alignment of the qualified
1636         union built for the variant part upon creating it.
1638 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1640         * decl.c (maybe_pad_type): Try to get a form of the type with integral
1641         mode even if the alignment is not a factor of the original size.  But
1642         make sure to create the inner field with the original size.  Reorder.
1643         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
1644         record as always addressable.
1645         * utils.c (convert): Deal specially with conversions between original
1646         and packable versions of a record type.
1647         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
1648         recognizing an assignment between padded objects.
1650 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
1652         * decl.c (make_packable_type): Resize the last component to its RM size
1653         only if it is of an aggregate type.
1654         * trans.c (call_to_gnu): Fix nit in comment.
1655         (gnat_to_gnu): Likewise.
1657 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
1659         * Makefile.in: Adapt sh4-linux target.
1661 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
1663         PR ada/35792
1664         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
1665         tagged type by an untagged protected or task type.
1667 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
1668             Tristan Gingold  <gingold@adacore.com>
1670         PR ada/36007
1671         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
1672         of aliased objects with an unconstrained nominal subtype.
1673         Cap the promotion to the effective alignment of the word mode.
1675 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1677         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
1678         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
1679         Use '&&' instead of ';'.
1681 2008-04-24  Olivier Hainque  <hainque@adacore.com>
1683         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
1684         doesn't require signed arithmetic anymore.
1686 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
1688         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
1689         (call_to_gnu): Don't set TREE_INVARIANT.
1690         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
1692 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
1694         * s-osinte-rtems.adb: Add sigalstack function.
1695         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
1696         function. Add Alternate_Stack and Alternate_Stack_Size.
1697         Add missing process_shared field to pthread_condattr_t
1698         and change ss_low_priority to int from timespec.
1700 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
1702         * i-forbla.adb: Link against -llapack and -lblas by default
1703         instead of the private -lgnalasup.
1705 2008-04-21  Olivier Hainque  <hainque@adacore.com>
1707         Access to most C builtins from Ada
1708         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
1709         (handle_pure_attribute, handle_novops_attribute,
1710         handle_nonnull_attribute, handle_sentinel_attribute,
1711         handle_noreturn_attribute, handle_malloc_attribute,
1712         handle_type_generic_attribute): New attribute handlers, from C fe.
1713         (gnat_internal_attribute_table): Map the new handlers.
1714         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
1715         (init_gigi_decls): ... here.
1716         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
1717         Move to a section dedicated to builtins processing.
1718         (build_void_list_node, builtin_type_for_size): New functions.
1719         (def_fn_type, get_nonnull_operand): Likewise.
1720         (install_builtin_elementary_type, install_builtin_function_types,
1721         install_builtin_attributes): Likewise.
1722         (fake_attribute_handler): Fake handler for attributes we don't
1723         support in Ada.
1724         (def_builtin_1): New function, worker for DEF_BUILTIN.
1725         (install_builtin_functions): New function.
1726         (gnat_install_builtins): Move to the builtins processing section.
1727         Now calling the newly introduced installers.
1729 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
1731         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
1732         constant objects, but not exceptions.
1733         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
1734         compatibility test.
1735         * utils.c (create_var_decl_1): Likewise.
1736         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
1737         the type when copying to padded object and the source is a constructor.
1739 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1741         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
1742         alignment, reset it to zero if it would end up not being greater
1743         than that of the type.
1745 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1747         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
1748         the padded type has a variable size.
1750 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1752         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
1753         target pointer mechanism as soon as the size is not constant.
1755 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1757         * gigi.h (create_var_decl_1): Declare.
1758         (create_var_decl): Turn into a macro invoking create_var_decl_1.
1759         (create_true_var_decl): Likewise.
1760         * utils.c (create_var_decl_1): Make global and reorder parameters.
1761         (create_var_decl): Delete.
1762         (create_true_var_decl): Likewise.
1764 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
1766         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
1767         objects by default.
1768         * fe.h (Debug_Flag_Dot_A): Delete.
1769         * debug.adb (-gnatd.a): Update documentation.
1771 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
1773         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
1774         "not null" parameter.
1776 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
1778         * g-socket.adb: Add a message "IPv6 not supported" to the
1779         Socket_Error exception.
1781 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
1783         PR ada/29015
1784         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
1785         the type is known instead of the underlying type.
1787 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
1789         PR ada/22387
1790         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1791         procedure for a derived type retrieve the discriminant values from
1792         the parent using the corresponding discriminant.
1794 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
1795             Gary Dismukes  <dismukes@adacore.com>
1797         PR ada/28733
1798         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
1799         which is not an entity (and hence not a package).
1800         (End_Use_Package): Ditto.
1802 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
1804         PR ada/16086
1805         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
1806         protected operation that matches the signature, not only an entry, a
1807         regular subprogram or a literal.
1809 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1811         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
1812         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
1813         if a size or alignment is specified.  Do not take into account
1814         alignment promotions for the computation of the object's size.
1815         <type>: Call maybe_pad_type only if a size or alignment is specified.
1816         (maybe_pad_type): Really reuse the RM_Size of the original type if
1817         requested.
1818         * trans.c (Attribute_to_gnu): Fix a couple of nits.
1819         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
1820         statements.  Use the padded view of the type when copying between
1821         padded objects of the same underlying type.
1823 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1825         * vms_data.ads: Fix typo in constant.
1826         * gen-soccon.c: Fix typo in error string.
1827         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
1828         Fix typos.
1829         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
1830         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
1831         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
1832         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
1833         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
1834         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
1835         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
1836         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
1837         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
1838         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
1839         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
1840         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
1841         sinfo.ads: Fix typos in comments.
1843 2008-04-14  Robert Dewar  <dewar@adacore.com>
1845         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
1846         to every non-object and change error message.
1848 2008-04-14  Robert Dewar  <dewar@adacore.com>
1850         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
1851         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
1852         directly.
1854 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
1856         PR ada/18680
1857         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
1858         apply pragma Linker_Section on type.
1860 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
1862         PR ada/16098
1863         * sem_prag.adb (Error_Pragma_Ref): New.
1864         (Process_Convention): Specialized message for non-local
1865         subprogram renaming. Detect the problem in homonyms as well.
1867 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
1869         PR ada/15915
1870         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
1871         * sem_ch12.adb (Instantiate_Object): Use it.
1872         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
1873         storage pool denotes a variable as per RM 13.11(15).
1875 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
1877         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
1878         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
1880 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
1882         PR ada/20822
1883         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
1884         line endings even on non-Unix platforms.
1886 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
1888         PR ada/35050
1889         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
1890         renaming information.
1892 2008-04-13  Samuel Tardieu  <sam@rfc1149.net> 
1894         PR ada/17985
1895         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
1896         itself.
1898 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1900         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
1901         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
1902         snames.ads, sprint.adb, stand.ads, stringt.ads,
1903         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
1904         switch.ads, sysdep.c, table.adb, table.ads,
1905         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
1906         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
1907         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
1908         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
1909         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
1910         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
1911         Fix comment typos.
1913         * sem_ch10.adb, sem_ch10.ads,
1914         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
1915         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
1916         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
1917         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
1918         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
1919         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
1920         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
1921         sem_warn.ads: Fix comment typos.
1923         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
1924         s-soflin.ads, s-stalib.ads, s-stausa.adb,
1925         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
1926         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
1927         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
1928         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
1929         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
1930         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
1931         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
1932         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
1933         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
1934         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
1935         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
1936         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
1937         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
1938         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
1939         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
1940         sem_cat.adb, sem_cat.ads: Fix comment typos.
1942 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
1944         PR ada/35825
1945         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
1947 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
1949         * s-linux-hppa.ads: Fix syntax errors.
1951 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1953         * gnat_ugn.texi: Fix typos.
1954         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
1955         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
1956         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
1957         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
1958         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
1959         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
1960         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
1961         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
1962         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
1963         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
1964         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
1965         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
1966         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
1967         s-osinte-darwin.ads, s-osinte-freebsd.ads,
1968         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
1969         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
1970         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
1971         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
1972         s-parame-hpux.ads, s-parame-vms-alpha.ads,
1973         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
1974         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
1975         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
1976         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
1977         s-rident.ads: Fix comment typos.
1979 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
1981         PR ada/28305
1982         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
1983         environment if generic instance is a top-level one.
1985 2008-04-09  Doug Rupp  <rupp@adacore.com>
1987         * decl.c (validate_size): Set minimum size for fat pointers same as
1988         access types. Code clean ups.
1990         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
1991         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
1993         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
1995         * s-crtl.ads (malloc32) New function, alias for malloc
1996         (realloc32) New function, alias for realloc
1998         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
2000         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
2001         allocator size is 32 and default pointer size is 64.
2002         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
2003         lhs type if smaller, whatever the modes.
2005         * gigi.h (malloc32_decl): New macro definition
2007         * utils.c (init_gigi_decls): New malloc32_decl
2008         Various code clean ups.
2010         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
2011         Task_Address vice System.Address.
2013         * s-taspri-vms.ads: Import System.Aux_DEC
2014         (Task_Address): New subtype of System.Aux_DEC.Short_Address
2015         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
2017         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
2018         Task_Address vice System.Address.
2020         * s-inmaop-vms.adb: Import System.Task_Primitives
2021         (To_Address): Unchecked convert to Task_Address vice System.Address
2023         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
2024         expires now.
2025         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
2026         (To_Address) Unchecked convert to Task_Address vice System.Address
2028         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
2030         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
2032 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2034         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
2035         (fdesc_type_node): Define.
2036         (null_fdesc_node): Likewise.
2037         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
2038         uses descriptors for vtables and the type comes from a dispatch table,
2039         return the descriptor type.
2040         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
2041         uses descriptors for vtables and the type comes from a dispatch table,
2042         build a descriptor in the static case and copy the existing one in the
2043         non-static case.
2044         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
2045         the type is a pointer-to-subprogram coming from a dispatch table,
2046         return the null descriptor.
2047         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
2048         vtables, the source type is the descriptor type and the target type
2049         is a pointer type, first build the pointer.
2050         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
2051         build the descriptor type and the null descriptor.
2053 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2055         * decl.c (prepend_attributes): Fix typo.
2056         * trans.c (Pragma_to_gnu): Likewise.
2057         * utils.c (gnat_genericize): Likewise.
2059 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2060             Richard Kenner  <kenner@adacore.com>
2062         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
2063         * decl.c (gnat_to_gnu_entity): Adjust for above change.
2064         <E_Record_Type>: Try to get a better form of the component for
2065         packing, even if it has an integral mode.
2066         <E_Record_Subtype>: Likewise.
2067         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
2068         exception suppressing the final conversion between record types.
2070 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2072         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
2073         alignment for space, promote the alignment of non-scalar variables with
2074         no size and alignment.
2075         * gigi.h (gnat_types_compatible_p): Declare.
2076         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
2077         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
2078         * utils.c (gnat_types_compatible_p) : New predicate.
2079         (convert): Use it throughout to test for cases where a mere view
2080         conversion is sufficient.
2081         * utils2.c (build_binary_op): Minor tweaks.
2082         (build_unary_op): Likewise.
2084 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2086         * decl.c (adjust_packed): Expand comment.
2088 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
2090         * s-tasuti.ads: Use Task_Address instead of System.Address.
2092         * makeutl.adb (Path_Or_File_Name): New function
2094         * nlists.ads, itypes.ads: Update comments.
2096         * s-crtl.ads (malloc32, realloc32): New functions.
2098         * s-auxdec.ads (Short_Address_Size): New constant.
2100         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
2102         * s-ststop.ads, s-ststop.adb: New file.
2104         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
2105         Minor reformatting.
2107 2008-04-08  Pascal Obry  <obry@adacore.com>
2109         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
2110         (Stop_Bits_Number): New type.
2111         (Parity_Check): Likewise.
2112         (Set): Add parameter to set the number of stop bits and
2113         the parity. Parameter timeout is now a duration instead
2114         of a plain integer.
2116         * g-sercom-linux.adb:
2117         Implement the stop bits and parity support for GNU/Linux.
2118         Fix handling of timeout, it must be given in tenth of seconds.
2119         
2120         * g-sercom-mingw.adb:
2121         Implement the stop bits and parity support for Windows.
2122         Use new s-win32.ads unit instead of declaring Win32 services
2123         directly into this body.
2124         Update handling of timeout as now a duration.
2126         * s-win32.ads, s-winext.ads: New files.
2128 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2129             Arnaud Charlet  <charlet@adacore.com>
2131         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
2133         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
2134         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
2136         * s-osinte-lynxos-3.ads,
2137         (Alternate_Stack): Remove when not needed. Simplify declaration
2138         otherwise.
2139         (Alternate_Stack_Size): New constant.
2141         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
2142         'Unrestricted_Access.
2144         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
2145         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
2146         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
2147         s-osinte-solaris.ads, s-osinte-vms.ads
2148         (SA_ONSTACK): New constant.
2149         (stack_t): New record type.
2150         (sigaltstack): New imported function.
2151         (Alternate_Stack): New imported variable.
2152         (Alternate_Stack_Size): New constant.
2154         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
2156         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
2157         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
2158         s-taspri-vms.ads (Task_Address): New subtype of System.Address
2159         (Task_Address_Size): New constant size of System.Address
2160         (Alternate_Stack_Size): New constant.
2162         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
2163         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
2164         Establish the alternate stack if the platform makes use of n alternate
2165         signal stack for stack overflows.
2166         (Create_Task): Take into account the alternate stack in the stack size.
2167         (Initialize): Save the address of the alternate stack into the ATCB for
2168         the environment task.
2169         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
2171         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
2173         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
2175         * s-intman-posix.adb: 
2176         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
2177         alternate signal stack for stack overflows.
2179         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
2180         x86-64, adjust the saved value of the stack pointer if the signal was
2181         raised by a stack checking probe.
2182         (HP-UX section): Use global __gnat_alternate_stack as signal handler
2183         stack and only for SIGSEGV.
2184         (Linux section): Likewise on x86 and x86-64.
2185         [VxWorks section]
2186         (__gnat_map_signal): Now static.
2187         (__gnat_error_handler): Not static any more.
2188         (__gnat_adjust_context_for_raise): New function. Signal context
2189         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
2190         propagation circuitry.
2191         (__gnat_error_handler): Second argument of a sigaction handler is a
2192         pointer, not an int, and is unused.
2193         Adjust signal context before mapping to exception.
2194         Install signal handlers for LynxOS case.
2196         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
2197         (Task_Id): Set size to Task_Address_Size
2198         (To_Task_id): Unchecked convert from Task_Address vice System.Address
2199         (To_Address): Unchecked convert to Task_Address vice System.Address
2201         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
2202         address into the ATCB if the platform makes use of an alternate signal
2203         stack for stack overflows.
2204         (Free_Task): Add call to Finalize_Attributes_Link.
2205         Add argument Relative_Deadline to pass the value specified for
2206         the task. This is not yet used for any target.
2208         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
2209         the value specified for the task.
2211 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
2213         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
2214         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
2215         s-vxwext-rtp.adb): New files.
2217         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
2218         Minor updates to accomodate changes above.
2220 2008-04-08  Pascal Obry  <obry@adacore.com>
2222         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
2223         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
2224         Use new s-win32.ads unit instead of declaration
2225         from s-osinte-mingw.ads.
2226         
2227         * s-osinte-mingw.ads:
2228         Move all non tasking based interface to s-win32.ads.
2229         
2230         * s-osprim-mingw.adb:
2231         Remove duplicated declarations and use s-win32.ads
2232         unit instead.
2234 2008-04-08  Vincent Celier  <celier@adacore.com>
2235             Arnaud Charlet  <charlet@adacore.com>
2237         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
2238         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
2239         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
2240         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2241         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
2243         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
2244         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
2245         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
2246         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
2247         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
2248         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
2249         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
2250         mlib-tgt-specific-mingw.adb: New names.
2252         * Makefile.in: 
2253         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
2254         Get rid of gnatbl.
2255         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
2256         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
2257         Minor updates for VMS
2259         * gnatbl.c: Removed.
2261 2008-04-08  Thomas Quinot  <quinot@adacore.com>
2263         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
2264         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
2265         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
2266         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
2267         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
2268         ASCII.NUL throughout.
2270 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
2271             Matthew Heaney  <heaney@adacore.com>
2273         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
2274         renaming.
2276         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,  
2277         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
2278         to convention for non-RM specs.
2279         Add descriptive header, and documented each operation
2280         document each operation
2282 2008-04-08  Robert Dewar  <dewar@adacore.com>
2283             Bob Duff  <duff@adacore.com>
2284             Gary Dismukes  <dismukes@adacore.com>
2285             Ed Schonberg  <schonberg@adacore.com>
2287         * alloc.ads: Add entries for Obsolescent_Warnings table
2289         * einfo.ads, einfo.adb: Minor reformatting.
2290         (Is_Discriminal): New subprogram.
2291         (Is_Prival): New subprogram.
2292         (Is_Protected_Component): New subprogram.
2293         (Is_Protected_Private): Removed.
2294         (Object_Ref, Set_Object_Ref): Removed.
2295         (Prival, Set_Prival): Change assertion.
2296         (Privals_Chain, Set_Privals_Chain): Removed.
2297         (Prival_Link, Set_Prival_Link): New subprogram.
2298         (Protected_Operation, Set_Protected_Operation): Removed.
2299         (Protection_Object, Set_Protection_Object): New subprogram.
2300         (Write_Field17_Name): Remove case for Object_Ref.
2301         (Write_Field20_Name): Add case for Prival_Link.
2302         (Write_Field22_Name): Remove case for Protected_Operation,
2303         Privals_Chain.
2304         Add case for Protection_Object.
2305         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
2306         so clients
2307         (Overlays_Constant): New flag
2308         (Is_Constant_Object): New predicate
2309         (Is_Standard_Character_Type): New predicate
2310         (Optimize_Alignment_Space): New flag
2311         (Optimize_Alignment_Time): New flag
2312         (Has_Postconditions): New flag
2313         (Obsolescent_Warrning): Field removed
2314         (Spec_PPC_List): New field
2315         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
2316         subprograms to get and set the relative deadline associated to a task.
2318         * exp_attr.adb (May_Be_External_Call): Account for the case where the
2319         Access attribute is part of a named parameter association.
2320         (Expand_Access_To_Protected_Op): Test for the attribute occurring
2321         within an init proc and use that directly as the scope rather than
2322         traversing up to the protected operation's enclosing scope. Only apply
2323         assertion on Is_Open_Scopes in the case the scope traversal is done.
2324         For the init proc case use the address of the first formal (_init) as
2325         the protected object reference.
2326         Implement Invalid_Value attribute
2327         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
2328         contents of the dispatch table there is no need to duplicate the
2329         itypes associated with record types (i.e. the implicit full view
2330         of private types).
2331         Implement Enum_Val attribute
2332         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
2333         within _Postconditions procedure
2334         (Expand_N_Attribute_Reference, case Result): Implement new attribute
2336         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
2337         a return statement calls a function that is not available in
2338         configurable runtime.
2339         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
2340         (Expand_Non_Function_Return): Generate call to _Postconditions proc
2341         (Expand_Simple_Function_Return): Ditto
2343         * frontend.adb: Add call to Sem_Aux.Initialize
2345         * sem_aux.ads, sem_aux.adb: New file.
2347         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
2348         Add new Pragma_Relative_Deadline.
2349         Add support for pragmas Check and Check_Policy
2351         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
2352         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
2353         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
2354         missing check because they are not allowed in CPP tagged types.
2355         Add Sure parameter to Note_Possible_Modification calls
2356         Add implementation of Invalid_Value attribute
2357         Implement new attribute Has_Tagged_Values
2358         Implement Enum_Val attribute
2359         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
2360         generated attributes.
2361         (Analyze_Attribute, case Result): If prefix of the attribute is
2362         overloaded, it always resolves to the enclosing function.
2363         (Analyze_Attribute, case Result): Properly deal with analysis when
2364         Postconditions are not active.
2365         (Resolve_Attribute, case Result): Properly deal with appearence during
2366         preanalysis in spec.
2367         Add processing for attribute Result
2369         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
2370         for operators.
2371         (Analyze_Subprogram_Body): Install private_with_clauses when the body
2372         acts as a spec.
2373         (Check_Inline_Pragma): recognize an inline pragma that appears within
2374         the subprogram body to which it applies.
2375         (Analyze_Function_Return): Check that type of the expression of a return
2376         statement in a function with a class-wide result is not declared at a
2377         deeper level than the function.
2378         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
2379         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
2380         user- defined operators.
2381         (Install_Formals): Moved to spec to allow use from Sem_Prag for
2382         analysis of precondition/postcondition pragmas.
2383         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
2384         Last_Formal, along with lots of comments on what this is about
2385         (Analyze_Subprogram_Body): Fix case where we move entities from the
2386         spec to the body when there are no body entities (now possible with
2387         precondition and postcondition pragmas).
2388         (Process_PPCs): New procedure
2389         (Analyze_Subprogram_Body): Add call to Process_PPCs
2391         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
2392         clause.
2393         (Pop_Scope): Restore Check_Policy_List on scope exit
2394         (Push_Scope): Save Check_Policy_List on scope entry
2395         Change name In_Default_Expression      => In_Spec_Expression
2396         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2397         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
2398         (Analyze_Object_Renaming): Allow 'Reference as object
2399         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
2400         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
2401         of restriction identifier.
2402         Add Sure parameter to Note_Possible_Modication calls
2404         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
2405         Don't check for primitive operations when calling Rep_Item_Too_Late.
2406         (Process_Import_Or_Interface): Do not place flag on formal
2407         subprograms.
2408         (Analyze_Pragma, case Export): If the entity is a deferred constant,
2409         propagate information to full view, which is the one elaborated by the
2410         back-end.
2411         (Make_Inline): the pragma is effective if it applies to an internally
2412         generated subprogram declaration for a body that carries the pragma.
2413         (Analyze_Pragma, case Optimize_Alignment): Set new flag
2414         Optimize_Alignment_Local.
2415         (Analyze_PPC_In_Decl_Part): New procedure
2416         (Get_Pragma_Arg): Moved to outer level
2417         (Check_Precondition_Postcondition): Change to allow new visibility
2418         rules for package spec
2419         (Analyze_Pragma, case Check_Policy): Change placement rules to be
2420         same as pragma Suppress/Unsuppress.
2421         Change name In_Default_Expression      => In_Spec_Expression
2422         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2423         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
2424         (Check_Precondition_Postcondition): Do proper visibility preanalysis
2425         for the case of these pragmas appearing in the spec.
2426         (Check_Enabled): New function
2427         (Initialize): New procedure
2428         (Tree_Read): New procedure
2429         (Tree_Write): New procedure
2430         (Check_Precondition_Postcondition): New procedure
2431         Implement pragmas Check and Check_Policy
2432         Merge Assert processing with Check
2434         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
2435         New warning flag -gnatw.e
2437         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
2438         returning whether a task (or main procedure) has a pragma
2439         Relative_Deadline.
2440         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
2441         (or main procedure) has a pragma Relative_Deadline.
2442         Add Next_Pragma field to N_Pragma node
2443         (PPC_Enabled): New flag
2444         (Next_Pragma): Now used for Pre/Postcondition processing
2446         * snames.h, snames.ads, snames.adb: New standard name
2447         Inherit_Source_Path
2448         Add entry for 'Invalid_Value attribute
2449         Add entry for new attribute Has_Tagged_Values
2450         Add entry for Enum_Val attribute
2451         Add new standard names Aggregate, Configuration and Library.
2452         Add _Postconditions
2453         Add _Result
2454         Add Pragma_Precondition
2455         Add Pragma_Postcondition
2456         Add Attribute_Result
2457         New standard name Archive_Builder_Append_Option
2458         (Preset_Names): Add _relative_deadline and relative_deadline definitions
2459         There was also a missing non_preemptive_within_priorities.
2460         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
2461         Relative_Deadline.
2462         Add support for pragmas Check and Check_Policy
2464         * tree_gen.adb: Call Sem_Aux.Tree_Write
2466         * tree_in.adb: Call Sem_Aux.Tree_Read
2468         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
2469         sequence
2471         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
2472         sequence
2474         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
2475         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
2476         Relative_Deadline.
2477         (Expand_Pragma_Check): New procedure
2479         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
2480         buffer.
2482         * sinfo.adb (PPC_Enabled): New flag
2484 2008-04-08  Robert Dewar  <dewar@adacore.com>
2485             Gary Dismukes  <dismukes@adacore.com>
2486             Javier Miranda  <miranda@adacore.com>
2487             Ed Schonberg  <schonberg@adacore.com>
2489         * fe.h: Remove global Optimize_Alignment flag, no longer used
2491         * layout.adb: Test Optimize_Alignment flags rather than global switch
2493         * lib.ads, lib.adb: New OA_Setting field in library record
2495         * lib-load.adb: New OA_Setting field in library record
2497         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
2498         units mentioned in limited_with_ clauses in the ali file, with an
2499         'Y' marker.
2500         New Ox fields in U line
2502         * opt.adb: New flag Optimize_Alignment_Local
2503         (Check_Policy_List[_Config]): New flags
2505         * opt.ads (Invalid_Value_Used): New flag
2506         New switch Optimize_Alignment_Local
2507         (Warn_On_Parameter_Order): New flag
2508         (Check_Policy_List[_Config]): New flags
2510         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
2511         limited_with clauses.
2512         New data structures for Optimize_Alignment
2514         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
2515         New procedure
2516         (Check_Consistent_Optimize_Alignment): Rework for new structure
2517         (Check_Consistent_Restrictions): Fix incorrect error message
2519         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
2520         created class-wide type (to the Parent field of the specific type).
2521         (Install_Siblings): Handle properly private_with_clauses on subprogram
2522         bodies and on generic units.
2523         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
2524         illegal limited_with_clause that names a non-existent package.
2525         (Check_Body_Required): Determine whether a unit named a limited_with
2526         clause needs a body.
2527         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
2528         Capture Optimize_Alignment settings to set new OA_Setting field in
2529         library record.
2530         (Build_Limited_Views): Include task and protected type declarations.
2532         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
2533         case of a possible constant redeclaration where the current object is
2534         an entry index constant.
2535         (Analyze_Object_Declaration): Generate an error in case of CPP
2536         class-wide object initialization.
2537         (Analyze_Object_Declaration): Add extra information on warnings for
2538         declaration of unconstrained objects.
2539         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
2540         conflicts with the setting of Stored_Constraint in the case where the
2541         access type entity has already been created as an E_Incomplete_Type due
2542         to a limited with clause.
2543         Use new Is_Standard_Character_Type predicate
2544         (Analyze_Object_Declaration): Apply access_constant check only after
2545         expression has been resolved, given that it may be overloaded with
2546         several access types.
2547         (Constant_Redeclaration): Additional legality checks for deferred
2548         constant declarations tha involve anonymous access types and/or null
2549         exclusion indicators.
2550         (Analyze_Type_Declaration): Set Optimize_Alignment flags
2551         (Analyze_Subtype_Declaration): Ditto
2552         (Analyze_Object_Declaration): Ditto
2553         (Analyze_Object_Declaration): Don't count tasks in generics
2554         Change name In_Default_Expression      => In_Spec_Expression
2555         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2556         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
2557         (Process_Discriminants): Additional check for illegal use of default
2558         expressions in access discriminant specifications in a type that is not
2559         explicitly limited.
2560         (Check_Abstract_Overriding): If an inherited function dispaches on an
2561         access result, it must be overridden, even if the type is a null
2562         extension.
2563         (Derive_Subprogram): The formals of the derived subprogram have the
2564         names and defaults of the parent subprogram, even if the type is
2565         obtained from the actual subprogram.
2566         (Derive_Subprogram): In the presence of interfaces, a formal of an
2567         inherited operation has the derived type not only if it descends from
2568         the type of the formal of the parent operation, but also if it
2569         implements it. This is relevant for the renamings created for the
2570         primitive operations of the actual for a formal derived type.
2571         (Is_Progenitor): New predicate, to determine whether the type of a
2572         formal in the parent operation must be replaced by the derived type.
2574         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
2575         predicate recursive to handle components that have a user-defined
2576         Initialize procedure. Handle controlled derived types whose ancestor
2577         has a user-defined Initialize procedured.
2578         (Note_Possible_Modification): Add Sure parameter, generate warning if
2579         sure modification of constant
2580         Use new Is_Standard_Character_Type predicate
2581         (Find_Parameter_Type): when determining whether a protected operation
2582         implements an interface operation, retrieve the type of the formal from
2583         the entity when the formal is an access parameter or an
2584         anonymous-access-to-subprogram.
2585         Move Copy_Parameter_List to sem_util, for use when building stubbed
2586         subprogram bodies.
2587         (Has_Access_Values): Tagged types now return False
2588         (Within_HSS_Or_If): New procedure
2589         (Set_Optimize_Alignment_Flags): New procedure
2590         Change name In_Default_Expression      => In_Spec_Expression
2591         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2592         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
2594 2008-04-08  Tristan Gingold  <gingold@adacore.com>
2596         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
2598 2008-04-08  Tristan Gingold  <gingold@adacore.com>
2600 PR ada/10768
2602         * cuintp.c: Fix 16 bits issue for AVR.
2603         On AVR, integer is 16 bits, so it can't be used to do math with
2604         Base (=32768).
2605         So use long_integer instead.
2607 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
2609         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
2610         System.OS_Primitives.
2611         Change type of various constants, parameters and local variables from
2612         Time to representation type OS_Time.
2613         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
2614         Remove the declaration of constant Mili_F from several routines. New
2615         body for internal package Conversions_Operations.
2616         (Time_Of): Add default parameters for several formals.
2618         * a-caldel.adb: Minor reformatting
2620         * a-calend.ads, a-calend.adb: New body for internal package
2621         Conversions_Operations.
2622         (Time_Of): Add default parameters for several formals.
2624         * Makefile.rtl: Add a-ststop
2625         Add Ada.Calendar.Conversions to the list of runtime files.
2626         Add g-timsta
2628         * a-calcon.adb, a-calcon.ads: New files.
2630 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
2631             Tristan Gingold  <gingold@adacore.com>
2633         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
2634         (Install_Restricted_Handlers): New procedure
2635         which is a simplified version of Install_Handlers that does not store
2636         previously installed.
2638         * s-interr-vxworks.adb: Fix ACATS cxc3001
2639         On VxWorks interrupts can't be detached.
2640         (Install_Restricted_Handlers): New procedure.
2642         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
2643         procedure.
2645 2008-04-08  Olivier Hainque  <hainque@adacore.com>
2647         * s-intman-vxworks.ads, s-intman-vxworks.adb
2648         (Map_And_Raise_Exception): Remove. Was an import of only part of the
2649         required services already implemented elsewhere.
2650         (Notify_Exception): Delete body, import __gnat_error_handler instead.
2651         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
2652         argument passed to the handler, which we need for ZCX propagation
2653         purposes.
2655 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
2657         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
2659         * g-timsta.adb, g-timsta.ads: New files.
2661 2008-04-08  Robert Dewar  <dewar@adacore.com>
2663         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
2664         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
2665         (Raise_Exception_Always): Fix documentation accordingly
2667 2008-04-08  Robert Dewar  <dewar@adacore.com>
2669         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
2670         Stream_Convert)
2672         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
2673         FOnly
2675 2008-04-08  Javier Miranda  <miranda@adacore.com>
2676             Robert Dewar  <dewar@adacore.com>
2677             Ed Schonberg  <schonberg@adacore.com>
2679         * a-tags.adb (Register_Interface_Offset): New subprogram.
2680         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
2681         (To_Predef_Prims_Table_Ptr): Removed.
2682         (Acc_Size): Removed.
2683         (To_Acc_Size): Removed.
2684         (Parent_Size): Modified to the call the subprogram returning the size of
2685         the parent by means of the new TSD component Size_Func.
2687         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
2688         (DT_Offset_To_Top_Offset): New constant value that is used to generate
2689         code referencing the Offset_To_Top component of the dispatch table's
2690         prologue.
2691         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
2692         use of 'address to initialize dispatch table slots.
2693         (Size_Func): New component of the TSD. Used by the run-time to call the
2694         size primitive of the tagged type.
2696         * checks.adb (Apply_Access_Check): Avoid check when accessing the
2697         Offset_To_Top component of a dispatch table.
2698         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
2699         deferred constant declaration. do not add a null expression, to prevent
2700         spurious errors when full declaration is analyzed.
2701         (Apply_Discriminant_Check): If both discriminant constraints share a
2702         node which is not static but has no side effects, do not generate a
2703         check for that discriminant.
2704         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
2705         subexpr, since the prefix of an attribute is a name.
2707         * checks.ads: Fix nit in comment.
2709         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
2710         and body of predefined primitives in case of CPP tagged type
2711         derivations.
2712         (Freeze_Type): Deal properly with no storage pool case
2713         (Make_Predefined_Primitive_Specs): Generate specification of abstract
2714         primitive Deep_Adjust if a nonlimited interface is derived from a
2715         limited interface.
2716         (Build_Dcheck_Functions): Create discriminant-checking functions only
2717         for variants that have some component(s).
2718         (Build_Slice_Assignment): In expanded code for slice assignment, handle
2719         properly the case where the slice bounds extend to the last value of the
2720         underlying representation.
2721         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
2722         (Is_Variable_Size_Record): An array component has a static size if
2723         index bounds are enumeration literals.
2725         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
2726         an external tag has been specified for the type.
2727         (Building_Static_DT): Add missing support for private types.
2728         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
2729         to the entity associated with the parent of Typ. This is done to
2730         avoid wrong access when the parent is a private type.
2731         (Expand_Interface_Conversion): Improve error message when the
2732         configurable runtime has no support for dynamic interface conversion.
2733         (Expand_Interface_Thunk): Add missing support to interface types in
2734         configurable runtime.
2735         (Expand_Dispatching_Call): remove obsolete code.
2736         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
2737         ensure that all subtypes and aggregates associated with dispatch
2738         tables have the attribute Is_Dispatch_Table_Entity set to true.
2739         (Register_Primitive): Rename one variable to improve code reading.
2740         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
2741         of the pointer to the 'size primitive in the TSD.
2743         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
2744         (RE_Offset_To_Top_Ptr): New entity.
2745         (RE_Register_Interface_Offset): New entity.
2746         (RE_Set_Dynamic_Offset_To_Top): New entity.
2747         (RE_Set_Offset_To_Top): Removed entity.
2748         (RE_Prim_Ptr): New entity
2749         (RE_Size_Func): New entity
2750         (RE_Size_Ptr): New entity
2751         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
2752         (Ada_Dispatching_Child): Define this new subrange.
2753         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
2754          RE_Time_Span, and RE_Time_Span_Zero).
2755         (RE_Unit_Table): Add new required run-time calls
2757         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
2758         children.
2760         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
2761         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
2762          initializes the Offset_To_Top component of a dispatch table.
2763         (Build_Predef_Prims): Removed.
2764         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
2765          its actual code.
2766         (Build_Set_Size_Function): New subprogram.
2768         * exp_ch13.adb: Do not generate storage variable for storage_size zero
2769         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
2771 2008-04-08  Robert Dewar  <dewar@adacore.com>
2773         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
2774         computing Fore when Exp > 0
2776 2008-04-08  Robert Dewar  <dewar@adacore.com>
2778         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
2780         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
2781         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
2783         * fmap.adb: Remove Big_String declarations (now in Types)
2784         (No_Mapping_File): New Boolean global variable
2785         (Initialize): When mapping file cannot be read, set No_Mapping_File to
2786         False.
2787         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
2788         tables were empty before adding entries, open the mapping file
2789         with Truncate = True, instead of delete/re-create.
2791         * fname-sf.adb: Remove Big_String declarations (now in Types)
2793         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
2794         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
2795         big pointer types
2797         * table.ads: Add for Table_Ptr'Storage_Size use 0
2799         * types.ads: Add Big_String declarations
2800         Add Size_Clause of zero for big pointer types
2802 2008-04-08  Vincent Celier  <celier@adacore.com>
2804         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
2805         (Usage): Add line for switch --subdirs=
2806         Add new switch -eL, to follow symbolic links when processing project
2807         files.
2809         * gnatcmd.adb: Process switches -eL and --subdirs=
2810         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
2811         Program_Name to get proper tool names when AAMP_On_Target is set.
2812         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
2813         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
2814         Osint.Program_Name).
2816         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
2817         (Usage): Add lines for switches -eL and --subdirs=
2819         * makeusg.adb: Add line for switch --subdirs=
2821         * prj.ads: 
2822         (Source_Data): New Boolean component Compiled, defaulted to True
2823         (Empty_File_Name: New global variable in private part, initialized in
2824         procedure Initialize.
2825         (Subdirs_Option): New constant string
2826         (Subdirs): New String_Ptr global variable
2827         (Language_Config): New component Include_Compatible_Languages
2828         (Project_Qualifier): New type for project qualifiers
2829         (Project_Data): New component Qualifier
2830         (Project_Configuration): New component Archive_Builder_Append_Option
2832         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
2833         another imported project indicate the name of this imported project.
2834         (Check_File): When a unit is in two project files, indicate the project
2835         names and the paths of the source files for each project.
2836         (Add_Source): Set Compiled to False if compiler driver is empty. Only
2837         set object, dependency and switches file names if Compiled is True.
2838         (Process_Compiler): Allow the empty string for value of attribute Driver
2839         (Get_Directories): When Subdirs is not null and Object_Dir is not
2840          specified, locate and create if necessary the actual object dir.
2841         (Locate_Directory): When Subdirs is not empty and Create is not the
2842         empty string, locate and create if necessary the actual directory
2843         as a subdirectory of directory Name.
2844         (Check_Library_Attributes.Check_Library): Allow a project where the only
2845         "sources" are header files of file based languages to be imported by
2846         library projects, in multi-language mode (gprbuild).
2847         (Check_Library_Attributes.Check_Library): In multi-language mode
2848         (gprbuild), allow a library project to import a project with no
2849         sources, even when this is not declared explicitly.
2850         (Check_If_Externally_Built): A virtual project extending an externally
2851         built project is also externally built.
2852         (Check_Library_Attributes): For a virtual project extending a library
2853         project, inherit the library directory.
2854         (Process_Project_Level_Array_Attributes): Process new attribute
2855         Inherit_Source_Path.
2856         For projects with specified qualifiers "standard", "library" or
2857         "abstract", check that the project conforms to the qualifier.
2858         (Process_Project_Level_Simple_Attributes): Process new attribute
2859          Archive_Builder_Append_Option.
2861         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
2862         (Normalize_Compiler_Switches): Only keep compiler switches that are
2863         passed to gnat1 by the gcc driver and that are stored in the ALI file
2864         by gnat1.
2865         Do not take into account switc -save-temps
2867         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
2868         gprmake is called with -eL.
2869         (Scan_Arg): Recognize switch -eL
2870         (Usage): Add line for switch -eL
2872         * prj.adb (Initialize): Initialize Empty_File_Name
2873         (Project_Empty): New component Qualifier
2875         * prj-attr.ads, prj-attr.adb: New project level attribute
2876         Inherit_Source_Path.
2877         New project level attribute Archive_Builder_Append_Option
2879         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
2881         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
2882         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
2883         upward compatibility.
2885         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
2886         each Trying ..." on different lines.
2887         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
2888         is "configuration" when not in configuration. Fail when in configuration
2889         when a specified qualifier is other than "configuration".
2891         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
2892         full associative array together.
2893         (Recursive_Process): Put the project qualifier in the project data
2894         
2895         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
2896         (Set_Project_Qualifier_Of): New procedure
2898 2008-04-08  Robert Dewar  <dewar@adacore.com>
2900         * errout.ads: Update comments for new handling of info: messages
2902         * erroutc.adb (Matches): New procedure
2903         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
2904         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
2905          info messages as well as style messages.
2907         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
2909         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
2910         subprograms.
2911         (Check_A_Call): Special "info: " warnings now have ? in the text
2912         (Elab_Warning): Use info message in static case
2914 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
2916         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
2917         whether an array aggregate with static bounds and scalar components
2918         should be expanded into a static constant.
2920 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
2921             Ed Schonberg  <schonberg@adacore.com>
2922             Robert Dewar  <dewar@adacore.com>
2924         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
2925         Has_Stream_Attribute_ Definition when checking for available stream
2926         attributes on parameters of a limited type in Ada 2005. Necessary for
2927         proper recognition of visible stream attribute clauses.
2928         (Has_Stream_Attribute_Definition): If the type is derived from a
2929         private type, then use the derived type's underlying type for checking
2930         whether it has stream attributes.
2931         (Validate_Object_Declaration): The check for a user-defined Initialize
2932         procedure applies also to types with controlled components or a
2933         controlled ancestor.
2934         Reject an object declaration in a preelaborated unit if the type is a
2935         controlled type with an overriding Initialize procedure.
2936         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
2937         checking when the parent of a dereference is a selected component and
2938         the name has not been analyzed.
2940         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
2941         prefixes that are invalid explicit dereferences of remote
2942         access-to-class-wide values, first checking whether the selected
2943         component is a prefixed form of call to a tagged operation.
2944         (Analyze_Call): Remove code that issues an error for limited function
2945         calls in illegal contexts, as we now support all of the contexts that
2946         were forbidden here.
2947         Allow a function call that returns a task.and appears as the
2948         prefix of a selected component.
2949         (Analyze_Reference): Give error message if we try to make a 'Reference
2950         for an object that is atomic/aliased without its type having the
2951         corresponding attribute.
2952         (Analyze_Call): Remove condition checking for attributes to allow
2953         calls to functions with inherently limited results as prefixes of
2954         attributes. Remove related comment about Class attributes.
2955         (Analyze_Selected_Component): If the prefix is a remote type, check
2956         whether this is a prefixed call before reporting an error.
2957         (Complete_Object_Operation): If the controlling formal is an access to
2958         variable reject an actual that is a constant or an access to one.
2959         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
2960         primitive operations from base type.
2962         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
2963         build-in-place
2964         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
2965         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
2966         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
2967         (Expand_N_Slice): Test for prefix that is a build-in-place function call
2968         and call Make_Build_In_Place_Call_In_Anonymous_Context.
2969         (Analyze_Call): Remove code that issues an error for limited function
2970         calls in illegal contexts, as we now support all of the contexts that
2971         were forbidden here.
2972         New calling sequence for Get_Simple_Init_Val
2973         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
2974         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
2976 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
2977             Ed Schonberg  <schonberg@adacore.com>
2978             Robert Dewar  <dewar@adacore.com>
2980         * exp_ch2.adb: Minor reformatting.
2981         (Expand_Entry_Index_Parameter): Set the type of the identifier.
2982         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
2983         (Expand_Protected_Component): New routine.
2984         (Expand_Protected_Private): Removed.
2985         Add Sure parameter to Note_Possible_Modification calls
2987         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
2988         generated subprogram declaration must inherit the overriding indicator
2989         from the instantiation node.
2990         (Validate_Access_Type_Instance): If the designated type of the actual is
2991         a limited view, use the available view in all cases, not only if the
2992         type is an incomplete type.
2993         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
2994         and the actual subtype does not exclude null.
2995         (Process_Default): Handle properly abstract formal subprograms.
2996         (Check_Formal_Package_Instance): Handle properly defaulted formal
2997         subprograms in a partially parameterized formal package.
2998         Add Sure parameter to Note_Possible_Modification calls
2999         (Validate_Derived_Type_Instance): if the formal is non-limited, the
3000         actual cannot be limited.
3001         (Collect_Previous_Instances): Generate instance bodies for subprograms
3002         as well.
3004         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
3005         try to set RM_Size.
3006         Add Sure parameter to Note_Possible_Modification calls
3007         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
3008         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
3009         constant overlaid by variable and issue warning.
3010         Use new Is_Standard_Character_Type predicate
3011         (Analyze_Record_Representation_Clause): Check that the specified
3012         Last_Bit is not less than First_Bit - 1.
3013         (Analyze_Attribute_Definition_Clause, case Address): Check for
3014         self-referential address clause
3016         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
3017         detection mechanism when the lhs is a prival.
3018         (Analyze_Assignment): Call Check_Unprotected_Access to detect
3019         assignment of a pointer to protected data, to an object declared
3020         outside of the protected object.
3021         (Analyze_Loop_Statement): Check for unreachable code after loop
3022         Add Sure parameter to Note_Possible_Modication calls
3023         Protect analysis from previous syntax error such as a scope mismatch
3024         or a missing begin.
3025         (Analyze_Assignment_Statement): The assignment is illegal if the
3026         left-hand is an interface.
3028         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
3029         violation of restriction No_Implicit_Conditionals
3030         Add Sure parameter to Note_Possible_Modication calls
3031         Use new Is_Standard_Character_Type predicate
3032         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
3033         call as operator. Fixes problems (e.g. validity checking) which
3034         come from the result looking as though it does not come from source).
3035         (Resolve_Call): Check case of name in named parameter if style checks
3036         are enabled.
3037         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
3038         from the checking that such calls should not occur from an entry body.
3039         (Resolve_Call): If the return type of an Inline_Always function
3040         requires the secondary stack, create a transient scope for the call
3041         if the body of the function is not available for inlining.
3042         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
3043         that are actuals for in-out formals.
3044         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
3045         primitive operations from base type.
3046         (Analyze_Selected_Component): If the context is a call to a protected
3047         operation the parent may be an indexed component prior to expansion.
3048         (Resolve_Actuals): If an actual is of a protected subtype, use its
3049         base type to determine whether a conversion to the corresponding record
3050         is needed.
3051         (Resolve_Short_Circuit): Handle pragma Check
3053         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
3054         Use new Is_Standard_Character_Type predicate
3055         (Eval_Relational_Op): Catch more cases of string comparison
3057 2008-04-08  Robert Dewar  <dewar@adacore.com>
3058             Gary Dismukes  <dismukes@adacore.com>
3060         * s-rident.ads: Add No_Default_Initialization restriction
3062         * exp_tss.adb: 
3063         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
3064         (Set_TSS): Handle No_Default_Initialization case
3066         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
3067         No_Default_Initialization
3068         (Expand_N_Subprogram_Body): Remove redundant initialization of out
3069         parameters when Normalize_Scalars is active.
3070         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
3071         Fix casing error in formal parameter name in call
3072         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
3073         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3074         dispatching call on VM targets.
3076 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
3077             Thomas Quinot  <quinot@adacore.com>
3079         * exp_ch7.adb (Find_Final_List): Change the test for generating a
3080         selected component from an access type's Associated_Final_Chain to
3081         check for the presence of that field, rather than assuming it exists
3082         for all named access types.
3083         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
3084         procedure to call at the end of the generated cleanup procedure.
3085         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
3086         and an At_End_Proc already exists in the handled sequence of statements
3087         for which cleanup actions are being expanded, the original cleanup
3088         action must be preserved.
3090 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
3091             Ed Schonberg  <schonberg@adacore.com>
3092             Robert Dewar  <dewar@adacore.com>
3093             Gary Dismukes  <dismukes@adacore.com>
3095         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
3096         Build_Unprotected_Subprogram_Body): Generate debug info for
3097         declarations related to the handling of private data in task and
3098         protected types.
3099         (Debug_Private_Data_Declarations): New subprogram.
3100         (Install_Private_Data_Declarations): Remove all debug info flagging.
3101         This is now done by Debug_Private_Data_Declarations at the correct
3102         stage of expansion.
3103         (Build_Simple_Entry_Call): If the task name is a function call, expand
3104         the prefix into an object declaration, and make the surrounding block a
3105         task master.
3106         (Build_Master_Entity): An internal block is a master if it wraps a call.
3107         Code reformatting, update comments. Code clean up.
3108         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
3109         (Replicate_Entry_Formals): If the formal is an access parameter or
3110         anonymous access to subprogram, copy the original tree to create new
3111         entities for the formals of the subprogram.
3112         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
3113         for tasks to store the value passed using pragma Relative_Deadline.
3114         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
3115         run-time call to create a task.
3116         (Build_Wrapper_Spec): If the controlling argument of the interface
3117         operation is an access parameter with a non-null indicator, use the
3118         non-null indicator on the wrapper.
3120         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
3121         present, which it may not be in the case where the type entity is an
3122         incomplete view brought in by a limited with.
3123         (Analyze_Task_Type): Only retrieve the full view when present, which it
3124         may not be in the case where the type entity is an incomplete view brought
3125         in by a limited with.
3126         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
3127         private components of a protected type, to prevent the generation of freeze
3128         nodes for which there is no proper scope of elaboration.
3130         * exp_util.ads, exp_util.adb
3131         (Remove_Side_Effects): If the expression is a function call that returns a
3132         task, expand into a declaration to invoke the build_in_place machinery.
3133         (Find_Protection_Object): New routine.
3134         (Remove_Side_Effects): Also make a copy of the value
3135         for attributes whose result is of an elementary type.
3136         (Silly_Boolean_Array_Not_Test): New procedure
3137         (Silly_Boolean_Array_Xor_Test): New procedure
3138         (Is_Volatile_Reference): New function
3139         (Remove_Side_Effects): Use Is_Volatile_Reference
3140         (Possible_Bit_Aligned_Component): Handle slice case properly
3142         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
3143         case test to Exp_Util
3144         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
3146 2008-04-08  Thomas Quinot  <quinot@adacore.com>
3148         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
3149         in call
3150         (Add_RACW_Features): When processing an RACW in another unit than the
3151         main unit, set Body_Decls to No_List to indicate that the bodies of
3152         the type's TSS must not be generated.
3153         (GARLIC_Support.Add_RACW_Read_Attribute,
3154         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
3155         Body_Decls is No_List.
3156         (PolyORB_Support.Add_RACW_Read_Attribute,
3157         PolyORB_Support.Add_RACW_Write_Attribute,
3158         PolyORB_Support.Add_RACW_From_Any,
3159         PolyORB_Support.Add_RACW_To_Any,
3160         PolyORB_Support.Add_RACW_TypeCode): Same.
3161         (Transmit_As_Unconstrained): New function.
3162         (Build_Ordered_Parameters_List): Use the above to order parameters.
3163         (GARLIC_Support.Build_General_Calling_Stubs):
3164         Use the above to determine which parameters to unmarshall using 'Input
3165         at the point where their temporary is declared (as opposed to later on
3166         with a 'Read call).
3167         (PolyORB_Support.Build_General_Calling_Stubs):
3168         Use the above to determine which parameters to unmarshall using From_Any
3169         at the point where their temporary is declared (as opposed to later on
3170         with an assignment).
3172 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
3174         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
3175         an Input function for an access type, do not perform default
3176         initialization on the local variable that receives the value, to
3177         prevent spurious warnings when the type is null-excluding.
3179 2008-04-08  Robert Dewar  <dewar@adacore.com>
3180             Ed Schonberg  <schonberg@adacore.com>
3182         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
3183         units.
3184         (Size_Known): Generic formal scalar types have known at compile
3185         time size, so remove check.
3186         Fix casing error in formal parameter name in call
3187         (Freeze_Subprogram): If the subprogram is a user-defined operator,
3188         recheck its overriding indication.
3190 2008-04-08  Vincent Celier  <celier@adacore.com>
3192         * gnat1drv.adb: Send all messages indicating an error to standard error
3194 2008-04-08  Robert Dewar  <dewar@adacore.com>
3196         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
3197         (List_Applicable_Restrictions): Do not list existing restrictions
3199 2008-04-08  Thomas Quinot  <quinot@adacore.com>
3201         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
3202         add a pointer to generic sockets literature
3203         do not mention that the given example is "typical" usage.
3204         Remove obsolete comment about multicast not being supported on Windows.
3205         (Connect_Socket): Make Server mode IN rather than IN OUT
3206         since this formal is never modified.
3208 2008-04-08  Robert Dewar  <dewar@adacore.com>
3210         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
3211         the declaration for some different entity.
3212         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
3213         list is precent (following the parent subtype indication), display
3214         appropriate "and" keyword.
3216         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
3217         Remove unnecessary calls to Init_Size_Align and Init_Esize.
3218         Add notes on use of Parent field of an Itype
3220 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
3221             Robert Dewar  <dewar@adacore.com>
3222             Gary Dismukes  <dismukes@adacore.com>
3224         * lib-xref.adb (Is_On_LHS): Remove dead code
3225         (Output_Overriden_Op): If the overridden operation is itself inherited,
3226         list the ancestor operation, which is the one whose body or absstract
3227         specification is actually being overridden. For source navigation
3228         purposes.
3230         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
3231         operation is primitive for the type.
3232         (Declare_Inherited_Private_Subprograms): If the new operation overrides
3233         an inherited private subprogram, set properly the Overridden_Operation
3234         attribute, for better cross-reference information.
3235         (Analyze_Package_Specification): Do late analysis of spec PPCs
3236         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
3237         properly the full view and underlying full views of a private type in a
3238         child unit, whose full view is derived from a private type in a parent
3239         unit, and whose own full view becomes visible in the child body.
3241         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
3242         primitive operation after the type has been frozen, add an explicit
3243         reference to the type and the operation, because other primitive
3244         references have been emitted already.
3245         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3246         dispatching call on VM targets.
3248 2008-04-08  Vincent Celier  <celier@adacore.com>
3249             Thomas Quinot  <quinot@adacore.com>
3251         * make.adb: (Gnatmake_Called): Remove, no longer necessary
3252         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
3253         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
3254         (Insert_Project_Sources): Take into account index in multi-unit source
3255         files.
3256         After building a library project, delete all temporary files.
3257         (Initialize): Reset current output after parsing project file.
3258         (Collect_Arguments_And_Compile): Never insert in the queue the sources
3259         of library projects that are externally built.
3260         Put file name in error and inform messages if -df is used
3261         (Display): If invoked with -d7, do not display path names, but only
3262         file names.
3264         * makeutl.ads (Path_Or_File_Name): New function
3265         (Path_Or_File_Name): New function
3267 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
3269         * Make-lang.in: Disable warnings during first stage of bootstrap
3270         Get rid of gnatbl.
3271         Update dependencies.
3273 2008-04-08  Vincent Celier  <celier@adacore.com>
3275         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
3276         case to decide if ALI object file is included in library.
3277         (Build_Library): Never attempt to build a library if the project is
3278         externally built.
3280 2008-04-08  Thomas Quinot  <quinot@adacore.com>
3282         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
3283         (No_List) is defined to return Empty.
3285 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
3287         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
3288         documentation.
3289         Update comments.
3290         (Read_Default_Search_Dirs): Do not consider spaces as path separators
3291         because spaces may be part of legal paths.
3293 2008-04-08  Robert Dewar  <dewar@adacore.com>
3295         * par-ch11.adb (P_Exception_Handler): Check indentation level for
3296         handler
3298 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
3300         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
3301         in a type declaration, if this is not an interface declaration or
3302         private type extension.
3304 2008-04-08  Vincent Celier  <celier@adacore.com>
3306         * prj-util.adb (Executable_Of): New String parameter Language. When
3307         Ada_Main is False and Language is not empty, attempt to remove the body
3308         suffix or the spec suffix of the language to get the base of the
3309         executable file name.
3310         (Put): New Boolean parameter Lower_Case, defauilted to False. When
3311         Lower_Case is True, put the value in lower case in the name list.
3312         (Executable_Of): If there is no executable suffix in the configuration,
3313         then do not modify Executable_Extension_On_Target.
3315         * prj-util.ads (Executable_Of): New String parameter Language,
3316         defaulted to the empty string.
3317         (Put): New Boolean parameter Lower_Case, defauilted to False
3319 2008-04-08  Robert Dewar  <dewar@adacore.com>
3321         * scng.adb (Scan_Identifier): Handle case of identifier starting with
3322         wide character using UTF-8 encoding.
3324 2008-04-08  Javier Miranda  <miranda@adacore.com>
3326         * sem.adb (Analyze): Consider case in which we analyze an empty node
3327         that was generated by a call to a runtime function that is not
3328         available under the configurable runtime.
3330         * sem.ads (Inside_Freezing_Actions): New flag.
3331         (Save_Check_Policy_List): New field in scope stack entry
3333 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
3334             Robert Dewar  <dewar@adacore.com>
3336         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
3337         the ancestor part of an extension aggregate for a limited type.
3338         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
3339         enumeration index bounds.
3340         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
3341         when array is too short.
3342         (Check_Expr_OK_In_Limited_Aggregate): Move function
3343         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
3344         change name).
3345         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
3346         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
3347         component associations.
3348         (Check_Non_Limited_Type): Moved to outer level and renamed.
3349         (Resolve_Record_Aggregate): In an extension aggregate, an association
3350         with a box initialization can only designate a component of the
3351         extension, not a component inherited from the given ancestor
3353         * sem_case.adb: Use new Is_Standard_Character_Type predicate
3355 2008-04-08  Robert Dewar  <dewar@adacore.com>
3357         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
3358         negative scale
3359         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
3360         Properly handle case where Aft > Scale and input number is less than
3361         one.
3363 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
3365         * s-stoele.ads, s-soflin.ads: Move the location of
3366         Dummy_Communication_Block from System.Storage_Elements to
3367         System.Soft_Links.
3369         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
3370         emulate Communication_Block in certain scenarios.
3372 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
3374         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
3375         subprogram.
3376         Add new subtype S_WWC, unchecked conversion routines From_WWC and
3377         To_WWC.
3378         (I_WWC, O_WWC): New routines for input and output of
3379         Wide_Wide_Character.
3381 2008-04-08  Robert Dewar  <dewar@adacore.com>
3383         * stringt.adb (Write_String_Table_Entry): Handle wide characters
3384         properly
3386 2008-04-08  Robert Dewar  <dewar@adacore.com>
3388         * styleg.adb (Check_Comment): Allow special char after -- in
3389         non-end-of-line case
3391 2008-04-08  Robert Dewar  <dewar@adacore.com>
3393         * stylesw.adb: Implement -gnaty + - y options
3394         (Set_GNAT_Style_Check_Options): Includ I in style check string
3396         * stylesw.ads: Add comments for new style switch options
3398 2008-04-08  Sergey Rybin  <rybin@adacore.com>
3400         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
3401         to the set of the GNAT components needed by ASIS.
3403 2008-04-08  Bob Duff  <duff@adacore.com>
3405         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
3407 2008-04-08  Tristan Gingold  <gingold@adacore.com>
3409         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
3410         Improve error message generation.
3412 2008-04-08  Vincent Celier  <celier@adacore.com>
3414         * a-direct.adb (Start_Search): Check for Name_Error before checking for
3415         Use_Error, as specified in the RM. Check if directory is open and raise
3416         Use_Error if it is not.
3418 2008-04-08  Vincent Celier  <celier@adacore.com>
3419             Robert Dewar  <dewar@adacore.com>
3421         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
3422         AAMP_On_Target is set.
3424         * vms_data.ads: Add NOxxx to style check switch list
3425         Add entry COMPONENTS for -gnatVe
3426         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
3427         (/SUBDIRS=).
3428         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
3429         Add qualifiers for gnatmetric coupling options
3430         Add note that -gnata enables all checks
3431         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
3432         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
3433         New warning flag -gnatw.e
3435         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
3436         Add entry for -gnatyN (forgotten before)
3437         Line for new warning switch -gnatw.p
3438         New warning flag -gnatw.e
3440         * gnat_ugn.texi: Add documentation fpr project file switch -aP
3441         Document -gnaty - + y
3442         Replace occurences of "package specification" with "package spec"
3443         Define preprocessing symbols in documentation of gnatprep
3444         Clarify reason for distinguishing overflow checking
3445         Add documentation for project-aware tool switches -eL and --subdirs=
3446         Complete list of configuration pragmas
3447         Specify that, even when gnatmake switch -x is used, mains on the command
3448         line need to be sources of project files.
3449         Editing of gnatcheck/gnatmetric doc.
3450         Add documentation for -gnatw.p/-gnatw.P
3451         Add missing documentation for -fno-inline-functions.
3452         Add documentation for -gnatw.e
3454         * gnat_rm.texi: Add documentation for No_Default_Initialization
3455         Replace occurences of "package specification" with "package spec"
3456         Document use of * in Warnings Off string
3457         Update documentation of alignment/component clauses.
3458         Add documentation for Invalid_Value
3459         Document new consistency rule for Optimize_Alignment
3460         Add documentation for Precondition and Postcondition pragmas
3461         Add documentation for Check and Check_Policy pragmas
3462         Document new Enum_Val attribute
3463         Remove requirement for static string in pragma Assert
3464         Add documentation on GNAT.Time_Stamp
3466         * ug_words: add entry for -gnatVe
3467         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
3468         Add entry for -gnatw.e
3470         * debug.adb: Add missing documentation for d.a flag
3471         Document new -gnatd.a switch.
3472         Add documentation for new gnatmake debug switch -df
3474 2008-04-08  Thomas Quinot  <quinot@adacore.com>
3476         * gen-soccon.c: Bump year in copyright notices.
3478         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
3480 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3482         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
3483         Minor reformatting.
3485 2008-04-08  Robert Dewar  <dewar@adacore.com>
3486             Bob Duff  <duff@adacore.com>
3488         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
3489         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
3491         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
3493         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
3495         * g-trasym.ads: Minor comment improvements
3497         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
3499         * a-sequio.ads, a-direio.ads: improve message for tagged type
3501         * a-strunb.ads: Minor reformatting
3503         * a-tifiio.adb: Minor reformatting
3505         * atree.adb (Fix_Parents): Use clearer names for formals
3506         Cleanup and simplify code
3507         Use named notation in calls
3509         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
3510         confusing calls
3512         * uintp.adb: Used named notation for some confusing calls
3514         * bindusg.adb: Minor change in one line of output
3516         * cstand.adb: Minor reformatting of src representation of Standard
3518         * a-assert.ads: Add comment.
3520         * g-decstr.adb: Fix bad indentation
3522         * expander.ads, expander.adb: Code clean up.
3524         * sem_dist.ads: Minor comment improvement
3526         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
3527         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
3529         * i-cstrin.adb: Fix casing error in formal parameter name in call
3531 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
3533         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
3534         mentioned in limited_with_clauses to do create semantic dependencies
3535         even though they appear in the ali file.
3537 2008-04-08  Emmanuel Briot  <briot@adacore.com>
3539         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
3540         statement.
3541         (Get_Configuration): New subprogram.
3543         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
3544         These optional parameters help preserve the casing of the project's name
3545         when pretty-printing.
3547 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
3548             Arnaud Charlet  <charlet@adacore.com>
3550         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
3551         then use __gnat_set_exit_status to report the returned status code.
3553         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
3554         messages on .NET, since some constructs of the language are not
3555         properly supported.
3557         * gnatlink.adb (Gnatlink): In case the command line is too long for the
3558         .NET linker, gnatlink now concatenate all .il files and pass this to
3559         ilasm.
3561 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
3562             Xavier Grave  <grave@ipno.in2p3.fr>
3564         * Makefile.in: Add make ifeq define for mips/mipsel support.
3565         * g-soccon-linux-mips.ads, system-linux-mipsel.ads, 
3566         system-linux-mips.ads: New files.
3568 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
3570         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
3571         detect systems using GNU libc.
3572         * gsocket.h: ditto.
3573         * socket.c: ditto.
3574         * adaint.c: ditto.
3575         * link.c: ditto.
3577 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
3579         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New 
3580         constant constant for sysconf call.
3581         (bit_field): New packed boolean type used by cpu_set_t.
3582         (cpu_set_t): New type corresponding to the C type with
3583         the same name. Note that on the Ada side we use a bit
3584         field array for the affinity mask. There is not need
3585         for the C macro for setting individual bit.
3586         (pthread_setaffinity_np): New imported routine.
3587         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
3588         on GNU/kFreeBSD.
3590 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3592         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
3594 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3596         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
3597         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
3598         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
3599         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
3600         Return by Depressed Stack Pointer.
3602 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3604         * decl.c (is_variable_size): Do not unconditionally return false
3605         on non-strict alignment platforms.
3607 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3609         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
3610         used to process all the variants of the specified type.
3611         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
3612         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
3613         (rest_of_type_decl_compilation): Likewise.
3614         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
3616 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
3618         * gigi.h (insert_block): Kill.
3619         * utils.c (insert_block): Kill.
3621 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
3623         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
3624         type has self-referential size, get the size from the initializing
3625         expression directly if it is also a constant whose nominal type
3626         has self-referential size.
3628 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3630         PR ada/33688
3631         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
3633         PR ada/33857
3634         * env.c: Always include crt_externs.h if __APPLE__ is defined.
3635         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
3637 2008-04-01  Andreas Jaeger  <aj@suse.de>
3639         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
3640         IP_PKTINFO.
3642 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3644         * g-table.adb, g-tasloc.adb, g-traceb.ads,
3645         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
3646         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
3647         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
3648         gnatlink.adb, gnatmem.adb, gprep.adb,
3649         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
3650         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
3651         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
3652         lib-xref.ads, lib.adb, link.c, live.ads,
3653         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
3654         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
3655         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
3656         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
3657         namet.adb, namet.h, nlists.adb, nlists.ads,
3658         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
3659         osint-c.ads, osint.adb, osint.ads, output.ads,
3660         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
3661         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
3662         par-endh.adb, par-labl.adb, par-prag.adb,
3663         par-sync.adb, par-tchk.adb, par-util.adb,
3664         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
3665         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3666         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
3667         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
3669 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3671         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
3672         size if it has overflowed.
3674 2008-03-31  Olivier Hainque  <hainque@adacore.com>
3675             Eric Botcazou  <ebotcazou@adacore.com>
3677         * utils2.c (find_common_type): Document assumption on t1/t2 vs
3678         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
3680 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3682         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
3683         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
3684         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
3685         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
3686         exp_tss.ads, exp_util.adb, exp_util.ads,
3687         exp_vfpt.adb, freeze.adb, freeze.ads,
3688         frontend.adb, g-alleve.adb, g-altcon.adb,
3689         g-altive.ads, g-alveop.ads, g-alvevi.ads,
3690         g-arrspl.adb, g-busorg.ads, g-calend.adb,
3691         g-calend.ads, g-casuti.ads, g-cgideb.adb,
3692         g-comlin.adb, g-comlin.ads, g-curexc.ads,
3693         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
3694         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
3695         g-dyntab.adb, g-encstr.ads, g-excact.ads,
3696         g-except.ads, g-expect.ads, g-heasor.adb,
3697         g-hesora.adb, g-hesorg.adb, g-htable.ads,
3698         g-locfil.ads, g-md5.adb, g-md5.ads,
3699         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
3700         g-pehage.adb, g-pehage.ads, g-regexp.adb,
3701         g-regexp.ads, g-regpat.adb, g-regpat.ads,
3702         g-soccon-aix.ads, g-soccon-darwin.ads,
3703         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
3704         g-soccon-hpux.ads, g-soccon-irix.ads,
3705         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
3706         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
3707         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
3708         g-soccon-solaris.ads, g-soccon-tru64.ads,
3709         g-soccon-vms.ads, g-soccon-vxworks.ads,
3710         g-soccon.ads, g-socket.adb, g-socket.ads,
3711         g-socthi-mingw.adb, g-socthi-vms.adb,
3712         g-socthi-vxworks.adb, g-soliop-mingw.ads,
3713         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
3714         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
3715         typos.
3717 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
3719         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
3720         if the procedure is imported.
3722 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3724         * adaint.c: Fix warnings.
3726 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3728         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
3730 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3732         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
3733         Fix problem of status check for null file
3735 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3737         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
3738         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
3739         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
3740         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
3741         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
3742         comments.
3744 2008-03-26  Thomas Quinot  <quinot@adacore.com>
3746         PR ada/33688
3747         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
3748         Get_Socket_Option): Add support for Receive_Packet_Info.
3750         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3751         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3752         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
3753         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
3754         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
3755         new constants SO_REUSEPORT and IP_PKTINFO
3757 2008-03-26  Robert Dewar  <dewar@adacore.com>
3759         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
3760         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
3761         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
3762         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
3763         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
3764         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
3765         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
3766         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
3767         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
3768         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
3769         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
3770         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
3771         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
3772         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
3773         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
3774         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
3775         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
3776         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
3777         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
3778         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
3779         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
3780         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
3781         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
3782         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
3783         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
3784         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
3785         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
3786         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
3787         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
3788         s-tasloc.adb: Minor reformatting.
3789         Update comments.
3790         Remove "used for" sections from comments.
3792 2008-03-26  Robert Dewar  <dewar@adacore.com>
3794         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
3795         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
3796         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
3797         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
3798         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
3799         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
3800         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
3801         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
3802         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
3803         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
3804         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
3805         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
3806         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
3807         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
3808         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
3809         double spaced if it fits on one line and otherwise single spaced.
3811 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3813         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb, 
3814         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb, 
3815         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
3816         or task info if the thread could not be created.
3818 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3820         * gnatvsn.ads (Library_Version): Bump to 4.4.
3821         (Current_Year): Bump to 2008.
3823 2008-03-26  Robert Dewar  <dewar@adacore.com>
3825         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
3827         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
3829         * debug.adb: Add debug flags d.r and d.v
3830         Add debug flag .T (Optimize_Alignment (Time))
3831         Add debug flag .S (Optimize_Alignment (Space))
3833         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
3834         depending on setting of relevant debug flags.
3835         Replace use of Warnings_Off by Has_Warnings_Off
3836         (Freeze_Entity): In circuit for warning on suspicious convention
3837         actuals, do not give warning if subprogram has same entity as formal
3838         type, or if subprogram does not come from source.
3839         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
3840         if Optimize_Alignment set to Space.
3842         * frontend.adb: Add call to Sem_Warn.Initialize
3843         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
3844         Reset Optimize_Alignment mode from debug switches .S and .T
3846         * layout.adb (Layout_Composite_Object): Rewritten for
3847         Optimize_Aligment pragma.
3849         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
3850         mode.
3852         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
3854         * par-prag.adb (N_Pragma): Chars field removed, use Chars
3855         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
3856         this change. Add entry for pragma Optimize_Alignment
3858         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
3859         (Pragma_Identifier (..
3860         instead, adjustments throughout to accomodate this change.
3861         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
3862         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
3863         Add implementation of pragma Optimize_Alignment
3865 2008-03-26  Vincent Celier  <celier@adacore.com>
3867         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
3868         Improve memory usage to avoid use of stack.
3870 2008-03-26  Robert Dewar  <dewar@adacore.com>
3872         * a-teioed.ads: Correct value of Default_Fill
3874         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
3876 2008-03-26  Robert Dewar  <dewar@adacore.com>
3878         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
3879         with Current_Output (introduce Self).
3881 2008-03-26  Robert Dewar  <dewar@adacore.com>
3883         * checks.adb (Ensure_Valid): Capture valid status if possible
3884         (eliminate checks)
3886 2008-03-26  Robert Dewar  <dewar@adacore.com>
3888         * stand.ads: Deal with reordering of package standard declarations
3890         * cstand.adb: Put package Standard declarations in proper order
3892 2008-03-26  Robert Dewar  <dewar@adacore.com>
3894         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
3895         (Pragma_Identifier (.. instead.
3896         (OK_To_Reorder_Components): New flag
3897         (Has_Entries): Code cleanup.
3898         (Warnings_Off_Used): New flag
3899         (Warnings_Off_Used_Unmodified): New flag
3900         (Warnings_Off_Used_Unreferenced): New flag
3901         (Has_Warnings_Off): New function
3902         (Has_Unmodified): New function
3903         (Has_Unreferenced): New function
3904         (Is_Trivial_Subprogram): New flag
3905         (Is_Static_Dispatch_Table_Entity): New attribute.
3906         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
3907         (more consistent with other similar names)
3908         (Access_Subprogram_Type): New classification function
3910 2008-03-26  Robert Dewar  <dewar@adacore.com>
3912         * errout.ads: Document new !! insertion sequence
3914         * errout.adb (N_Pragma): Chars field removed, use Chars
3915         (Pragma_Identifier (..  instead.
3916         Replace use of Warnings_Off by Has_Warnings_Off
3917         (Error_Msg_Internal): Don't delete warning ending in !!
3919 2008-03-26  Robert Dewar  <dewar@adacore.com>
3921         * par.adb (Check_No_Right_Paren): Removed no longer used
3923         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
3924         (Pragma_Identifier (..  instead.
3926         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
3928         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
3929         par-ch4.adb: Minor improvements in error recovery and messages.
3931         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
3932         non-serious
3934         * par-ch9.adb: Minor improvements in error recovery and messages
3935         (P_Protected): Better error recovery for "protected type x;"
3937         * par-util.adb: Minor improvements in error recovery and messages
3938         (Check_No_Right_Paren): Removed no longer used
3940 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
3942         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
3943         that the prefix of an attribute is the type of the aggregate being
3944         expanded.
3946 2008-03-26  Javier Miranda  <miranda@adacore.com>
3947             Robert Dewar  <dewar@adacore.com>
3949         * exp_attr.adb (N_Pragma): Chars field removed.
3950         (Expand_N_Attribute_Reference): If the designated type associated with
3951         attribute 'Unrestricted_Access is a subprogram entity then replace it
3952         by an E_Subprogram_Type itype.
3953         Implement attribute Old
3955         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
3957         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
3958         Replace call to
3959         New_Internal_Entity by call to Create_Itype to centralize calls
3960         building itypes, ad propagate the convention of the designated
3961         subprogram. In addition, disable the machinery cleaning constant
3962         indications from all entities in current scope when 'Unrestricted_Access
3963         corresponds with a node initializing a dispatch table slot.
3964         (Analyze_Attribute): Parameterless attributes returning a string or a
3965         type will not be called with improper arguments, so we can remove junk
3966         code that was dealing with this case.
3967         Implement attribute Old
3969         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
3970         Add entry for pragma Optimize_Alignment
3971         New standard names Sync and Synchronize
3973 2008-03-26  Robert Dewar  <dewar@adacore.com>
3974             Arnaud Charlet  <charlet@adacore.com>
3976         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
3977         stmt.
3978         (No_Exception_Propagation_Active): New function.
3979         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
3980         Update comments, and review all uses of No_Exception_Propagation, which
3981         are now correct and in sync with what gigi expects.
3983         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
3984         function.
3985         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
3986         Update comments, and review all uses of No_Exception_Propagation, which
3987         are now correct and in sync with what gigi expects.
3989 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
3991         * sem_ch3.adb (Access_Definition): If the access type is the return
3992         result of a protected function, create an itype reference for it
3993         because usage will be in an inner scope from the point of declaration.
3994         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
3995         OK_To_Reorder_Components.
3996         (Make_Index): If an overloaded range includes a universal integer
3997         interpretation, resolve to Standard.Integer.
3998         (Analyze_Subtype_Indication): Copy Convention to subtype
3999         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
4000         limited an synchronized progenitors in type declaration and private
4001         extension declarations.
4003         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
4004         protected subprogram body, determine proper scope from subprogram
4005         declaration.
4007 2008-03-26  Robert Dewar  <dewar@adacore.com>
4009         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
4010         No_Run_Time_Mode
4012 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
4014         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
4015         of a heap allocator for a limited unconstrained function return when
4016         resstriction No_Allocators is active.
4017         (Analyze_Allocator): The restriction No_Allocators is now only checked
4018         on allocators that have Comes_From_Source set, as per RM-H.4(7).
4020         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
4021         of a heap allocator for a limited unconstrained function return when
4022         resstriction No_Allocators is active.
4023         (Analyze_Allocator): The restriction No_Allocators is now only checked
4024         on allocators that have Comes_From_Source set, as per RM-H.4(7).
4025         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
4026         operands are fixed-point types, the universal_fixed predefined operation
4027         is used, regardless of whether the operand type (s) have a primitive
4028         operation of the same name.
4030 2008-03-26  Javier Miranda  <miranda@adacore.com>
4032         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
4033         Is_Static_Dispatch_Table
4034         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
4035         to Exchange_Declarations to exchange the private and full-view. Bug
4036         found working in this issue.
4037         (Expand_Dispatching_Call): Propagate the convention of the subprogram
4038         to the subprogram pointer type.
4039         (Make_Secondary_DT): Replace generation of Prim'Address by
4040         Address (Prim'Unrestricted_Access)
4041         (Make_DT): Replace generation of Prim'Address by
4042         Address (Prim'Unrestricted_Access)
4043         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
4044         simple call form for single entry.
4045         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
4046         tables of predefined primitives).
4047         (Make_Secondary_DT): Add support to handle access to dispatch tables of
4048         predefined primitives.
4049         (Make_Tags): Add entities to Access_Dispatch_Table associated with
4050         access to dispatch tables containing predefined primitives.
4052         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
4053         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
4054         this change.
4055         (Register_Predefined_DT_Entry): Updated to handle the new contents
4056         of attribute Access_Disp_Table (pointers to dispatch tables containing
4057         predefined primitives).
4059         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
4060         subprogram.
4061         (Find_Interface_ADT): Updated to skip the new contents of attribute
4062         Access_Dispatch_Table (pointers to dispatch tables containing predefined
4063         primitives).
4065         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
4066         concurrent types.
4067         (Set_Convention): Use new function Is_Access_Subprogram_Type
4068         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
4069         Access_Dispatch_Table (pointers to dispatch tables containing predefined
4070         primitives).
4072         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
4073         expanded code avoiding calls to Build_Predef_Prims.
4074         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
4075         call to Build_Get_Predefined_Prim_Op_Address.
4077 2008-03-26  Javier Miranda  <miranda@adacore.com>
4079         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
4080         subprogram Corresponding_Runtime_Package to know the runtime package
4081         that will provide support to a given protected type.
4083         * exp_ch9.adb (Add_Private_Declarations,
4084         Build_Protected_Subprogram_Call,
4085         Build_Protected_Entry, Build_Simple_Entry_Call,
4086         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
4087         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
4088         cleanup using the new centralized subprogram Corresponding_Runtime
4089         Package to know the runtime package that provides support to
4090         a given protected type.
4092 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
4094         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
4095         assignment is within the initialization procedure for a packed array,
4096         and Initialize_Scalars is enabled, compile right-hand side with checks
4097         off, because the value is purposely out of range.
4099 2008-03-26  Vincent Celier  <celier@adacore.com>
4101         * gnatcmd.adb: Add processing for GNAT SYNC
4103         * vms_conv.ads: (Command_Type): Add command Sync
4105         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
4107         * vms_data.ads: Add entries for -gnatw.w
4108         Add qualifier for gnatstub --header-file option
4109         Add switches for GNAT SYNC
4111         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
4112         (Add_Package_Name): New procedure
4113         (Package_Name_List): New function
4114         (Initialize): Add known package names to the list
4115         (Register_New_Package): Add the new package name to the list
4117 2008-03-26  Robert Dewar  <dewar@adacore.com>
4119         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
4120         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
4121         Raise_Exception by "raise with" construct.
4123 2008-03-26  Pascal Obry  <obry@adacore.com>
4125         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
4126         supported platforms.
4127         
4128         * Makefile.rtl: Add g-sercom.o.
4129         
4130         * impunit.adb: Add g-sercom.adb.
4131         
4132         * s-crtl.ads (open): New routine.
4133         (close): Likewise.
4134         (write): Likewise.
4135         
4136         * s-osinte-mingw.ads (BYTE): New type.
4137         (CHAR): Likewise.
4138         (OVERLAPPED): Likewise.
4139         (GENERIC_READ): New constant.
4140         (GENERIC_WRITE): Likewise.
4141         (OPEN_EXISTING): Likewise.
4142         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
4143         type instead.
4144         (CreateFile): New routine.
4145         (WriteFile): Likewise.
4146         (ReadFile): Likewise.
4147         (CloseHandle): Move next to the other file oriented routines.
4149         * g-sercom.ads: New unit.
4151         * g-sercom.adb: Default implementation, calls to this unit will raise
4152         a program error exception.
4153         
4154         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
4155         GNU/Linux implementations.
4157 2008-03-26  Robert Dewar  <dewar@adacore.com>
4159         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
4161         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
4162         unchecked conversion for different conventions only for subprogram
4163         pointers or on VMS.
4165 2008-03-26  Vincent Celier  <celier@adacore.com>
4167         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
4168         to check if the specified object file is correct.
4170 2008-03-26  Thomas Quinot  <quinot@adacore.com>
4172         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
4173         Comes_From_Source to exclude primitives from being checked. We want to
4174         exclude predefined primitives only, so use the appropriate specific
4175         predicate. Also, flag a formal parameter of an anonymous
4176         access-to-subprogram type as illegal for a primitive operation of a
4177         remote access to class-wide type.
4179 2008-03-26  Vincent Celier  <celier@adacore.com>
4181         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
4182         known, check if it may be a missspelling of a known package name. In
4183         not verbose, not mode, issue warnings only if the package name is a
4184         possible misspelling.
4185         In verbose mode, always issue a warning for a not known package name,
4186         plus a warning if the name is a misspelling of a known package name.
4188         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
4189         limited withs or limited withs are parse during one call.
4190         (Parse_Single_Project): Post parse context clause in two passes: non
4191         limited withs before current project and limited withs after current
4192         project.
4194         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
4195         project with the name With_Name, even if it is only extended indirectly.
4196         (Recursive_Process): Process projects in order: first single withs, then
4197         current project, then limited withs.
4199         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
4200         project with the name With_Name, even if it is only extended indirectly.
4202 2008-03-26  Robert Dewar  <dewar@adacore.com>
4204         * scn.adb (Initialize_Scanner): Format messages belong on standard error
4206 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
4208         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
4209         a generic subprogram that is imported, do not attempt to compile
4210         non-existent body.
4212         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
4213         imported, do not generate a raise_program_error for the non-existent
4214         body.
4215         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
4216         perform minimal name resolution on the generic to avoid spurious
4217         warnings.
4218         (Find_Actual_Type): the designated type of the actual in a child unit
4219         may be declared in a parent unit without being an actual.
4221 2008-03-26  Robert Dewar  <dewar@adacore.com>
4223         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
4224         * sinfo.ads, sinfo.adb (From_At_End): New flag
4226 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
4228         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
4229         operations that have an interface parameter.
4230         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
4231         Don't treat No_Return call as raise.
4233         * sem_disp.adb (Check_Dispatching_Operations): apply check for
4234         non-primitive interface primitives to access parameters, not to all
4235         parameters of an access type.
4237 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
4239         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
4240         declarations of a parent unit are made visible when compiling a child
4241         instance, the parent is not a hidden open scope, even though it may
4242         contain other pending instance.
4243         
4244         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
4245         hidden open scope for some child instance, it does affect the
4246         visibility status of other stach entries.
4247         (Analyze_Object_Renaming): Check that a class-wide object cannot be
4248         renamed as an object of a specific type.
4250 2008-03-26  Robert Dewar  <dewar@adacore.com>
4252         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
4253         recursion and raise SE directly.
4254         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
4255         set for formal type for IN mode parameter.
4257 2008-03-26  Robert Dewar  <dewar@adacore.com>
4259         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
4260         (Initialize): New procedure
4261         (Output_Warnings_Off_Warnings): New procedure
4262         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
4263         (Output_Non_Modifed_In_Out_Warnings): Ditto
4264         (Warn_On_Unreferenced_Entity): Ditto
4266 2008-03-26  Vincent Celier  <celier@adacore.com>
4268         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
4269         readable.
4271 2008-03-26  Matthew Heaney  <heaney@adacore.com>
4273         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads, 
4274         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
4275         Marked with clauses as private, and controlled operations as overriding
4277 2008-03-26  Robert Dewar  <dewar@adacore.com>
4279         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
4281 2008-03-26  Robert Dewar  <dewar@adacore.com>
4283         * back_end.adb, back_end.ads: Minor reformatting
4285         * bindgen.adb: Minor clarification of comments
4287         * fname.ads: Minor comment fixes
4289         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
4290         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
4292         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
4293         xsnames.adb: Remove warnings off pragma no longer needed
4295         * a-catizo.ads, a-calari.ads, a-calfor.adb,
4296         a-calfor.ads: Fix header.
4298 2008-03-26  Tristan Gingold  <gingold@adacore.com>
4300         * init.c: Do not adjust pc for HPARITH on alpha/vms.
4302 2008-03-26  Robert Dewar  <dewar@adacore.com>
4304         * lib-xref.adb: (OK_To_Set_Reference): New function
4305         (Generate_Reference): Don't set referenced from occurrence in Warnings,
4306         Unmodified, or Unreferenced pragma
4308 2008-03-26  Robert Dewar  <dewar@adacore.com>
4310         * alloc.ads: Add entries for Warnings_Off_Pragmas table
4312 2008-03-26  GNAT Script  <nobody@adacore.com>
4314         * Make-lang.in: Makefile automatically updated
4316 2008-03-26  Robert Dewar  <dewar@adacore.com>
4318         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
4319         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
4320         removed, use Chars (Pragma_Identifier (..  instead, adjustments
4321         throughout to accomodate this change.
4323         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
4325         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
4326         Einfo.Set_Needs_Debug_Info)
4328 2008-03-26  Robert Dewar  <dewar@adacore.com>
4330         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
4331         Add description for the new gnatstub option '--header-file'
4332         clarification of -gnatwz/-gnatwZ
4333         Add a "Irix-Specific Considerations" section to document the need to
4334         set LD_LIBRARY_PATH when using the default shared runtime library.
4335         Added documentation for both gcov and gprof.
4337         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
4338         messages that are not suppressed when clients are compiled.
4339         Add documentation of s-pooglo s-pooloc
4340         Document the new GNAT.Serial_Communications API.
4341         Add documentation for 'Old attribute
4342         Add description of pragma Optimize_Alignment
4344         * ug_words: Add entries for -gnatw.w -gnatw.W
4346         * usage.adb: Add line for -gnatw.w (warn on warnings off)
4348 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
4350         Revert
4351         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
4352         PR ada/35186
4353         * decl.c (maybe_pad_type): Avoid padding an integral type when
4354         bumping its alignment is sufficient.
4356 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
4358         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
4359         Fix wrong formatting (lines too long)
4361 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4363         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
4364         a-calend-vms.adb, a-calend.adb, a-calend.ads,
4365         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
4366         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
4367         a-cohama.ads, a-comlin.ads, a-coorse.adb,
4368         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
4369         a-except-2005.ads, a-except.adb, a-except.ads,
4370         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
4371         a-exextr.adb, a-filico.ads, a-finali.ads,
4372         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
4373         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
4374         a-sequio.ads, a-strbou.ads, a-strfix.adb,
4375         checks.adb, exp_ch3.adb, exp_ch4.adb,
4376         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
4377         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
4378         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
4379         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
4380         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
4382 2008-03-24  Robert Dewar  <dewar@adacore.com>
4384         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
4385         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
4386         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
4387         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
4388         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
4389         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4390         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4391         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
4392         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
4393         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
4394         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
4395         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
4396         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
4397         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
4398         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
4399         double spaced if it fits on one line and otherwise single spaced.
4401 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4403         PR documentation/15479
4404         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
4405         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
4406         (doc/gnat_ugn.info): Renamed from ...
4407         (doc/gnat_ugn_unw.info): ... this.
4408         (doc/gnat_ugn.dvi): Renamed from ...
4409         (doc/gnat_ugn_unw.dvi): ... this.
4410         (doc/gnat_ugn.pdf): Renamed from ...
4411         (doc/gnat_ugn_unw.pdf): ... this.
4412         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
4413         Adjusted.
4414         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
4415         unconditionally to gnat_ugn.info.  Fix cross references to the
4416         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
4417         and GNU make manuals to be proper texinfo links.
4418         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
4420 2008-03-21  Olivier Hainque  <hainque@adacore.com>
4422         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
4423         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
4425 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
4427         * trans.c (addressable_p): Add notes on addressability issues.
4429 2008-03-21  Olivier Hainque  <hainque@adacore.com>
4430             Ed Schonberg  <schonberg@adacore.com>
4432         * trans.c (addressable_p): Accept COND_EXPR when both arms
4433         are addressable.
4434         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
4435         (call_to_gnu): Do not use name reference in the error message
4436         for a misaligned by_reference_parameter. The actual may be a
4437         general expression.
4439 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
4441         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
4443 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4445         * gnat_rm.texi (Implementation Defined Characteristics)
4446         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
4447         appropriate.
4448         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
4449         (Switches for gnatchop, Installing a library): Likewise.
4451 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
4453         * trans.c (emit_range_check): Do not emit the check if the base type
4454         of the expression is the type against which its range must be checked.
4456 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4458         * decl.c (maybe_pad_type): Use value_factor_p.
4460 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4462         * lang.opt (nostdlib): Move around.
4463         * misc.c (gnat_handle_option): Fix formatting.
4464         (gnat_dwarf_name): Move around.
4465         * trans.c (Case_Statement_to_gnu): Fix formatting.
4466         (gnat_to_gnu): Likewise.
4467         * utils.c (aggregate_type_contains_array_p): Likewise.
4468         (create_subprog_decl): Likewise.
4470 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4472         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
4473         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
4475 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4477         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
4478         BIGGEST_ALIGNMENT when capping the alignment of records with
4479         strict alignment and size clause.
4481 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4483         * lang-specs.h: Pass -gnatwa if -Wall is passed.
4484         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
4485         and -Wuninitialized.
4486         (gnat_post_options): Clear warn_unused_parameter.
4488 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4490         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
4491         aligned bit-fields, bumping the alignment of the record type if deemed
4492         profitable.
4493         (value_factor_p): Return false instead of 0.
4495 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4497         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
4498         for scalar types with small alignment.
4500 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4502         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
4503         from that of the front-end's end label.
4504         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
4505         from that of the loop label.
4507 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
4509         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
4510         comment for the packed array type case.
4511         * utils.c (build_template): Use a loop to strip padding or
4512         containing records for justified modular types.
4514 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
4516         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
4517         large alignments specified for types.
4518         (validate_alignment): Minor cleanup.
4520 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
4522         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
4523         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
4524         the component for packing, if possible, as well as if a component
4525         size clause is specified.
4526         <E_Record_Subtype>: For an array type used to implement a packed
4527         array, get the component type from the original array type.
4528         Try to get a smaller form of the component for packing, if possible,
4529         as well as if a component size clause is specified.
4530         (round_up_to_align): New function.
4531         (make_packable_type): Add in_record parameter.
4532         For a padding record, preserve the size.  If not in_record and the
4533         size is too large for an integral mode, attempt to shrink the size
4534         by lowering the alignment.
4535         Ditch the padding bits of the last component.
4536         Compute sizes and mode manually, and propagate the RM size.
4537         Return a BLKmode record type if its size has shrunk.
4538         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
4539         Use Original_Array_Type to retrieve the type in case of an error.
4540         Adjust call to make_packable_type.
4541         (gnat_to_gnu_field): Likewise.
4542         (concat_id_with_name): Minor tweak.
4543         * trans.c (larger_record_type_p): New predicate.
4544         (call_to_gnu): Compute the nominal type of the object only if the
4545         parameter is by-reference.  Do the conversion actual type -> nominal
4546         type if the nominal type is a larger record.
4547         (gnat_to_gnu): Do not require integral modes on the source type to
4548         avoid the conversion for types with identical names.
4549         (addressable_p): Add gnu_type parameter.  If it is specified, do not
4550         return true if the expression is not addressable in gnu_type.
4551         Adjust recursive calls.
4552         * utils.c (finish_record_type): Remove dead code.
4554 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
4556         PR ada/35186
4557         * decl.c (maybe_pad_type): Avoid padding an integral type when
4558         bumping its alignment is sufficient.
4560 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4562         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
4563         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
4564         statement.
4565         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
4566         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
4567         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
4568         code output strings.
4569         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
4570         system-vms_64.ads: Fix typos in ada source code comments.
4571         * sinfo-cn.adb: Remove incomplete sentence.
4573         PR documentation/15479
4574         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
4576 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
4578         PR ada/22255
4579         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
4581 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
4583         PR ada/34799
4584         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
4585         that underlying type is present.
4587 2008-02-26  Tom Tromey  <tromey@redhat.com>
4589         * misc.c (internal_error_function): Remove test of
4590         USE_MAPPED_LOCATION.
4591         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
4592         (Sloc_to_locus): Remove old location code.
4594 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4596         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
4597         `i.e.' by adding comma or `@:' as appropriate.
4598         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
4599         plain characters `C', use `@samp{C}'.
4600         * gnat_ugn.texi (File Naming Rules, About gnatkr)
4601         (Krunching Method): Likewise.
4603         * gnat_ugn.texi (Conventions): List environment variables and
4604         metasyntactic variables.
4605         (Compiling Programs): Fix notation of metasyntactic variables.
4606         Add @file where appropriate.  Use @file for file extensions,
4607         @samp for strings.
4608         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
4609         instead of @file, @env instead of @code.
4611 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4613         PR documentation/15479
4614         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
4615         and `...' with `@dots{}' or `@enddots{}'.
4617         PR documentation/15479
4618         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
4619         use @command instead of @code, @option instead of @samp or @code,
4620         @code instead of @var, @samp instead of @file.
4622         PR documentation/15479
4623         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
4624         in Makefile rules, by using `&&' rather than `;'.
4626 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4628         PR documentation/15479
4629         * gnat_ugn.texi: In non-code, avoid space before colon.
4630         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
4631         (Examples of gnatxref Usage): Use @command{vi} instead of
4632         @file{vi}.
4633         (Character Set Control): Do not use @code for UTF-8.
4634         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
4635         use @code for IEEE.
4636         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
4637         sample.
4638         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
4640 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
4642         PR ada/35143
4643         * env.c: Add __rtems__ to if defined.
4644         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
4645         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
4646         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
4647         pragma Convention as required.
4648         * gsocket.h: Make compile in and out of RTS.
4649         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
4650         Use g-soccon-rtems.ads.
4651         * g-soccon-rtems.ads, system-rtems.ads: New files.
4653 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4655         PR other/35107
4656         * Make-lang.in (gnat1): Add $(GMPLIBS).
4658 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
4660         * decl.c (components_to_record): Improve comment.
4662 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
4664         * decl.c (components_to_record): Do not reuse the empty union type
4665         if there is a representation clause on the record.
4666         * trans.c (addressable_p): Return true for INTEGER_CST.
4668 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
4670         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
4671         in pointer arithmetics.
4672         * utils2.c (build_allocator): Likewise.
4674 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
4676         * utils.c (build_function_stub): Properly build the call expression.
4678 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
4680         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
4681         before converting the expression to the type of the object.
4682         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
4683         Stabilize constructors for special wrapping types.
4685 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
4687         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
4688         when necessary.  Merge some conditional statements.  Update comments.
4689         Rename unchecked_convert_p local variable to suppress_type_conversion.
4690         Do not suppress conversions in the In case.
4691         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
4692         into account on non strict-alignment platforms.
4694 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
4696         * utils.c (aggregate_type_contains_array_p): New predicate.
4697         (create_field_decl): In a packed record, force byte alignment
4698         for fields without specified position that contain an array.
4700 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
4702         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
4704 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
4706         PR ada/34466
4707         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
4708         sysconf call.
4709         (bit_field): New packed boolean type used by cpu_set_t.
4710         (cpu_set_t): New type corresponding to the C type with
4711         the same name. Note that on the Ada side we use a bit
4712         field array for the affinity mask. There is not need
4713         for the C macro for setting individual bit.
4714         (pthread_setaffinity_np): New imported routine.
4716 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
4718         PR ada/34647
4719         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4720         on OpenBSD as is done on other BSD systems.
4722         PR ada/34645
4723         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
4724         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
4725         I/O.
4727         PR ada/34644
4728         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
4729         clearenv().
4731         PR ada/34646
4732         * init.c (__gnat_error_handler, __gnat_install_handler,
4733         __gnat_init_float): Define for OpenBSD.
4735         * initialize.c (__gnat_initialize): Define for OpenBSD.
4737 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
4739         PR ada/34553
4740         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4741         instead of mktemp() or tmpnam() on NetBSD.
4743 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
4745         * trans.c (call_to_gnu): Make the temporary for non-addressable
4746         In parameters passed by reference.
4747         (addressable_p): Return true for STRING_CST and CALL_EXPR.
4749 2007-12-19  Robert Dewar  <dewar@adacore.com>
4751         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb: 
4752         Add pragma Warnings (Off) for unassigned IN OUT arguments
4754         * sem_warn.adb (Output_Reference): Suppress messages for internal names
4755         (Check_References): Extensive changes to tune up warnings
4756         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
4757         (Has_Pragma_Unmodifed_Check_Spec): New function
4758         (Check_References): Implement pragma Unmodified
4759         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
4761         * par-prag.adb: Dummy entry for pragma Unmodified
4763         * sem_prag.adb: Implement pragma Unmodified
4765         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
4766         (Proc_Next_Component_Or_Discriminant): Fix typo.
4767         Update comments.
4769         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
4770         Unmodified.
4771         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
4772         because the former already takes care of discarding the result.
4773         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
4774         Add comment.
4776         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
4778 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
4780         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
4781         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
4782         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
4783         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
4784         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4785         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
4786         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
4787         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
4788         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4789         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
4790         (Dynamic_Trampolines_Used): Delete.
4792         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
4793         Turn on stack probing mechanism on LynxOS.
4795 2007-12-19  Bob Duff  <duff@adacore.com>
4797         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
4798         the resulting tail recursion by hand. This prevents running out of
4799         memory on deeply nested concatenations, since Field2 is where the left
4800         operand of concatenations is stored.
4801         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
4802         clarify that it can only return OK or Abandon.
4804         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
4805         operand by iteration, in order to avoid running out of memory on
4806         deeply-nested concatenations. Use the Parent pointer to get back up the
4807         tree.
4808         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
4809          Resolve_Op_Concat_Rest): New procedures split out of
4810         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
4811         clearer.
4813         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
4814         Traverse_Func, because the former already takes care of discarding the
4815         result.
4817         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
4818         because the former already takes care of discarding the result.
4819         (Remove_Warning_Messages): Use appropriate subtype for Status and
4820         Discard 
4822 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
4824         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
4825         discriminants forces expansion of the aggregate into assignments.
4826         (Init_Record_Controller):  If the type of the aggregate is untagged and
4827         is not inherently limited, the record controller is not limited either.
4829 2007-12-19  Robert Dewar  <dewar@adacore.com>
4831         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
4832         handling compile time known size of record or array (case of front end
4833         layout active, e.g. in GNAAMP).
4835 2007-12-19  Javier Miranda  <miranda@adacore.com>
4837         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
4838         that forces the construction of static dispatch tables in case of
4839         record subtypes.
4841 2007-12-19  Robert Dewar  <dewar@adacore.com>
4843         * exp_ch9.adb (Null_Statements): Moved to library level
4844         (Trivial_Accept_OK): New function
4845         (Expand_Accept_Declaration): Use Trivial_Accept_OK
4846         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
4848 2007-12-19  Robert Dewar  <dewar@adacore.com>
4850         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
4851         in complex case where array is Volatile.
4853 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
4855         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
4856         properly the Ada2005 rules concerning when the current instance of a
4857         record type is aliased.
4859 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
4861         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
4862         mangled declaration
4863         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
4864         declarations.
4865         (P_Variant_Part): Cleaner patch for parenthesized discriminant
4867 2007-12-19  Vincent Celier  <celier@adacore.com>
4869         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
4870         package is not known
4872         * prj-attr.ads (Unknown_Package): New constant
4873         Do not crash when an unknown package is in several projects
4875         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
4876         ignored
4878         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
4879         existing package Language_Processing.
4881 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
4882             Gary Dismukes  <dismukes@adacore.com>
4883             Samuel Tardieu  <sam@rfc1149.net>
4885         PR ada/15803, ada/15805
4886         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
4887         illegal access subtypes when there is a constrained partial view.
4888         (Check_For_Premature_Usage): New procedure inside
4889         Access_Subprogram_Declaration for checking that an access-to-subprogram
4890         type doesn't reference its own name within any formal parameters or
4891         result type (including within nested anonymous access types).
4892         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
4893         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
4894         context is an access_to_variable, the expression cannot be an
4895         access_to_constant.
4897 2007-12-19  Bob Duff  <duff@adacore.com>
4899         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
4900         (Analyze_Concatenation): Use iteration instead of recursion in order
4901         to avoid running out of stack space for deeply nested concatenations.
4903 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
4904             Gary Dismukes  <dismukes@adacore.com>
4906         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
4907         whose renamed entity is a subprogram that requires overriding.
4908         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
4909         issuing an error for premature usage and issue a message that says
4910         'type' rather than 'object'.
4912 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
4914         PR ada/34149
4915         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
4916         presence of a statically tagged operand (Present (Static_Tag)) with
4917         test for Indeterm_Ancestor_Call when determining whether to propagate
4918         the static tag to tag-indeterminate operands (which forces dispatching
4919         on such calls).
4920         (Check_Controlling_Formals): Ada2005, access parameters can have
4921         defaults.
4922         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
4923         not insert subprogram in list of primitive operations if already there.
4925 2007-12-19  Tristan Gingold  <gingold@adacore.com>
4927         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
4928         global variable.
4930 2007-12-19  Thomas Quinot  <quinot@adacore.com>
4932         Part of PR ada/33688
4933         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
4934         datagram info on Linux.
4936 2007-12-19  Vincent Celier  <celier@adacore.com>
4938         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
4939         that the source path name is always found in the dependencies.
4941 2007-12-19  Robert Dewar  <dewar@adacore.com>
4943         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
4944         Fix name of Wide_Wide_Latin_1/9 file names
4945         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
4946         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
4947         Add missing documentation for Ada.Command_Line.Response_File
4948         Update list of warning letters for Warnings pragma
4949         Add documentation for pragma Unmodified
4951 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
4953         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
4955 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
4957         * s-vxwork-alpha.ads: Removed, no longer used.
4959 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
4961         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
4963 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
4965         PR ada/34360
4966         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
4967         mlib-tgt-specific.adb.
4969 2007-12-13  Bob Duff  <duff@adacore.com>
4971         * trans.c (Attribute_to_gnu): Check for violations of the
4972         No_Implicit_Dynamic_Code restriction. This checking used to be done in
4973         the front end, but is moved here so we can make it more accurate.
4975 2007-12-13  Pascal Obry  <obry@adacore.com>
4977         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
4978          version is provided for older GNU/Linux distribution not
4979          supporting thread affinity sets.
4980         
4981         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
4982         call.
4983         (bit_field): New packed boolean type used by cpu_set_t.
4984         (cpu_set_t): New type corresponding to the C type with
4985         the same name. Note that on the Ada side we use a bit
4986         field array for the affinity mask. There is not need
4987         for the C macro for setting individual bit.
4988         (pthread_setaffinity_np): New imported routine.
4989         
4990         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
4991         no null.
4992         (Create_Task): Set the processor affinity mask if information
4993         is present.
4994         
4995         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
4996         
4997 2007-12-13  Robert Dewar  <dewar@adacore.com>
4999         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, 
5000         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, 
5001         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, 
5002         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
5003         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
5004         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, 
5005         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, 
5006         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
5007         for subprogram pointers.
5009         * g-ctrl_c.adb: New file.
5011         * g-ctrl_c.ads (Install_Handler): New body.
5013         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
5014         instead of obsolete function Is_Always_Inlined.
5015         (Freeze_Entity): check for tagged type in imported C subprogram
5016         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
5017         (Freeze_Entity): check for convention Ada subprogram pointer in
5018         imported C subprogram.
5019         (Freeze_Fixed_Point_Type): In the case of a base type where the low
5020         bound would be chopped off and go from negative to zero, force
5021         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
5022         bound) so that the size computation for the base type will take
5023         negative values into account.
5025 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
5026             Bob Duff  <duff@adacore.com>
5027             Tristan Gingold  <gingold@adacore.com>
5029         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
5030         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
5031         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
5032         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
5033         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
5034         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
5035         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
5036         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
5037         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
5038         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
5039         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
5040         (Always_Compatible_Rep): New flag to control trampolines globally.
5041         (Dynamic_Trampolines_Used): New flag for implementing the
5042         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
5043         and not yet set correctly for some targets).
5045         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
5046         Simply indirectly call s-stchop when a task is created.
5048         * ali.ads: 
5049         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
5050         appears as an argument (entries A) in an ALI file.
5052         * fe.h (Stack_Check_Limits): Declare new target parameter.
5053         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
5055         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
5056         This variable is declared in C to be sure not subject to elaboration
5057         code.
5058         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
5059         Storage_Error.
5061         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
5062         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
5064         * s-stchop.ads: Add comments.
5066         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
5067         limit method of stack checking.
5069         * s-stchop-limit.ads: New file.
5071 2007-12-13  Robert Dewar  <dewar@adacore.com>
5073         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, 
5074         a-cihama.adb, g-awk.adb, 
5075         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
5076         warnings
5078         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
5080         * sem.adb: Update handling of assigned value/unreferenced warnings
5082         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
5084         * lib-xref.ads: Improve documentation for k xref type
5086         * lib-xref.adb: 
5087         Update handling of assigned value/unreferenced warnings
5088         (Generate_Reference): Warning for reference to entity for which a
5089         pragma Unreferenced has been given should be unconditional.
5090         If the entity is a discriminal, mark the original
5091         discriminant as referenced.
5093         * sem_warn.ads, sem_warn.adb
5094         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
5095         no entities referenced in package
5096         (Check_One_Unit): Don't give message about no entities referenced in
5097         a package if a pragma Unreferenced has appeared.
5098         Handle new warning flag -gnatw.a/-gnatw.A
5099         Update handling of assigned value/unreferenced warnings
5101         * atree.h: Add flags up to Flag247
5102         (Flag231): New macro.
5104 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
5106         * adaint.h: (__gnat_plist_init): Not defined for RTX.
5108         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
5109         RTX systems.
5111         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
5112         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
5113         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
5114         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
5116         * mingw32.h: 
5117         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
5119         * sysdep.c (winflush_function for RTX): Procedure that does nothing
5120         since we only have problems with Windows 95/98, which are not
5121         supported by RTX.
5122         (__gnat_ttyname): Return the empty string on Nucleus, just as
5123         done on vxworks.
5125 2007-12-13  Robert Dewar  <dewar@adacore.com>
5127         * a-textio.adb, a-textio.ads: 
5128         Extensive changes to private part for wide character encoding
5130         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
5131         (Look_Ahead): Fix mishandling of encoded sequences
5132         Move declaration of Wch_Con to private part (should not be visible)
5134         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
5135         UTF-8. Probably this is never used, but if it is, brackets is
5136         clearly correct.
5138         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
5139         setting wide character encoding for no main program case and when
5140         encoding is specified using -W?
5141         Initialize stack limit of environment task if stack limit method of
5142         stack checking is enabled.
5143         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
5144         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
5145         (Get_Main_Unit_Name): New function.
5146         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
5147         (Gen_Output_File): Set Bind_Main_Program to True for .NET
5149         * bindusg.adb: Add line for -Wx switch
5151         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
5152         Add comments
5153         Add new useful constant WC_Longest_Sequences
5155         * switch-b.adb: Clean up handling of -Wx switch
5156         For -gnatWx, set Wide_Character_Encoding_Method_Specified
5158         * switch-c.adb: -gnatg activates warning on assertion errors
5159         For -gnatWx, set Wide_Character_Encoding_Method_Specified
5161         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
5163 2007-12-13  Robert Dewar  <dewar@adacore.com>
5164             Ed Schonberg  <schonberg@adacore.com>
5166         * a-ngcoty.adb: New pragma Fast_Math
5168         * opt.adb: New pragma Fast_Math
5170         * par-prag.adb: 
5171         Add Implemented_By_Entry to the list of pragmas which do not require any
5172         special processing.
5173         (Favor_Top_Level): New pragma.
5174         New pragma Fast_Math
5176         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
5177         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5178         Expand_Allocator_Expression): Take into account VM_Target
5179         (Expand_Attribute, case 'Identity):  Handle properly the case where
5180         the prefix is a task interface.
5181         New pragma Fast_Math
5183         * par.adb (Next_Token_Is): New function
5184         (P_Pragma): Add Skipping parameter
5185         (U_Left_Paren): New procedure
5186         (U_Right_Paren): New procedure
5187         New pragma Fast_Math
5189         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
5190         subunit
5191         New pragma Fast_Math
5193         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
5194         Implemented_By_Entry.
5195         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
5196         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
5197         items, since it can apply to more than one overloadable entity. Set
5198         new flag Has_Pragma_Inline_Always for Inline_Always case.
5199         (Analyze_Pragma, case Complex_Representation): Improve error message.
5200         (Analyze_Pragma, case Assert): When assertions are disabled build the
5201         rewritten code with Sloc of expression rather than pragma, so new
5202         warning about failing is not deleted.
5203         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
5204         protected types and update error message to reflect that. Test whether
5205         the protected type is allowed for the pragma (an error is issued if the
5206         type has any entries, or components that do not have preelaborable
5207         initialization).
5208         New pragma Fast_Math
5209         (Analyze_Pragma, case No_Return): Handle generic instance
5211         * snames.h, snames.ads, snames.adb: 
5212         Add new predefined name for interface primitive _Disp_Requeue.
5213         New pragma Fast_Math
5215         * a-tags.ads, a-tags.adb: New calling sequence for
5216         String_To_Wide_[Wide_]String
5217         (Secondary_Tag): New subprogram.
5219         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
5220         from Exp_Attr
5221         New calling sequence for String_To_Wide_[Wide_]String
5222         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
5223         the use of the secondary stack for image routines.
5225         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
5226         calling sequence for String_To_Wide_[Wide_]String
5228         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
5229         Ada 95 mode
5230         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
5231         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5233         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
5234         (P_Formal_Part): Use Skipping parameter in P_Pragma call
5235         to improve error recovery
5237         * par-util.adb (Next_Token_Is): New function
5238         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
5240         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
5241         semicolon if missing
5242         (P_Pragma): Implement new Skipping parameter
5243         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5244         Fix location of flag for unrecognized pragma message
5246         * par-tchk.adb (U_Left_Paren): New procedure
5247         (U_Right_Paren): New procedure
5249 2007-12-13  Geert Bosch  <bosch@adacore.com>
5251         * a-tifiio.adb: 
5252         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
5253         the second or later Scaled_Divide would omit leading zeroes,
5254         resulting in too few digits produced and a Layout_Error as result.
5255         (Put): Initialize Pos.
5257 2007-12-13  Robert Dewar  <dewar@adacore.com>
5259         atree.ads, atree.adb (Flag231..Flag247): New functions
5260         (Set_Flag231..Set_Flag247): New procedures
5261         (Basic_Set_Convention): Rename Set_Convention to be
5262         Basic_Set_Convention
5263         (Nkind_In): New functions
5264         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5266         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
5267         instead
5268          of obsolete function Is_Always_Inlined
5269         (Register_Predefined_DT_Entry): Initialize slots of the second
5270         secondary dispatch table.
5271         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5272         (Expand_N_Function_Call): Remove special provision for stack checking.
5274         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
5275         Include _Disp_Requeue in the list of predefined operations.
5276         (Find_Interface_ADT): Modified to fulfill the new specification.
5277         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5279         * par-ch4.adb, nlists.ads, nlists.adb: 
5280         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5282         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
5283         Fix location of flag for unrecognized pragma message
5285         * sem_ch7.adb: Use Nkind_In
5287 2007-12-13  Vincent Celier  <celier@adacore.com>
5289         * opt.ads: 
5290         Indicate what flags are used by the Project Manager, gprbuild and
5291         gprclean.
5292         (Opt.Follow_Links_For_Dirs): New flag
5293         (Warn_On_Assertion_Failure): New flag
5294         (Wide_Character_Encoding_Method_Specified): New flag
5295         (Suppress_All_Inlining): New switch set by -fno-inline
5296         (Real_VMS_Target): New flag
5297         New pragma Fast_Math
5299 2007-12-13  Robert Dewar  <dewar@adacore.com>
5301         * back_end.adb: Recognize -fno-inline
5303 2007-12-13  Robert Dewar  <dewar@adacore.com>
5305         * checks.adb: Fix optimization problem with short-circuited form
5307 2007-12-13  Bob Duff  <duff@adacore.com>
5309         * clean.adb (Usage): Add line for -aP
5310         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
5311         with a parameter "procedure Usage", instead of passing a pointer to a
5312         procedure. This is to eliminate trampolines (since the Usage procedure
5313         is often nested in a main procedure, and it would be inconvenient to
5314         unnest it).
5316         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
5317         to be generic, with a parameter "procedure Callback (...)", instead of
5318         passing a pointer to a procedure. This is to eliminate trampolines
5319         (since the Callback procedure is usually nested).
5321         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, 
5322         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
5323         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
5325         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
5326         Use the generic Heap_Sort_G instead of Heap_Sort_A.
5328 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5330         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
5331         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
5332         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
5333         (Renamed_In_Spec): New flag
5334         (Has_Pragma_Inline_Always): New flag
5335         Add missing doc for pragma Obsolescent_Warning
5336         Add missing doc for 17 additional unused flags (230-247)
5337         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
5338         Alphabetize with clauses.
5339         Separate Is_Thunk and Has_Thunks flags
5340         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
5341         (Related_Interface): Renamed to Related_Type.
5342         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
5343         (Set_Is_Flag): Restrict the assertion.
5345 2007-12-13  Vincent Celier  <celier@adacore.com>
5347         * errout.adb (Output_Source_Line): Do not keep a trailing space after
5348         the source line number if the source line is empty.
5350 2007-12-13  Geert Bosch  <bosch@adacore.com>
5352         * eval_fat.adb (Decompose_Int): Handle argument of zero.
5353         (Compose): Remove special casing of zero.
5354         (Exponent): Likewise.
5355         (Fraction): Likewise.
5356         (Machine): Likewise.
5357         (Decompose): Update comment.
5359 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
5361         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
5362         limited ancestor part, initialize controllers of enclosing record
5363         before expanding ancestor aggregate.
5364         (Gen_Assign): If a component of the aggregate is box-initialized, add
5365         code to call Initialize if the component is controlled, and explicit
5366         assignment of null if the component is an access type.
5368         Handle properly aggregates for limited types that appear in object
5369         declarations when the aggregate contains controlled values such as
5370         protected types.
5371         When expanding limited aggregates into individual components, do not
5372         call Adjust on controlled components that are limited.
5374 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
5376         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
5378 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5380         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
5381         predefined primitive _Disp_Requeue.
5382         (Make_Predefined_Primitive_Specs): Create the spec for predefined
5383         primitive _Disp_Requeue.
5384         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
5385         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
5386         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
5387         an interface type. In case of limited interfaces we now declare all the
5388         predefined primitives associated with synchronized interfaces as
5389         abstract.
5390         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
5391         declarations.
5392         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
5393         tagged type is an interface type and there is no user-defined equality
5394         function.
5395         Add also bodies of predefined primitives associated with synchronized
5396         interfaces.
5397         (Freeze_Record_Type): Do not build bodies of predefined primitives of
5398         interface types because they are now defined abstract.
5399         Add missing documentation.
5400         (Expand_Record_Controller): Update occurrence of Related_Interface
5401         to Related_Type.
5402         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
5403         (Expand_N_Object_Declaration): Take into account VM_Target when handling
5404         class wide interface object declaration.
5405         (Expand_Previous_Access_Type): Do not create a duplicate master entity
5406         if the access type already has one.
5407         (Expand_N_Object_Declaration): Defend against attempt to validity check
5408         generic types. Noticed for -gnatVcf specified with previous errors.
5410 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
5412         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5413         Expand_Allocator_Expression): Take into account VM_Target
5415         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
5416         secondary stack when VM_Target /= No_VM
5418 2007-12-13  Javier Miranda  <miranda@adacore.com>
5419             Ed Schonberg  <schonberg@adacore.com>
5421         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
5422         Is_Complation_Unit by Is_Library_Level_Entity in the code
5423         that decides if the static dispatch tables need to be built.
5424         (Wrap_Transient_Declaration): Do not generate a finalization call if
5425         this is a renaming declaration and the renamed object is a component
5426         of a controlled type.
5428 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
5430         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
5431         In the case where the renamed subprogram is a dereference, call
5432         Force_Evaluation on the prefix.
5434 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5435             Ed Schonberg  <schonberg@adacore.com>
5437         * exp_ch9.adb (Expand_N_Asynchronous_Select,
5438         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
5439         comment reformatting.
5440         (Set_Privals): Inherit aliased flag from formal. From code reading.
5441         (Build_Simple_Entry_Call): Out parameters of an access type are passed
5442         by copy and initialized from the actual. This includes entry parameters.
5443         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
5444         and Ada 2005 models of requeue.
5445         (Null_Statements): Still connsider do-end block null if it contains
5446         Unreferenced and Warnings pragmas.
5447         (Expand_N_Accept_Statement): Do not optimize away null do end if
5448         dispatching policy is other than defaulted.
5449         (Expand_N_Timed_Entry_Call): When the triggering statement is a
5450         dispatching call, manually analyze the delay statement.
5451         (Find_Parameter_Type): Move subprogram to Sem_Util.
5453 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5454             Javier Miranda  <miranda@adacore.com>
5456         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
5457         _Disp_Requeue occupies dispatch table slot number 15. Move
5458         _Disp_Timed_Select to slot 16.
5459         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
5460         generate the spec and body of _Disp_Reqeueue.
5461         (Make_DT): Build and initialize the second dispatch table.
5462         Handle initialization of RC_Offset when the parent
5463         is a private type with variable size components.
5464         (Make_Secondary_DT): Complete documentation. Add support to
5465         initialize the second dispatch table.
5466         (Make_Tags): Generate the tag of the second dispatch table.
5467         (Register_Primitive): Add support to register primitives in the
5468         second dispatch table.
5470 2007-12-13  Pascal Obry  <obry@adacore.com>
5472         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
5473         Windows. This signal is used by gnatmake to kill child processes for
5474         example.
5476 2007-12-13  Javier Miranda  <miranda@adacore.com>
5478         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
5479         support for generic dispatching constructor calls in which we need to
5480         locate the tag of a secondary dispatch table associated with an
5481         interface type to properly dispatch the call.
5482         (Expand_N_Attribute_Reference [case Address],
5483         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
5484         handling of VM targets.
5486 2007-12-13  Robert Dewar  <dewar@adacore.com>
5487             Ed Schonberg  <schonberg@adacore.com>
5489         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
5490         assert fail
5492         * ug_words: Add entries for -gnatw.a -gnatw.A
5494         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
5495         literal is a subtype with non-static constraints, use the base type of
5496         the context as the base of the string subtype, to prevent type
5497         mismatches in gigi.
5498         (Resolve_Actuals): If the actual is an entity name, generate a
5499         reference before the actual is resolved and expanded, to prevent
5500         spurious warnings on formals of enclosing protected operations.
5501         (Analyze_Overloaded_Selected_Component): If type of prefix if
5502         class-wide, use visible components of base type.
5503         (Resolve_Selected_Component): Ditto.
5504         (Resolve_Short_Circuit): Detect case of pragma Assert argument
5505         evaluating to False, and issue warning message.
5507         * usage.adb: Add lines for -gnatw.a and -gnatw.A
5509 2007-12-13  Emmanuel Briot  <briot@adacore.com>
5511         * g-calend.ads (No_Time): New constant, to represent an uninitialized
5512         time value
5514         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
5515         formats.
5516         (Month_Name_To_Number): New subprogram
5518         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
5519         letter to upper-case.
5521 2007-12-13  Robert Dewar  <dewar@adacore.com>
5522             Ed Schonberg  <schonberg@adacore.com>
5524         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
5526         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
5527         context is a limited view, use non-limited view when available. If the
5528         non-limited view is an unconstrained array, this enforces consistency
5529         requirements in 3.10.2 (27).
5530         (Layout_Type): For an access type whose designated type is a limited
5531         view, examine its declaration to determine if it is an unconstrained
5532         array, and size the access type accordingly.
5533         (Layout_Type): Do not force 32-bits for convention c subprogram
5534         pointers in -gnatdm mode, only if real vms target.
5536         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
5537         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5538         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
5539         violations of the No_Implicit_Dynamic_Code restriction.
5540         (Resolve_Attribute, case 'Access): If designated type of context is a
5541         limited view, use non-limited view when available. If the non-limited
5542         view is an unconstrained array, this enforces consistency requirements
5543         in 3.10.2 (27).
5544         (Layout_Type): For an access type whose designated type is a limited
5545         view, examine its declaration to determine if it is an unconstrained
5546         array, and size the access type accordingly.
5548 2007-12-13  Vincent Celier  <celier@adacore.com>
5550         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
5551         object directory of main project does not exist.
5552         On VMS, correctly set then environment variable for the source
5553         directories.
5555 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
5557         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
5558         set to True this procedure will create the value of type REG_EXPAND_SZ.
5559         It was only possible to create REG_SZ values before.
5561 2007-12-13  Robert Dewar  <dewar@adacore.com>
5563         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
5564         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
5565         namet-sp.adb, namet-sp.ads: New files.
5567         * g-speche.adb: Use generic routine in g-spchge
5569         * s-wchcnv.ads, s-wchcnv.adb: 
5570         Minor code cleanup (make formal type consistent with spec)
5572         * namet.adb: Update comments.
5574         * par-endh.adb (Evaluate_End_Entry): Use new
5575         Namet.Sp.Is_Bad_Spelling_Of function
5577         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
5579         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
5580         ancestor is an access type initialized with a box, set its type
5581         explicitly, for use in subsequent expansion.
5582         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
5583         function
5585 2007-12-13  Robert Dewar  <dewar@adacore.com>
5587         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
5588         access Vstring)
5590 2007-12-13  Robert Dewar  <dewar@adacore.com>
5592         * inline.adb (Back_End_Cannot_Inline): Use new flag
5593         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5595         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
5596         Has_Pragma_Inline_Always instead.
5597         of obsolete function Is_Always_Inlined
5598         (Build_Body_To_Inline): Same change
5599         (Cannot_Inline): Same change
5600         Do not give warning on exception raise in No_Return function
5602         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
5603         component has two inconsistent component clauses in the same record
5604         representation clause, favor the message that complains about
5605         duplication rather than inconsistency.
5606         Update comments.
5607         (Record_Representation_Clause): Do not warn on missing component
5608         clauses for inherited components of a type extension.
5609         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
5610         an overloadable item if it is a pragma that can apply to multiple
5611         overloadable entities (e.g. Inline) because a pragma cannot be on
5612         more than one chain at a time.
5613         (Validate_Unchecked_Conversion): Add code to warn on unchecked
5614         conversion where one of the operands is Ada.Calendar.Time.
5615         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
5616         For now, ignore Component_Size clause on VM targets, as done for
5617         pragma Pack.
5619 2007-12-13  Emmanuel Briot  <briot@adacore.com>
5620             Vincent Celier  <celier@adacore.com>
5622         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
5623         string
5624         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
5625         prj.ads
5626         (Hash): Move instantiation of System.HTable.Hash from spec to body
5627         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
5628         systems, since we do not need to recompute the Name_Id for the canonical
5629         file name.
5630         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5631         as a parameter. This parameter is in fact always "ada" in all calls, and
5632         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
5633         while loading a project with 40000 files
5635         * prj-attr.adb: Fix name of attribute Dependency_Driver
5636         Change the kind of indexing for attribute Root
5638         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
5639         variables already declared, in case constructions.
5641         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
5642         Current_Object_Path_File to No_Path.
5644         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
5645         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
5647         * prj-makr.adb: new parameter Current_Dir
5649         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
5650         Ada sources when language is not Ada.
5651         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5652         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
5653         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
5654         (Locate_Directory): Always resolve links when computing Canonical_Path
5655         (Look_For_Sources): Make sure that Name_Buffer contains the file name
5656         in Source_Files before checking for the presence of a directory
5657         separator.
5658         Optimize calls to Name_Find when on case sensitive systems.
5659         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5660         as a parameter.
5661         (Prj.Nmsc.Check): new parameter Current_Dir
5662         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
5663         cannot be empty and the spec suffix cannot be the same as the body or
5664         separate suffix.
5665         (Get_Unit): When a file name can be of several unit kinds (spec, body or
5666         subunit), always consider the longest suffix.
5667         (Check_Configuration): Do not issue an error if there is no compiler
5668         for a language. Just issue a warning and ignore the sources for the
5669         language.
5670         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
5671         not empty.
5672         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
5673         (Unit_Exceptions): New hash table
5674         (Check_Naming_Schemes): Check if a file that could be a unit because of
5675         the naming scheme is not in fact a source because there is an exception
5676         for the unit.
5677         (Look_For_Sources): Put the unit exceptions in hash table
5678         Unit_Exceptions
5679         (Get_Unit_Exceptions): Give initial value No_Source to local variable
5680         Other_Part to avoid exception when code is compiled with validity
5681         checking.
5682         (Get_Sources_From_File): Check that there is no directory information
5683         in the file names.
5684         (Look_For_Sources): Check that there is no directory information in the
5685         list of file names in Source_Files.
5686         (Look_For_Sources): In multi-language mode, do not allow exception file
5687         names that are excluded.
5688         (Excluded_Sources_Htable): New hash table
5689         (Search_Directories.Check_File): New procedure to simplify
5690         Search_Directories.
5691         (Search_Directories): Do not consider excluded sources
5692         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
5693         Search_Directories.
5694         (Get_Exceptions): Set component Lang_Kind of Source_Data
5695         (Get_Unit_Exceptions): Ditto
5696         (Search_Directories): Ditto
5698         * prj-pars.adb: new parameter Current_Dir
5700         * prj-part.ads, prj-part.adb: 
5701         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5702         (Opt.Follow_Links_For_Dirs): New flag
5703         (Project_Path_Name_Of): Cache information returned by this routine as
5704         Locate_Regular_File is a costly routine. The code to output a log
5705         information and the effective call to Locate_Regular_File is now
5706         factorized into a routine (code clean-up).
5707         (Parse, Parse_Single_Project): new parameter Current_Dir
5708         When main project file cannot be found, indicate in the error
5709         message the project path that was used to do the search.
5711         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
5712         (Prj.Proc.Process*): new parameter Current_Dir
5714         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
5716 2007-12-13  Bob Duff  <duff@adacore.com>
5718         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
5719         procedure to be called from the back end to check the
5720         No_Implicit_Dynamic_Code restriction.
5722 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
5724         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
5725         Fixes another case where RTE_Available_Call was ignored instead of being
5726         taken into account.
5727         (Load_Fail): Ditto.
5729         * rtsfind.ads: Add new entries.
5731 2007-12-13  Robert Dewar  <dewar@adacore.com>
5733         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
5734         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
5736         * scn.adb: Implement BOM recognition
5738 2007-12-13  Thomas Quinot  <quinot@adacore.com>
5739             Ed Schonberg  <schonberg@adacore.com>
5741         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
5742         subprogram body that acts as its own spec may not have a non-private
5743         WITH clause on a private sibling.
5744         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
5745         child unit is a renaming, create an implicit with_clause on that
5746         parent, and not on the unit it renames, to prevent visibility errors
5747         in the current unit.
5749 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
5751         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
5752         renaming declaration, use the Slocs of the formal parameters from the
5753         declaration of the formal subprogram when creating the formal parameter
5754         entities in the renaming declaration.
5755         (Analyze_Formal_Type_Declaration): Change the placement of the error
5756         message concerning illegal known discriminants. It is now posted on the
5757         type rather than on the first discriminant. This change ensures early
5758         error report.
5759         (Freeze_Subprogram_Body): If the generic subprogram is nested within
5760         the package body that contains the instance, do not generate an
5761         out-of-place freeze node for the enclosing package.
5762         (Collect_Previous_Instantiations): Ignore internal instantiations
5763         generated for formal packages.
5764         (Validate_Derived_Type_Instance): Add a check that when a formal
5765         derived type is Known_To_Have_Preelab_Init then the actual type must
5766         have preelaborable initialization, and issue an error when this
5767         condition is violated.
5769 2007-12-13  Robert Dewar  <dewar@adacore.com>
5771         * s-imenne.adb, s-imenne.ads: New files.
5773         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, 
5774         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, 
5775         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, 
5776         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, 
5777         s-imgwch.ads: New calling sequence for Image routines to avoid sec
5778         stack usage.
5780 2007-12-13  Javier Miranda  <miranda@adacore.com>
5781             Ed Schonberg  <schonberg@adacore.com>
5783         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
5784         generation of spurious error if parent is an interface type; caused
5785         because predefined primitive bodies will be generated later by
5786         Freeze_Record_Type.
5787         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
5788         flag.
5789         (Derive_Subprograms): Handle derivations of predefined primitives
5790         after all the user-defined primitives to ensure that they are
5791         found in proper order in instantiations.
5792         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
5793         of Related_Interface to Related_Type.
5794         (Record_Type_Declaration): Minor reordering of calls to decorate the
5795         Tag component because the entity must have set its Ekind attribute
5796         before setting its Is_Tag attribute.
5797         (Analyze_Subtype_Declaration): In the case of subtypes with
5798         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
5800 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5801             Ed Schonberg  <schonberg@adacore.com>
5803         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
5804         statement to the list of contexts where a selected component with a
5805         concurrent tagged type prefix should yield a primitive operation.
5806         (Find_Primitive_Operation): Handle case of class-wide types.
5807         (Analyze_Overloaded_Selected_Component): If type of prefix is
5808         class-wide, use visible components of base type.
5809         (Resolve_Selected_Component): Ditto.
5810         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
5811         formal of a generic subprogram. find candidate interpretations by
5812         scanning the list of generic formal declarations.:
5813         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
5814         type from a limited_with_clause, and the full view is available, use it
5815         for subsequent semantic checks.
5816         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
5817         (Find_Primitive_Operation): New function.
5818         (Analyze_Overloaded_Selected_Component): insert explicit dereference
5819         only once if several interpretations of the prefix yield an access type.
5820         (Try_Object_Operation): Code and comment cleanup.
5821         (Analyze_Selected_Component): Reorder local variables. Minot comment and
5822         code reformatting. When the type of the prefix is tagged concurrent, a
5823         correct interpretation might be available in the primitive and
5824         class-wide operations of the type.
5826 2007-12-13  Robert Dewar  <dewar@adacore.com>
5827             Ed Schonberg  <schonberg@adacore.com>
5829         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
5830         renaming entry as subprogram using rename-as-body if subprogram spec
5831         frozen.
5832         (Use_One_Type): The clause is legal on an access type whose designated
5833         type has a limited view.
5834         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5835         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5836         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
5837         operation denoted by a selected component.
5838         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
5839         it can be an expression, possibly overloaded, that returns a task or
5840         an access to one.
5842 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5843             Gary Dismukes  <dismukes@adacore.com>
5845         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
5846         requeue statement is dispatching. Do not emit an error when the name is
5847         not an entry and the context is a dispatching select. Add code to
5848         perform subtype conformance between the formals of the current entry
5849         and those of the target interface primitive.
5850         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
5851         Timed_Entry_Call): Analyze the triggering statement as the first step of
5852         the processing. If this is a dispatching select, postpone the analysis
5853         of all select statements until the Expander transforms the select. This
5854         approach avoids generating duplicate identifiers after the Expander has
5855         replicated some of the select statements. In case the Expander is
5856         disabled, perform regular analysis.
5857         (Check_Triggering_Statement): New routine.
5858         (Analyze_Requeue): Exclude any interpretations that are not entries when
5859         checking overloaded names in a requeue. Also test type conformance for
5860         matching interpretations rather than requiring subtype conformance at
5861         that point to conform with the RM's resolution rule for requeues.
5863 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
5865         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
5866         inherited operation is a defaulted tag-indeterminate call, and there is
5867         a statically tagged actual, use the static tag as a controlling actual
5868         for the defaulted actual.
5870 2007-12-13  Geert Bosch  <bosch@adacore.com>
5872         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
5873         context, so do not call Check_Non_Static_Context.
5875 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5877         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
5878         whether formal E is an entity which may have parameters.
5880 2007-12-13  Bob Duff  <duff@adacore.com>
5881             Javier Miranda  <miranda@adacore.com>
5882             Robert Dewar  <dewar@adacore.com>
5884         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
5885         (Set_Convention): New procedure to set the Convention flag, and in
5886         addition make sure the Favor_Top_Level flag is kept in sync (all
5887         foreign-language conventions require Favor_Top_Level = True).
5888         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
5889         to Related_Type.
5890         (Collect_Interfaces_Info): Minor update to handle the two secondary
5891         dispatch tables. Update occurrence of Related_Interface to Related_Type.
5892         (Generate_Parent_Ref): Add parameter to specify entity to check
5893         (Is_Preelaborable_Expression): Allow the name of a discriminant to
5894         initialize a component of a type with preelaborable initialization.
5895         This includes the case of a discriminal used in such a context.
5896         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
5897         latest Ada 2005 rules about renaming and 'Access of
5898         discriminant-dependent components.
5899         (Check_Nested_Access): Add handling when there are no enclosing
5900         subprograms (e.g. case of a package body).
5901         (Find_Parameter_Type): Factor routine from several other compiler files.
5902         Remove routine from Find_Overridden_Synchronized_Primitive.
5904 2007-12-13  Thomas Quinot  <quinot@adacore.com>
5906         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
5907         an invalid access to an uninitialized slot in the
5908         Source_File_Index_Table.
5910 2007-12-13  Thomas Quinot  <quinot@adacore.com>
5912         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
5914 2007-12-13  Bob Duff  <duff@adacore.com>
5916         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
5917         access-to-subprogram types in this package.
5919 2007-12-13  Olivier Hainque  <hainque@adacore.com>
5921         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
5922         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
5923         Stack_Overlay_Address and document that we are using an internal
5924         abstraction.
5925         (Byte_Size, Unsigned_32_Size): Remove, now useless.
5926         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
5927         consistently throughout the various implementation pieces.
5929         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
5930         overlay we are using to fill the stack area with patterns.
5931         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
5932         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
5933         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
5935 2007-12-13  Robert Dewar  <dewar@adacore.com>
5937         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
5939 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
5941         * s-tassta.adb: 
5942         (Create_Task): Take into account tasks created by foreign threads.
5943         Code clean up: use constants instead of hard coded values.
5945 2007-12-13  Robert Dewar  <dewar@adacore.com>
5947         * styleg.adb (Check_Comment): More liberal rules for comment placement
5949 2007-12-13  Olivier Hainque  <hainque@adacore.com>
5951         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
5952         of Procedure Value instead of Frame Pointer as the invocation
5953         identifier associated with the instruction pointer in each traceback
5954         entry.
5956         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
5957         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
5958         Pointer as the invocation identifier passed to tbk$symbolize.
5960         * s-traent-vms.ads, s-traent-vms.adb
5961         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
5962         Procedure Value instead of Frame Pointer as the invocation identifier
5963         passed to tbk$symbolize.
5965 2007-12-13  Robert Dewar  <dewar@adacore.com>
5967         * tbuild.ads, tbuild.adb: 
5968         Fix location of flag for unrecognized pragma message
5970 2007-12-13  Robert Dewar  <dewar@adacore.com>
5972         * treepr.ads, treepr.adb: (pl): implement use of positive value
5973         shorthands
5975 2007-12-13  Robert Dewar  <dewar@adacore.com>
5977         * xeinfo.adb: Remove warnings
5978         * xnmake.adb: Remove warnings
5979         * xsinfo.adb: Remove warnings
5980         * xtreeprs.adb: Remove warnings
5981         * xsnames.adb: Remove warnings
5983         * a-ngcoar.adb: Fix typo.
5984         * s-interr.adb: Minor reformatting
5985         * env.c: Minor reformatting.
5986         * g-bytswa.adb: Minor reformatting.
5987         * g-rannum.ads: Minor documentation improvements
5988         * s-tasinf-mingw.adb: Minor header fix
5989         * a-clrefi.adb: Minor reformatting
5990         * g-sttsne.ads: Minor documentation improvement
5991         * g-sttsne-locking.ads: Minor documentation improvement
5992         * g-soliop-solaris.ads: Minor documentation improvement
5993         * g-soliop-mingw.ads: Minor documentation improvement
5994         * g-soliop.ads: Minor documentation improvement
5995         * exp_aggr.ads: Minor reformatting
5996         * debug.adb: Add documentation for the gprbuild debug flags
5997         * exp_ch2.adb: Use Nkind_In to simplify code throughout
5998         * exp_pakd.adb: Minor reformatting
6000         * g-altive.ads, g-alleve.adb: Remove assertions.
6001         Add comment about minor differences between targets regarding
6002         floating-point operations.
6004         * g-thread.adb: Remove pragma unreferenced.
6005         * lib.ads: Minor reformatting
6006         * par-ch9.adb: Minor reformatting of error messages
6007         * sem_case.adb: Minor reformatting
6008         * s-fileio.adb: Minor reformattinng
6009         * s-vmexta.ads: Minor typo
6010         * vxaddr2line.adb: 
6011         Take into account 'Success' value as per new GNAT warning.
6013 2007-12-13  Vincent Celier  <celier@adacore.com>
6015         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
6016         even on Windows
6018 2007-12-13  Robert Dewar  <dewar@adacore.com>
6019             Bob Duff  <duff@adacore.com>
6021         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
6022         Document that suffixes may be terminations of each others
6023         Add doc for -gnatw.a and -gnatw.A
6024         Document gnatbind -Wx switch
6025         Document BOM recognition
6026         Document pragma Implemented_By_Entry.
6027         Document new units.
6029         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
6030         Add doc for pragma Unreferenced suppressing no entities referenced msg
6031         Add documentation of GNAT.Directory_Operations.Iteration
6032         Add documentation of GNAT.Random_Numbers
6033         Add documentation for pragma Shared.
6034         Correct documentation for Bit_Order
6035         Add documentation for the Pool_Address attribute.
6036         Fix and improve documentation of pragma machine_attribute.
6037         New pragma Fast_Math
6038         Document BOM recognition
6040         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
6041         Add /Wide_Character_Encoding for binder
6042         Add qualifier for the new gnatpp option --no-separate-loop-then
6044 2007-12-13  Matthew Heaney  <heaney@adacore.com>
6046         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
6047         which generic formal operations are called for each operation.
6049 2007-12-13  Olivier Hainque  <hainque@adacore.com>
6051         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
6052         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
6054 2007-12-13  Emmanuel Briot  <briot@adacore.com>
6056         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
6057         Reference_Dir unless we actually need it.
6059 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
6060             Tristan Gingold  <gingold@adacore.com>
6062         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
6064         * s-osprim-vms.adb,
6065         a-calend-vms.adb: Remove pragma warning off and add pragma
6066         unreferenced.
6068 2007-12-13  Robert Dewar  <dewar@adacore.com>
6070         * impunit.adb: Add entries for missing units
6072         * Makefile.rtl: Add new run-time units.
6074         * Make-lang.in:  Update dependencies.
6076 2007-12-13  Bob Duff  <duff@adacore.com>
6078         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
6079         types, set Can_Use_Internal_Rep appropriately, based on
6080         Always_Compatible_Rep_On_Target.
6082 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
6083             Arnaud Charlet  <charlet@adacore.com>
6085         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
6086         it to the front end and setting the aamp_target environment variable
6087         to the switch's argument to ensure that gnaampbind and gnaamplink will
6088         take the specified library into account.
6089         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
6090         target, since the CIL compiler supports an "object" file (.il files).
6092 2007-12-13  Vincent Celier  <celier@adacore.com>
6094         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
6095         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
6097 2007-12-13  Geert Bosch  <bosch@adacore.com>
6099         * s-parame-vxworks.adb: 
6100         Update comments to reflect usage of this package by Nucleus.
6102 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
6104         * i-vxwork.ads: Kill new warning on Convention C, since changing the
6105         spec would break code.
6107         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
6109         * system-vxworks-alpha.ads: Removed.
6111 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
6113         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
6115 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
6117         PR ada/34366
6118         * sem_ch3.adb (Designates_T): New function.
6119         (Mentions_T): Factor reusable part of the logic into Designates_T.
6120         Consider non-access parameters and access and non-access result.
6121         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
6122         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
6124         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
6126 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
6128         PR ada/34361
6129         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
6130         the new implementation of target-specific calls.
6132 2007-12-07  Olivier Hainque  <hainque@adacore.com>
6134         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
6135         the designated full view, only follow a second level Full_View link
6136         for Non_Limited_Views of from_limited_with references.
6137         
6138 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
6140         PR ada/15805
6141         * sem_ch6.adb (Process_Formals): Prevent an access type formal
6142         to be initialized with an access to constant object.
6144         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
6145         when an access to constant is used to initialize an access
6146         value.
6148         PR ada/21346
6149         * a-direct.adb (Compose): Containing_Directory can be an empty string.
6151 2007-12-07  Olivier Hainque  <hainque@adacore.com>
6153         PR ada/34173
6154         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
6155         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
6156         this is from an alignment clause on the GNAT entity.
6157         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
6158         to distinguish the case where we set it from the type's alignment.
6159         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
6160         whether this alignment was set from an explicit alignment clause.
6162 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
6164         * decl.c (make_packable_type): Revert last change.
6165         (gnat_to_gnu_field): Avoid setting size and position multiple times.
6166         * utils.c (finish_record_type): Retrieve the real name of the type.
6168 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
6170         * trans.c (lvalue_required_p): Take base node directly instead
6171         of its parent.  Rename second parameter to 'gnu_type'.
6172         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
6173         <N_Slice>: Likewise.
6174         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
6175         Adjust calls to lvalue_required_p.
6177 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
6179         PR ada/21489
6180         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
6181         parameters of an entry call.
6183 2007-12-03  Robert Dewar  <dewar@adacore.com>
6184             Samuel Tardieu  <sam@rfc1149.net>
6186         PR ada/34287
6187         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
6188         of variables declared in a library-level package.
6189     
6190 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
6192         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
6193         of Empty_String'Unchecked_Access.
6195         * Makefile.in: Add support for sh4-linux.
6197         * system-linux-sh4.ads: New file.
6199 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
6201         PR ada/33722
6202         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
6203         and its argument must not be free()ed.
6205 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
6207         * decl.c (make_packable_type): Retrieve the real name of the type.
6208         (maybe_pad_type): Simplify similar code.
6210 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
6212         PR ada/15804
6213         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
6214         than an identifier is used after "case" in a variant_part.
6216         PR ada/17318
6217         * par-ch4.adb (Is_Parameterless_Attribute): New map.
6218         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
6219         attribute name or not depending on the new map.
6221         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
6222         returning a string or a type will not be called with improper
6223         arguments.
6225         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
6227         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
6229         PR ada/32792
6230         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
6231         Signal an error when attribute argument is a fixed-point value of
6232         an unknown type.
6234         PR ada/22559
6235         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
6236         a derived ordinary fixed point type.
6238         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
6239         RM_Size when a Small clause is found.
6241 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
6243         PR 34081/C++
6244         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
6245         Pass 'false' for the new allocate_struct_function parameter.
6246         * utils.c (build_function_stub): Likewise.
6248 2007-11-25  Richard Guenther  <rguenther@suse.de>
6250         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
6251         (gnat_poplevel): Likewise.
6253 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
6255         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
6256         strict alignment, no alignment clause and a known static size, cap
6257         the type alignment to the greatest power of 2 factor of the size.
6258         (gnat_to_gnu_field): If the field has a component clause, is aliased
6259         or of a type with strict alignment, require that its size be equal to
6260         that of the type.
6261         (validate_size): Use the type size as the minimum size for a type with
6262         strict alignment.
6264 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
6266         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
6267         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
6268         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
6269         Use 'Access instead of 'Unchecked_Access in second and third
6270         arguments of pthread_sigmask.
6272 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
6274         * decl.c (ceil_alignment): New function.
6275         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
6276         (make_packable_type): Likewise.
6278 2007-11-22  Olivier Hainque  <hainque@adacore.com>
6280         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
6281         to fit in 80 columns.
6283 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
6285         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
6286         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
6288 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
6290         PR ada/34098
6291         * misc.c (gnat_adjust_rli): Delete.
6292         (gnat_init): Do not initialize the translation code here.
6293         Do not call set_lang_adjust_rli.
6294         * trans.c (init_code_table): Make static.
6295         (gnat_init_stmt_group): Delete.
6296         (gigi): Initialize the translation code entirely here.
6297         Emit debug info for the common types here instead of...
6298         * utils.c (gnat_init_decl_processing): ...here.
6299         * gigi.h (init_code_table): Delete.
6300         (gnat_init_stmt_group): Likewise.
6302 2007-11-16  Olivier Hainque  <hainque@adacore.com>
6304         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
6305         retrieving an allocator return value from a super-aligned address from
6306         here to ...
6307         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
6308         expect a super-aligned address for a fat or thin pointer.
6309         
6310 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
6312         * trans.c (call_to_gnu): Always set the source location on the call
6313         expression.  If the function returns-by-target, also set it on the
6314         address expression.
6316 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
6318         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
6319         sections of non-supported Interix target.
6321         * s-osinte-interix.ads: Removed.
6323         * i-cstrin.ads (chars_ptr): Make it a C convention type.
6325 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
6327         * a-tasatt.adb: Add a comment at the beginning of the package
6328         explaining why in general 'Unchecked_Access must be used instead
6329         of 'Access.
6331         * sem_prag.adb (Process_Convention): Move the test for the
6332         entity on which the Convention pragma applies down to also
6333         forbid pragma Convention on enumeration literals reached
6334         through renamings.
6336 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
6338         * a-tasatt.adb: Revert previous change for this file as it will
6339         generate an error when this package is instantiated from a
6340         local context.
6342 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
6344         * a-tasatt.adb: Type Wrapper should be declared in comment instead
6345         of already declared type Node_Access.
6346         Use 'Access instead of 'Unchecked_Access when applicable. Local
6347         lifetime is the one of the package.
6348         (Set_Value): W is allocated on the heap.
6350         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
6351         applicable.
6352         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
6353         access type.
6354         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
6355         access type.
6357         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
6358         applicable.
6359         (elaboration code): Timer_Queue lifetime is the one of the
6360         package.
6362         * tracebak.c (i386 alternative): Remove useless comparaison
6363         which is always false; LOWEST_ADDRESS is 0 and is never greater
6364         than an unsigned integer.
6366         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
6367         embedded check for "Ada_Version >= Ada_05".
6369 2007-11-07  Olivier Hainque  <hainque@adacore.com>
6371         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
6372         craft and expand comment.
6374 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
6376         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
6378 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
6380         * misc.c (gnat_handle_option): Replace call to abort with
6381         call to gcc_unreachable.
6382         (gnat_init): Likewise.
6383         (gnat_expand_expr): Likewise.
6384         (fp_prec_to_size): Likewise.
6385         (fp_size_to_prec): Likewise.
6387 2007-10-23  Richard Guenther  <rguenther@suse.de>
6389         PR bootstrap/33608
6390         * tracebak.c: #undef abort after including system.h.
6392 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
6394         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
6395         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
6396         for win32 targets.
6397         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
6399 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
6401         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
6402         Set the protection status of the guard page based on the value of On.
6404         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
6406         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
6407         (Exit_Task): Pass False to Hide_Yellow_Zone.
6409 2007-10-15  Robert Dewar  <dewar@adacore.com>
6411         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
6412         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
6413         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
6414         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
6415         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
6416         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
6417         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
6418         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
6419         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
6420         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
6421         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
6422         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
6423         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
6424         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
6425         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
6426         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
6427         Minor reformatting.
6428         Add Unreferenced and Warnings (Off) pragmas for cases of
6429         variables modified calls where they are IN OUT or OUT parameters and
6430         the resulting values are not subsequently referenced. In a few cases,
6431         we also remove redundant code found by the new warnings.
6433         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
6434         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
6435         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
6436         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
6437         warning controlled by -gnatw.o that warns on cases of out parameter
6438         values being ignored.
6440 2007-10-15  Geert Bosch  <bosch@adacore.com>
6442         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
6444         * expect.c: Initial port to arm-mentor-nucleus.
6445         Use kill for __gnat_kill() on VMS.
6447 2007-10-15  Emmanuel Briot  <briot@adacore.com>
6449         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
6450         value.
6451         (Xref_Record): Change type for Line, since in the case of a reference to
6452         a predefined entity (as happens for array index types), the line is set
6453         to 0.
6454         Add support for parsing multiple array index types info, or
6455         multiple inherited interfaces info. This information cannot be stored
6456         in Xref_Entity_Record, which only supports a single instance of Tref_*,
6457         and is therefore stored in the list of references instead. It has a
6458         special treatement later on in tools that use this information.
6460 2007-10-15  Tristan Gingold  <gingold@adacore.com>
6462         * debug.adb: Document use of -gnatd.a and -gnatd.I
6464         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
6466 2007-10-15  Javier Miranda  <miranda@adacore.com>
6468         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
6469         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
6470         care of access to class-wide interface types plus removal of bizarre
6471         conversion of tagged object to access type (reported by Gary
6472         Dismukes). After this patch there is no need to perform any
6473         additional management on these nodes in Expand_Interface_Actuals.
6475         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
6476         that handles use of 'Access and 'Unchecked_Access applied to
6477         actuals covering interface types. Such code is now
6478         centralized in Expand_N_Attribute_Reference.
6480 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
6482         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
6483         of tagged types whose ultimate ancestor is a CPP type.
6484         (Freeze_Array_Type): For a packed array type, generate an initialization
6485         procedure if the type is public, to handle properly a client that
6486         specifies Normalize_Scalars.
6488 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
6490         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
6491         inside a generic body, retrieve the full view of the entry family
6492         discrete subtype if available.
6494 2007-10-15  Thomas Quinot  <quinot@adacore.com>
6496         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
6497         attempt to generate stubs for hidden primitive operations.
6499 2007-10-15  Vincent Celier  <celier@adacore.com>
6501         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
6502         returning None, used when there is no platform specific body for
6503         MLib.Tgt.Specific.
6505 2007-10-15  Bob Duff  <duff@adacore.com>
6507         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
6508         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
6509         the generic Heap_Sort_G, in order to avoid trampolines.
6511 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
6512             Jose Ruiz  <ruiz@adacore.com>
6514         * vx_stack_info.c: New file.
6516         * i-forbla-unimplemented.ads: New file.
6518         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
6519         for unsupported configurations; use it on VMS targets instead of the
6520         real one.
6521         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
6522         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
6523         used by VxWorks targets to have access to task-specific data and be
6524         able to extract the stack boundaries for stack checking.
6525         Use system-vms-ia64.ads on ivms.
6527         * Make-lang.in: Update dependencies.
6529         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
6530         (vx_stack_info.c).
6532 2007-10-15  Vincent Celier  <celier@adacore.com>
6534         * snames.adb, snames.ads: Add new standard name runtime_library_dir
6536         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
6538         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
6540         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
6541         the source is unknown.
6543         * prj-ext.adb: Spelling error fix
6545         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
6546         95 reserved word in its name.
6547         (Process_Project_Level_Array_Attributes): Process new attribute
6548         Runtime_Library_Dir.
6550         * prj-part.adb (Parse_Single_Project): Do not check the name of the
6551         config project against the user project names.
6553         * prj-proc.adb (Expression): In multi-language mode, indexes that do
6554         not include a dot are always case insensitive.
6555         (Process_Declarative_Items): Ditto
6556         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
6557         detected.
6559         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
6560         True, compare both indexes in lower case.
6562 2007-10-15  Robert Dewar  <dewar@adacore.com>
6564         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
6566 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
6568         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
6569         association for an access component, add an association with null as
6570         the expression. Remove testing for array subtypes and the setting in
6571         that case of Ctyp to the array component type, which prevented proper
6572         inclusion of an association for null-initialized arrays. Collapse
6573         condition that tests for array subtypes into just a test of
6574         Is_Partially_Initialized_Type (which already covers arrays anyway).
6576 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
6578         * sem_ch12.adb: Minor code reformatting.
6579         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
6580         find the parent package which may have been hidden by local
6581         declarations.
6583 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
6585         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
6586         flag of derived concurrent types, taking into account the flag setting
6587         on the parent subtype and any new set of discriminants.
6589 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
6591         * sem_ch4.adb: Minor code and comment reformatting.
6592         (Analyze_Allocator): When the designated type of an unconstrained
6593         allocator is a record with unknown discriminants or an array with
6594         unknown range bounds, emit a detailed error message depending on the
6595         compilation mode and whether the designated type is limited.
6597 2007-10-15  Tristan Gingold  <gingold@adacore.com>
6599         * system-vms-ia64.ads: New file.
6601         * system-vms_64.ads: Minor comment fix.
6603 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
6605         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
6606         body generated for a function with a controlling result that is a null
6607         extension, discard the generated body in favor of the current explicit
6608         one.
6610 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
6612         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
6613         examining its original form, to handle properly operator calls that
6614         have been rewritten.
6616 2007-10-15  Olivier Hainque  <hainque@adacore.com>
6618         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
6619         instead of a procedure value in each traceback entry.
6621         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
6622         instead of procedure value to TBK$SYMBOLIZE.
6624         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
6625         field.
6626         (TB_Entry_For): Account for the PV/FP renaming.
6628         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
6629         add comment.
6630         (Null_TB_Entry): Account for change of component name.
6631         (PV_For): Rename as FP_For.
6633 2007-10-15  Tristan Gingold  <gingold@adacore.com>
6635         * trans.c (gnat_to_gnu): Remove the padding structure more often.
6636         This optimize assignment to over-aligned record.
6638 2007-10-15  Emmanuel Briot  <briot@adacore.com>
6640         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
6641         interfaces.
6643         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
6644         type, for dispatching calls.
6646 2007-10-15  Vincent Celier  <celier@adacore.com>
6647             Robert Dewar  <dewar@adacore.com>
6649         * gnat_ugn.texi: Add documentation for switches --version and --help
6650         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
6651         gnatxref, gnatfind, gnatls, and gnatclean.
6652         Document -gnatw.o.
6653         Mention attribute Excluded_Source_Dirs
6654         Replace obsolescent attribute Locally_Removed_Files with attribute
6655         Excluded_Source_Files.
6656         Improve documentation of -u (gnatbind)
6657         Document how to do reliable stack checking for the environmental task
6658         on iVMS.
6660         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
6661         Document attribute Excluded_Source_Files and indicate that attribute
6662         Locally_Removed_Files is obsolescent.
6664 2007-10-15  Thomas Quinot  <quinot@adacore.com>
6666         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
6668         * gen-soccon.c: 
6669         Update documentation to note that OpenVMS 8.3 or later must be used
6670         to generate g-soccon-vms.ads.
6672         * atree.adb: Add ??? comment
6674         * exp_util.adb: Minor reformatting.
6675         Add ??? comment in Kill_Dead_Code.
6677 2007-10-15  Robert Dewar  <dewar@adacore.com>
6679         * errout.ads: Comment clarification
6681         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
6682         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
6684         * lib.ads: Comment update
6686         * init.c: Minor reformatting.
6688         * sem_attr.adb: Minor formatting
6690         * osint-b.ads: Minor reformatting
6692         * sem_ch9.adb: Implement -gnatd.I switch
6694         * g-comlin.adb: (Start): Fix handling of empty command line.
6696         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
6697         even when -rules follows the -cargs section.
6699 2007-10-08  Ollie Wild  <aaw@google.com>
6701         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
6702         gnat_return_tree.
6703         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
6704         gnat_return_tree.
6705         (gnat_eh_runtime_type): Removed.
6706         (gnat_return_tree): New function.
6708 2007-10-08  Ben Elliston  <bje@au.ibm.com>
6710         PR ada/33454
6711         Revert:
6712         2007-08-31  Ben Elliston  <bje@au.ibm.com>
6714         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
6715         when compiling for powerpc64-*-linux.
6716         * system-linux-ppc64.ads: New file.
6718 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
6720         Mapped location support
6721         * back_end.adb (Call_Back_End): Pass information about source
6722         files instead of units to gigi.
6723         * gigi.h (struct File_Info_Type): New.
6724         (gigi): Rename and change type of number_units parameter, change
6725         type of file_info_ptr parameter.
6726         * trans.c (number_files): New global variable.
6727         (gigi): Rename and change type of number_units parameter, change
6728         type of file_info_ptr parameter.
6729         If mapped location support is enabled, create the isomorphic mapping
6730         between source files and line maps.
6731         (Sloc_to_locus): If mapped location support is enabled, translate
6732         source location into mapped location.
6733         (annotate_with_node): Rename into set_expr_location_from_node.
6734         Call set_expr_location instead of annotate_with_locus.
6735         (Pragma_to_gnu): Adjust for above change.
6736         (Loop_Statement_to_gnu): Likewise.
6737         (call_to_gnu): Likewise.
6738         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
6739         (gnat_to_gnu): Likewise.
6740         (add_stmt_with_node): Likewise.
6741         (add_cleanup): Likewise.
6742         * utils.c (gnat_init_decl_processing): Do not set input_line.
6744 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
6746         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
6747         (Applicable_Use): Emit a warning when a package tries to use itself.
6748         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
6749         is already in use or the package where it is declared is in use or is
6750         declared in the current package.
6751         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
6753         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
6754         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
6755         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
6757 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
6759         * a-calend-vms.adb, a-calend.adb: 
6760         Add a section on leap seconds control along with two entities used to
6761         enable and disable leap seconds support. The array Leap_Second_Times is
6762         now constant and contains hard time values pre-generated. Remove
6763         all elaboration code used to populate the table of leap seconds.
6765         * bindgen.adb: 
6766         Add entity Leap_Seconds_Support to the list of global run-time variables
6767         along with a comment on its usage and values.
6768         (Gen_Adainit_Ada): Add code to generate the declaration and import of
6769         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
6770         or one (enabled) depending on the presence of binder switch "-y".
6771         (Gen_Adainit_C): Add code to generate the declaration of external int
6772         __gl_leap_seconds_support. Set is value to zero (disabled) or one
6773         (enabled) depending on the presence of binder switch "-y".
6775         * init.c: Add __gl_leap_seconds_support to the list of global values
6776         computed by the binder.
6778 2007-09-26  Jerome Guitton  <guitton@adacore.com>
6780         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
6781         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
6782          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
6783         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
6785         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
6787         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
6788         function which can be called by the debugger to interrupt the tasks of
6789         an Ada application asynchronously, as needed on VxWorks.
6790         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
6792         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
6793         renamed from Stop_All_Tasks. Update comments.
6794         (Stop_All_tasks): New function declaration.
6796 2007-09-26  Olivier Hainque  <hainque@adacore.com>
6798         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
6799         #include <utime.h> and #define GCC_RESOURCE_H before
6800         #include <sys/wait.h>.
6801         Add more protections in __gnat_translate_vms.
6803         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
6804         #include <sys/wait.h>.
6806 2007-09-26  Thomas Quinot  <quinot@adacore.com>
6807             Sergey Rybin  <rybin@adacore.com>
6809         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
6811         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6812         where it belongs.
6814         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6816         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6817         where it belongs.
6819         * sem_dist.ads: Minor comment fix
6821         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6823 2007-09-26  Javier Miranda  <miranda@adacore.com>
6824             Eric Botcazou  <ebotcazou@adacore.com>
6826         * a-tags.adb: 
6827         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
6828          indirection added to the HT_Link component of the TSD. This is required
6829          to statically allocate the TSD.
6831         * a-tags.ads: 
6832         Minor reordering of the declarations in the private part. Required to
6833         add a level of indirection to the contents of the TSD component HT_Link.
6834         This is required to statically allocate the TSD.
6836         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
6837         Is_Statically_Allocated set from constant objects.
6838         Do not make exported constants created by the compiler volatile.
6839         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
6840         as read-only.
6842         * trans.c (Identifier_to_gnu): For constants, unshare initializers
6843         before returning them.
6845         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
6846         public part of the package.
6847         (Make_DT): Move HT_Link component out of the TSD record. For this
6848         purpose Make_DT now declares a separate object that stores the
6849         HT_Link value, and initializes the TSD component with the address
6850         of this new object. The addition of this level of indirection is
6851         required to statically allocate the TSD because the TSD cannot
6852         have variable components.
6853         (Expand_Interface_Conversion): Improve the expanded code.
6854         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
6856         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
6857         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
6858         if we are building static dispatch tables then we must not generate
6859         extra code to register the primitive because the dispatch table will
6860         be built at the end of the library package; otherwise we notify that
6861         we cannot build the static dispatch table.
6863 2007-09-26  Robert Dewar  <dewar@adacore.com>
6865         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
6866         overlays.
6868         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
6869         (Analyze_Record_Representation_Clause): Suppress junk warning for
6870         missing component clause.
6871         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
6872         tests for controlled type overlay to composites with controlled
6873         components.
6874         (Analyze_Record_Representation_Clause): Add reference for component name
6876 2007-09-26  Javier Miranda  <miranda@adacore.com>
6877             Gary Dismukes  <dismukes@adacore.com>
6879         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
6880         for thunks associated with interface types.
6882         * einfo.ads: Improve documentatation of Is_Internal
6883         (Is_Thunk): New attribute applicable to subprograms. True for thunks
6884         associated with interface types.
6885         Extensive comment fixes regarding flags that appear in all entities. The
6886         documentation is now consistent for all such flags (there were a number
6887         of errors in the documentation in this regard).
6889         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
6891         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
6892         of these procedures are passed a function call that already has
6893         build-in-place actuals (testing new flag
6894         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
6895         the case where processing continues.
6896         (Expand_Call): If the call is generated from a thunk body then we
6897         propagate the extra actuals associated with the accessibility
6898         level of the access type actuals.
6900         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
6901         of each extra formal of a protected operation to reference the
6902         corresponding extra formal of the subprogram denoted by the
6903         operation's Protected_Body_Subprogram.
6904         
6905         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
6906         N_Function_Call nodes.
6908 2007-09-26  Robert Dewar  <dewar@adacore.com>
6910         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
6912         * debug.adb: Add d.s flag.
6914 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
6916         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
6917         debug variable so that it won't be initialized when pragma
6918         Initialize_Scalars is in effect.
6920 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
6922         * freeze.adb (Freeze_Entity): Remove check for preelaborable
6923         initialization of a full view. This is moved to
6924         Analyze_Package_Specification.
6926         * sem_ch7.adb (Analyze_Package_Specification): Add check for
6927         preelaborable initialization of a full view in entity loop.
6928         (Uninstall_Declarations): If entity is a use-visible compilation unit,
6929         its child units are use-visible only if they are visible child units.
6931         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
6932         whether an expression can be used within a type declaration that
6933         requires preelaborable init.
6934         (Check_Components): Replace inline code that does partial checking for
6935         preelaborable default expressions with call to
6936         Is_Preelaborable_Expression.
6937         (Has_Preelaborable_Initialization): In the case of a generic actual
6938         subtype, (that is, Is_Generic_Actual is True), return the result of
6939         applying Has_Preelaborable_Initialization to the generic actual's base
6940         type.
6942 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
6944         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
6945         call to Jan_1_Day _Of_Week to optimize its performance.
6946         (Is_Leap): Move the routine to the scope of Week_In_Year.
6947         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
6948         weekday on which January 1 falls of Year - 1 and Year + 1. This function
6949         avoids calling Time_Of and Split, thus making it more efficent.
6950         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
6952         * g-calend.ads (Week_In_Year): Change comment to reflect new
6953         implementation.
6955 2007-09-26  Emmanuel Briot  <briot@adacore.com>
6957         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
6958         Command_Line): New types
6959         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
6960         support for defining how switches can be grouped on a command line (as
6961         is the case for -gnatw... for GNAT), and how simple switches can be
6962         used as aliases for more complex switches (-gnatwa is same as
6963         -gnatwbcef...)
6964         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
6965         (Start, Current_*): New subprograms
6966         Added support for parsing an array of strings in addition to the real
6967         command line.
6968         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
6969          be moved from the body to the private part of the spec.
6970         (*): All subprograms now have an extra parameter with default value to
6971         specify which parser should be used. For backward compatibility, it
6972         defaults to parsing the command line of the application. They were also
6973         modified to properly handle cases where each of the argument does not
6974         start at index 1 (which is always true for Ada.Command_Line, but not
6975         when processing any Argument_List).
6976         (Free): New subprogram
6977         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
6978         Argument): New subprograms
6979         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
6980         special characters like ':', '=',... are now handled in a single place,
6981         which makes the code more extensible eventually.
6982         (Getopt, Full_Switch): When the switch was returned as part of the
6983         special character '*', make sure it is prepended by the switch character
6984         ('-' in general), so that the application knows whether "foo" or "-foo"
6985         was specified on the command line.
6987 2007-09-26  Florian Villoing  <villoing@adacore.com>
6989         * g-dirope.adb (Remove_Dir): In case we are removing directories
6990         recursively, make sure that if an exception is raised during the
6991         processing, the current working directory is reset to its initial
6992         value before propagating the exception.
6994 2007-09-26  Vincent Celier  <celier@adacore.com>
6996         * gnatbind.adb: If there are several ALI files specified and there is
6997         a main program to bind, the first ALI is expected to contain the main
6998         subprogram and the names of the binder generated files will be derived
6999         from the first ALI file name.
7000         (Gnatbind): Fix insertion character in invocation of Error_Msg
7002 2007-09-26  Vincent Celier  <celier@adacore.com>
7004         * gnatcmd.adb (Check_Files): Do not include sources that have been
7005         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
7007 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
7009         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
7010         information about each of its index types, following the type
7011         reference for its component type.
7013 2007-09-26  Vincent Celier  <celier@adacore.com>
7015         * make.adb: (Kill): New procedure (__gnat_kill imported)
7016         (Running_Compile, Outstanding_Compiles): Global variables that
7017         were previously local to procedure Compile_Sources.
7018         (Sigint_Intercepted): Send signal SIGINT to all outstanding
7019         compilation processes.
7021         (Gnatmake): If project files are used, create the mapping of all the
7022         sources, so that the correct paths will be found.
7024         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
7026 2007-09-26  Vincent Celier  <celier@adacore.com>
7028         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
7030         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
7031         Replace components Compiler_Min_Options and Binder_Min_Options with
7032         Compiler_Required_Switches and Binder_Required_Switches in record
7033         Language_Config.
7034         Remove components Default_Language and Config in Project_Tree_Data,
7035         no longer used.
7037         * prj-attr.adb: New attributes Required_Switches (<language>) in
7038         packages Compiler and Binder.
7040         * prj-nmsc.adb: Major rewrite of the processing of configuration
7041         attributes for gprbuild. No impact on GNAT tools.
7043         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
7044         process configuration attributes: this is done in Prj.Nmsc.Check.
7045         (Recursive_Process): Make a full copy of packages inherited from project
7046         being extended, instead of a shallow copy.
7047         (Process_Project_Tree_Phase_1): New procedure
7048         (Process_Project_Tree_Phase_1): New procedure
7049         (Process): Implementation now uses the two new procedures
7051         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
7052         from the project config, not the tree config that no longer exists.
7054 2007-09-26  Vincent Celier  <celier@adacore.com>
7056         * Make-lang.in: Update dependencies..
7058 2007-09-26  Vincent Celier  <celier@adacore.com>
7060         * osint.adb, osint.ads: Minor reformatting
7062         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
7064 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
7066         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
7067         message to cite use of <> in aggregate component associations rather
7068         than wrongly indicating use of limited aggregates.
7070 2007-09-26  Robert Dewar  <dewar@adacore.com>
7072         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
7073         Address_Taken.
7075 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
7077         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
7078         ancestor of the derived type, the operations are inherited from the
7079         primary dispatch table of the parent.
7080         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
7081         when the context is an explicit type conversion.
7083 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
7085         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
7086         rule for qualified expressions properly, to detect improper conversions
7087         and resolve some cases of overloading.
7089 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
7091         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
7092         proper kind of reference to the primitive operation, for better source
7093         navigation.
7094         (Valid_Conversion): A tagged conversion is legal if both operands are
7095         tagged.
7097 2007-09-26  Robert Dewar  <dewar@adacore.com>
7099         * sem_warn.adb (Check_References): Catch more cases of unreferenced
7100         packages.
7102 2007-09-26  Vincent Celier  <celier@adacore.com>
7104         * snames.adb, snames.ads: Change Include_Option to Include_Switches
7106 2007-09-26  Robert Dewar  <dewar@adacore.com>
7108         * s-wchstw.adb: provide messages for run time unit exceptions
7110         * a-witeio.adb: Minor reformatting
7112         * exp_ch13.adb: Minor reformatting
7114 2007-09-26  Sergey Rybin  <rybin@adacore.com>
7116         * vms_data.ads: Revise gnatmetric qualifiers.
7117         Add qualified for the new gnatbind option '-y'
7119         * gnat_ugn.texi: Revise the gnatmetric section.
7120         Add entry for new gnatbind option '-y'.
7122         * gnat_rm.texi: Minor spelling correction.
7123         Document restriction on overlaying controlled types
7125 2007-09-26  Vincent Celier  <celier@adacore.com>
7127         * makegpr.adb (Link_Executables): Do not fail when the root project has
7128         no sources, but is an extending project.
7130 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
7132         * trans.c: Fix misplaced #define.
7134 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
7136         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
7137         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
7139 2007-09-21  Olivier Hainque  <hainque@adacore.com>
7141         * utils.c (type_for_nonaliased_component_p): Return false for
7142         all AGGREGATE_TYPEs.
7144 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
7146         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
7147         object covered by 13.3(19) volatile.
7149 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
7151         PR ada/26797
7152         PR ada/32407
7153         * utils.c (unchecked_convert): Use a subtype as the intermediate type
7154         in the special VIEW_CONVERT_EXPR case.
7156 2007-09-12  Robert Dewar  <dewar@adacore.com>
7158         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
7160         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
7161         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
7162         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
7163         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
7164         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
7165         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
7166         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
7167         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
7168         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
7169         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
7170         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
7171         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
7172         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
7173         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
7174         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
7175         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
7176         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
7177         pragma Compiler_Unit and adds it to relevant library units.
7179 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
7181         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
7182         a box need not correspond to any component.
7184 2007-09-12  Robert Dewar  <dewar@adacore.com>
7186         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
7187         the tasking version of the Ada run time when foreign threads are
7188         present and there are no explicit Ada tasks or tasking constructs.
7190         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
7192 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
7194         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
7195         the usage of switch -y.
7197         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
7198         when switch -y is present.
7200         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
7201         leap seconds in Ada.Calendar and its children.
7203 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
7205         * a-extiti.ads (Timer): The discriminant is a "not null access
7206         constant" in the Reference Manual.
7207         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
7209 2007-09-12  Robert Dewar  <dewar@adacore.com>
7211         * a-swuwha.adb: Remove junk RM header
7213 2007-09-12  Vincent Celier  <celier@adacore.com>
7215         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
7216         indicator
7218         * g-bytswa.ads: Minor reformatting
7220 2007-09-12  Thomas Quinot  <quinot@adacore.com>
7222         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
7223         Add new constant Thread_Blocking_IO, always True by default, set False
7224         on a per-runtime basis.
7225         (Need_Netdb_Buffer): New constant.
7227 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
7229         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
7230         Added renames for corresponding functions in System.Partition_Interface.
7232 2007-09-12  Doug Rupp  <rupp@adacore.com>
7234         * Makefile.in: Remove VMS specific System.CRTL packages which are no
7235         longer needed.
7237         * s-crtl-vms64.ads: Removed.
7239 2007-09-12  Olivier Hainque  <hainque@adacore.com>
7241         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
7242         with discriminant constraints, generalize the code for BIT_FIELDs
7243         to PACKED fields of constant size and propagate DECL_PACKED.
7245 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
7247         * decl.c (array_type_has_nonaliased_component): New predicate.
7248         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
7249         set the TYPE_NONALIASED_COMPONENT flag on the type.
7250         <E_Array_Subtype>: Likewise.
7251         * gigi.h (type_for_nonaliased_component_p): Declare.
7252         * utils.c (type_for_nonaliased_component_p): New predicate.
7253         (create_field_decl): Invoke the above predicate to set the
7254         DECL_NONADDRESSABLE_P flag on the field.
7256 2007-09-11  Javier Miranda  <miranda@adacore.com>
7258         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
7259         in library level record type entities if we are generating statically
7260         allocated dispatch tables.
7262         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
7263         importing/exporting the _tag declaration by new code
7264         importing/exporting the dispatch table wrapper. This change allows us
7265         to statically allocate of the TSD.
7266         (Make_DT.Export_DT): New procedure.
7267         (Build_Static_DT): New function.
7268         (Has_DT): New function.
7270         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
7271         True_Constant and Current_Value. Required to statically
7272         allocate the dispatch tables.
7273         (Check_Allocator): Make function iterative instead of recursive.
7274         Also return inner allocator node, when present, so that we do not have
7275         to look for that node again in the caller.
7277 2007-09-11  Jan Hubicka  <jh@suse.cz>
7279         * misc.c (gnat_expand_body): Kill.
7280         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
7282 2007-09-10  Robert Dewar  <dewar@adacore.com>
7284         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
7285         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
7286         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
7287         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
7288         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
7289         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
7290         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
7291         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
7292         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
7293         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
7294         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
7295         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
7296         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
7297         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
7298         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
7299         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
7300         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
7301         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
7302         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
7303         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
7304         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
7305         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
7306         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
7307         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
7308         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
7309         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
7310         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
7311         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
7312         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
7313         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
7314         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
7315         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
7316         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
7317         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
7318         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
7319         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
7320         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
7321         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
7322         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
7323         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
7324         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
7325         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
7326         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
7327         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
7328         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
7329         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
7330         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
7331         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
7332         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
7333         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
7334         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
7335         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
7336         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
7337         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
7338         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
7339         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
7340         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
7341         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
7342         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
7343         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
7344         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
7345         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
7346         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
7347         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
7348         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
7349         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
7350         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
7351         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
7352         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
7353         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
7354         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
7355         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
7356         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
7357         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
7358         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
7359         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
7360         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
7361         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
7362         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
7363         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
7364         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
7365         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
7366         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
7368 2007-09-10  Emmanuel Briot  <briot@adacore.com>
7370         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
7371         classes ("[]").
7373 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
7375         * adaint.c (__gnat_translate_vms): new function.
7377 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
7378             Thomas Quinot  <quinot@adacore.com>
7380         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
7381         create an abstract subprogram in the case of 'Input. For 'Output we now
7382         create a real spec/body when the type is abstract, since it can
7383         potentially be called.
7384         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
7385         body for 'Output when the type is abstract (only the creation of the
7386         body for 'Input is excluded when the type is abstract).
7387         (Stream_Operation_OK): Add an additional condition in the return
7388         statement, so that False will be returned for TTS_Stream_Input if the
7389         associated tagged type is an abstract extension. Add comments for
7390         return statement.
7391         (Expand_N_Object_Declaration): For the case of a shared passive
7392         variable, insert init proc call only after the shared variable
7393         procedures have been processed, because the IP call needs to undergo
7394         shared passive variable reference expansion, which requires these
7395         procedures to be available (and elaborated).
7397 2007-09-10  Vincent Celier  <celier@adacore.com>
7399         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
7400         parameter Runtime_Project.
7402 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
7404         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
7405         given a box association, the type of the component is discriminated,
7406         and the value of the discriminant is the discriminant of the enclosing
7407         type, retrieve its value from the aggregate itself, where it must have
7408         been supplied.
7410         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
7411         to remove other spurious ambiguities on arithmetic operations involving
7412         literals and addresses, on systems where Address is a visible integer
7413         type, when the operator is called in functional notation.
7414         (Try_Primitive_Operation): Within an instance, a call in prefixed form
7415         is legal when the types match, even if the operation is currently
7416         hidden.
7418 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
7420         * sem_ch12.adb (Build_Local_Package): A formal package with no
7421         associations is legal if all formals have defaults. It is not
7422         equivalent to a formal declared with a box.
7424 2007-09-10  Sergey Rybin  <rybin@adacore.com>
7426         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
7428 2007-09-10  Sergey Rybin  <rybin@adacore.com>
7430         * gnat_ugn.texi: Add description of the new '-lratio' option
7431         Update 7.3.1 section about availability of the feature.
7433 2007-09-10  Thomas Quinot  <quinot@adacore.com>
7435         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
7436         inserted node.
7438 2007-09-10  Olivier Hainque  <hainque@adacore.com>
7440         * Makefile.in: (mips-irix section): Activate build of libgmem.
7442 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
7444         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
7445         x87 registers.
7447 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
7449         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
7450         a debug renaming declaration specially.
7452 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
7454         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
7455         which a constant renaming is treated as a normal object declaration.
7456         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
7457         the N_Indexed_Component case.
7458         <N_Indexed_Component>: Fall through to above case.
7459         <N_Object_Renaming_Declaration>: Return true for all composite types.
7461 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
7463         * decl.c (make_packable_type): If the new type has been given BLKmode,
7464         try again to get an integral mode for it.
7466 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
7468         Re-apply accidentally reverted change:
7470         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
7472         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
7473         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
7474         and _Unwind_SWord with _sleb128_t.
7476 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
7478         * trans.c (convert_with_check): Update call to real_2expN.
7480 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
7482         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
7483         * utils.c (end_subprog_body): Likewise.
7485 2007-09-03  Nick Clifton  <nickc@redhat.com>
7487         * Make-lang.in: Change copyright header to refer to version 3 of
7488         the GNU General Public License and to point readers at the
7489         COPYING3 file and the FSF's license web page.
7490         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
7491         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
7492         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
7493         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
7494         Likewise.
7496 2007-08-31  Vincent Celier  <celier@adacore.com>
7498         PR ada/4720
7500         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
7501         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
7502         (Check_Version_And_Help): New procedure in package Switch to process
7503         switches --version and --help.
7504         Use Check_Version_And_Help in GNAT tools
7506         * make.adb:  Ditto.
7507         (Compile_Sources): Make sure that sources that are "excluded" are not
7508         compiled.
7509         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
7510         project file is used.
7511         (Version_Switch): Remove, moved to Switch
7512         (Help_Switch): Remove, moved to Switch
7513         (Display_Version): Remove, moved to Switch
7515         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
7516         package Switch to process switches --version and --help.
7517         (Display_Version): New procedure
7519         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
7521 2007-08-31  Javier Miranda  <miranda@adacore.com>
7523         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
7524         internal tags.
7526 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
7528         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
7529         (Mark_Non_Null): If the node for which we just generated an access check
7530         is a reference to an *in* parameter and the reference appears in the
7531         declarative part of a subprogram body, mark the node as known non null.
7533 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
7535         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
7536         structure of E_Exception to reflect the new flag.
7537         (Is_Raised, Set_Is_Raised): New inlined routines.
7538         Update the usage of available flag to reflect the addition of Is_Raised.
7539         (Is_Raised, Set_Is_Raised): Bodies of new routines.
7540         (Write_Entity_Flags): Write the status of flag Is_Raised.
7541         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
7542         spurious ambiguities when integer literals appear in the context of an
7543         address type that is a visible integer type.
7545         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
7546         exceptions never being raised.
7547         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
7548         explicitly raised.
7550 2007-08-31  Javier Miranda  <miranda@adacore.com>
7552         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
7553         statement when compiling under restriction No_Exceptions_Proparation.
7555 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
7557         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
7558         initialization aggregate for the type, generate itype references for
7559         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
7561 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
7563         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
7564         library-level package renaming, pass the declaration associated with
7565         the renaming's special debug variable to Qualify_Entity_Names to ensure
7566         that its encoded name is properly qualified.
7568         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
7569         occurring in the list of entities to qualify, and do not attempt to
7570         traverse an entity list in that case. Variables associated with
7571 `       library-level package renamings can now occur in the table.
7573         * exp_dbug.ads: Revise documentation of the encoding for renaming
7574         declarations.
7576 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7578         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
7579         access type points to an unconstrained array.
7581 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
7583         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
7584         conversion.
7586         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
7587         simple redundant qualifications. The check is performed whenever the
7588         expression is a non-overloaded identifier.
7589         (Resolve_Type_Conversion): Enchance the redundant type conversion check
7590         to include loop parameters.
7591         (Valid_Conversion): Avoid generation of spurious error message.
7593 2007-08-31  Bob Duff  <duff@adacore.com>
7595         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
7596         concatenations of string literals into a single literal, in order to
7597         avoid very deep recursion in the front end, which was causing stack
7598         overflow.
7600         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
7601         string, and the right operand is a string literal (the case of "" &
7602         "..."), optimize by avoiding copying the right operand -- just use the
7603         value of the right operand directly.
7605         * stringt.adb (Store_String_Chars): Optimize by growing the
7606         String_Chars table all at once, rather than appending characters one by
7607         one.
7608         (Write_String_Table_Entry): If the string to be printed is very long,
7609         just print the first few characters, followed by the length. Otherwise,
7610         doing "pn(n)" in the debugger can take an extremely long time.
7612         * sem_prag.adb (Process_Interface_Name): Replace loop doing
7613         Store_String_Char with Store_String_Chars.
7615 2007-08-31  Vincent Celier  <celier@adacore.com>
7617         * prj-attr.adb: Add new attribute Excluded_Source_Files
7619         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
7620         Locally_Removed_Files.
7622         * snames.ads, snames.adb: New standard name Excluded_Source_Files
7624 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
7626         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
7627         clauses of subunits, ignore limited_with_clauses that are illegal and
7628         have not been fully analyzed.
7630 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
7632         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
7633         flag, for effiency. It is called when analyzing arithmetic operators
7634         and also for actuals in calls that are universal_integers. The flag is
7635         set for the predefined type address, and for any type or subtype
7636         derived from it.
7638         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
7639         Universal_Integer, when the formal is a descendent of address and the
7640         call appears in user code.
7641         (Analyze_Selected_Component): if the prefix is a private extension, the
7642         tag component is visible.
7644         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
7645         entity flag.
7647 2007-08-31  Robert Dewar  <dewar@adacore.com>
7649         * s-fileio.adb (Open): Normalize file name to lower case in non-case
7650         sensitive file name systems to avoid unexpected mismatch in Vista.
7652 2007-08-31  Vincent Celier  <celier@adacore.com>
7654         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
7656 2007-08-31  Vincent Celier  <celier@adacore.com>
7658         * symbols-vms.adb (Initialize): Read symbol files with continuation
7659         lines
7660         (Finalize): If symbol is long, split the line
7662 2007-08-31  Vincent Celier  <celier@adacore.com>
7664         * fmap.ads: Minor comment updates
7666 2007-08-31  GNAT Script  <nobody@adacore.com>
7668         * Make-lang.in: Makefile automatically updated
7670 2007-08-31  Bob Duff  <duff@adacore.com>
7672         * sinfo.ads: Minor comment fix.
7674 2007-08-31  Thomas Quinot  <quinot@adacore.com>
7676         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
7677         with implementation.
7678         Documentation cleanup only.
7680 2007-08-31  Sergey Rybin  <rybin@adacore.com>
7682         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
7683         gnatpp '--separate-stmt-name' option.
7684         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
7685         option.
7687         * gnat_ugn.texi: Add description for the new gnatpp
7688         '--separate-stmt-name' and '--use-on-new-line' options.
7690 2007-08-31  Ben Elliston  <bje@au.ibm.com>
7692         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
7693         when compiling for powerpc64-*-linux.
7694         * system-linux-ppc64.ads: New file.
7696 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
7698         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
7699         NetBSD.
7701 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7703         * misc.c (gnat_type_max_size): Constify.
7705 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
7707         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
7708         associated with Standard_Debug_Renaming_Type, to be used as the type of
7709         the special variables whose names provide debugger encodings for
7710         renaming declarations.
7712         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
7713         (Set_Debug_Renaming_Link): Change to set Node25.
7714         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
7715         (Write_Field25_Name): Add case for E_Variable to output
7716         "Debug_Renaming_Link".
7717         (Write_Field23_Name): Correct the output string for "Limited_View".
7719         * exp_dbug.adb: Add with and use of Tbuild.
7720         (Debug_Renaming_Declaration): Replace creation of an enumeration type
7721         and literal with creation of a variable of type
7722         Standard_Debug_Renaming_Type whose name encodes both the renamed object
7723         and the entity of the renaming declaration.
7724         (Qualify_Entity_Name): Add the delayed qualification of the entity name
7725         part of the name of a variable that has a Debug_Renaming_Link.
7727         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
7728         special type to be associated with variables that provide debugger
7729         encodings for renaming declarations.
7731 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
7732             Ed Schonberg  <schonberg@adacore.com>
7733             Javier Miranda  <miranda@adacore.com>
7735         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
7736         ancestor part given by an aggregate to test for an unchecked conversion,
7737         since this can occur in some cases when the ancestor part is a function
7738         call, and we don't want to fall into the recursive call to this
7739         procedure in that case.
7741         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
7742         stream attributes on limited types to account for user-specified
7743         attributes as well as whether Input (resp. Output) becomes available
7744         due to Read (resp. Write) being available for the type. Change Boolean
7745         variable to the more accurate name
7746         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
7747         double-"not" predicate at beginning of return statement to more
7748         understandable form.
7750         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
7751         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
7752         in a block statement and use that as the first statement of the
7753         expanded return rather than incorrectly using the handled sequence as
7754         the first statement.
7756         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
7757         operation, generate an explicit freeze node for it rather than
7758         generating extra formals, to ensure that gigi has the proper order of
7759         elaboration for anonymous subtypes in the signature of the subprograms.
7760         (Build_In_Place_Formal): Move assertion to beginning of loop.
7761         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
7762         applied to a function call (occurs for some cases of 'Input).
7763         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
7764         applied to a function call (occurs for some cases of 'Input).
7766         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
7767         2005, generate an extended return statement enclosing the result object
7768         and 'Read call.
7770         * freeze.adb (Freeze_Record_Type): Extend the current management of
7771         components that are access type with an allocator as default value: add
7772         missing support to the use of qualified expressions of the
7773         allocator (which also cause freezing of the designated type!)
7774         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
7775         dispatching operation, since extra formals may be needed by calls to
7776         build-in-place functions (such as stream 'Input).
7778         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
7779         formals for 'Constrained and accessibility level in the case of a
7780         predefined dispatching operation.
7782         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
7783         point, no need to find the parent node.
7785 2007-08-16  Javier Miranda  <miranda@adacore.com>
7787         * exp_attr.adb (Attribute_Priority): Add missing support for entries
7788         and entry barriers.
7790 2007-08-16  Javier Miranda  <miranda@adacore.com>
7792         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
7793         is not really required and can introduce regression with the debugger.
7794         The original problem is fixed with the patch written for checks.adb.
7796 2007-08-16  Thomas Quinot  <quinot@adacore.com>
7798         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
7799         Range_Check on Allocated_Table.
7801 2007-08-16  Vincent Celier  <celier@adacore.com>
7803         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
7804         Including_Non_Switch set to False.
7805         (Gnatmake): For the compiler, call Test_If_Relative_Path with
7806         Including_Non_Switch set to False.
7808         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
7809         parameter Including_Non_Switch, defaulted to True. When
7810         Including_Non_Switch is False, options that are not switches and
7811         appear as relative path are not converted to absolute paths.
7813 2007-08-16  Nicolas Roche  <roche@adacore.com>
7815         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
7816         makefiles
7818         * Make-lang.in: Update dependencies
7820 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
7822         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
7823         currently inspected is a selected component, retrieve the entity of
7824         its selector.
7825         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
7826         from the immediate ancestor of Main_Unit_Entity.
7827         (Install_Limited_Withed_Unit): Do not install the limited view of
7828         package P if P is reachable through an ancestor chain from package C
7829         and C also has a with clause for P in its body.
7830         (Has_Limited_With_Clause): New routine.
7831         (Has_With_Clause): New routine.
7833 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
7835         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
7836         generic for an enclosing instance is a global reference, even though
7837         its scope is the enclosing instance.
7839 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
7840             Javier Miranda  <miranda@adacore.com>
7842         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
7843         initialize a limited object.
7844         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
7845         13/2 and 14/2.
7846         Make sure Has_Complex_Representation is inherited by derived type.
7848 2007-08-16  Robert Dewar  <dewar@adacore.com>
7850         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
7851         exception case
7853 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
7855         * sem_disp.adb (Check_Dispatching_Operation): If the operation
7856         implements an operation inherited from a progenitor interface, verify
7857         that they are subtype-conformant.
7859 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
7860             Bob Duff  <duff@adacore.com>
7861             Nicolas Setton  <setton@adacore.com>
7863         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
7864         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
7865         the statement which is being resolved comes from a predefined library
7866         unit, all non-predefined library interpretations are skipped.
7867         (Resolve_Op_Concat): If string concatenation was folded in the parser,
7868         but the "&" is user defined, give an error, because the folding would
7869         be wrong.
7871         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
7872         the parser has folded a long sequence of concatenations of string
7873         literals.
7875         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
7876         and "JMP_BUF" variables as artificial.
7877         (N_String_Literal): Do not use alloca for very long string literals. Use
7878         xmalloc/free instead. Otherwise the stack might overflow.
7880         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
7881         compiler.
7883 2007-08-16  Vincent Celier  <celier@adacore.com>
7885         * vms_conv.adb (Process_Argument): Ensure that project related options
7886         are not put in the -cargs section when using GNAT COMPILE.
7888 2007-08-16  Robert Dewar  <dewar@adacore.com>
7890         * gnat_ugn.texi: Add note on preprocessing (output file not written)
7892 2007-08-16  Thomas Quinot  <quinot@adacore.com>
7894         * a-tags.adb: Minor reformatting.
7896 2007-08-16  Bob Duff  <duff@adacore.com>
7898         * sem_type.ads, sem_ch4.adb: Minor reformatting.
7900 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7902         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
7903         s-osinte-interix.ads, system-interix.ads: Removed.
7905 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
7907         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
7908         calls to Check_Within_Time_Bounds.
7909         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
7910         (Difference): Account for possible rounding of the resulting difference
7912 2007-08-14  Robert Dewar  <dewar@adacore.com>
7914         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
7915         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
7916         s-osinte-solaris.adb, s-osinte-solaris.ads,
7917         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
7919         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
7920         switch -gnatyS. Enable -gnatyS in GNAT style check mode
7922 2007-08-14  Robert Dewar  <dewar@adacore.com>
7923             Ed Schonberg  <schonberg@adacore.com>
7925         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
7926         Suppress unmodified in-out parameter warning in some cases
7927         This patch is a also fairly significant change to the way suppressible
7928         checks are handled.
7930         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
7931         needed for access to concurrent record types generated by the expander.
7932         (Generate_Range_Check): When generating a temporary to capture the
7933         value of a conversion that requires a range check, set the type of the
7934         temporary before rewriting the node, so that the type is always
7935         properly placed for back-end use.
7936         (Apply_Float_Conversion_Check): Handle case where the conversion is
7937         truncating.
7938         (Get_Discriminal): Code reformatting. Climb the scope stack looking
7939         for a protected type in order to examine its discriminants.
7941 2007-08-14  Robert Dewar  <dewar@adacore.com>
7942             Gary Dismukes  <dismukes@adacore.com>
7943             Ed Schonberg  <schonberg@adacore.com>
7944             Thomas Quinot  <quinot@adacore.com>
7946         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
7947         a-stwisu.adb, a-strsup.adb: Fix warnings for range
7948         tests optimized out.
7950         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
7951         (Get_Allocator_Final_List): For the case of an anonymous access type
7952         that has a specified Associated_Final_Chain, do not go up to the
7953         enclosing scope.
7954         (Expand_N_Type_Conversion): Test for the case of renamings of access
7955         parameters when deciding whether to apply a run-time accessibility
7956         check.
7957         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
7958         aggregate code before allocator, and ahead of declaration for
7959         temporary, to prevent access before elaboration when the allocator is
7960         an actual for an access parameter.
7961         (Expand_N_Type_Conversion): On an access type conversion involving an
7962         access parameter, do not apply an accessibility check when the
7963         operand's original node was an attribute other than 'Access. We now
7964         create access conversions for the expansion of 'Unchecked_Access and
7965         'Unrestricted_Access in certain cases and clearly accessibility should
7966         not be checked for those.
7968         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
7969         includes a type conversion of a packed component that has been expanded,
7970         recover the original expression for the object, and use this expression
7971         in the post-call assignment statement, so that the assignment is made
7972         to the object and not to a back-end temporary.
7973         (Freeze_Subprogram): In case of primitives of tagged types not defined
7974         at the library level force generation of code to register the primitive
7975         in the dispatch table. In addition some code reorganization has been
7976         done to leave the implementation clear.
7977         (Expand_Call): When expanding an inherited implicit conversion,
7978         preserve the type of the inherited function after the intrinsic
7979         operation has been expanded.
7981         * exp_ch2.ads, exp_ch2.adb
7982         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
7983         of an entry formal appearing in an assignment statement does not assign
7984         to the formal.
7985         (Expand_Current_Value): Instead of calling a routine to determine
7986         whether the prefix of an attribute reference should be optimized or
7987         not, prevent the optimization of such prefixes all together.
7989         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
7990         component whose prefix is known to be of an access type is an implicit
7991         dereference and does not assign to the prefix.
7993 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7994             Robert Dewar  <dewar@adacore.com>
7996         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
7997         itype is visited, make an entry into table to link associated node and
7998         new itype.
7999         Add comments and correct harmless error in Build_NCT_Hash_Tables
8000         (Array_Aggr_Subtype): Associate each itype created for an index type to
8001         the corresponding range construct, and not to the aggregate itself. to
8002         maintain a one-to-one correspondence between itype and its associated
8003         node, to prevent errors when complex expression is copied.
8004         Fix mishandling of multiple levels of parens
8006         * sem_aggr.adb: Create a limited view of an incomplete type, to make
8007         treatment of limited views uniform for all visible declarations in a
8008         limited_withed package.
8009         (New_Copy_Tree): If hash table is being used and itype is visited,
8010         make an entry into table to link associated node and new itype.
8011         (Resolve_Record_Aggregate): Do not add an others box association for a
8012         discriminated record component that has only discriminants, when there
8013         is a box association for the component itself.
8015         * par-ch4.adb: Fix mishandling of multiple levels of parens
8017 2007-08-14  Robert Dewar  <dewar@adacore.com>
8019         * comperr.adb: Fix problem with suppressing warning messages from gigi
8021         * erroutc.ads, erroutc.adb, errout.ads, 
8022         errout.adb (Write_Eol): Remove trailing spaces before writing the line
8023         (Write_Eol_Keep_Blanks): New procedure to write a line, including
8024         possible trailing spaces.
8025         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
8026         Fix problem with suppressing warning messages from back end
8027         Improve handling of deleted warnings
8029         * gnat1drv.adb: 
8030         Fix problem with suppressing warning messages from back end
8031         Handle setting of Static_Dispatch_Tables flag.
8033         * prepcomp.adb: 
8034         Fix problem with suppressing warning messages from back end
8036         * exp_intr.adb: Improve handling of deleted warnings
8038 2007-08-14  Robert Dewar  <dewar@adacore.com>
8040         * debug.adb: Improve -gnatdI to cover all cases of serialization
8041         Add documentation of dZ, d.t
8043         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
8044         serialization.
8045         (Sprint_Node_Actual): Generate new output associated with implicit
8046         importation and implicit exportation of object declarations.
8048 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8049             Robert Dewar  <dewar@adacore.com>
8050             Javier Miranda  <miranda@adacore.com>
8051             Gary Dismukes  <dismukes@adacore.com>
8053         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
8054         to make treatment of limited views uniform for all visible declarations
8055         in a limited_withed package.
8056         Improve warnings for in out parameters
8057         (Set_Related_Interaface/Related_Interface): Allow the use of this
8058         attribute with constants.
8059         (Write_Field26_Name): Handle attribute Related_Interface in constants.
8060         Warn on duplicate pragma Preelaborable_Initialialization
8062         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
8063         generation of a freezing node to ensure proper management of null
8064         excluding access types in the backend.
8065         (Create_Extra_Formals): Test base type of the formal when checking for
8066         the need to add an extra accessibility-level formal. Pass the entity E
8067         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
8068         originally being done in a couple of cases), to ensure that the
8069         Extra_Formals list gets set on the entity E when the first entity is
8070         added.
8071         (Conforming_Types): Add missing calls to Base_Type to the code that
8072         handles anonymous access types. This is required to handle the
8073         general case because Process_Formals builds internal subtype entities
8074         to handle null-excluding access types.
8075         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
8076         functions that need it, even when not marked Requires_Overriding.
8077         Improve warnings for in out parameters
8078         (Analyze_Function_Return): Warn for disallowed null return
8079         Warn on return from procedure with unset out parameter
8080         Ensure consistent use of # in error messages
8081         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
8082         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
8083         the implicit conversion of the expression done for anonymous access
8084         types. This is required to generate the code of the null excluding
8085         check (if required).
8087         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
8088         A formal parameter is never publicly referenceable outside of its body.
8089         (Check_References): For an unreferenced formal parameter in an accept
8090         statement, use the same warning circuitry as for subprogram formal
8091         parameters.
8092         (Warn_On_Unreferenced_Entity): New subprogram, taken from
8093         Output_Unreferenced_Messages, containing the part of that routine that
8094         is now reused for entry formals as described above.
8095         (Goto_Spec_Entity): New function
8096         (Check_References): Do not give IN OUT warning for dispatching operation
8097         Improve warnings for in out parameters
8098         (Test_Ref): Check that the entity is not undefinite before calling
8099         Scope_Within, in order to avoid infinite loops.
8100         Warn on return from procedure with unset out parameter
8101         Improved warnings for unused variables
8103 2007-08-14  Robert Dewar  <dewar@adacore.com>
8104             Javier Miranda  <miranda@adacore.com>
8105             Gary Dismukes  <dismukes@adacore.com>
8107         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
8108         (Expand_N_Attribute_Reference): Further unify the handling of the
8109         three forms of access attributes, using common code now for all three
8110         cases. Add a test for the case of applying an access attribute to
8111         an explicit dereference when the context is an access-to-interface
8112         type. In that case we need to apply the conversion to the prefix
8113         of the explicit dereference rather than the prefix of the attribute.
8114         (Attribute_Version, UET_Address): Set entity as internal to ensure
8115         proper dg output of implicit importation.
8116         (Expand_Access_To_Type): Removed.
8117         (Expand_N_Attribute_Reference): Merge the code from the three cases
8118         of access attributes, since the processing is largely identical for
8119         these cases. The substantive fix here is to process the case of a
8120         type name prefix (current instance case) before handling the case
8121         of interface prefixes.
8123 2007-08-14  Thomas Quinot  <quinot@adacore.com>
8124             Ed Schonberg  <schonberg@adacore.com>
8125             Javier Miranda  <miranda@adacore.com>
8126             Robert Dewar  <dewar@adacore.com>
8128         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
8129         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
8130         type that is an anonymous access to controlled object, establish
8131         an associated finalization chain to avoid corrupting the global
8132         finalization list when a dynamically allocated object designated
8133         by such a component is deallocated.
8134         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
8135         functions that need it, even when not marked Requires_Overriding.
8136         (Initialize_Tag): Replace call to has_discriminants by call to
8137         Is_Variable_Size_Record in the circuitry that handles the
8138         initialization of secondary tags.
8139         (Is_Variable_Size_Record): New implementation.
8140         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
8141         Suppress_Initialization pragma for a derived type.
8142         (Is_Variable_Size_Record): New subprogram.
8143         (Build_Offset_To_Top_Functions): New implementation that simplifies the
8144         initial version of this routine and also fixes problems causing
8145         incomplete initialization of the table of interfaces.
8146         (Build_Init_Procedure): Improve the generation of code to initialize the
8147         the tag components of secondary dispatch tables.
8148         (Init_Secondary_Tags): New implementation that simplifies the previous
8149         version of this routine.
8150         (Make_DT): Add parameter to indicate when type has been frozen by an
8151         object declaration, for diagnostic purposes.
8152         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
8153         diagnose attemps to freeze a subprogram when some untagged type of its
8154         profile is a private type whose full view has not been analyzed yet.
8155         (Freeze_Array_Type): Generate init proc for packed array if either
8156         Initialize or Normalize_Scalars is set.
8157         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
8158         constructing the new profile, copy the null_exclusion indicator for each
8159         parameter, to ensure full conformance of the new body with the spec.
8161         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
8162         Create wrappers for constructor functions that need it, even when not
8163         marked Requires_Overriding.
8164         (Covers): Handle properly designated types of anonymous access types,
8165         whose non-limited views are themselves incomplete types.
8166         (Add_Entry): Use an entity to store the abstract operation which hides
8167         an interpretation.
8168         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
8169         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
8170         initialization aggregate.
8171         (Function_Interp_May_Be_Hidden): Rename to
8172         Function_Interp_Has_Abstract_Op.
8173         (Has_Compatible_Type): Remove machinery that skips interpretations if
8174         they are labeled as potentially hidden by an abstract operator.
8175         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
8176         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
8177         (Write_Overloads): Output the abstract operator if present.
8178         (Add_Entry): Before inserting a new entry into the interpretation table
8179         for a node, determine whether the entry will be disabled by an abstract
8180         operator.
8181         (Binary_Op_Interp_May_Be_Hidden): New routine.
8182         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
8183         aggregate.
8184         (Function_Interp_May_Be_Hidden): New routine.
8185         (Has_Compatible_Type): Do not consider interpretations hidden by
8186         abstract operators when trying to determine whether two types are
8187         compatible.
8188         (Has_Hidden_Interp): New routine.
8189         (Set_May_Be_Hidden_Interp): New routine.
8190         (Write_Overloads): Write the status of flag May_Be_Hidden.
8192 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8193             Javier Miranda  <miranda@adacore.com>
8195         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
8196         types declared in the declarative part of a nested package body or in
8197         the proper body of a stub.
8198         (Set_All_DT_Position): Add missing check to avoid wrong assignation
8199         of the same dispatch table slot to renamed primitives.
8200         (Make_Select_Specific_Data_Table): Handle private types.
8201         (Tagged_Kind): Handle private types.
8202         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
8203         output of implicit importation and exportation.
8204         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
8205         first formal of the thunk is always associated with the controlling
8206         type. In addition perform the following code cleanup: remove formal
8207         Thunk_Alias which is no longer required, cleanup evaluation of the
8208         the controlling type, and update the documentation.
8209         Replace occurrence of Default_Prim_Op_Count by
8210         Max_Predef_Prims. Addition of compile-time check to verify
8211         that the value of Max_Predef_Prims is correct.
8212         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
8213         (Make_DT): Add parameter to indicate when type has been frozen by an
8214         object declaration, for diagnostic purposes.
8215         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
8216         construction of statically allocated dispatch tables.
8217         (Make_DT): In case of library-level tagged types export the declaration
8218         of the primary tag. Remove generation of tags (now done by Make_Tags).
8219         Additional modifications to handle non-static generation of dispatch
8220         tables. Take care of building tables for asynchronous interface types
8221         (Make_Tags): New subprogram that generates the entities associated with
8222         the primary and secondary tags of Typ and fills the contents of Access_
8223         Disp_Table. In case of library-level tagged types imports the forward
8224         declaration of the primary tag that will be declared later by Make_DT.
8225         (Expand_Interface_Conversion): In case of access types to interfaces
8226         replace an itype declaration by an explicit type declaration to avoid
8227         problems associated with the scope of such itype in transient blocks.
8229 2007-08-14  Robert Dewar  <dewar@adacore.com>
8230             Ed Schonberg  <schonberg@adacore.com>
8231             Javier Miranda  <miranda@adacore.com>
8233         * exp_util.ads, exp_util.adb: 
8234         This patch replaces a number of occurrences of explicit tests for N_Null
8235         with calls to Known_Null. This improves tracking of null values, since
8236         Known_Null also catches null constants, and variables currently known to
8237         be null, so we get better tracking.
8238         (Ensure_Defined): create an itype reference only in the scope of the
8239         itype.
8240         (Side_Effect_Free): A selected component of an access type that
8241         denotes a component with a rep clause must be treated as not
8242         side-effect free, because if it is part of a linked structure its
8243         value may be affected by a renaming.
8244         (Expand_Subtype_From_Expr): For limited objects initialized with build
8245         in place function calls, do nothing; otherwise we prematurely introduce
8246         an N_Reference node in the expression initializing the object, which
8247         breaks the circuitry that detects and adds the additional arguments to
8248         the called function. Bug found working in the new patch for statically
8249         allocated dispatch tables.
8250         (Is_Library_Level_Tagged_Type): New subprogram.
8251         (Remove_Side_Effects): If the expression of an elementary type is an
8252         operator treat as a function call.
8253         (Make_Literal_Range): If the index type of the array is not integer, use
8254         attributes properly to compute the constraint on the resulting aggregate
8255         which is a string.
8257         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
8258         class-wide type whose base type is an incomplete private type, leave
8259         class-wide type unfrozen so that freeze nodes can be generated
8260         properly at a later point.
8261         (Freeze_Entity, array case): Handle case of pragma Pack and component
8262         size attributre clause for same array.
8264 2007-08-14  Vincent Celier  <celier@adacore.com>
8266         * prj.ads, prj.adb: Update Project Manager to new attribute names for
8267         gprbuild.
8268         Allow all valid declarations in configuration project files
8269         (Reset): Initialize all tables and hash tables in the project tree data
8270         Major update of the Project Manager and of the project aware tools,
8271         including gprmake, so that the same sources in the GNAT repository
8272         can be used by gprbuild.
8273         (Slash_Id): Change type to be Path_Name_Type
8274         (Slash): Return a Path_Name_Type instead of a File_Name_Type
8276         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
8277         gprbuild.
8278         Update Project Manager to new attribute names for ghprbuild
8279         Allow all valid declarations in configuration project files
8280         Major update of the Project Manager and of the project aware tools,
8281         including gprmake, so that the same sources in the GNAT repository
8282         can be used by gprbuild.
8284         * prj-com.ads: 
8285         Major update of the Project Manager and of the project aware tools,
8286         including gprmake, so that the same sources in the GNAT repository
8287         can be used by gprbuild.
8289         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8290         insensitive flag for attributes with optional index.
8291         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8292         array attribute, put the index in lower case.
8293         Update Project Manager to new attribute names for ghprbuild
8294         Allow all valid declarations in configuration project files
8295         Major update of the Project Manager and of the project aware tools,
8296         including gprmake, so that the same sources in the GNAT repository
8297         can be used by gprbuild.
8299         * prj-env.ads, prj-env.adb: 
8300         Major update of the Project Manager and of the project aware tools,
8301         including gprmake, so that the same sources in the GNAT repository
8302         can be used by gprbuild.
8303         (Get_Reference): Change type of parameter Path to Path_Name_Type
8305         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
8306         removing '-' from the path to start with the first character of the
8307         next directory.
8308         Major update of the Project Manager and of the project aware tools,
8309         including gprmake, so that the same sources in the GNAT repository
8310         can be used by gprbuild.
8311         Major update of the Project Manager and of the project aware tools,
8312         including gprmake, so that the same sources in the GNAT repository
8313         can be used by gprbuild.
8315         * prj-nmsc.ads, prj-nmsc.adb: 
8316         Update Project Manager to new attribute names for ghprbuild
8317         Allow all valid declarations in configuration project files
8318         (Search_Directories): Detect subunits that are specified with an
8319         attribute Body in package Naming. Do not replace a source/unit in the
8320         same project when the order of the source dirs are known. Detect
8321         duplicate sources/units in the same project when the order of the
8322         source dirs are not known.
8323         (Check_Ada_Name): Allow all identifiers that are not reserved words
8324         in Ada 95.
8325         Major update of the Project Manager and of the project aware tools,
8326         including gprmake, so that the same sources in the GNAT repository
8327         can be used by gprbuild.
8328         (Look_For_Sources): If the list of sources is empty, set the object
8329         directory of non extending project to nil.
8330         Change type of path name variables to be Path_Name_Type
8331         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
8332         otherwise creating missing directories will fail.
8334         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
8335         prj-part.ads, prj-part.adb:
8336         Major update of the Project Manager and of the project aware tools,
8337         including gprmake, so that the same sources in the GNAT repository
8338         can be used by gprbuild.
8340         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8341         insensitive flag for attributes with optional index.
8342         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8343         array attribute, put the index in lower case.
8344         (Parse_Variable_Reference): Allow the current project name to be used in
8345         the prefix of an attribute reference.
8347         * prj-util.ads, prj-util.adb
8348         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
8349         defaulted to False. When True, always check against indexes in lower
8350         case.
8352         * snames.ads, snames.h, snames.adb: 
8353         Update Project Manager to new attribute names for gprbuild
8354         Allow all valid declarations in configuration project files
8356 2007-08-14  Robert Dewar  <dewar@adacore.com>
8357             Ed Schonberg  <schonberg@adacore.com>
8359         * opt.ads: Warning for non-local exception propagation now off by
8360         default
8361         New switch -gnatI to disable representation clauses
8362         Implement new pragma Implicit_Packing
8364         * usage.adb: 
8365         Warning for non-local exception propagation now off by default
8366         Add warning for unchecked conversion of pointers wi different
8367         conventions.
8368         New switch -gnatI to disable representation clauses
8370         * usage.adb: new switch -gnatyS
8372         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
8373         note that aggregates of anonymous array types are not flagged.
8374         -gnatwc now includes membership tests optimized away
8375         -gnatw.x warnings are now off by default
8376         Added conditional compilation Appendix
8377         Add documentation of -gnatI
8378         Add documentation for new -gnatyS style check
8379         Update documentation about SAL and auto-init on Windows.
8381         * gnat_rm.texi: 
8382         Add documentation for pragma Check_Name and 'Enabled attribute
8383         Document that Eliminate on dispatching operation is ignored
8384         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
8385         Document pragma Main
8386         Document pragma Implicit_Packing
8388         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
8389         different conventions
8390         New switch -gnatI to disable representation clauses
8392         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
8393         recognized, report the invalid characters including "-gnat" instead of
8394         just the first character in the switch.
8395         New switch -gnatI to disable representation clauses
8396         Set Warn_On_Object_Renames_Function true for -gnatg
8398         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
8399         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
8400         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
8401         to switch -aP (add directory to project search dir).
8403         * par-prag.adb: Implement new pragma Implicit_Packing
8405         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
8406         type as having a non-standard representation, to force expansion on
8407         conversion to related types.
8408         (Analyze_Pragma): Warn on misspelled pragma
8409         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
8410         Ensure consistent use of # in error messages
8411         Implement pragma Implicit_Packing
8413 2007-08-14  Olivier Hainque  <hainque@adacore.com>
8414             Eric Botcazou  <ebotcazou@adacore.com>
8416         * targtyps.c (get_target_maximum_default_alignment): New function.
8417         Maximum alignment
8418         that the compiler might choose by default for a type or object.
8419         (get_target_default_allocator_alignment): New function. Alignment known
8420         to be honored by the target default allocator.
8421         (get_target_maximum_allowed_alignment): New function. Maximum alignment
8422         we might accept for any type or object on the target.
8423         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
8425         * gigi.h (get_target_maximum_default_alignment): Declare new function.
8426         (get_target_default_allocator_alignment): Likewise.
8427         (get_target_maximum_allowed_alignment): Likewise.
8429         PR ada/19037
8430         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
8431         result of a function call, first try to use a stabilized reference for
8432         a constant renaming too.
8433         (validate_alignment): Use target_maximum_allowed_alignment instead of
8434         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
8435         (gnat_to_gnu_entity): Use common nodes directly.
8436         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
8437         alignment and size for the object.
8438         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
8439         and N_Procedure_Call_Statement.
8440         (takes_address): Rename to lvalue_required_p, add third parameter
8441         'aliased' and adjust recursive calls.
8442         <N_Indexed_Component>: Update 'aliased' from the array type.
8443         <N_Selected_Component>: New case.
8444         <N_Object_Renaming_Declaration>: New Likewise.
8445         (Identifier_to_gnu): Adjust for above changes.
8446         (maybe_stabilize_reference) <CONST_DECL>: New case.
8448         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
8449         between type variants.
8450         (build_simple_component_ref): Likewise.
8451         (build_call_alloc_dealloc): Use target_default_allocator_alignment
8452         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
8453         aligning type circuitry for allocations from the default storage pool.
8454         (build_allocator): Likewise.
8455         (build_simple_component_ref): Manually fold the reference for a
8456         constructor if the record type contains a template.
8458         * utils.c (value_zerop): Delete.
8459         (gnat_init_decl_processing): Emit debug info for common types.
8460         (rest_of_record_type_compilation): If a union contains a field
8461         with a non-constant qualifier, treat it as variable-sized.
8462         (finish_record_type): Give the stub TYPE_DECL a name.
8463         (rest_of_record_type_compilation): Likewise.
8464         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
8465         types are equivalent array types.
8466         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
8467         even if the type is not passed by reference.
8468         (static_ctors, static_dtors): Delete.
8469         (end_subprog_body): Do not record constructors and destructors.
8470         (build_global_cdtor): Delete.
8471         (gnat_write_global_declarations): Do not call build_global_cdtor.
8473         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
8474         -fRTS=rtp is specified.
8475         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
8476         specified.
8478         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
8479         of the personality function with SJLJ exceptions.
8481         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
8482         the name of the personality function with SJLJ exceptions.
8484 2007-08-14  Robert Dewar  <dewar@adacore.com>
8485             Ed Schonberg  <schonberg@adacore.com>
8487         * par.ads, par.adb: Improve handling of extra right parens.
8488         (Par): Remove flag From_Limited_With_Clause.
8490         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
8491         Improve handling of extra right parens.
8493 2007-08-14  Robert Dewar  <dewar@adacore.com>
8495         * par-tchk.adb (TF_Semicolon): Improve error recovery
8497 2007-08-14  Robert Dewar  <dewar@adacore.com>
8498             Ed Schonberg  <schonberg@adacore.com>
8500         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
8501         enumeration type, mark all literals as referenced.
8502         (Eval_Attribute, case 'Image): If the argument is an enumeration
8503         literal and names are available, constant-fold but mark nevertheless as
8504         non-static.
8505         Clean up function names.
8506         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
8507         comment.
8508         (Requires_Simple_Name_Prefix): Removed.
8510 2007-08-14  Robert Dewar  <dewar@adacore.com>
8511             Ed Schonberg  <schonberg@adacore.com>
8513         * sem_ch11.adb: Improved warnings for unused variables
8515         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
8516         is a synchronized interface, the derived type is limited.
8517         (Analyze_Object_Declaration): Mark the potential coextensions in the
8518         definition and expression of an object declaration node.
8519         (Build_Derived_Type): For the completion of a private type declaration
8520         with a derived type declaration, chain the parent type's representation
8521         items to the last representation item of the derived type (not the
8522         first one) if they are not present already.
8523         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
8524         object declaration of forward references to tags.
8525         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
8526         subprogram types can appear as access discriminants of synchronized
8527         types.
8528         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
8529         given in prefixed form as a selected component.
8530         (Process_Discriminants): If not all discriminants have defaults, place
8531         error message on a default that is present.
8532         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
8533         extend a synchronized tagged type.
8534         Improved warnings for unused variables
8535         (Is_Visible_Component): Fix a visibility hole on a component inherited
8536         by a private extension when parent is itself declared as a private
8537         extension, and the derivation is in a child unit.
8538         (Find_Hidden_Interface): Move spec from the package body.
8540 2007-08-14  Robert Dewar  <dewar@adacore.com>
8541             Ed Schonberg  <schonberg@adacore.com>
8543         * sem_ch5.adb: Improve warnings on redundant assignments
8545         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
8546         parameter
8547         (Is_Synchronized_Tagged_Type): New subprogram that returns true
8548         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
8549         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
8550         is set to False. Improves handling of Known_[Not_]Null.
8551         (Wrong_Type): Special case address arithmetic attempt
8552         (Collect_Abstract_Interfaces): Add new formal to allow collecting
8553         abstract interfaces just using the partial view of private types.
8554         (Has_Abstract_Interfaces): Add new formal to allow checking types
8555         covering interfaces using the partial view of private types.
8556         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
8557         component still needs to be defined in this case, but is never
8558         initialized as VMs are using other dispatching mechanisms.
8559         (Abstract_Interface_List): For a protected type, use base type to get
8560         proper declaration.
8561         Improve warnings on redundant assignments
8562         (Is_Variable): Handle properly an implicit dereference of a prefixed
8563         function call.
8564         (Build_Actual_Subtype): If this is an actual subtype for an
8565         unconstrained formal parameter, use the sloc of the body for the new
8566         declaration, to prevent anomalises in the debugger.
8568 2007-08-14  Robert Dewar  <dewar@adacore.com>
8570         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
8571         dispatching operation
8573 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8574             Gary Dismukes  <dismukes@adacore.com>
8576         * exp_aggr.ads, 
8577         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
8578         expanded aggregate code before allocator, and ahead of declaration for
8579         temporary, to prevent access before elaboration when the allocator is
8580         an actual for an access parameter.
8581         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
8582         the TSD and the table of interfaces.
8583         (Convert_To_Assignments): Augment the test for delaying aggregate
8584         expansion for limited return statements to include the case of extended
8585         returns, to prevent creation of an unwanted transient scope.
8586         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
8587         (Expand_Array_Aggregate): Handle aggregates associated with
8588         statically allocated dispatch tables.
8589         (Expand_Record_Aggregate): Handle aggregates associated with
8590         statically allocated dispatch tables.
8591         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
8592         of anonymous access type.
8594 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8596         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
8597         is a variable that renames a slice, use the variable itself in the
8598         expannsion when the renamed expression itself may be modified between
8599         the declaration of the renaming and the array assignment.
8601 2007-08-14  Jerome Guitton  <guitton@adacore.com>
8603         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
8604         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
8605         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
8606         New functions; dummy implementations.
8608         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
8609         functions, used to implement the multi-tasks mode routines on VxWorks.
8611         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
8612         New functions, thin
8613         binding to the VxWorks routines which have changed between VxWorks 5
8614         and 6.
8615         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
8616         which are not callable from a RTP.
8618         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
8619         implemented for the multi-tasks mode on VxWorks 5 and 6.
8621         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
8623         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
8624         functions.
8626 2007-08-14  Vincent Celier  <celier@adacore.com>
8628         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
8629         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
8630         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
8631         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
8632         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
8633         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
8634         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
8635         procedure.
8636         (Major_Id_Name): New function.
8637         mlib-tgt.ads/mlib.tgt.adb:
8638         (Library_Major_Minor_Id_Supported): New function, default returns True
8639         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
8640         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
8641         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
8642         Implementation of Library_Major_Minor_Id_Supported returns False
8643         clean.adb:
8644         (Clean_Library_Directory): If major/minor ids are supported, clean all
8645         library files.
8646         Major update of the Project Manager and of the project aware tools,
8647         including gprmake, so that the same sources in the GNAT repository
8648         can be used by gprbuild.
8650 2007-08-14  Olivier Hainque  <hainque@adacore.com>
8652         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
8653         (GCC_ZCX_Support): Switch to True.
8654         
8655         * s-intman-solaris.adb (Notify_Exception): Call
8656         Adjust_Context_For_Raise before raising, as expected for signal
8657         handlers in general.
8658         
8659         * s-intman-posix.adb (Notify_Exception): Remove declaration of
8660         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
8661         to other implementation bodies.
8662         
8663         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
8664         be visible by multiple implementation bodies.
8665         
8666         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
8667         only for conditions coming from hardware.
8668         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
8669         adjustments to signal context prior to exception raise from signal
8670         handler.
8671         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
8672         mode.
8673         Solaris section: (__gnat_adjust_context_for_raise): New function.
8674         Implementation of the machine context adjustments to perform prior to
8675         raise from a signal handler. Version for both sparc and x86.
8676         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
8677         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
8678         prior to raising as expected for any handler, before possible nested
8679         faults to make sure all the contexts in a chain have been adjusted by
8680         the time we propagate.
8682 2007-08-14  Pascal Obry  <obry@adacore.com>
8684         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
8685         (SYSTEM_INFO): New record.
8686         (SetThreadIdealProcessor): New imported routine needed for supporting
8687         task_info pragma on Windows.
8689         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
8690         info can be applied to the current host.
8691         (Create_Task): Set the ideal processor if information is present.
8693         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
8694         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
8696 2007-08-14  Olivier Hainque  <hainque@adacore.com>
8698         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
8699         stack size and initial stack pointer value for a given task.
8700         (Enter_Task): Get the stack attributes of the task we are entering and
8701         let the stack checking engine know about them.
8703         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
8704         Let the stack-checking engine know about the initial sp value and stack
8705         size associated with the current task.
8706         (Set_Stack_Info): If a stack base has been notified for the current
8707         task, honor it. Fallback to the previous less accurate method otherwise.
8709         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
8711 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8713         * sem_ch10.adb: Create a limited view of an incomplete type, to make
8714         treatment of limited views uniform for all visible declarations in a
8715         limited_withed package.
8716         Set flag indicating that a subprogram body for a child unit has a
8717         generated spec.
8718         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
8719         separate declaration, remove the unit name from visibility after
8720         compilation, so that environment is clean for subsequent compilations.
8721         (Install_Limited_Context_Clauses): Do not install a
8722         limited_private_with_clause unless the current unit is a body or a
8723         private child unit.
8724         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
8725         in the same fashion.
8726         (Install_Limited_Withed_Unit): Do not install a limited with clause if
8727         it applies to the declaration of the current package body.
8728         (Remove_Private_With_Clauses): If there is a regular with_clause for
8729         the unit, delete Private_With_Clause from context, to prevent improper
8730         hiding when processing subsequent nested packages and instantiations.
8732 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
8734         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
8735         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
8736         representing absolute path names.
8737         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
8739         * cstreams.c (__gnat_full_name for VxWorks): Use
8740         __gnat_is_absolute_path to detect whether we need to add the current
8741         directory to normalize the path.
8743 2007-08-14  Javier Miranda  <miranda@adacore.com>
8745         * a-tags.ads, 
8746         a-tags.adb (Displace): Associate a message with the raised CE
8747         exception.
8748         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
8749         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
8750         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
8751         spec.
8752         (Default_Prim_Op_Count): Removed.
8753         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
8754         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
8755         Remove pragma Inline_Always.
8757         * rtsfind.ads (Default_Prim_Op_Count): Removed
8758         (Max_Predef_Prims): New entity
8759         (RE_Expanded_Name): Removed
8760         (RE_HT_Link): Removed
8761         (RE_Iface_Tag): Remmoved
8762         (RE_Ifaces_Table): Removed
8763         (RE_Interfaces_Array): Removed
8764         (RE_Interface_Data_Element): Removed
8765         (RE_Nb_Ifaces): Removed
8766         (RE_RC_Offset): Removed
8767         (RE_Static_Offset_To_Top): Removed
8769         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
8770         formal.
8771         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
8772         Prim_Op_Count by Max_Predef_Prims.
8774 2007-08-14  Thomas Quinot  <quinot@adacore.com>
8775             Vincent Celier  <celier@adacore.com>
8777         * binde.adb (Elab_All_Links): Remove unnecessary call to
8778         Generic_Separately_Compiled (if a unit satisfies this predicate, there
8779         won't be an associated Afile).
8780         (Elab_All_Links): Fail if a referenced unit cannot be found
8782         * bindgen.adb: 
8783         Fix comments in bindgen regarding consistency checks done in Bcheck:
8784         the checks are made across units within a partition, not across several
8785         partitions.
8786         Fix generation of C binder file for VxWorks.
8788         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
8789         Generic_May_Lack_ALI, more descriptive of the current use of the
8790         predicate, and update documentation.
8792         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
8793         reorganization and documentation update for the case of predefined
8794         library generics (for which we do not reference an Afile).
8796 2007-08-14  Robert Dewar  <dewar@adacore.com>
8798         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
8799         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
8800         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
8801         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
8802         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
8803         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
8804         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
8805         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
8806         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
8807         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
8808         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
8809         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
8810         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
8811         g-altcon.adb: Minor reformatting
8813         ada-tree.h: Delete empty line.
8815         ali.ads: Minor reformatting
8816         Clarification of comments.
8817         Minor spelling correction
8819         * exp_dbug.adb: Add Warnings Off to suppress new warning
8821         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
8822         formal
8824         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
8825         value
8827         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
8829         * a-textio.ads: Reorder the standard input/output/error declarations
8830         for consistency.
8832         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
8834         * par-ch2.adb: Recognize RM specially in errout
8835         Change 'R'M to RM in all error messages
8837         * scng.adb: Recognize RM specially in errout
8839         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
8840         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
8842         * s-direio.adb: Add missing routine header box.
8844         * sem_attr.ads: Add ??? comments
8846         * sem_eval.adb: Recognize RM specially in errout
8847         Change 'R'M to RM in all error messages
8849         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
8851         * s-tasinf.ads: Fix minor comment typo.
8853         * a-cihama.adb: Minor comment addition
8855         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
8856         formal
8858         * s-tasinf-tru64.ads: Fix minor comment typo.
8860         * itypes.ads: Comment update.
8862         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
8863         anymore.
8865         * argv.c: Added protection against null gnat_argv and gnat_envp.
8867         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
8868         warning message when Tolerate_Consistency_Errors is True.
8870         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
8871         Any_Id, as this subprogram is only applicable to *type* entities (it
8872         sets RM_Size). Instead initialize just Esize and Alignment.
8874 2007-08-14  Bob Duff  <duff@adacore.com>
8876         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
8877         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
8878         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
8879         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
8880         a-coorse.ads (Next): Applied pragma Inline.
8881         Make all Containers packages Remote_Types (unless they are already
8882         Pure).
8883         (Previous): applied pragma Inline
8884         (Elements_Type): is now a record instead of an array
8886 2007-08-14  Thomas Quinot  <quinot@adacore.com>
8888         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
8889         of Set_Item.
8890         (Set_Item): When the new item is an element of the currently allocated
8891         table passed by reference, save a copy on the stack if we're going
8892         to reallocate. Also, in Table.Set_Item, make sure we test the proper
8893         variable to determine whether to call Set_Last.
8895         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
8896         symbols-vms.adb, symbols-processing-vms-alpha.adb,
8897         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
8898         some occurrences of the pattern
8899            T.Increment_Last;
8900            T.Table (T.Last) := Value;
8901         with a cleaner call to
8902            T.Append (Value);
8904 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8905             Gary Dismukes  <dismukes@adacore.com>
8906             Thomas Quinot  <quinot@adacore.com>
8908         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
8909         derived type with interface progenitors use the analyzed formal as the
8910         parent of the actual, to create renamings for all the inherited
8911         operations in Derive_Subprograms.
8912         (Collect_Previous_Instances): new procedure within of
8913         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
8914         unit being loaded, to ensure that the generation of global symbols is
8915         consistent in different compilation modes.
8916         (Is_Tagged_Ancestor): New function testing the ancestor relation that
8917         takes progenitor types into account.
8918         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
8919         traversing over the primitives of the formal and actual types to locate
8920         any abstract subprograms of the actual type that correspond to a
8921         nonabstract subprogram of the formal type's ancestor type(s), and issue
8922         an error if such is found.
8923         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
8924         Instantiate_Package_Body, Instantiate_Subprogram_Body):
8925         Remove bogus guard around calls to Inherit_Context.
8926         (Reset_Entity): If the entity is the selector of a selected component
8927         that denotes a named number, propagate constant-folding to the generic
8928         template only if the named number is global to the generic unit.
8929         (Set_Instance_Env): Only reset the compilation switches when compiling
8930         a predefined or internal unit.
8932 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8934         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
8935         parameter to determine whether operation applies to the prefix.
8936         (Complete_Object_Operation): If actual has an access type and
8937         controlling formal is not an in_parameter, reject the actual if it is
8938         an access_to_constant type.
8939         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
8940         type, the candidate operations are found in the scope of declaration of
8941         the type, because the type has no primitive subprograms.
8942         (Analyze_Selected_Component): If prefix is class-wide, and root type is
8943         a private extension, only examine visible components before trying to
8944         analyze as a prefixed call.
8945         Change Entity_List to Type_To_Use, for better readability.
8946         (Has_Fixed_Op): Use base type when checking whether the type of an
8947         operator has a user-defined multiplication/division
8948         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
8949         user-defined operators are available for fixed-point types.
8951 2007-08-14  Thomas Quinot  <quinot@adacore.com>
8952             Ed Schonberg  <schonberg@adacore.com>
8954         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
8955         formal At_Any_Place indicating, when True, that we want to test for
8956         availability of the stream attribute at any place (as opposed to the
8957         current visibility context only).
8958         (Missing_Read_Write_Attributes): A stream attribute is missing for the
8959         purpose of enforcing E.2.2(8) only if it is not available at any place.
8960         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
8961         when checking the legality of an extension aggregate in a preelaborable
8962         package. Treat the literal null as a valid default expression in a
8963         component declaration for a type with preelaborable initialization.
8964         A limited interface is a legal progenitor for the designated type of a
8965         remote access to class-wide type.
8967 2007-08-14  Thomas Quinot  <quinot@adacore.com>
8968             Ed Schonberg  <schonberg@adacore.com>
8970         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
8971         reference): Use correct entity as denoted entity for the selector of
8972         the rewritten node.
8973         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
8974         setting the Referenced_As_LHS flag for entities that are implicitly
8975         dereferenced.
8976         (Find_Type): If the type is an internally generated incomplete type,
8977         mark the full view as referenced, to prevent spurious warnings.
8978         (Find_Selected_Component, Has_Components): Handle properly non-limited
8979         views that are themselves incomplete types.
8980         Handle interfaces visible through limited-with clauses.
8981         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
8982         subprogram generic actual for which we have generated a renaming.
8983         Warn when the renaming introduces a homonym of
8984         the renamed entity, and the renamed entity is directly visible.
8986 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8987             Hristian Kirtchev  <kirtchev@adacore.com>
8989         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
8990         appear in the subtree to the current allocator if it is not a static
8991         coextension.
8992         (Resolve_Allocator): Perform cleanup if resolution has determined that
8993         the allocator is not a coextension.
8994         (Resolve): Skip an interpretation hidden by an abstract operator only
8995         when the type of the interpretation matches that of the context.
8996         (Resolve): When looping through all possible interpretations of a node,
8997         do not consider those that are hidden by abstract operators.
8998         (Resolve_Actuals): When verifying that an access to class-wide object
8999         is an actual  for a controlling formal, ignore anonymous access to
9000         subprograms whose return type is an access to class_wide type.
9001         (Resolve_Slice): If the prefix of the slice is a selected component
9002         whose type depends on discriminants, build its actual subtype before
9003         applying range checks on the bounds of the slice.
9004         (Valid_Conversion): In an instance or inlined body, compare root types,
9005         to prevent anomalies between private and public views.
9006         (Resolve): Improve error message for ambiguous fixed multiplication
9007         expressions that involve universal_fixed multiplying operations.
9009 2007-08-14  Javier Miranda  <miranda@adacore.com>
9010             Hristian Kirtchev  <kirtchev@adacore.com>
9012         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
9013         location to allow the correct generation of errors in case of
9014         restrictions applied to the expanded code.
9015         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
9016         function if the condition does not reference them.
9017         (Expand_Entry_Body_Declarations): Mark the index constant as having a
9018         valid value.
9020 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9021             Pablo Oliveira  <oliveira@adacore.com>
9023         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
9024         typecode parameters for a union (in a variant record), remove
9025         extraneous layer of Any wrapping for member label.
9026         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
9027         elabration statements, register the package with the name server
9028         at the beginning, not at the end, of the elaboration statements so
9029         that they can create remote access to subprogram values that designate
9030         remote subprograms from the package.
9032 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
9034         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
9035         values to compute the number of seconds since the Unix Epoc in order to
9036         account for Daylight Savings Time. Perform special processing for dates
9037         that are earlier than the Unix Epoc to obtain a negative number.
9039 2007-08-14  Emmanuel Briot  <briot@adacore.com>
9041         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
9042         switches.
9044 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
9046         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
9047         binder-generated file is not in Ada.
9048         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
9049         recorded in the ALI file.
9050         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
9052 2007-08-14  Vincent Celier  <celier@adacore.com>
9054         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
9055         (Output_Source): Do nothing if parameter is No_Sdep_Id
9057         * make.adb (Gnatmake): Do not rebuild an archive simply because a
9058         shared library it imports has a later time stamp.
9059         (Check): Resolve the symbolic links in the path name of the object
9060         directory.
9061         Check that the ALI file is in the correct object directory
9062         Check if a file name does not correspond to the mapping of units
9063         to file names.
9064         (Display_Version): New procedure
9065         (Initialize): Process switches --version and --help
9066         Use type Path_Name_Type for path name
9068 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
9070         * impunit.adb: Re-organize System.Random_Numbers and
9071         GNAT.Random_Numbers and add to builds.
9073         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
9075         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
9077         * a-assert.ads, a-assert.adb: New files.
9079 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
9081         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
9082         if AAMP_On_Target is True, then the size of the type encompasses two
9083         addresses (a static link and a subprogram address), except in the case
9084         of library-level access types.
9086 2007-08-14  Vincent Celier  <celier@adacore.com>
9088         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
9089         writing the line.
9090         (Write_Eol_Keep_Blanks): New procedure to write a line, including
9091         possible trailing spaces.
9092         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
9094 2007-08-14  Javier Miranda  <miranda@adacore.com>
9096         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
9097         null-excluding access types.
9099 2007-08-14  Javier Miranda  <miranda@adacore.com>
9101         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
9102         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
9103         of private types add missing check on matching interfaces in the
9104         partial and full declarations.
9105         (Analyze_Protected_Type): Code cleanup.
9106         (Analyze_Task_Type): Code cleanup.
9108 2007-08-14  Javier Miranda  <miranda@adacore.com>
9110         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
9111         generated interface thunk.
9113 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9115         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
9116         obsolescent warning on application of 'Class to an incomplete type.
9118         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
9119         prevent obsolescent warning on application of 'Class to an incomplete
9120         type.
9122 2007-08-14  Pascal Obry  <obry@adacore.com>
9124         * s-fileio.adb (Is_Open): Add check for usability of the underlying
9125         file stream.
9127 2007-08-14  Cyrille Comar  <comar@adacore.com>
9129         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
9130         since it is potentially used in cases implying double finalization of
9131         the same object.
9133 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
9135         * s-tasini.adb (Get_Stack_Info): Move this function to
9136         System.Soft_Links.Tasking because it is common to the full and the
9137         restricted run times.
9138         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
9139         in SSL.Tasking.Init_Tasking_Soft_Links.
9141         * s-solita.adb (Get_Stack_Info): Function moved from
9142         System.Tasking.Initialization because it is common to the full and the
9143         restricted run times.
9144         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
9146 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
9148         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
9149         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
9150         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
9151         parameter.
9153         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
9154         guard to 12K.
9156 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
9158         * s-veboop.adb (SU): New named number initialized to
9159         System.Storage_Unit.
9160         (True_Val): The initialization expression is revised to use SU (=
9161         Storage_Unit) rather than assuming 8 for the component size of an
9162         unpacked Boolean array.
9164 2007-08-14  Tristan Gingold  <gingold@adacore.com>
9166         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
9168         * tb-ivms.c: New file.
9170         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
9172 2007-08-14  Geert Bosch  <bosch@adacore.com>
9174         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
9175         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
9176         Add required linker pragmas for automatically linking with the gnalasup
9177         linear algebra support library, and the systems math library.
9178         Rename cdot to cdotu and zdot to zdotu.
9179         Update header comment to describe purpose of package.
9181 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9183         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
9184         an explicitly specified Associated_Final_Chain, use that list.
9185         (Expand_N_Package_Body): Build dispatch tables of library level tagged
9186         types.
9187         (Expand_N_Package_Declaration): Build dispatch tables of library level
9188         tagged types. Minor code cleanup.
9190 2007-08-14  Vincent Celier  <celier@adacore.com>
9192         * gnatchop.adb (Terminate_Program): Remove exception and use
9193         Types.Terminate_Program instead.
9195         * osint.ads, osint.adb (Current_Exit_Status): New global variable
9196         (Find_Program_Name): Added protection against empty name.
9197         (OS_Exit_Through_Exception): New procedure
9199         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
9200         (OS_Exit_Default): New procedure that contains the previous
9201         implementation of procedure OS_Exit.
9202         (Final_Value): Remove obsolete Interix stuff.
9204 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9206         * g-socket.ads: Reorganize example code so that it also works on
9207         Windows XP.
9209 2007-08-14  Tristan Gingold  <gingold@adacore.com>
9211         * g-trasym.ads: AIX now supports symbolic backtraces.
9213 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9215         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
9216         units being loaded to detect circularities. A circularity may be
9217         present even if the current chain of pending units to load starts from
9218         a limited_with_clause.
9220         * lib-load.ads: Change profile of Load_Unit to use a with_clause
9221         rather than a boolean flag, in order to detect circularities in
9222         with_clauses.
9224         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
9225         than propagating the From_Limited_With flag, in order to handle
9226         properly circularities involving with_clauses.
9228 2007-08-14  Nicolas Setton  <setton@adacore.com>
9230         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
9231         warnings.
9233 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
9235         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
9236         to build for libgnala.
9237         libgnat: Add rules to build libgnala.a
9238         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
9239         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
9240         Add s-osinte-vxworks-kernel.adb to the target pairs of the
9241         kernel run-time lib for VxWorks 6, which would provide a different
9242         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
9243         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
9244         running ZCX by default.
9245         Add g-sttsne-locking to LynxOS version.
9246         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
9247         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
9249         * system-darwin-x86.ads: New file.
9251         * Make-lang.in: Delete files before copying onto them, so if they are
9252         read-only, the copy won't fail.
9253         Update dependencies
9255 2007-08-14  Pascal Obry  <obry@adacore.com>
9257         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
9258         naming scheme.
9260 2007-08-14  Vincent Celier  <celier@adacore.com>
9262         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
9263         (Gcc): Initialize Gcc_Name at the first call
9265 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9267         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
9268         with_clauses of the enclosing unit when analyzing the package
9269         specification of a nested instance.
9271 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
9273         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
9274         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
9275         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
9276         layout of N_Allocator.
9278 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9280         * rtsfind.adb (Check_RPC): Add PCS version check.
9282         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
9283         (Gnat_Free_Software): New function.
9285         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
9286         the PCS_Version value from s-parint, used to check that it is consistent
9287         with what exp_dist expects.
9289         * s-parint.ads (PCS_Version): New entity for checking consistency
9290         between exp_dist and PCS.
9292         * gen-soccon.c: (SO_REUSEPORT): New constant.
9294 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
9296         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
9297         variable Sub_Second to Duration in order to accomodate a larger range
9298         of arithmetic operations.
9300 2007-08-14  Bob Duff  <duff@adacore.com>
9302         * g-sttsne-locking.ads: Move comments from spec to body.
9303         * g-sttsne-locking.adb: Move comments from spec to body.
9304         * g-sttsne-vxworks.ads: Removed.
9305         * g-sttsne-vxworks.adb: Removed.
9307 2007-08-11  Ian Lance Taylor  <iant@google.com>
9309         * misc.c (gnat_get_alias_set): Change return type to
9310         alias_set_type.
9312 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9314         * decl.c, utils2.c: Fix whitespace in last change.
9316 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9318         * decl.c (compare_field_bitpos): Constify.
9319         * utils2.c (compare_elmt_bitpos): Likewise.
9321 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
9323         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
9324         anonymous access type.
9325         (pthread_sigmask): Now take an access sigset_t.
9327 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
9329         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
9330         
9331 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
9333         PR tree-optimization/25737
9334         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
9336 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9338         * trans.c (Attribute_to_gnu): When subtracting an
9339         offset from a pointer, use POINTER_PLUS_EXPR with
9340         NEGATE_EXPR instead of MINUS_EXPR.
9341         (gnat_to_gnu): Likewise.
9342         * utils.c (convert): When converting between
9343         thin pointers, use POINTER_PLUS_EXPR and sizetype
9344         for the offset.
9345         * utils2.c (known_alignment): POINTER_PLUS_EXPR
9346         have the same semantics as PLUS_EXPR for alignment.
9347         (build_binary_op): Add support for the semantics of
9348         POINTER_PLUS_EXPR's operands.
9349         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
9351 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
9353         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
9354         of get_signed_or_unsigned_type.
9355         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
9357 2007-06-11  Bob Duff  <duff@adacore.com>
9358             Thomas Quinot  <quinot@adacore.com>
9360         * g-stsifd-sockets.adb (Create): Work around strange behavior of
9361         'bind' on windows that causes 'connect' to fail intermittently, by
9362         retrying the 'bind'.
9363         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9365 2007-06-10  Duncan Sands  <baldrick@free.fr>
9367         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
9368         than to void, for the fields when making a new fat pointer type.
9369         (gnat_substitute_in_type): Now substitute_in_type.
9370         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
9371         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
9372         * utils.c (update_pointer_to): Update fat pointers by updating the
9373         dummy node pointers used for the fields.
9375 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9376             Bob Duff  <duff@adacore.com>
9378         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
9379         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
9380         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
9381         constant Thread_Blocking_IO, always True by default, set False
9382         on a per-runtime basis.
9383         (Need_Netdb_Buffer): New constant.
9385         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
9386         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
9387         files.
9389         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
9390         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
9391         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
9392         child package Task_Safe_NetDB
9393         (Host_Error_Messages): Add stub body.
9394         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9396         * g-soccon-mingw.ads: Add Windows-specific constants.
9397         (Need_Netdb_Buffer): New constant.
9398         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
9399         wrapper and import inet_addr(3) from the standard sockets library
9400         directly instead.
9401         (In_Addr): Add alignment clause.
9402         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9404 2007-06-06  Robert Dewar  <dewar@adacore.com>
9406         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
9407         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
9408         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
9409         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
9410         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
9411         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
9412         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
9413         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
9414         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
9415         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
9416         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
9417         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
9418         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
9419         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
9420         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
9421         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
9422         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
9423         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
9424         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
9425         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
9426         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
9427         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
9428         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
9429         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
9430         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
9431         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
9432         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
9433         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
9434         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
9435         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
9436         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
9437         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
9438         Unchecked_* by Ada.Unchecked_*
9440 2007-06-06  Robert Dewar  <dewar@adacore.com>
9442         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
9443         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
9444         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
9445         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
9446         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
9447         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
9449         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
9450         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
9451         s-tasloc.adb, s-tasloc.ads: New files.
9453 2007-06-06  Bob Duff  <duff@adacore.com>
9455         * g-expect-vms.adb: 
9456         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
9457         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
9458         (Send_Signal, Close): Raise Invalid_Process if the process id is
9459         invalid.
9460         (Pattern_Matcher_Access): Is now a general access type to be able to
9461         use aliased string.
9463 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9464             Arnaud Charlet  <charlet@adacore.com>
9466         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
9467         (SIGEMT is now used instead of SIGTERM on AIX).
9469         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
9470         (Time_Slice_Supported): Set to True.
9471         Use SIGEMT instead of SIGTERM as SIGADAABORT.
9473 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
9475         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
9476         (Time, Time)): Use To_Relative_Time rather than manual calculation to
9477         express the bounds of Duration as Time. Raise Time_Error when the
9478         result is greater or equal to the higher bound of Duration (on the
9479         margin case).
9480         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
9481         Ada_High_And_Leaps.
9482         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
9483         Ada_High_And_Leaps.
9484         ("-" (Time, Time)): Reorder code.
9485         (All_Leap_Seconds): Removed.
9486         (Arithmetic_Operations.Add): Remove sign related kludge.
9487         (Arithmetic_Operations.Difference): Control the leaps seconds processing
9488         with flag Leap_Support.
9489         (Arithmetic_Operations.Subtract): Remove sign related kludge.
9490         (Check_Within_Time_Bounds): New procedure.
9491         (Clock): Control the leap seconds processing with flag Leap_Support.
9492         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
9493         (Formatting_Operations.Split): Control the leap seconds processing with
9494         flag Leap_Support.
9495         (Formatting_Operations.Time_Of): Control the leaps seconds processing
9496         with flag Leap_Support. Adjust the year, month and day (if applicable)
9497         when the value of day seconds designates a new day.
9498         (Split): Use parameter associations for better readability. Integrate
9499         flag Is_Ada_05.
9500         (Time_Of): Use parameter associations for better readability. Integrate
9501         flag Is_Ada_05.
9503         * a-calfor.adb (Split): Use parameter associations for better
9504         readability. Integrate flag Is_Ada_05.
9505         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
9506         better readability. Integrate flag Is_Ada_05.
9508 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9510         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
9511         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
9512         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
9513         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
9514         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
9515         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
9516         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
9517         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
9518         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
9519         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
9520         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
9521         time when entering this routine to detect a backward clock setting
9522         (manual setting or DST adjustment), to avoid waiting for a longer delay
9523         than needed.
9524         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
9525         Remove handling of deferred priority change, and replace by setting the
9526         task priority directly, as required by AI-188.
9527         Update comments.
9528         (Max_Task_Image_Length): New constant.
9529         Replace Warnings (Off) by Unreferenced pragma, cleaner.
9530         (Dynamic_Priority_Support): Removed, no longer needed.
9531         (Poll_Base_Priority_Change): Ditto.
9532         (Set_Ceiling): Add this procedure to change the ceiling priority
9533         associated to a lock. This is a dummy implementation because dynamic
9534         priority ceilings are not supported by the underlying system.
9536         * a-dynpri.adb (Set_Priority): Take into account case where Target is
9537         accepting a RV with its priority boosted.
9538         Remove handling of deferred priority change, and replace by setting the
9539         task priority directly, as required by AI-188.
9541         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
9542         Succeeded = True.
9543         Remove handling of deferred priority change, and replace by setting the
9544         task priority directly, as required by AI-188.
9545         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
9546         of Self_Id earlier.
9548         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
9549         (Poll_Base_Priority_Change): Removed.
9550         Code clean up: use SSL.Current_Target_Exception.
9552         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
9553         to run as this is a potentially dispatching point.
9554         (Call_Synchronous): Use Local_Defer_Abort.
9555         (Callable): Relax assertion.
9556         (Selective_Wait): Relax assertion in case abort is not allowed.
9557         Remove handling of deferred priority change, and replace by setting the
9558         task priority directly, as required by AI-188.
9560         * s-tasuti.adb (Make_Passive): Adjust assertions.
9561         Remove handling of deferred priority change, and replace by setting the
9562         task priority directly, as required by AI-188.
9564 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9566         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
9567         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
9568         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
9569         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
9570         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
9571         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
9572         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
9573         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
9574         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
9575         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
9576         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
9577         This patch changes the largest non-binary modulus from 2**31-1 to
9578         2**32-1.
9579         (Compiler_System_Version): Removed, no longer used.
9580         Clean up system files by removing flags only used on a single target.
9581         Also remove obsolete flags, only used during bootstrap from system.ads
9582         (Address): Add a pragma Preelaborable_Initialization.
9584         * system-aix.ads:  Ditto.
9585         (GCC_ZCX_Support): Set to true.
9586         Update priority range on AIX and map Ada priorities to target
9587         priorities appropriately for different scheduling policies.
9589         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
9591 2007-06-06  Vincent Celier  <celier@adacore.com>
9593         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
9594         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
9596         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
9597         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
9598         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
9599         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
9600         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
9601         MLib.Tgt, containing the default versions of the exported subprograms.
9602         For each platform, create a specific version of the body of new child
9603         package MLib.Tgt.Specific that contains only the body of subprograms
9604         that are different from the default.
9605         (Archive_Builder_Append_Options): New function.
9607 2007-06-06  Matthew Gingell  <gingell@adacore.com>
9609         * s-osinte-aix.adb: Map Ada priorities to target priorities
9610         appropriately for different scheduling policies.
9612 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9614         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
9615         its C counterpart.
9616         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
9617         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
9619 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
9621         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
9622         Noop on VMS, added for interface commonality.
9624 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
9625             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9626             Olivier Hainque  <hainque@adacore.com>
9628         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
9629         renamed expression of a full renaming at toplevel.
9630         (gnat_to_gnu_entity, case object): If not defining, do not look inside
9631         the values the constant is initialized to if it is an N_Allocator.
9632         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
9633         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
9634         (make_aligning_type): Accept an extra ROOM argument for storage to be
9635         made available before the aligned field, and an extra BASE_ALIGN
9636         argument for callers to pass the alignment guaranteed to be honored for
9637         the whole aligning object. Avoid call to finish_record_type, which only
9638         interferes with the sizes we want to set.
9639         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
9640         make_aligning_type for super-aligned objects on stack.
9641         (components_to_record): Pass the adjusted size of the type when creating
9642         fields in the qualified union for the variant part.
9643         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
9644         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
9645         packed array type.
9646         (maybe_pad_type): Set TYPE_USER_ALIGN.
9647         (make_aligning_type): Likewise.
9648         ALIGN argument is unsigned int.
9649         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
9650         (gnat_to_gnu_param): Likewise, for parameters.
9651         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
9652         if it is constant and stems from a function call.
9653         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
9654         of the record is specified.  Adjust accordingly.
9655         (adjust_packed): New static function.
9656         (gnat_to_gnu_field): Use it to adjust the packedness setting.
9657         (components_to_record): Likewise.
9658         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
9659         side-effects if the object is deemed constant.
9660         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
9661         type instead of merely finalizing it.  Tidy.
9662         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
9663         <E_Access_Type>: Likewise.
9664         (defer_debug_incomplete_list): Rename to defer_finalize_list.
9665         (defer_debug_level): Delete.
9666         (gnat_to_gnu_entity) <debug_deferred>: Likewise
9667         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
9668         type.
9669         <E_Record_Type>: Do not explicitly defer finalizing the type.
9670         Adjust for write_record_type_debug_info renaming.
9671         <E_Subprogram_Type>: Likewise.
9672         Finalize deferred types right after deferred incomplete types are
9673         expanded.
9674         (rest_of_type_decl_compilation): New global function.
9675         (components_to_record): Rename defer_debug parameter to do_not_finalize.
9676         (components_to_record): Propagate the packedness to the fields of the
9677         qualified union type if there is a variant part.
9678         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
9679         instead of inline code to adjust the XUT field offsets.
9680         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
9681         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
9682         and write the debug info if the type derives from a discriminated one.
9683         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
9684         <E_Array_Subtype>: Likewise.
9685         <E_String_Literal_Subtype>: Likewise.
9686         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
9687         an alignment clause.
9688         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
9689         before giving warning.
9690         (prepend_one_attribute_to): New function, helper to prepend an attribute
9691         to an attribute list.
9692         (gnat_to_gnu_entity) <E_Procedure>: Use it.
9693         (prepend_attributes): Likewise.
9694         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
9695         <E_Array_Type>: Declare the padding type for the element type, if any.
9696         <E_Array_Subtype>: Likewise.
9697         (defer_limited_with): New variable.
9698         (Gigi_Equivalent_Type): New function.
9699         (gnat_to_gnu_entity): Use it at start and use result throughout.
9700         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
9701         Gigi_Equivalent_Type, support Limited_With, allow two levels of
9702         indirection, precompute if unconstrained array to simplify logic, and
9703         use defer_limited_with to defer elaboration of some types from limited
9704         with.
9705         (finalize_from_with_types): New function.
9707 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
9708             Eric Botcazou  <ebotcazou@adacore.com>
9709             Tristan Gingold  <gingold@adacore.com>
9710             Olivier Hainque  <hainque@adacore.com>
9712         * trans.c (Identifier_to_gnu): Change test for deferred constant by
9713         adding guard that the entity is an E_Constant before testing presence
9714         of Full_view (and remove unnecessary test that entity is not a type).
9715         For a CONST_DECL used by reference, manually retrieve
9716         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
9717         (struct language_function): Move from utils.c to here.
9718         (struct parm_attr): New structure.
9719         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
9720         (f_parm_attr_cache): New macro.
9721         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
9722         expressions for the 'First, 'Last and 'Length attributes of the
9723         unconstrained array IN parameters.
9724         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
9725         Allocate the information structure for the function earlier, as well
9726         as the language-specific part.
9727         If the parameter attributes cache has been populated, evaluate the
9728         cached expressions on entry.
9729         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
9730         N_Procedure_Call_Statement and N_Indexed_Component.
9731         (Pragma_to_gnu): Translate inspection_point to an asm statement
9732         containaing a comment and a reference to the object (either its address
9733         for BLKmode or its value).
9734         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
9735         to go to DECL_INITIAL. Together with the size constraint relaxation
9736         in create_var_decl, enlarges the set of situations in which an
9737         identifier may be used as an initializer without implying elaboration
9738         code.
9739         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
9740         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
9741         node.
9742         (maybe_stabilize_reference): Remove lvalues_only parameter.
9743         (gnat_stabilize_reference): Adjust for above change.
9744         (gnat_to_gnu): Do not set location information on the result
9745         if it is a reference.
9746         (add_cleanup): Add gnat_node parameter and set the location of the
9747         cleanup to it.
9748         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
9749         (Exception_Handler_to_gnu_zcx): Likewise.
9750         (gigi): Remove the cgraph node if the elaboration procedure is empty.
9751         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
9752         the former right after the latter.
9753         (start_stmt_group): Make global.
9754         (end_stmt_group): Likewise.
9755         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
9756         vars.
9757         (gnu_program_error_label_stack): Likewise.
9758         (gigi): Initialize them.
9759         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
9760         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
9761         New cases.
9762         (push_exception_label_stack): New function.
9763         (takes_address): New function.
9765         * utils.c (struct language_function): Move to trans.c from here.
9766         (unchecked_convert): Do not wrap up integer constants in
9767         VIEW_CONVERT_EXPRs.
9768         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
9769         the latter for aggregate types, unexpected by later passes, and relax an
9770         arbitrary size constraint on the former.
9771         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
9772         to compare the sizes.
9773         (convert_vms_descriptor): When converting to a fat pointer type, be
9774         prepared for a S descriptor at runtime in spite of a SB specification.
9775         (shift_unc_components_for_thin_pointers): New function.
9776         (write_record_type_debug_info): For variable-sized fields, cap the
9777         alignment of the pointer to the computed alignment.
9778         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
9779         If REP_LEVEL is 2, do not compute the sizes.
9780         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
9781         (build_unc_object_type): Likewise.
9782         (declare_debug_type): New function.
9784         * ada-tree.def: USE_STMT: removed (not emitted anymore).
9786         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
9787         no statement is expandable anymore.
9788         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
9789         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
9790         when the user requested it explicitely.
9791         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
9792         to 0 for Ada.
9793         (get_alias_set): Return alias set 0 for a type if
9794         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
9796         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
9797         (DECL_FUNCTION_STUB): New accessor macro.
9798         (SET_DECL_FUNCTION_STUB): New setter macro.
9800         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
9802         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
9803         declarations.
9805 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
9807         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
9808         Rename to Abort_Task_Interrupt to be able to keep the same interface
9809         as the rest of the targets.
9811         * s-osinte-vxworks.ads s-osinte-vxworks.adb
9812         (To_VxWorks_Priority): Remove explicit "in" mode indicator
9814         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
9815         New files.
9817 2007-06-06  Robert Dewar  <dewar@adacore.com>
9819         * a-chahan.ads: Remove obsolescent pragmas
9821         * a-chlat1.ads: Minor reformatting
9823 2007-06-06  Robert Dewar  <dewar@adacore.com>
9825         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
9826         for Errout
9828         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
9829         implementation
9831         * errout.ads (Finalize): Changed interface
9832         (Output_Messages): New procedure
9833         (Compilation_Errors): New Interface
9835         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
9836         Finalize/Output_Messages interface for Errout
9837         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
9838         Errout.
9840 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9841             Olivier Hainque  <hainque@adacore.com>
9842             Robert Dewar  <dewar@adacore.com>
9844         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
9845         check.
9846         (Raise_Current_Excep): Call Debug_Raise_Exception just before
9847         propagation starts, to let debuggers know about the event in a reliable
9848         fashion.
9849         (Local_Raise): Moved to System.Exceptions
9850         More convenient to have this as a separate unit
9852         * s-except.adb, s-except.ads: New files.
9854         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
9855         Debug_Unhandled_Exception in System.Exceptions where it belongs
9856         together with a couple of other debug helpers.
9857         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
9858         the former Unhandled_Exception.
9860         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
9861         (Warn_No_Exception_Propagation): New procedure
9862         (Warn_If_No_Propagation): Rewritten for new warning generation
9863         (Expand_Exception_Handlers): New warning generation
9864         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
9865         (Add_Exception_Label): Use Special_Exception_Package_Used for test
9866         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
9867         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
9868         even if restriction is set (makes life easier in Check_Returns)
9869         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
9870         checking exception identities.
9871         (Expand_Local_Exception_Handlers): Do not optimize when all others case
9872         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
9873         block for handler (used by Check_Returns)
9874         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
9875         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
9876         remove all exception handlers when optimizing local raise statements.
9877         (Find_Local_Handler): Use Get_Renamed_Entity
9878         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
9879         marked analyzed after expanding exception handlers, do not generate
9880         redundant cleanup actions, because they have been constructed already.
9882 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9884         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
9885         presence of this categorization pragma is mandated by the language.
9886         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
9887         for this type.
9889 2007-06-06  Vincent Celier  <celier@adacore.com>
9890             Robert Dewar  <dewar@adacore.com>
9892         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
9893         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
9894         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
9895         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
9896         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
9897         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
9898         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
9899         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
9900         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
9901         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
9902         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
9903         ali.ads, ali.adb: 
9904         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
9905         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
9906         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
9907         Use variables of types File_Name_Type and Unit_Name_Type in error
9908         messages.
9909         (Get_Name): Add parameter Ignore_Special, and set it reading file name
9910         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
9911         here.
9912         Define flags Flag217-Flag230 with associated subprograms
9913         (Flag_Word5): New record type.
9914         (Flag_Word5_Ptr): New access type.
9915         (To_Flag_Word5): New unchecked conversion.
9916         (To_Flag_Word5_Ptr): Likewise.
9917         (Flag216): New function.
9918         (Set_Flag216): New procedure.
9920 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9922         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
9923         instead of 'Size.
9925         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
9927 2007-06-06  Javier Miranda  <miranda@adacore.com>
9929         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
9930         the package.
9931         (Object_Specific_Data_Array): This is now internal to the package.
9932         (Object_Specific_Data): This is now internal to the package.
9933         (Select_Specific_Data_Element): This is now internal to the package.
9934         (Select_Specific_Data_Array): This is now internal to the package.
9935         (Select_Specific_Data): This is now internal to the package.
9936         (Offset_To_Top_Function_Ptr): This is now public.
9937         (To_Offset_To_Top_Function_Ptr): Removed.
9938         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
9939          local to subprogram Offset_To_Top.
9940         (Predefined_DT): Removed.
9941         (Typeinfo_Ptr): Removed.
9942         (OSD): This function is now internal to this package.
9943         (SSD): This function is now internal to this package.
9944         (DT): New function that displaces the pointer to the table of primitives
9945          to get access to the enclosing wrapper record.
9946         (IW_Membership): Code cleanup.
9947         (Offset_To_Top): Code cleanup.
9948         (Predefined_DT): Removed.
9949         (Register_Interface_Tag): Removed.
9950         (Set_Interface_Table): Removed.
9951         (Set_Offset_Index): Removed.
9952         (Set_Offset_To_Top): Code cleanup.
9953         (Set_OSD): Removed.
9954         (Set_Signature): Removed.
9955         (Set_SSD): Removed.
9956         (Set_Tagged_Kind): Removed.
9957         (Typeinfo_Ptr): Removed.
9958         (TSD): Removed.
9959         (Displace): Add missing check on null actual.
9961         * exp_disp.ads, exp_disp.adb
9962         (Select_Expansion_Utilities): Removed.
9963         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
9964         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
9965         the interface requires a new parameter.
9966         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
9967         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
9968         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
9969         Done to remove package Select_Expansion_Utilities.
9970         (Make_DT): New implementation for statically allocated dispatch tables.
9971         (Make_Secondary_DT): Moved to the scope of Make_DT.
9972         (Register_Primitive): Code cleanup plus incoporate the use of the new
9973         function DT_Address_Attribute.
9974         (Expand_Interface_Thunk): The profile of this subprogram has been
9975         changed to return the Thunk_Id and the corresponding code.
9976         (Fill_DT_Entry): Removed. Its functionality is now provided by
9977         subprogram Register_Primitive.
9978         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
9979         subprogram Register_Primitive.
9980         (Register_Primitive): New subprogram that incorporates the previous
9981         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
9982         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
9983         was only required to call Make_DT_Access_Action, which is now removed.
9984         (Ada_Actions): Removed
9985         (Action_Is_Proc): Removed
9986         (Action_Nb_Arg): Removed
9987         Replace all the calls to Make_DT_Access_Action by direct calls to
9988         Make_Procedure_Call_Statement or Make_Function_Call.
9989         (Set_DTC_Entity_Value): New subprogram.
9990         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
9991         (Expand_Interface_Thunk): Add missing support for primitives that are
9992         functions with a controlling result (case in which there is no need
9993         to generate the thunk).
9995         * exp_atag.ads, exp_atag.adb
9996         (Build_DT): New subprogram that displaces the pointer to reference the
9997         base of the wrapper record.
9998         (Build_Typeinfo_Offset): Removed.
9999         (RTE_Tag_Node): Removed.
10000         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
10001         (Build_Get_RC_Offset): Removed.
10002         (Build_Inherit_Predefined_Prims): Removed.
10003         (Build_Inherit_TSD: Removed.
10004         (Build_New_TSD): Removed.
10005         (Build_Set_External_Tag): Removed.
10006         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
10007         (Build_Set_Prim_Op_Address): Add documentation.
10008         (Build_Set_TSD): Removed.
10010         * rtsfind.ads, rtsfind.adb
10011         (Load_Fail): If load fails and we are not in configurable run-time
10012         mode, then raise Unrecoverable_Error.
10013         (Text_IO_Kludge): Generate an error message if a run-time library is
10014         not available in a given run-time (ie. zfp run-time).
10015         (RTE_Record_Component): Add code to check that the component we search
10016         for is not found in two records in the given run-time package.
10017         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
10018         (RE_DT_Predef_Prims_Offset): New entity
10019         (RE_Static_Offset_To_Top): New entity
10020         (RE_HT_Link): New entity.
10021         (System_Address_Image): Addition of this run-time package.
10022         (RE_Address_Image): New entity.
10023         (RE_Abstract_Interface): Removed.
10024         (RE_Default_Prim_Op_Count): Removed.
10025         (RE_DT_Entry_Size): Removed.
10026         (RE_DT_Min_Prologue_Size): Removed.
10027         (RE_DT_Prologue_Size): Removed.
10028         (RE_Ifaces_Table_Ptr): Removed.
10029         (RE_Interface_Data_Ptr): Removed.
10030         (RE_Type_Specific_Data): Removed.
10031         (RE_Primary_DT): Removed.
10032         (RE_Register_Interface_Tag): Removed.
10033         (RE_Set_Offset_Index): Removed.
10034         (RE_Set_OSD): Removed.
10035         (RE_Set_SSD): Removed.
10036         (RE_Set_Signature): Removed.
10037         (RE_Set_Tagged_Kind): Removed.
10038         (RE_Address_Array): New entity.
10039         (RE_DT): New entity.
10040         (RE_Iface_Tag): New entity.
10041         (RE_Interfaces_Table): New entity.
10042         (RE_No_Dispatch_Table): New entity.
10043         (RE_NDT_Prims_Ptr): New entity.
10044         (RE_NDT_TSD): New entity.
10045         (RE_Num_Prims): New entity.
10046         (RE_Offset_To_Top_Function_Ptr): New entity.
10047         (RE_OSD_Table): New entity.
10048         (RE_OSD_Num_Prims): New entity.
10049         (RE_Predef_Prims): New entity
10050         (RE_Predef_Prims_Table_Ptr): New entity.
10051         (RE_Primary_DT): New entity.
10052         (RE_Signature): New entity.
10053         (RE_SSD): New entity.
10054         (RE_TSD): New entity.
10055         (RE_Type_Specific_Data): New entity.
10056         (RE_Tag_Kind): New entity.
10058 2007-06-06  Thomas Quinot  <quinot@adacore.com>
10060         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
10061         C imported variable.
10062         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
10063         on entry.
10065 2007-06-06  Robert Dewar  <dewar@adacore.com>
10067         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
10068         character
10070 2007-06-06  Vincent Celier  <celier@adacore.com>
10072         * a-tifiio.adb (Put, internal): For negative numbers, check that there
10073         is room for at least one digit and the minus sign.
10074         (Put.Put_Character): Never put a character outside of the range of
10075         string To.
10077 2007-06-06  Olivier Hainque  <hainque@adacore.com>
10078             Eric Botcazou  <ebotcazou@adacore.com>
10080         * utils2.c (build_allocator): Provide the extra arguments to
10081         make_aligning_type for super-aligned objects allocated from the default
10082         pool. Leave enough room for a pointer before the aligning field, and
10083         store the system's allocator return value there.
10084         (build_call_alloc_dealloc): When releasing a super-aligned object,
10085         retrieve the system's allocator return value from where build_allocator
10086         has stored it, just ahead of the adjusted address we are passed.
10087         (build_call_raise): Handle properly the generation of line numbers when
10088         the node is marked No_Location.
10089         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
10090         by using DECL_UID on ties.
10091         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
10092         main variant.
10093         (build_call_raise): Handle converting exception into goto; support new
10094         argument KIND.
10095         (build_component_ref): Add new arg to build_call_raise.
10097 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
10099         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
10100         "." in the case of nnn.xxx when nnn terminates with an underscore.
10101         Parse the remaining "#" or ":" in the case of nnn#.xxx#
10103 2007-06-06  Robert Dewar  <dewar@adacore.com>
10105         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
10107 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
10108             Vincent Celier  <celier@adacore.com>
10109             Robert Dewar  <dewar@adacore.com>
10111         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
10112         needed.
10113         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
10114         ((destructor)) for adafinal, even when switch -a is used.
10115         Do not issue pragma Linker_Destructor for adafinal when switch -a is
10116         used.
10117         (Gen_Object_Files_Options): Add formatting of Linker Options, when
10118         Output_Linker_Option_List is set. Suppress this formatting when
10119         Zero_Formatting is set.
10120         Add case for CLI_Target.
10121         (System_Restrictions_Used): New flag, used to avoid generating with of
10122         System_Restrictions and initialization of the data unless there is
10123         some use of System.Restrictions in the partition.
10124         (Check_System_Restrictions_Used): New procedure
10126         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
10127         since we only with this unit in the binder file if it is used elsewhere
10128         in the partition.
10130 2007-06-06  Vincent Celier  <celier@adacore.com>
10132         * bindusg.adb: Add line for @<response file>
10133         Add lines for new switches -R and -Z
10135         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
10136         hierarchy in the list of files of the closure when -R is used
10137         (Gnatbind): Accept arguments starting with '@' to indicate response
10138         files and take the arguments from the response files.
10139         If List_Closure is set, display the referenced files
10141 2007-06-06  Javier Miranda  <miranda@adacore.com>
10142             Robert Dewar  <dewar@adacore.com>
10143             Ed Schonberg  <schonberg@adacore.com>
10145         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
10146         which the address-clause is applied to in-mode actuals (allowed by
10147         13.1(22)).
10148         (Apply_Discriminant_Check): Do not generate a check if the type is
10149         constrained by a current instance.
10150         (Activate_Division_Check): New procedure
10151         (Activate_Overflow_Check): New procedure
10152         (Activate_Range_Check): New procedure
10153         Call these new Activate procedures instead of setting flags directly
10154         (Apply_Array_Size_Check): Removed, no longer needed.
10155         Code clean up: remove obsolete code related to GCC 2.
10156         (Get_E_Length): Protect against bomb in case scope is standard
10157         (Selected_Range_Checks): If the node to be checked is a conversion to
10158         an unconstrained array type, and the expression is a slice, use the
10159         bounds of the slice to construct the required constraint checks.
10160         Improve NOT NULL error messages
10161         (Apply_Constraint_Check): If the context is a null-excluding access
10162         type, diagnose properly the literal null.
10164 2007-06-06  Pascal Obry  <obry@adacore.com>
10166         * clean.adb (Clean_Archive): Use untouched casing for the archive name
10167         and the corresponding .deps file.
10168         (Clean_Interface_Copy_Directory): Use untouched casing for the library
10169         src directory. Minor code-clean-up. Use untouched casing for files
10170         read into the library src dir.
10171         (Clean_Library_Directory): Idem.
10172         (Parse_Cmd_Line): Accept new switch -aP
10174 2007-06-06  Javier Miranda  <miranda@adacore.com>
10175             Ed Schonberg  <schonberg@adacore.com>
10176             Robert Dewar  <dewar@adacore.com>
10177             Eric Botcazou  <ebotcazou@adacore.com>
10178             Arnaud Charlet  <charlet@adacore.com>
10180         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
10181         applicable to types that have the With_Type flag set. Returns the
10182         non-limited view of the type, if available, otherwise the type itself.
10183         For class-wide types, there is no direct link in the tree, so we have
10184         to retrieve the class-wide type of the non-limited view of the Etype.
10185         New attributes Static_Initialization and Static_Elaboration_Desired.
10186         Remove the pragma Thread_Body, and the associated flag
10187         Is_Thread_Body in entities, and all related code.
10188         (Suppress_Value_Tracking_On_Call): New flag
10189         E_Exception has Esize and Alignment fields
10190         (Universal_Aliasing): New function.
10191         (Set_Universal_Aliasing): New procedure.
10192         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
10193         (Check_Nested_Access): New procedure.
10194         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
10195         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10196         (Related_Interface): New attribute. Present in dispatch table pointer
10197         components of records. Set to point to the entity of the corresponding
10198         interface type.
10199         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
10200         (Original_Access_Type): Remove, not needed.
10201         (Root_Type): Handle properly subtypes of class-wide-types.
10202         Update comments.
10204         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
10205         class-wide types visible through limited-with clauses.
10206         (Try_Primitive_Operation): When examining all primitive operations of a
10207         tagged type, do not consider subprograms labeled as hidden unless they
10208         belong to a private generic type with a tagged parent.
10209         (Try_Object_Operation): Extensive rewriting, to handle properly various
10210         overloading cases, when several ancestors may have class-wide operations
10211         that are possible candidates, and when the overloaded functions return
10212         array types and have defaulted parameters so that the call may be
10213         interpreted as an indexing.
10214         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
10215         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
10216         successive actuals before analyzing the call itself.
10217         (Try_Primitive_Operation): A primitive operation is compatible with the
10218         prefix if the prefix has a synchronized type and the type of the formal
10219         is its corresponding record, as can be the case when the primitive
10220         operation is declared outside of the body of the type.
10221         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
10222         perform homonym traversal, looking for class-wide operation matches
10223         (formerly done in statements of Try_Class_Wide_Operation). Matches on
10224         access parameters are now restricted to anonymous access types.
10225         (Mark_Allocator): An allocator with a discriminant association parent is
10226         a coextension.
10227         (Try_One_Prefix_Interpretation): If the type of the object is
10228         incomplete, as can be happen when it is a limited view obtained through
10229         a limited_with_clause, the selected component is not part of a prefixed
10230         call.
10231         (Complete_Object_Operation): Diagnose properly an object that is not
10232         aliased when the corresponding controlling formal is an access
10233         parameter.
10234         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
10235         ambiguous calls in prefixed notation, where two primitives differ only
10236         in that the controlling argument of one is an access parameter.
10238         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
10239         whether a function that returns an unconstrained type can be inlined.
10240         (Process_Formals): Diagnose properly the illegal use of an incomplete
10241         type in the profile of an access_to_subprogram declaration.
10242         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
10243         operations are attached to the corresponding record.
10244         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
10245         When processing a primitive of a concurrent type which implements an
10246         interface change the type of all controlling formals to that of the
10247         corresponding record type.
10248         (Check_Synchronized_Overriding): Relax the conditional logic when trying
10249         to determine the tagged type to which a primitive belongs.
10250         (Check_Conventions): Capture condition to ignore a primitive operation
10251         (which is shared between the loop in Check_Conventions and the one in
10252         Check_Convention) in a new local function Skip_Check.
10253         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
10254         confusion with Check_Conventions' own Prim_Op local variable.
10255         (Create_Extra_Formals): Test for a tagged result type rather than a
10256         controlling result when determining whether to add a BIP_Alloc_Form
10257         formal and a BIP_Final_List formal to the function.
10258         (Check_Conformance); For parameters that are anonymous access types,
10259         subtype conformance requires that the not null and the constant
10260         indicators must match
10261         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
10262         to retrieve the appropriate type when processing a concurrent type
10263         declared within a generic. Minor comment reformatting. Change invocation
10264         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
10265         mitive.
10266         (Analyze_Subprogram_Body): If the return type of a function is an
10267         anonymous access to the limited view of a class-wide type, and the
10268         non-limited view of the type is available, update the type of the
10269         function so that code can be generated.
10270         (Process_Formals): In case of access-subtype itype whose designated
10271         type is also an itype (situation that happens now with access to
10272         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
10273         attribute to avoid backend problems.
10274         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
10275         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
10276         anonymous types' designated types are same before testing
10277         Subtypes_Statically_Match.
10278         (Create_Extra_Formals): Test for a named access parameter that is a
10279         controlling formal as an additional condition for adding an
10280         accessibility level formal. This can occur in the subp type created for
10281         dispatching calls in Expand_Dispatching_Call, and allows calling
10282         Create_Extra_Formals from that procedure rather than special-casing the
10283         extra formals there.
10284         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
10285         when the function has a controlling result.
10286         (Check_Returns): Add much more knowledge of the optimization of local
10287         raise statements to gotos, to retain proper warnings in this case.
10288         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
10289         nodes when looking for last statement.
10291         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
10292         class-wide types visible through limited with clauses.
10293         (Add_One_Interp): If the operands are anonymous access types, the
10294         predefined operator on universal_access is immediately visibles
10295         (Find_Unique_Type): Handle anonymous access to subprogram types just as
10296         other anonymous access types.
10297         (Disambiguate): Take into account CIL convention.
10298         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
10300 2007-06-06  Robert Dewar  <dewar@adacore.com>
10302         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
10303         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
10304         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
10305         Fix lower bound of tables.
10306         Add rep clauses.
10308         * nlists.adb: Ditto.
10309         (Prev_Node, Next_Node): Change index type to Int so that it properly
10310         covers the range First_Node_Id - 1 up.
10312 2007-06-06  Javier Miranda  <miranda@adacore.com>
10313             Ed Schonberg  <schonberg@adacore.com>
10314             Bob Duff  <duff@adacore.com>
10315             Hristian Kirtchev  <kirtchev@adacore.com>
10317         * exp_aggr.ads, exp_aggr.adb: 
10318         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
10319         in extension aggregates.
10320         (Flatten): Other conditions being met, an aggregate is static if the
10321         low bound given by component associations is different from the low
10322         bound of the base index type.
10323         (Packed_Array_Aggregate_Handled): If the component type is itself a
10324         packed array or record, the front-end must expand into assignments.
10325         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
10326         Init_Pr, instead of Ancestor_Is_Expression.
10327         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
10328         coextension chain root, either generate a list controller or use the
10329         already existing one.
10330         (Static_Array_Aggregate): New procedure to construct a positional
10331         aggregate that can be handled by the backend, when all bounds and
10332         components are compile-time known constants.
10333         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
10334         types covering interface types into assignments.
10335         (Replace_Type): move to Build_Record_Aggr_Code.
10336         (Expand_Record_Aggr_Code): if the target of the aggregate is an
10337         interface type, convert to the definite type of the aggregate itself,
10338         so that needed components are visible.
10339         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
10340         components and the context is an extended return statement do not
10341         create a transient block for it, to prevent premature finalization
10342         before the return is executed.
10343         (Gen_Assign): Do not generate a call to deep adjust routine if the
10344         component type is itself an array of controlled (sub)-components
10345         initialized with an inner aggregate.
10346         (Component_Check): New name for Static_Check. This name is now more
10347         appropriate, and documentation is added which was missing.
10348         (Component_Check): Add test for bit aligned component value
10349         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
10350         Tagged_Comps, name is more appropriate given added function below.
10351         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
10353 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
10354             Javier Miranda  <miranda@adacore.com>
10355             Robert Dewar  <dewar@adacore.com>
10357         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
10358         Terminated: Add unchecked type conversion from System.Address to
10359         System.Tasking.Task_Id when calling the predefined primitive
10360         _disp_get_task_id.
10361         Disable new Ada 05 accessibility check for JVM.NET targets, which
10362         cannot be implemented in a practical way.
10363         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
10364         the sources always references the tag of the actual object. Therefore,
10365         if 'Tag is applied in the sources to class-wide interface objects we
10366         generate code that displaces "this" to reference the base of the object.
10367         (Expand_N_Attribute_Reference, case Size): Return specified size if
10368         known to front end.
10369         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
10370         has code that displaces the pointer of the object to manage interface
10371         types. However this code must not be executed when the prefix is a
10372         subprogram. This bug caused the wrong expansion of the internally
10373         generated assignment that fills the dispatch table when the primitive
10374         is a function returning a class-wide interface type.
10375         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
10376         Set_Attribute_Name for Name_Unaligned_Valid.
10378 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10379             Gary Dismukes  <dismukes@adacore.com>
10381         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
10382         If the initialization is the equivalent aggregate of the initialization
10383         procedure of the type, do not remove it.
10384         (Expand_N_Attribute_Definition_Clause): Exclude access variables
10385         initialized to null from having their expression reset to empty and
10386         note this exception in the comment.
10388 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
10389             Robert Dewar  <dewar@adacore.com>
10390             Ed Schonberg  <schonberg@adacore.com>
10391             Gary Dismukes  <dismukes@adacore.com>
10393         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
10394         Add "with" and "use" clauses for Sem_Attr.
10395         (Expand_Current_Value): Do not replace occurences of attribute
10396         references where the prefix must be a simple name.
10398         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
10399         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
10400         Attribute_Requires_Simple_Name_Prefix.
10401         (Name_Modifies_Prefix): Body of new function.
10402         (Requires_Simple_Name_Prefix): Body of new function.
10403         (Resolve_Attribute, case Access): Improve error message for case of
10404         mismatched conventions.
10405         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
10406         incomplete type.
10407         (Analyze_Attribute, case 'Access): If the type of the prefix is a
10408         constrained subtype for a nominal unconstrained type, use its base type
10409         to check for conformance with the context.
10410         (Resolve_Attribute): Remove test of the access type being associated
10411         with a return statement from condition for performing accessibility
10412         checks on access attributes, since this case is now captured by
10413         Is_Local_Anonymous_Access.
10414         (Analyze_Access_Attribute): Set Address_Taken on entity
10415         (Analyze_Attribute, case Address): Set Address_Taken on entity
10416         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
10417         validating an access attribute whose prefix is a current instance.
10418         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
10419         applied to dispatching operations, if freezing is required then we set
10420         the attribute Has_Delayed_Freeze in the prefix's entity.
10421         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
10422         current scope if access of local subprogram taken
10423         (Analyze_Access_Attribute): Check legality of self-reference even if the
10424         expression comes from source, as when a single component association in
10425         an aggregate has a box association.
10426         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
10427         the prefix if it is a protected operation and the attribute is
10428         Unrestricted_Access.
10429         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
10430         reference to the base type of the context, to force a constraint check
10431         when the context is an access subtype with an explicit constraint.
10432         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
10433         node is rewritten as an interface conversion. leave unanalyzed after
10434         resolution, to ensure that type checking against the context will take
10435         place.
10437 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10438             Javier Miranda  <miranda@adacore.com>
10439             Robert Dewar  <dewar@adacore.com>
10441         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
10442         wrapper when the full view of the controlling type of an inherited
10443         function that dispatches on result implements interfaces.
10444         (Expand_N_Object_Declaration): In cases where the type of the
10445         declaration is anonymous access, create finalization list for it.
10446         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
10447         if the object has no explicit initialization, to match description of
10448         functionality of pragam Persistent_BSS.
10449         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
10450         new function to build static aggregates, to replace initialization call
10451         when static initialization is desired.
10452         (Freeze_Type): Generate a list controller for an access type whenever
10453         its designated type has controlled anonymous access discriminants.
10454         (Build_Equivalent_Aggregate): New procedure to compute a static
10455         aggregate to be used as default initialization for composite types,
10456         instead of a generating a call to the initialization procedure for the
10457         type.
10458         (Build_Initialization_Call): When available, replace a call to the
10459         initialization procedure with a copy of the equivalent static aggregate
10460         for the type.
10461         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
10462         declarations for objects of a class-wide interface type, rather than
10463         just identifiers, to prevent visibility problems.
10464         (Expand_N_Object_Declaration): When expanding the declaration for an
10465         object of a class-wide interface type, preserve the homonym chain of
10466         the original entity before exchanging it with that of the generated
10467         renaming declaration.
10468         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
10469         active, because there is no way to handle the exception.
10470         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
10471         to do a minimum decoration of the Access_Disp_Table list.
10472         (Expand_Record_Controller): Avoid the addition of the controller between
10473         the component containing the tag of a secondary dispatch table and its
10474         adjacent component that stores the offset to the base of the object.
10475         This latter component is only generated when the parent type has
10476         discriminants ---documented in Add_Interface_Tag_Components).
10477         (Apply_Array_Size_Check): Removed, no longer needed.
10478         (Expand_N_Full_Type_Declaration): If the type has anonymous access
10479         components, create a Master_Entity for it only if it contains tasks.
10480         (Build_Init_Procedure): Suppress the tag assignment compiling under
10481         no run-time mode.
10482         (Freeze_Record_Type): Remove code associated with creation of dispatch
10483         table.
10484         (Init_Secondary_Tags): Update type of actuals when generating calls to
10485         Ada.Tags.Set_Offset_To_Top
10486         (Stream_Operation_OK): Disable use of streams compiling under no
10487         run-time mode
10488         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
10489         if Has_Init_Expression set.
10490         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
10491         Register_Primitive, which provides the same functionality.
10492         (Requires_Init_Proc): Return false in case of interface types.
10493         (Add_Secondary_Tables): Use the new attribute Related_Interface to
10494         cleanup the code.
10495         (Predefined_Primitive_Freeze): Do not assume that an internal entity
10496         is always associated with a predefined primitive because the internal
10497         entities associated with interface types are not predefined primitives.
10498         Therefore, the call to Is_Internal is replaced by a call to the
10499         function Is_Predefined_Dispatching_Operation.
10500         (Make_Eq_If): When generating the list of comparisons for the
10501         components of a given variant, omit the controller component that is
10502         present if the variant has controlled components.
10504 2007-06-06  Javier Miranda  <miranda@adacore.com>
10505             Hristian Kirtchev  <kirtchev@adacore.com>
10506             Bob Duff  <duff@adacore.com>
10508         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
10509         handle the creation of finalization lists and calls for nested
10510         coextensions when the root of the chains is part of a return statement.
10511         (Inside_A_Return_Statement): New function inside Complete_Coextension_
10512         Finalization.
10513         (Expand_Record_Equality): Skip components that are interface types.
10514         (Displace_Allocator_Pointer): Add missing support for interface subtypes
10515         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
10516         with Rewrite_Coextension. Change the condition for detecting coextension
10517         root nodes.
10518         (Is_Local_Access_Discriminant): Removed.
10519         (Rewrite_Coextension): New routine which rewrites a static coextension
10520         as a temporary and uses its unrestricted access in the construction of
10521         the outer object.
10522         (Complete_Coextension_Finalization): New routine. Generate finalization
10523         attachment calls to all delayed coextensions.
10524         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
10525         the allocator is not a coextension itself and has delayed coextensions.
10526         If the current allocator is controlled, but also a coextension, delay
10527         the generation of the finalization attachment call.
10528         Rename local variable "Node" to "Nod" in order to avoid confusion with
10529         "Elists.Node".
10530         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
10531         limited types that are not inherently limited. Such an allocator is
10532         illegal, but is generated by the expander for a return statement, to
10533         copy the result onto the secondary stack. This is the only case where a
10534         limited object can be copied. Generate code to displace the pointer
10535         to the object if the qualified expression is a class-wide interface
10536         object. Such displacement was missing and hence the copy of the object
10537         was wrong.
10538         (Apply_Accessibility_Check): Handle allocated objects initialized in
10539         place.
10540         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
10541         and Expand_Allocator_Expression. Allocating class-wide interface objects
10542         this routine displaces the pointer to the allocated object to reference
10543         the component referencing the corresponding secondary dispatch table.
10544         Expand_Allocator_Expression): Add missing support to allocate class-wide
10545         interface objects initialized with a qualified expression.
10546         (Get_Allocator_Final_List): Test for an anonymous access type that is a
10547         function result type, and use the finalization list associated with the
10548         function scope in that case (such an anonymous type should not be
10549         treated like an access parameter's type).
10551 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10552             Gary Dismukes  <dismukes@adacore.com>
10553             Javier Miranda  <miranda@adacore.com>
10555         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
10556         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
10557         required exception handler.
10558         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
10559         properly the case of a function whose return type is a limited
10560         class-wide interface type. Modify the code of the accessibility
10561         check to handle class-wide interface objects. In this case we need to
10562         displace "this" to reference the primary dispatch table to get access
10563         to the TSD of the object (to evaluate its accessibility level).
10564         (Expand_N_Extended_Return_Statement): Test for a tagged result type
10565         rather than a controlling result as one of the conditions for
10566         generating tests of the implicit BIP_Alloc_Form formal. The
10567         initialization assignment is also handled according to whether the
10568         result is tagged instead of controlling.
10569         In the case where the init assignment is inserted in the "then" part of
10570         the allocation conditional, rewrite the target to be a dereference of
10571         the implicit BIP_Object_Access formal.
10572         If the returned value is unconstrained and created on the secondary
10573         stack, mark the enclosing block and function so that the secondary
10574         stack is not reclaimed on return.
10575         Treat returns from functions with controlling results similarly to
10576         returns from functions with unconstrained result subtypes.
10577         If the object returned is unconstrained, and an allocator must be
10578         created for it, analyze the allocator once the block for the extended
10579         return is installed, to ensure that finalizable components
10580         of the expression use the proper finalization list. Guard the call to
10581         Move_Final_List with a check that there is something to finalize.
10582         (Make_Tag_Ctrl_Assignment): Use "old" handling
10583         of controlled type assignment for virtual machines, since new code uses
10584         unsupported features (such as direct access to bytes in memory).
10586 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
10587             Ed Schonberg  <schonberg@adacore.com>
10589         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
10590         accessibility actual, check for the case of an aliased object that has
10591         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
10592         we fall into processing for the attribute rather than the name of the
10593         object.
10594         (Expand_Inline_Call): If an actual is a literal, and the corresponding
10595         formal has its address taken in the body, create a temporary to capture
10596         value.  If the return type is a limited interface, do not treat the
10597         return value as Controlled.
10598         (Is_In_Place_Function):  If the return type is a limited interface,
10599         treat as returning in place. The actual returned object may not always
10600         be limited, but the caller has to assume that it is returned in place.
10601         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
10602         context of an allocator, use the correct finalization chain (that is,
10603         the chain belonging to the access type, rather than the chain belonging
10604         to the current scope).
10605         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
10606         result type rather than a controlling result as a precondition for
10607         adding an allocation form actual to a build-in-place call.
10608         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
10609         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
10610         primitive in the dispatch tables. This work is now done by Make_DT when
10611         the type is frozen.
10612         (Register_Predefined_DT_Entry): Removed.
10613         (Add_Return): If end label is not present, use sloc of last statement
10614         for generated return statement in procedure, for better gdb behavior
10615         on expanded code.
10616         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
10617         object address nodes to ensure proper processing by routines like
10618         Insert_After*.
10619         (Expand_Call): Fix generation of validity check for parameter
10620         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
10621         the allocation form parameter if the result subtype is constrained,
10622         except when the function has a controlling result.
10623         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
10624         rather than Is_Controlled and Has_Controlled_Component, since we want to
10625         include class-wide result types in this treatment. Also test for a
10626         controlling result, since that also requires passing a finalization
10627         list.
10628         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
10629         even when the result subtype is constrained, to handle calls involving
10630         controlling results.
10631         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
10632         is now called even when the result subtype is constrained, to handle
10633         calls involving controlling results.
10634         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
10635         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
10636         now performs the test).
10637         (Make_Build_In_Place_Call_In_Object_Declaration):
10638         Add_Alloc_Form_Actual_* is now called even when the result subtype is
10639         constrained, to handle calls involving controlling results.
10640         (Add_Return): Accomodate rewritten pattern from local raise to goto
10641         transformation, so that we still recognize an transfer statement
10642         and do the right thing here in that case.
10643         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
10644         and end of subprogram code.
10645         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
10646         support for primitives that are functions (without formals) with a
10647         controlling result.
10648         (Inherited_From_Formal): If the actual subtype has not generic parent
10649         type, it is not an actual for a formal derived type, and there is no
10650         operation to inherit from the formal.
10652 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10653             Thomas Quinot  <quinot@adacore.com>
10655         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
10656         inserted cleanup code appropriately for GDB use.
10657         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
10658         exception handler for Deep_Adjust or Deep_Finalize.
10659         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
10660         Raise_From_Controlled_Operation is available, use a call to that
10661         subprogram instead of a plain "raise Program_Error" node to raise
10662         Program_Error if an exception is propagated from an Adjust or Finalize
10663         operation.
10664         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
10665         appears in the optional statement list of a triggering alternative, the
10666         scope actions can be inserted directly there, and not in the list that
10667         includes the asynchronous select itself.
10669 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10670             Robert Dewar  <dewar@adacore.com>
10671             Hristian Kirtchev  <kirtchev@adacore.com>
10673         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
10674         generated exception handler appropriately when debugging generated code.
10675         Deal properly with No_Exception_Propagation restriction mode.
10676         (Expand_N_Abort_Statement): Add an unchecked type conversion from
10677         System.Address to System.Tasking.Task_Id when processing the result of
10678         the predefined primitive _disp_get_task_id.
10679         (Expand_N_Asynchronous_Select): Clarify comment.
10680         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
10681         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
10682         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
10683         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
10684         privals and for generated call to Complete_Entry_Body, for better gdb
10685         behavior.
10686         (Copy_Result_Type): Utility to construct a parameter and result profile
10687         for protected functions whose return type is an anonymous access to
10688         subprogram.
10689         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
10690         call the above.
10691         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
10692         point when the local-raise-to-goto transformation has taken place.
10694 2007-06-06  Javier Miranda  <miranda@adacore.com>
10695             Nicolas Setton  <setton@adacore.com>
10697         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
10698         functionality when the backend is generating code.
10699         Otherwise any serious error
10700         reported by the backend calling the frontend routine Error_Msg
10701         changes the Compilation_Mode to Check_Semantics, disables the
10702         functionality of this routine and causes the generation of
10703         spureous additional errors.
10705         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
10706         debugging information now generated by the compiler for fat-pointer
10707         types.
10708         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
10709         DWARF2/3.
10710         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
10712 2007-06-06  Thomas Quinot  <quinot@adacore.com>
10714         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
10715         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
10716         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
10717         For a remote call to a function with a classwide return type, apply an
10718         E.4(18) check to the returned value.
10719         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
10720         stream attributes of the designated type of an RACW, as they are not
10721         dispatching primitive operations.
10723 2007-06-06  Geert Bosch  <bosch@adacore.com>
10725         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
10726         negative literal
10727         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
10728         positive
10729         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
10730         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
10731         positive
10732         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
10734 2007-06-06  Javier Miranda  <miranda@adacore.com>
10736         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
10737         attribute compiling package Ada.Tags under No_Run_Time_Mode.
10739 2007-06-06  Javier Miranda  <miranda@adacore.com>
10741         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
10742         deallocation of class-wide interface objects.
10743         (Expand_Dispatching_Constructor_Call): Take into account that if the
10744         result of the dispatching constructor is an interface type, the
10745         function returns a class-wide interface type; otherwise the returned
10746         object would be actual. The frontend previously accepted returning
10747         interface types because Expand_Interface_Actuals silently performed
10748         the management of the returned type "as if" it were a class-wide
10749         interface type.
10750         (Expand_Dispatching_Constructor_Call): Replace call to
10751         Make_DT_Access_Action by direct call to Make_Function_Call.
10753 2007-06-06  Robert Dewar  <dewar@adacore.com>
10754             Ed Schonberg  <schonberg@adacore.com>
10756         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
10757         compute masking constant, since we now set Esize properly to the
10758         underlying size.
10759         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
10760         to match the alignment.
10761         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
10762         packed arrays of 8 bits or less.
10764         * freeze.adb (Freeze_Entity): When freezing the formals of a
10765         subprogram, freeze the designated type of a parameter of an access type
10766         only if it is an access parameter.
10767         Increase size of C convention enumeration object
10768         (Freeze_Entity, array type case): Make sure Esize value is properly
10769         adjusted for the alignment if it is known.
10770         (Freeze_Entity, array type case): When checking bit packed arrays for
10771         the size being incorrect, check RM_Size, not Esize.
10772         (Freeze_Record_Type): Check for bad discriminated record convention
10773         (In_Exp_Body): Return true if the body is generated for a subprogram
10774         renaming, either an attribute renaming or a renaming as body.
10775         (Check_Itype): If the designated type of an anonymous access component
10776         is a non-protected subprogram type, indicate that it is frozen, to
10777         prevent out-of-scope freeze node at some subsequent call.
10778         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
10779         only if the subprogram is neither imported nor exported, as well as the
10780         NCA descriptor class if the subprogram is exported.
10782 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10783             Arnaud Charlet  <charlet@adacore.com>
10784             Robert Dewar  <dewar@adacore.com>
10785             Gary Dismukes  <dismukes@adacore.com>
10787         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
10788         default initialization on an imported object, when there is no
10789         initialization call generated for it.
10790         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
10791         restriction
10793         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
10794         Static_Elaboration_Desired.
10795         Remove pragma Thread_Body.
10796         Implement a new pragma No_Body
10797         Removes the Explicit_Overriding pragma
10798         Remove Optional_Overriding pragma
10799         (Prag): Deal with Universal_Aliasing.
10800         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
10801         Pragma_CIL_Constructor): New names.
10803         * sem_cat.adb (Validate_Object_Declaration): An initialization that
10804         uses the equivalent aggregate of a type must be treated as an implicit
10805         initialization.
10806         (Get_Categorization): Check a unit for pragma Preelaborate only if it
10807         has none of the other categories.
10808         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
10809         to apply Import to an object renaming declaration.
10811         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
10812         from a C++ class should be declared as limited and that it will be
10813         considererd limited.
10814         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
10815         should be declared as limited and that it will be considererd limited.
10816         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
10817         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
10818         (Analyze_Pragma): Deal with Universal_Aliasing.
10819         (Sig_Flags): Likewise.
10820         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
10821         (Overflow_Checks_Unsuppressed): New flag.
10822         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
10823         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
10824         case of JVM or .NET targets, and compiling user code.
10825         Add debugging convenience routine rv
10827 2007-06-06  Robert Dewar  <dewar@adacore.com>
10829         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
10830         are interface type.
10831         (Build_Elementary_Input_Call): For floating-point use right type in the
10832         absence of strange size or stream size clauses.
10833         (Build_Elementary_Write_Call): Same fix
10834         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
10835         set to value that does not match base type size.
10837 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10839         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
10840         object of a limited type can be initialized with a call to a function
10841         that returns in place. If the limited type has unknown discriminants,
10842         and the underlying type is a constrained composite type, build an actual
10843         subtype from the function call, as is done for private types.
10844         (Side_Effect_Free): An expression that is the renaming of an object or
10845         whose prefix is the renaming of a object, is not side-effect free
10846         because it may be assigned through the renaming and its value must be
10847         captured in a temporary.
10848         (Has_Controlled_Coextensions): New routine.
10849         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
10850         as is done for other limited types.
10851         (Non_Limited_Designated_Type): new predicate.
10852         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
10853         objects.
10854         Remove all handling of with_type clauses.
10856         * par-ch10.adb: Remove all handling of with_type clauses.
10858         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
10859         checksum if the main source could not be parsed.
10860         (Loat_Unit): When processing a child unit, determine properly whether
10861         the parent unit is a renaming when the parent is itself a child unit.
10862         Remove handling of with_type clauses.
10864         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
10865         (Set_Is_Static_Coextension): New procedure.
10866         (Has_Local_Raise): New function
10867         (Set_Has_Local_Raise): New procedure
10868         (Renaming_Exception): New field
10869         (Has_Init_Expression): New flag
10870         (Delay_Finalize_Attach): Remove because flag is obsolete.
10871         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
10872         Remove all handling of with_type clauses.
10873         (Exception_Junk): Can now be set in N_Block_Statement
10875 2007-06-06  Vincent Celier  <celier@adacore.com>
10876             Robert Dewar  <dewar@adacore.com>
10878         * frontend.adb (Frontend): Return immediately if the main source could
10879         not be parsed, because of preprocessing errors.
10881         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
10882         (Gnat1drv): Exit with errors if the main source could not be parsed,
10883         because of preprocessing errors.
10884         (Check_Rep_Info): New procedure
10886 2007-06-06  Robert Dewar  <dewar@adacore.com>
10888         * g-hesorg.ads, g-heasor.ads,
10889         g-busorg.ads, g-bubsor.ads: Update documentation
10890         GNAT.Heap/Bubble_Sort_G is now pure
10892 2007-06-06  Robert Dewar  <dewar@adacore.com>
10894         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
10896 2007-06-06  Robert Dewar  <dewar@adacore.com>
10897             Ed Schonberg  <schonberg@adacore.com>
10899         * g-comlin.ads, g-comlin.adb: 
10900         Add new warning for renaming of function return objects
10902         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
10903         (Tree_Read): Use size of object instead of type'object_size, since the
10904         latter is incorrect for packed array types.
10905         (Tree_Write): Same fix
10907         * opt.ads: Add new warning for renaming of function return objects
10908         (Generating_Code): New boolean variable used to indicate that the
10909         frontend as finished its work and has called the backend to process
10910         the tree and generate the object file.
10911         (GCC_Version): Is now private
10912         (Static_Dispatch_Tables): New constant declaration.
10913         (Overflow_Checks_Unsuppressed): New flag.
10914         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
10915         (List_Closure): New flag for gnatbind (-R)
10916         Zero_Formatting: New flag for gnatbind (-Z)
10917         (Special_Exception_Package_Used): New flag.
10918         (Warn_On_Unrepped_Components): New flag.
10920         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
10921         unit is a compilation unit, rather than relying on its scope, so that
10922         Standard can be renamed.
10923         (Analyze_Object_Renaming): Add new warning for renaming of function
10924         return objects.
10925         Also reject attempt to rename function return object in Ada 83 mode.
10926         (Attribute_Renaming): In case of tagged types, add the body of the
10927         generated function to the freezing actions of the type.
10928         (Find_Type): A protected type is visible right after the reserved word
10929         "is" is encountered in its type declaration. Set the entity and type
10930         rather than emitting an error message.
10931         (New_Scope): Properly propagate Discard_Names to inner scopes
10932         (Check_Nested_Access): New procedure.
10933         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
10934         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10936         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
10937         Add new warning for renaming of function return objects
10938         (Check_References): Suppress warnings for objects whose type or
10939         base type has Warnings suppressed.
10940         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
10941         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
10943 2007-06-06  Vincent Celier  <celier@adacore.com>
10944             Emmanuel Briot  <briot@adacore.com>
10945             Olivier Hainque  <hainque@adacore.com>
10947         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
10948         absolute value of Header.Block_Size when displaying the freed physical
10949         memory in traces.
10950         (Allocate): Compute Storage_Address using Integer_Address, not
10951         Storage_Offset, because the range of Storage_Offset may not be large
10952         enough.
10953         (Configure): New parameter Low_Level_Traces
10954         (Allocate, Deallocation, Free_Physically): Added low-level traces
10955         (Configure): new parameter Errors_To_Stdout.
10956         (Output_File): new subprogram
10957         (Deallocate, Dereference): Send error messages to the proper stream
10958         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
10959         documented. Previous code would send it to the current output file
10960         defined in GNAT.IO, which might not be stdout
10961         (Is_Valid): Adjust comment to mention that a positive reply means that
10962         Header_Of may be used to retrieve the allocation header associated with
10963         the subprogram Storage address argument. Return False early if this
10964         address argument is misaligned.
10966 2007-06-06  Vincent Celier  <celier@adacore.com>
10968         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
10969         switch -P
10970         (ASIS_Main): New global variable
10971         (Get_Closure): New procedure
10972         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
10973         check, metric or pretty. Call Get_Closure in this case.
10974         (Check_Files): For GNAT LIST, check all sources of all projects when
10975         All_Projects is True.
10976         (GNATCmd): Accept -U for GNAT LIST
10978 2007-06-06  Vincent Celier  <celier@adacore.com>
10980         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
10981         has been specified
10982         Correct error message when invocation of the linker fails
10983         Add explicit size clause for the C imported variables
10984         Object_List_File_Supported and Using_GNU_Linker to emphasize that
10985         we expect char size.
10986         Read target parameters earlier, since this is needed to set
10987         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
10988         targets.
10990 2007-06-06  Vincent Celier  <celier@adacore.com>
10992         * gnatls.adb: 
10993         Add 3 spaces before the default project directory when displaying
10994         the project search path.
10995         Add new command line switch '-l' to display license information.
10997 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
10999         * gmem.c: Add support for timestamps on memory operations.
11001         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
11002         operations (not used currently, just foundation for future
11003         enhancements). Add possibility to perform full dump of gmem.out file.
11004         (Print_Back_Traces): Declare accesses to root arrays constants since
11005         they aren't modified.
11006         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
11008 2007-06-06  Vincent Celier  <celier@adacore.com>
11010         * gnatsym.adb: Update Copyright notice
11011         (Parse_Cmd_Line): Accept new switch -D
11012         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
11013          file.
11015         * prj.ads (Policy): New policy Direct
11016         (Yes_No_Unknown): New enumeration type
11017         (Project_Data): New component Libgnarl_Needed
11019         * prj-nmsc.adb (Check_For_Source): When recording a source file make
11020         use the untouched pathname casing.
11021         (Get_Directories): Ensure that the Display_Exec_Directory is using the
11022         proper casing on non case-sensitive platforms like Windows.
11023         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
11024         on all platforms, as it is not possible to know which one is allowed
11025         before processing the project files.
11026         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
11027         specified when symbol policy is Direct. Check that when there is a
11028         symbol file defined (either by default or with attribute
11029         Library_Symbol_File) it is not the same as the reference symbol file.
11030         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
11031         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
11032         extending projects.
11033         (Record_Ada_Source): Record a source that has been locally removed in an
11034         imported project.
11036         * symbols.ads (Policy): New policy Direct
11038         * symbols-vms.adb (Initialize): Take new policy Direct in case
11039         statement
11041 2007-06-06  Vincent Celier  <celier@adacore.com>
11043         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
11044         Correct obvious bug (return Dir; instead of return Directory;).
11045         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
11047 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11049         * g-pehage.adb (Produce): Open output files in Binary mode, so that
11050         they have UNIX line endings (LF only) even on Windows, and thus pass
11051         all GNAT style checks.
11053 2007-06-06  Emmanuel Briot  <briot@adacore.com>
11055         * g-regpat.adb (Quote): Fix improper quoting of '.'
11057 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11059         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
11060         default, set False on a per-runtime basis.
11061         (Need_Netdb_Buffer): New constant.
11063         * g-socket.ads, g-socket.adb: Import new package
11064         GNAT.Sockets.Thin.Task_Safe_NetDB.
11065         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
11066         binding to obtain proper message.
11067         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
11068         Replace various occurrences of Arry (Arry'First)'Address with the
11069         equivalent Arry'Address (GNAT always follows implementation advice from
11070         13.3(14)).
11071         (Get_Host_By_Address, Get_Host_By_Name,
11072         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
11073         instead, rely on platform-specific task safe netdb operations provided
11074         by g-socthi.
11076         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
11077         parameter Process_Blocking_IO.
11078         (Host_Error_Messages): Add stub body.
11079         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11080         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
11081         Safe_Getservbyport): Move functions into new child package
11082         Task_Safe_NetDB.
11083         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
11084         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
11085         (In_Addr): Add alignment clause.
11087 2007-06-06  Robert Dewar  <dewar@adacore.com>
11089         * g-trasym.ads, g-traceb.ads: Update list of supported targets
11090         Add note about symbolic traceback
11092 2007-06-06  Pascal Obry  <obry@adacore.com>
11094         * hostparm.ads (Normalized_CWD): Use the host directory separator
11095         instead of the hardcoded forward slash which is not the proper
11096         character on Windows for example.
11097         (Java_VM): Removed.
11099 2007-06-06  Vincent Celier  <celier@adacore.com>
11100             Arnaud Charlet  <charlet@adacore.com>
11102         * a-clrefi.adb, a-clrefi.ads: New files
11104         * impunit.adb: Add s-os_lib in the list of user visible units.
11105         (Non_Imp_File_Names_95): Add a-clrefi to this list
11106         Remove obsolete run-time entries.
11107         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
11108          "a-exetim" -- Ada.Execution_Time
11109          "a-extiti" -- Ada.Execution_Time.Timers
11111         * mlib-prj.ads, mlib-prj.adb
11112         (Build_Library): Use untouched object dir and library dir. At the
11113         same time makes sure that the checks are done using the canonical
11114         form. Removes hard-coded directory separator and use the proper host
11115         one instead.
11116         (Process_Project): Do not look in object directory to check if libgnarl
11117         is needed for a library, if there is no object directory.
11118         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
11119         linking.
11120         (Build_Library): When invoking gnatbind, use a response file if the
11121         total size of the arguments is too large.
11123         * Makefile.rtl: (g-sttsne): New object file.
11124         Add entry for a-clrefi, s-utf_32, System.Exceptions
11126         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
11127         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
11128         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
11129         Change g-string to s-string, g-os_lib to s-os_lib
11130         Change all g-utf_32 references to s-utf_32
11132 2007-06-06  Tristan Gingold  <gingold@adacore.com>
11133             Olivier Hainque  <hainque@adacore.com>
11135         * init.c: Do not adjust IP of an imported VMS exception of ia64.
11136         LIB$STOP is called to raise an exception and the IP of the exception
11137         is the instruction right after the call.
11138         (__gnat_adjust_context_for_raise, AIX): Implement.
11139         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
11140          adjust_context_for_raise before Raise_From_Signal_Hanler.
11141         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
11142         siginfo is passed to the handler, necessary to let the zcx propagation
11143         engine unwind past it.
11145 2007-06-06  Olivier Hainque  <hainque@adacore.com>
11147         * initialize.c (__gnat_initialize for vxworks):  Update documentation
11148         on the ZCX support, using different sets of crtstuff objects than with
11149         GCC 3.4.
11151 2007-06-06  Robert Dewar  <dewar@adacore.com>
11153         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
11154         spec from body
11155         (Layout_Type): Fix recomputation of size from alignment.
11157 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11158             Javier Miranda  <miranda@adacore.com>
11160         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
11161         association in an instance.
11162         (Copy_Generic_Node): If the node is a string literal, no need to copy
11163         its descendants.
11164         (Is_Generic_Formal): For a formal subprogram, the declaration is the
11165         grandparent of the entity.
11166         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
11167         to simplify handling of formal interfaces that derive from other formal
11168         interfaces.
11169         (Instantiate_Subprogram_Body): The defining unit name of the body of
11170         the instance should be a defining identifier.
11171         (Install_Formal_Packages): make global to the package, for use in
11172         instantiations of child units.
11173         (Analyze_Package_Instantiation): Do not attempt to set information on an
11174         enclosing master of an entry when expansion is disabled.
11175         (Instantiate_Type): If the actual is a tagged synchronized type and the
11176         generic ancestor is an interface, create a generic actual for the
11177         corresponding record.
11178         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
11179         declaration, to ensure that the interface list is processed correctly.
11180         (Inline_Instance_Body): If enclosing scope is an instance body, remove
11181         its entities from visibiility as well.
11182         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
11183         given with a named association, analyze the expression only, not the
11184         discriminant association itself.
11185         (Reset_Entity): If the analysis of a selected component is transformed
11186         into an expanded name in the prefix of a call with parameters, do not
11187         transform the original node into an expanded name, to prevent visibility
11188         errors in the case of nested generics.
11189         (Check_Private_View): For an array type, check whether the index types
11190         may need exchanging.
11192 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11193             Vincent Celier  <celier@adacore.com>
11195         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
11196         since both are separated.
11197         Add support for imported CIL packages.
11198         Add further special handling of "value_type" for CIL.
11199         Add special handling of pragma Import for CIL.
11201         * make.ads, make.adb: When switch -eS is used, direct all outputs to
11202         standard output instead of standard error, except errors.
11203         (Absolute_Path): Use untouched casing for the parent directory.
11204         (Add_Library_Search_Dir): Use the untouched directory name.
11205         (Add_Source_Search_Dir): Idem.
11206         (Change_To_Object_Directory): Update output to use proper casing.
11207         (Create_Binder_Mapping_File): Use the untouched filename to set
11208         ALI_Name.
11209         (Gnatmake): Use untouched library and executable directory names.
11210         (Insert_Project_Sources): Use untouched filename for spec and body.
11211         (Is_In_Object_Directory): Use untouched object directory.
11212         (Mark_Directory): Idem.
11213         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
11214         contains the non-canonical filename in all cases.
11215         (Change_To_Object_Directory): In verbose mode, display the name of the
11216         object directory we're changing to.
11217         (Compile_Sources): Make sure, when a project file is used, to compile
11218         the body of the unit, when there is one, even when only the spec is
11219         recorded in an ALI file.
11220         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
11221         spec to the body.
11222         (Report_Compilation_Failed): New procedure
11223         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
11224         procedures moved from the spec to the body.
11225         (Extract_Failure): Removed, not used
11226         Replace explicit raises of exception Bind_Failed and Link_Failed with
11227         calls to Make_Failed with the proper message.
11228         Replace explicit raises of exception Compilation_Failed with calls to
11229         procedure Report_Compilation_Failed.
11230         (Initialize): Create mapping files unconditionally when using project
11231         files.
11233         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11234         Pragma_CIL_Constructor): New names.
11236         * targparm.ads, targparm.adb
11237         (Compiler_System_Version): Removed, no longer used.
11238         (Get_Target_Parameters): Relax checks on system.ads validity. Add
11239         handling of two new system flags: JVM and CLI.
11241 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
11242             Arnaud Charlet  <charlet@adacore.com>
11244         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
11245         time, use the default s-interr body that provides interrupt support
11246         based on signals.
11247         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
11248         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
11249         g-soccon.ads, and s-taprop.adb for the marte run time.
11250         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
11251         timers are supported on marte.
11252         (EH_MECHANISM for marte): Do not use ZCX.
11253         (THREADSLIB for marte): Use -lmarte.
11254         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
11255         Add mlib-tgt-specific.o to gnatmake objects
11256         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
11257         longer of MLib.Tgt.
11258         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
11259         6, either kernel or rtp, use a specialized version of s-osinte.ads.
11261 2007-06-06  Pascal Obry  <obry@adacore.com>
11263         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
11265 2007-06-06  Vincent Celier  <celier@adacore.com>
11267         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
11268         separator, use instead the proper host directory separator.
11269         (Copy_ALI_Files): Make sure that an already existing ALI file in the
11270         ALI copy dir is writable, before doing the copy.
11272         * mlib-utl.ads, mlib-utl.adb: 
11273         (Gcc): If length of command line is too long, put the list of object
11274         files in a response file, if this is supported by the platform.
11275         (Ar): If invocation of the archive builder is allowed to be done in
11276         chunks and building it in one shot would go above an OS dependent
11277         limit on the number of characters on the command line, build the archive
11278         in chunks.
11280 2007-06-06  Vincent Celier  <celier@adacore.com>
11282         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
11283         of specified object file is not equal to base name of source.
11285 2007-06-06  Javier Miranda  <miranda@adacore.com>
11286             Hristian Kirtchev  <kirtchev@adacore.com>
11287             Ed Schonberg  <schonberg@adacore.com>
11289         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
11290         the full type declaration.
11291         (Analyze_Component_Declaration): Add local variable E to capture the
11292         initialization expression of the declaration. Replace the occurences of
11293         Expression (N) with E.
11294         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
11295         limited interface object with a function call.
11296         (Array_Type_Declaration): If the declaration lacks subtype marks for
11297         indices, create a simple index list to prevent cascaded errors.
11298         (Is_Null_Extension): Ignore internal components created for secondary
11299         tags when checking whether a record extension is a null extension.
11300         (Check_Abstract_Interfaces): Add missing support for interface subtypes
11301         and generic formals.
11302         (Derived_Type_Declaration): Add missing support for interface subtypes
11303         and generic formals.
11304         (Analyze_Object_Declaration): If an initialization expression is
11305         present, traverse its subtree and mark all allocators as static
11306         coextensions.
11307         (Add_Interface_Tag_Component): When looking for components that may be
11308         secondary tags, ignore pragmas that can appear within a record
11309         declaration.
11310         (Check_Abstract_Overriding): an inherited function that dispatches on
11311         result does not need to be overriden if the controlling type is a null
11312         extension.
11313         (Mentions_T): Handle properly a 'class attribute in an anonymous access
11314         component declaration, when the prefix is an expanded name.
11315         (Inherit_Component): If the derivation is for a private extension,
11316         inherited components remain visible and their ekind should not be set
11317         to Void.
11318         (Find_Type_Of_Object): In the case of an access definition, always set
11319         Is_Local_Anonymous_Access. We were previously not marking the anonymous
11320         access type of a return object as a local anonymous type.
11321         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
11322         range with character literal bounds.
11323         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
11324         (Access_Subprogram_Declaration): Indicate that the type declaration
11325         depends on an incomplete type only if the incomplete type is declared
11326         in an open scope.
11327         (Analyze_Subtype_Declaration): Handle properly subtypes of
11328         synchronized types that are tagged, and that may appear as generic
11329         actuals.
11330         (Access_Subprogram_Declaration): An anonymous access to subprogram can
11331         appear as an access discriminant in a private type declaration.
11332         (Add_Interface_Tag_Components): Complete decoration of the component
11333         containing the tag of a secondary dispatch table and the component
11334         containing the offset to the base of the object (this latter component
11335         is only generated when the parent type has discriminants --as documented
11336         in this routine).
11337         (Inherit_Components): Use the new decoration of the tag components to
11338         improve the condition that avoids inheriting the components associated
11339         with secondary tags of the parent.
11340         (Build_Discriminanted_Subtype): Indicate to the backend that the
11341         size of record types associated with dispatch tables is known at
11342         compile time.
11343         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
11344         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
11345         to include task, protected, and synchronized interfaces as limited
11346         interfaces.
11347         (Process_Discriminants): Remove the setting of
11348         Is_Local_Anonymous_Access on the type of (anonymous) access
11349         discriminants of nonlimited types.
11350         (Analyze_Interface_Type_Declaration): Complete the decoration of the
11351         class-wide entity it is is already present. This situation occurs if
11352         the limited-view has been previously built.
11353         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
11354         field.
11355         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
11356         Related_Interface.
11358 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11360         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
11361         of the type that specify the position of interface tags when the type
11362         inherits discriminated array components from the parent type.
11363         If a component is initialized with a box, check for the presence of a
11364         default expression in its declaration before using its default
11365         initialization procedure.
11366         (Resolve_Record_Aggregate): If a component is box-initialized, and the
11367         component type has a discriminants, create a partial aggregate for it
11368         by copying the discriminants of the component subtype.
11369         Reject attempt to initialize a discriminant with a box.
11370         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
11371         associated with dispatch tables is known at compile time.
11372         (Get_Value): If an association in a record aggregate has a box
11373         association, and the corresponding record component has a default
11374         expression, always copy the default expression, even when the
11375         association has a single choice, in order to create a proper
11376         association for the expanded aggregate.
11378 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11379             Robert Dewar  <dewar@adacore.com>
11381         * par-ch12.adb (P_Generic_Associations): The source position of an
11382         Others association is that of the others keyword, not that of the token
11383         that follows the box.
11384         (P_Formal_Type_Definition): Handle formal access types that carry a
11385         not null indicator.
11387         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
11388         multiple identifier are present, save Scan_State before scanning the
11389         colon, to ensure that separate trees are constructed for each
11390         declaration.
11391         (P_Identifier_Declarations): For object declaration, set new flag
11392         Has_Init_Expression if initialization expression present.
11393         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
11394         Improve NOT NULL error messages
11396 2007-06-06  Robert Dewar  <dewar@adacore.com>
11398         * par-ch4.adb: (P_Name): Recover from literal used as name
11400 2007-06-06  Vincent Celier  <celier@adacore.com>
11402         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
11403         defaulted to False.
11404         In the "not" case, recursive call with Complemented set to True.
11405         Do not allow "or" or "and" operators when Complemented is True.
11407 2007-06-06  Vincent Celier  <celier@adacore.com>
11409         * prj.adb (Project_Empty): Gives default value for new component
11410         Libgnarl_Needed
11412         * prj-attr.ads: Minor reformatting
11414         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
11415         directory using the untouched casing.
11416         (For_All_Source_Dirs): Idem.
11418         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
11419         directories specified with switches -aP.
11420         (Add_Search_Project_Directory): New procedure
11421         (Initialize_Project_Path): Put the directories in table
11422         Search_Directories in the project search path.
11423         (Initialize_Project_Path): For VMS, transform into canonical form the
11424         project path.
11426 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11428         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
11429         true if configurable run-time or No_Run_Time is set.
11430         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
11431         processing an unit which is not the one being compiled.
11433 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11435         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
11436         Replace UC by Ada.UC
11438         * s-bitops.adb: Get rid of System.Pure_Exceptions.
11439         Replace UC by Ada.UC
11441 2007-06-06  Robert Dewar  <dewar@adacore.com>
11443         * scng.adb: (Check_End_Of_Line): Deal with very long lines
11445 2007-06-06  Robert Dewar  <dewar@adacore.com>
11447         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
11448         Remove no longer used nodes.
11450 2007-06-06  Javier Miranda  <miranda@adacore.com>
11451             Ed Schonberg  <schonberg@adacore.com>
11452             Robert Dewar  <dewar@adacore.com>
11454         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
11455         on obsolescent withed unit in case of limited-withed units.
11456         (Analyze_Compilation_Unit): Add guard to code that removed an
11457         instantiation from visibility, to prevent compiler aborts when
11458         instantiation is abandoned early on.
11459         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
11460         current unit being analyzed, and Distinguish local incomplete types
11461         from limited views of types declared elsewhere.
11462         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
11463         to state that the class-wide entity is shared by the limited-view
11464         and the full-view.
11465         (Analyze_With_Clause): Improve placement of flag for case of
11466         unimplemented unit.
11467         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
11468         manner similar to GNAT.Current_Exception. This is a violation of
11469         restriction (No_Exception_Propagation), and also inhibits the
11470         optimization of local raise to goto.
11471         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
11472         and if so set Most_Recent_Exception_Used flag in Opt, and also check
11473         for violation of restriction No_Exception_Propagation.
11475 2007-06-06  Javier Miranda  <miranda@adacore.com>
11476             Hristian Kirtchev  <kirtchev@adacore.com>
11477             Gary Dismukes  <dismukes@adacore.com>
11479         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
11480         use of entity Exception_Occurrence if it is not available in the
11481         target run-time.
11483         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
11484         concurrent types are declared within an Ada 2005 generic, build their
11485         corresponding record types since they are needed for overriding-related
11486         semantic checks.
11487         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
11488         protected type does not implement a task interface or a nonlimited
11489         interface.
11490         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
11491         type does not implement a protected interface or a nonlimited interface.
11492         (Single_Task_Declaration, Single_Protected_Declaration): use original
11493         entity for variable declaration, to ensure that debugging information
11494         is correcty generated.
11495         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
11496         routines if the expander is not active.
11497         (Analyze_Task_Body): Mark all handlers to stop optimization of local
11498         raise, since special things happen for task exception handlers.
11500         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
11501         concurrent types declared within a generic.
11502         (Check_Dispatching_Operation): Do not emit warning about late interface
11503         operations in the context of an instance.
11504         (Check_Dispatching_Call): Remove restriction against calling a
11505         dispatching operation with a limited controlling result.
11506         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
11507         Register_Interface_DT_Entry by calls to Register_Primitive.
11508         (Check_Dispatching_Formals): Handle properly a function with a
11509         controlling access result.
11511 2007-06-06  Robert Dewar  <dewar@adacore.com>
11512             Arnaud Charlet  <charlet@adacore.com>
11514         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
11515         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
11516         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
11517         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
11518         message when using a VM, since this attribute is not supported.
11519         (Analyze_Record_Representation_Clause): Give unrepped component warnings
11521         * usage.adb: Add new warning for renaming of function return objects
11522         Indicate that -gnatwp and -gnatwP concern front-end inlining
11523         Add line for -gnatyg
11524         Add usage information for -gnatw.c/C
11526 2007-06-06  Robert Dewar  <dewar@adacore.com>
11527             Ed Schonberg  <schonberg@adacore.com>
11529         * sem_ch5.adb
11530         (Find_Var): Do not consider function call in test for infinite loop
11531         warning if warnings set off for function entity.
11532         (One_Bound): Do not create a temporary for a loop bound if it is a
11533         character literal.
11534         (Analyze_Assignment): Traverse the right hand side of an assignment and
11535         mark all allocators as static coextensions.
11536         (Analyze_Assignment): Exempt assignments involving a dispatching call
11537         to a function with a controlling access result from the check requiring
11538         the target to be class-wide.
11540 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11541             Ed Schonberg  <schonberg@adacore.com>
11542             Robert Dewar  <dewar@adacore.com>
11543             Javier Miranda  <miranda@adacore.com>
11545         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
11546         chain of coextensions when an allocator serves as the root of such a
11547         chain.
11548         (Propagate_Coextensions): Remove the test for the root being an
11549         allocator.
11550         (Resolve_Allocator): Add condition to ensure that all future decoration
11551         occurs on an allocator node. Add processing and cleanup for static
11552         coextensions.
11553         (Valid_Conversion): If the operand type is the limited view of a
11554         class-wide type, use the non-limited view is available to determine
11555         legality of operation.
11556         (Ambiguous_Character): move to spec, for use elsewhere.
11557         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
11558         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
11559         character literals.
11560         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
11561         Do_Division_Check flag explicitly.
11562         (Resolve_Actuals): If the actual is of a synchronized type, and the
11563         formal is of the corresponding record type, this is a call to a
11564         primitive operation of the type, that is declared outside of the type;
11565         the actual must be unchecked-converted to the type of the actual
11566         (Resolve_Call): Kill all current values for any subprogram call if
11567         flag Suppress_Value_Tracking_On_Call is set.
11568         (Resolve_Type_Conversion): Generate error message the the operand
11569         or target of interface conversions come from a limited view.
11570         (Check_Infinite_Recursion): Ignore generated calls
11571         (Check_Allocator_Discrim_Accessibility): New procedure for checking
11572         that an expression that constrains an access discriminant in an
11573         allocator does not denote an object with a deeper level than the
11574         allocator's access type.
11575         (Resolve_Allocator): In the case of an allocator initialized by an
11576         aggregate of a discriminated type, check that associations for any
11577         access discriminants satisfy accessibility requirements by calling
11578         Check_Allocator_Discrim_Accessibility.
11579         (Resolve_Equality_Op): Handle comparisons of anonymous access to
11580         subprogram types in the same fashion as other anonymous access types.
11581         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
11582         message that is not a continuation message.
11583         (Resolve_Type_Conversion): Add missing support for conversion to
11584         interface type.
11585         (Resolve_Actuals): Introduce a transient scope around the call if an
11586         actual is a call to a function returning a limited type, because the
11587         resulting value must be finalized after the call.
11588         (Resolve_Actuals): If the call was given in prefix notations, check
11589         whether an implicit 'Access reference or implicit dereference must be
11590         added to make the actual conform to the controlling formal.
11592 2007-06-06  Robert Dewar  <dewar@adacore.com>
11593             Javier Miranda  <miranda@adacore.com>
11595         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
11596         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
11597         overriding of an inherited private subprogram now there is no need to
11598         inherit its dispatching slot and reduce the size of the dispatch table.
11599         Set_All_DT_Position now ensures that the same slot is now assigned to
11600         both entities. This is required to statically build the dispatch table.
11601         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
11602         of calling Set_All_DT_Position to re-evaluate the position of the
11603         entries in the dispatch table. Such reevaluation is not desired if
11604         the tagged type is already frozen.
11606 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11607             Gary Dismukes  <dismukes@adacore.com>
11608             Robert Dewar  <dewar@adacore.com>
11609             Javier Miranda  <miranda@adacore.com>
11611         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
11612         reference acts as an lvalue when the attribute name modifies the prefix
11613         (Is_Coextension_Root): New routine.
11614         (Mark_Static_Coextensions): New routine.
11615         (Type_Access_Level): Revise code for checking the level of the
11616         anonymous access type of a return object.
11617         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
11618         (Matches_Prefixed_View_Profile): Remove the no longer necessary
11619         retrieval of the corresponding controlling record type.
11620         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
11621         concurrent types declared within a generic as well as class wide types.
11622         Emit a mode incompatibility error whenever a protected entry or routine
11623         override an interface routine whose first parameter is not of mode
11624         "out", "in out" or access to variable.
11625         (Overrides_Synchronized_Primitive): Rename to
11626         Find_Overridden_Synchronized_Primitive.
11627         (Collect_Interface_Components): New subprogram that collects all the
11628         components of a tagged record containing tags of secondary dispatch
11629         tables.
11630         (Add_Global_Declaration): New procedure
11631         (Abstract_Interface_List): Handle properly the case of a subtype of a
11632         private extension.
11633         (Type_Access_Level): In the case of a type whose parent scope is a
11634         return statement, call Type_Access_Level recursively on the enclosing
11635         function's result type to determine the level of the return object's
11636         type.
11637         (Build_Elaboration_Entity): Build name of elaboration entity from the
11638         scope chain of the entity, rather than the unit name of the file name.
11639         (Check_Nested_Access): New procedure.
11640         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
11641         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11642         (Get_Renamed_Entity): Utility routine for performing common operation
11643         of chasing the Renamed_Entity field of an entity.
11645 2007-06-06  Robert Dewar  <dewar@adacore.com>
11647         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
11648         elaboration model
11649         (Check_A_Call): Add check for entry call which was causing blowup
11651 2007-06-06  Olivier Hainque  <hainque@adacore.com>
11653         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
11654         special code on ia64-vms to handle major incompatibilities between the
11655         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
11656         this routine with a very different set of arguments and expectations on
11657         the return value.
11659 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11661         * socket.c (__gnat_close_signalling_fd): New function.
11662         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
11663         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
11664         New supporting functions for task safe Netdb operations.
11666 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11667             Olivier Hainque  <hainque@adacore.com>
11669         * a-except-2005.ads, a-except-2005.adb
11670         (Raise_From_Controlled_Operation): New procedure in
11671         (private part of) Ada.Exceptions (standard runtime version). Used to
11672         provide informational exception message when Program_Error is raised as
11673         a result of an Adjust or Finalize operation propagating an exception.
11674         (Rmsg_28): Fix description for E.4(18) check.
11675         (Raise_Current_Excep): Call Debug_Raise_Exception just before
11676         propagation starts, to let debuggers know about the event in a reliable
11677         fashion.
11678         Take the address of E and dereference to make sure it is homed on stack
11679         and prevent the stores from being deleted, necessary for proper
11680         debugger behavior on "break exception" hits.
11681         (Local_Raise): Moved to System.Exceptions
11683         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
11684         exception message from the current occurrence and raise Program_Error
11685         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
11687 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
11688             Arnaud Charlet  <charlet@adacore.com>
11690         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
11691         lock, if needed.
11693         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
11694         priority associated to a lock.
11696         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
11697         assertion to take into account case of no abort restriction.
11698         (Initialize_Protection_Entries): Add initialization for the field
11699         New_Ceiling associated to the protected object.
11700         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
11701         needed.
11703         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11704         since this function needs to be set consistently with Update_Exception.
11706         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11707         since this function needs to be set consistently with Update_Exception.
11709         * s-taskin.ads: Update comments on
11710         Interrupt_Server_Blocked_On_Event_Flag.
11711         (Unbind_Handler): Fix handling of server_task wakeup
11712         (Server_Task): Set self's state so that Unbind_Handler can take
11713         appropriate actions.
11714         (Common_ATCB): Now use a constant from System.Parameters to determine
11715         the max size of the Task_Image field.
11717         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
11718         Initialize_Analyzer function.
11719         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
11720         take into account case of no abort restriction.
11721         ([Vulnerable_]Complete_Master): Modify assertion.
11723         * s-tataat.adb (Finalize): Use the nestable versions of
11724         Defer/Undefer_Abort.
11726         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
11728         * s-tpobop.ads: Update comments.
11730         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
11731         of locking the object manually, to avoid inconsistencies between
11732         Lock/Unlock_Entry assertions.
11734         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
11735         terminating
11736         application and System.Parameters.No_Abort is True.
11737         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
11738         (Unbind_Handler): Fix handling of server_task wakeup
11739         (Server_Task): Set self's state so that Unbind_Handler can take
11740         appropriate actions.
11742 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11744         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
11745         declarations instead of an explicit null body, for conciseness.
11747 2007-06-06  Robert Dewar  <dewar@adacore.com>
11749         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
11750         illegal aggregate and the type is still Any_Composite.
11751         (Subtypes_Statically_Match): Fix problem of empty discriminant list
11753 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11755         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
11756         to prevent subsequent expansion.
11758 2007-06-06  Robert Dewar  <dewar@adacore.com>
11760         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
11762 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11763             Robert Dewar  <dewar@adacore.com>
11765         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
11766         exceptions.
11767         (Write_Itype): Handle case of string literal subtype, which
11768         comes up in this context.
11769         (Update_Itype): when debugging expanded code, update sloc of itypes
11770         associated with defining_identifiers and ranges, for gdb use.
11771         (Sprint_Node_Actual): Add static keyword to object or exception
11772         declaration output if Is_Statically_Allocated is True.
11773         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
11774         or task body, so that the tree carries the proper Sloc information for
11775         debugging use.
11776         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
11778 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11780         * s-secsta.adb (Chunk): Ensure this object has a static size known at
11781         compile time, to avoid dynamic memory allocation
11782         (Elaboration code): Only use dynamic memory allocation when needed.
11784 2007-06-06  Quentin Ochem  <ochem@adacore.com>
11786         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
11787         "Overflow_Guard".
11788         (Stack_Analyzer): Added field "Overflow_Guard"
11789         (Task_Result): Added field "Overflow_Guard".
11790         (Index_Str): New constant.
11791         (Task_Name_Str): New constant.
11792         (Actual_Size_Str): New constant.
11793         (Pattern_Array_Element_Size): New constant.
11794         (Get_Usage_Range): New subprogram.
11795         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
11796         Now align the output.
11797         Added comments.
11798         (Initialize): Added value for Overflow_Guard.
11799         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
11800         Update the value of the overflow guard according to the actual
11801         beginning of the pattern array.
11802         (Initialize_Analyzer): Added parameter Overflow_Guard.
11803         Take this parameter into accound when computing the max size.
11804         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
11805         (Report_Result): Removed extra useless procedure.
11806         Updated call to Output_Result.
11807         Moved full computation of the Task_Result here.
11809 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11811         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
11812         Thread_Blocking_IO, always True by default, set False on a per-runtime
11813         basis.
11814         Add Windows-specific constants
11815         Add new constant Need_Netdb_Buffer.
11816         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11817         not, whether to use getXXXbyYYY_r.
11819         * gsocket.h: Add new constant Need_Netdb_Buffer.
11820         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11821         not, whether to use getXXXbyYYY_r.
11823 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
11825         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
11826         than their first call.
11827         Add type Dummy_Communication_Block used in the generation of the pre-
11828         defined dispatching primitive _disp_asynchronous_select.
11829         (Storage_Element): Put Pragma Universal_Aliasing on it.
11831 2007-06-06  Vincent Celier  <celier@adacore.com>
11833         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
11834         function.
11836         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
11837         letter if it is not followed by a '/' or a '\'.
11838         (Windows): New Boolean function
11840         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
11841         Ada 2005.
11842         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
11843         drive letter.
11844         (Containing_Directory): Raise Use_Error when the directory is a root
11845         directory.
11846         (Extension): When returning the result, use a conversion to Result_Type,
11847         not a qualification.
11849 2007-06-06  Robert Dewar  <dewar@adacore.com>
11851         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
11852         (Set_Style_Check_Options): Recognize new -gnatyg style switch
11854         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
11855         Warn_On_Non_Local_Exception to False, to turn off warnings for
11856         No_Exception_Propagation in ZFP runtime.
11857         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
11858         back-ends.
11859         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
11861 2007-06-06  Vincent Celier  <celier@adacore.com>
11863         * switch-b.adb (Scan_Binder_Switches): Add processing for new
11864         switches -R and -Z
11866         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
11867         (Scan_Make_Switches): Recognize new switch -aP
11869 2007-06-06  Matthew Gingell  <gingell@adacore.com>
11870             Jose Ruiz  <ruiz@adacore.com>
11872         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
11873         VxWorks task descriptor in the Ada run time, call a C subprogram
11874         (__gnat_get_stack_info) that extracts the required information.
11876         * sysdep.c: Back out temporary lynxos workaround.
11877         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
11878         time the stack information associated to the currently executing task.
11879         Only VxWorks systems require this function.
11881 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
11883         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
11884         add the stack bias if the offset is computed from a frame address.
11885         (__gnat_backtrace): Adjust for above change.
11887 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11889         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
11890         PE_Non_Transportable_Actual.
11891         (By_Descriptor_Last): New constant.
11892         (By_Copy_Return): Likewise.
11894 2007-06-06  Vincent Celier  <celier@adacore.com>
11896         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
11897         is.
11899         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
11900         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
11901         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
11902         Add missing comment for /OPTIMIZE=SPACE
11903         Add entry for OPTIMIZE=SPACE
11904         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
11905         Add documentation for new qualifiers corresponding to -gnatw.c/.C
11907 2007-06-06  Vincent Celier  <celier@adacore.com>
11908             Robert Dewar  <dewar@adacore.com>
11910         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
11911         -gnatw.C)
11913         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
11914         Document gnatbind switch -a
11915         (case Constructions): Document that variables declarations are allowed
11916         for previously declared variables.
11917         Fix external lib project example
11918         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
11919         Indicate that "#if not X or Y then" is not allowed in input files to
11920         gnatprep.
11921         Document gnatw.x and gnatw.X warning flags
11922         Mention -Winline switch to activate warnings when back-end inlining is
11923         ineffective.
11924         Add gnatcheck rule descriptions
11925         Describe how to use the GNAT driver to call a tool on a closure.
11926         Describe how to run project-wide checks or metrics.
11927         Document gnatbind's -R option
11928         Updated to account for Ada 2005 support
11930         * gnat_rm.texi (Case Construction): Allow variable declarations for
11931         previously declared variables.
11932         (Representation Clauses and Pragmas): Lift restriction on alignment
11933         clauses for record types.
11934         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
11935         Document No_Exception_Propagation restriction
11936         Document No_Body pragma
11937         Updated to account for Ada 2005 support; corrected some typos
11938         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
11940         * gnat-style.texi: Make it clear that we never use mode IN for
11941         procedures or functions
11943         * ug_words: Add entries for -gnatw.x and -gnatw.X
11944         Add entries for -gnatw.c/.C
11946 2007-06-06  Pascal Obry  <obry@adacore.com>
11947             Vincent Celier  <celier@adacore.com>
11949         * makegpr.adb (Add_Archive_Path): Use untouched object and library
11950         dirs and library name.
11951         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
11952         comments.
11953         (Build_Library): Idem.
11954         (Compile_Individual_Sources): Idem.
11955         (Compile_Link_With_Gnatmake): Idem.
11956         (Compile_Sources): Idem.
11957         (Get_Imported_Directories): Idem.
11958         (Link_Executables): Idem. Same change for the executable dir.
11959         (Check_Compilation_Needed): C_Source_Path new variable containing
11960         the canonical form of Source_Path to check against the source names
11961         in the dependency file.
11962         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
11963         verbose mode, display the name of the object directory we're changing
11964         to.
11965         (Saved_Switches): New name of table X_Switches
11966         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
11967         (Usage): New line for switch -aP
11968         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
11969         testing if a directory should be added to the search path.
11971 2007-06-06  Javier Miranda  <miranda@adacore.com>
11973         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
11974         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
11975         declaration after freezing point of all its associated tagged types;
11976         otherwise such types are frozen too early.
11978 2007-06-06  Robert Dewar  <dewar@adacore.com>
11980         * a-reatim.adb: Documentation addition
11982         * g-cgideb.adb: Minor code reorganization
11984         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
11985         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
11986         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
11988         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
11989         function.  Change name New_Scope to Push_Scope
11990         (Get_Debug_Flag_K): Remove unused obsolete function.
11992         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
11993         Push_Scope.
11995         * makeusg.adb: Update Copyright notice
11996         Add line for switch -aP
11998         * makeusg.adb: Fix wording of some usage messages
12000         * s-assert.adb (Raise_Assert_Failure): Add call to
12001         Debug_Raise_Assert_Failure.
12003         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
12004         (2, Standard'Alignment) for compatibility with AAMP (where alignment
12005         is restricted to 1).
12007         * s-wchjis.adb: Remove use of System.Pure_Exceptions
12009         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
12010         node location to No_Location when we're not debugging the expanded
12011         code.
12013 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
12015         * misc.c (enumerate_modes): Consider log2_b to always be one.
12017 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
12019         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
12021 2007-05-02  Pascal Obry  <obry@adacore.com>
12023         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
12024         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
12025         encoding support of Stream_IO.
12026         (Write_Unit): Idem.
12028         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
12029         filename and corresponding encoding to match the OS requirement.
12030         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
12031         routine will fail on specific devices like CON: AUX: ...
12033         PR ada/29856: Add missing braces
12035 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12037         PR ada/31660
12038         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
12040 2007-04-21  Jan Hubicka  <jh@suse.cz>
12042         * misc.c (gnat_expand_body): Don't call target for destructors,
12043         avoid redundant check on syntax errors.
12045 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12047         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
12048         instead of checking GIMPLE_STMT_P in chain_next.
12050 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
12052         PR ada/31576
12053         * system-linux-alpha.ads: Disable constant condition warning for the
12054         Default_Bit_Order variable.
12055         * system-linux-s390.ads: Likewise.
12056         * system-linux-s390x.ads: Likewise.
12057         * system-linux-sparc.ads: Likewise.
12059 2007-04-06  Javier Miranda  <miranda@adacore.com>
12060             Matt Heaney  <heaney@adacore.com>
12061             Robert Dewar  <dewar@adacore.com>
12063         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
12064         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
12065         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
12066         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
12067         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
12068         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
12069         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
12070         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
12071         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
12072         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
12073         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
12074         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
12075         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
12076         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
12077         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
12078         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
12079         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
12080         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
12081         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
12082         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
12083         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
12084         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
12085         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
12086         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
12087         s-taprop-tru64.adb, s-taprop-irix.adb,
12088         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
12089         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
12090         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
12091         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
12092         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
12093         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
12094         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
12095         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
12096         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
12097         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
12098         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
12099         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
12100         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
12101         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
12102         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
12103         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
12104         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
12105         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
12106         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
12107         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
12108         access types.
12109         Update documentation.
12110         Minor rewording.
12112 2007-04-06  Robert Dewar  <dewar@adacore.com>
12114         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12115         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
12116         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
12117         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
12118         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
12119         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
12120         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
12121         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
12122         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
12123         system-hpux-ia64.ads, targparm.adb,
12124         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
12126         * system.ads: Move Functions_Return_By_DSP to obsolete section,
12127         kept for bootstrap purposes only.
12129 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
12131         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12132         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
12133         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
12134         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
12136 2007-04-06  Robert Dewar  <dewar@adacore.com>
12138         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
12139         (Local_Raise): New dummy procedure called when a raise is converted
12140         to a local goto. Used for debugger to detect that the exception
12141         is raised.
12143         * debug.adb: Document new d.g flag (expand local raise statements to
12144         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
12146         * exp_sel.adb: Use Make_Implicit_Exception_Handler
12148         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
12149         suppress warnings for unused handlers.
12150         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
12151         warnings for raise statements not handled locally.
12152         (Get_RT_Exception_Entity): New function
12153         (Get_Local_Call_Entity): New function
12154         (Find_Local_Handler): New function
12155         (Warn_If_No_Propagation): New procedure
12156         (Expand_At_End_Handler): Call Make_Implicit_Handler
12157         (Expand_Exception_Handlers): Major additions to deal with local handlers
12158         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
12159         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
12160         for local raise
12162         * exp_ch11.ads (Get_RT_Exception_Entity): New function
12163         (Get_Local_Call_Entity): New function
12165         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
12166         of restrictions that the binder will never suggest adding.
12168         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
12169         to No_Elist.
12171         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
12172         be with'ed in the presence of pragma Restriction
12173         (No_Exception_Propagation).
12175         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
12177         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
12178         parameter, then the handler is not a suitable target for a local raise,
12179         and this is a violation of restriction No_Exception_Propagation.
12180         (Analyze_Handled_Statements): Analyze choice parameters in exception
12181         handlers before analyzing statement sequence (needed for proper
12182         detection of local raise statements).
12183         (Analyze_Raise_Statement): Reraise statement is a violation of the
12184         No_Exception_Propagation restriction.
12186         * s-rident.ads: Add new restriction No_Exception_Propagation
12188         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
12189         function, like Make_Exception_Handler but sets Local_Raise_Statements
12190         to No_List.
12191         (Add_Unique_Serial_Number): Deal with case where this is called during
12192         processing of configuration pragmas.
12194 2007-04-06  Thomas Quinot  <quinot@adacore.com>
12195             Pat Rogers  <rogers@adacore.com>
12196             Pascal Obry  <obry@adacore.com>
12198         * g-stsifd-sockets.adb: New file.
12200         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
12201         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
12202         g-socthi-vms.adb: Move signalling
12203         fd management to a nested package, so that they can conveniently be
12204         moved to a subunit that is shared across Windows, VMS, and VxWorks
12205         (Ada implementation) or completed with imported bodies from socket.c
12206         (UNIX case).
12207         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
12208         subprograms.
12209         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
12210         the signalling file descriptor.
12211         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
12212         signalling file descriptor.
12213         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
12214         instead of creating a pair of sockets for signalling here.
12216         * g-socthi.adb: Ditto.
12217         Set the runtime process to ignore SIGPIPEs on platforms that support
12218         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12220         * g-socthi-mingw.adb: Ditto.
12221         (WS_Version): Use Windows 2.2.
12222         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12224         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
12225         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12227         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
12228         added GNAT byte swapping facility
12229         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
12231         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
12233         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
12234         New subprograms.
12235         (__gnat_create_signalling_fds): New subprogram.
12236         Set the runtime process to ignore SIGPIPEs on platforms that support
12237         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12239 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
12240             Vincent Celier  <celier@adacore.com>
12242         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
12243         New version of Ada.Calendar which supports the new upper bound of Ada
12244         time (2399-12-31 86_399.999999999).
12245         The following modifications have been made to the package:
12246          - New representation of time as count of nanoseconds since the start of
12247            Ada time (1901-1-1 0.0).
12248          - Target independent Split and Time_Of routines which service both
12249            Ada 95 and Ada 2005 code.
12250          - Target independent interface to the Ada 2005 children of Calendar.
12251          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
12252          - Handling of non-leap centenial years.
12253          - Updated clock function.
12254          - Updated arithmetic and comparison operators.
12256         * a-caldel.adb (To_Duration): Add call to target independent routine in
12257         Ada.Calendar to handle the conversion of time to duration.
12259         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
12260         (UTC Offset).
12261         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
12262         set off to 0.
12263         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
12264         targets do not have a natural time zone, GMT is used as a default.
12265         (__gnat_get_task_options): New.
12267         * a-direct.adb (Modification_Time): Add with and use clauses for
12268         Ada.Calendar and Ada.
12269         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
12270         since it is no longer needed.
12271         (Duration_To_Time): Removed.
12272         (OS_Time_To_Long_Integer): Removed.
12273         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
12274         Formatting Time_Of routines which automatically handle time zones,
12275         buffer periods and leap seconds.
12277         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
12278         target independent routines in Ada.Calendar.
12280         * a-calfor.ads, a-calfor.adb: 
12281         Code cleanup and addition of validity checks in various routines.
12282         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
12283         Ada.Calendar.
12285         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
12286         independent routine in Ada.Calendar.
12288 2007-04-06  Olivier Hainque  <hainque@adacore.com>
12290         * adaint.c: 
12291         (convert_addresses): Adjust prototype and dummy definition to expect an
12292          extra file_name argument.
12294         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
12295         filling the now expected file_name argument with the appropriate
12296         argv[0] expansion.
12297         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
12298         (tracebk): Array of void * instead of char *, corresponding to what
12299          convert_addresses expects.
12300         (exename): New static global, to hold the executable file name to be
12301         used in all convert_addresses invocations.
12302         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
12303         change.
12304         (__gnat_gmem_a2l_initialize): Resolve exename.
12305         (__gnat_convert_addresses): Use exename as the convert_addresses
12306         file_name argument.
12308         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
12309         "convert_addresses", now expecting a filename argument. Import the
12310         necessary entities to compute the filename to use and pass it to
12311         convert_addresses.
12313 2007-04-06  Matt Gingell  <gingell@adacore.com>
12315         * system-aix.ads: Back out previous change.
12316         (Functions_Return_By_DSP): Removed
12318 2007-04-06  Pascal Obry  <obry@adacore.com>
12320         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
12321         or the monotonic used by Ada.Real_Time) to compute the sleep duration
12322         on Windows.
12324 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
12326         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
12327         function. Its value changes in different VxWorks versions, and it is
12328         now handled by the function __gnat_get_task_options.
12330         * s-taprop-vxworks.adb (Create_Task): Call the function
12331         __gnat_get_task_options to get the required options for creating a task.
12333 2007-04-06  Pascal Obry  <obry@adacore.com>
12334             Thomas Quinot  <quinot@adacore.com>
12336         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
12337         dealing with filename.
12338         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
12339         filename from a standard string to a wide-string depending on the
12340         encoding value.
12341         (__gnat_freopen): Idem.
12342         (__gnat_current_time): New function (wrapper for time(3) standard C
12343         function).
12345         * g-os_lib.ads (Current_Time): New function. Returns the current
12346         system time as an OS_Time value.
12348         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
12349         (Monotonic_Clock): Same.
12351 2007-04-06  Quentin Ochem  <ochem@adacore.com>
12353         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
12354         not on a natural.
12355         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
12357 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
12359         * a-retide.adb: Add elaboration code to ensure that the tasking run
12360         time is initialized when using delay operations even when no task is
12361         created.
12363 2007-04-06  Javier Miranda  <miranda@adacore.com>
12365         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
12366         component Num_Prim_Ops.
12367         (Set_Num_Prim_Ops): Removed.
12368         Remove all the assertions because all the routines of this
12369         package are inline always.
12370         (Get_Offset_Index): Add support to primary dispatch tables.
12371         Move the documentation about the dispatch table to a-tags.ads
12372         (Set_External_Tag): Removed
12373         (Inherit_TSD): Removed.
12374         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
12375         moved to a-tags.ads
12376         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
12377         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
12378         of the TSD field "Table" because this field has been renamed to
12379         "Ifaces_Table".
12380         (Inherit_CPP_DT): Removed.
12381         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
12382         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
12383         declarations have been moved to a-tags.ads
12384         (Check_Size): Removed.
12385         (Expanded_Name): Updated to get access to the new field of TSD
12386         containing the address of the expanded name.
12387         (Get_Access_Level/Set_Access_Level): Removed.
12388         (Get_Predefined_Prim_Op_Address): Removed.
12389         (Set_Predefined_Prim_Op_Address): Removed.
12390         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
12391         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
12392         (Set_Expanded_Name): Removed.
12393         (Inherit_DT): Removed.
12394         (Inherit_CPP_DT): Removed.
12395         (Set_RC_Offset): Removed.
12396         (Set_TSD): Removed.
12397         (Base_Address): New function that displaces "this" to point to the base
12398         of the object (that is, to point to the primary tag of the object).
12400 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12401             Javier Miranda  <miranda@adacore.com>
12403         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
12404         anonymous access component, do not create a master_id if type already
12405         has one, as may happen if the type is a subcomponent of a packed array
12406         type.
12407         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
12408         Initialize_Tag): Remove code associated with the old CPP pragmas.
12409         CPP_Virtual and CPP_Vtable are no longer supported.
12410         (Build_Offset_To_Top_Internal): Add support for concurrent record types
12411         (Build_Offset_To_Top_Functions): Add support for concurrent record types
12412         (Freeze_Record_Type): Remove call to
12413         Init_Predefined_Interface_Primitives.
12414         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
12415         code required to initialize the tags of the secondary dispatch tables.
12416         This leaves the algoritm more clear.
12417         (Init_Secondary_Tags): Add support for concurrent record types
12418         (Make_Predefined_Primitive_Specs): Code cleanup.
12419         (Predefined_Primitive_Bodies): Code cleanup.
12420         (Build_Master_Renaming): New local subprogram.
12421         (Expand_N_Full_Type_Declaration): Build the master_id associated with
12422         anonymous access to task type components.
12423         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
12424         subtype indication are resolved during analysis, and must not be done
12425         here.
12426         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
12428 2007-04-06  Geert Bosch  <bosch@adacore.com>
12429             Ed Schonberg  <schonberg@adacore.com>
12430             Javier Miranda  <miranda@adacore.com>
12431             Bob Duff  <duff@adacore.com>
12433         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
12434         for conversion of a Float_Type'Truncation to integer.
12436         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
12437         check if a node is an attribute that can be handled directly by the
12438         back end.
12439         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
12440         attributes that can be handled directly by the back end.
12441         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
12442         use new predicate Is_Access_Protected_Subprogram_Type.
12443         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
12444         and Unchecked_Union if it is generated as part of the default  Output
12445         procedure for a type with default discriminants.
12446         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
12447         if we are compiling under restriction No_Dispatching_Calls.
12448         (Constrained): Use Underlying_Type, in case the type is private without
12449         discriminants, but the full type has discriminants.
12450         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
12451         call to Build_Get_Access_Level.
12452         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
12453         interface objects requires a call to the run-time subprogram that
12454         returns the base address of the object.
12455         (Valid_Conversion): Improve error message on illegal attempt to store
12456         an anonymous access to subprogram value into a record component.
12458         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
12459         null".
12460         (Simplify_Type_Conversion): New procedure that performs simplification
12461         of Int_Type (Float_Type'Truncation (X)).
12462         (Resolve_Type_Conversion): Call above procedure after resolving operand
12463         and before performing checks. This replaces the existing ineffective
12464         code in Exp_Ch4.
12465         (Set_String_Literal_Subtype): When creating the internal static lower
12466         bound subtype for a string literal, use a newly created copy of the
12467         subtree representing the lower bound.
12468         (Resolve_Call): Exclude build-in-place function calls from transient
12469         scope treatment. Update comments to describe this exception.
12470         (Resolve_Equality_Op): In case of dispatching call check violation of
12471         restriction No_Dispatching_Calls.
12472         (Resolve_Call): If the call returns an array, the context imposes the
12473         component type of the array, and the function has one non-defaulted
12474         parameter, rewrite the call as the indexing of a call with a single
12475         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
12476         in prefix form.
12477         (Resolve_Actuals): If an actual is an allocator for an access parameter,
12478         the master of the created object is the innermost enclosing statement.
12479         (Remove_Conversions): For a binary operator, check if type of second
12480         formal is numeric, to check if an abstract interpretation is present
12481         in the case of exponentiation as well.
12483 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12484             Bob Duff  <duff@adacore.com>
12486         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
12487         copying a parameter list in a call, set properly the First_Named_Formal
12488         and Next_Named_Formal fields in the new list and in the enclosing call.
12489         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
12490         names, to ease typing in the debugger. Improve comments.
12491         (Watch_Node): New variable, intended to be set in the debugger.
12492         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
12493         called when the watched node is created.
12494         (New_Node_Debugging_Output): Combined version of local procedures
12495         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
12496         with a parameter so that conditional breakpoints like "if Node = 12345"
12497         work.
12498         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
12499         Add Elist1 function
12501 2007-04-06  Thomas Quinot  <quinot@adacore.com>
12502             Ed Schonberg  <schonberg@adacore.com>
12503             Gary Dismukes  <dismukes@adacore.com>
12505         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
12506         required for a conversion between two access-to-unconstrained-array
12507         types.
12508         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
12509         to discriminant constraints on discriminant objects. This rule must
12510         apply as well to discriminants of protected types in private components.
12511         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
12512         object of a null-excluding access type then don't require the
12513         the object declaration to have an expression and don't emit a
12514         run-time check.
12516 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
12517             Eric Botcazou  <botcazou@adacore.com>
12519         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
12520         and made constant.
12522         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
12523         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
12524         carry any.
12526         * fe.h (Compiler_Abort): Add third parameter.
12528         * misc.c (internal_error_function): Build third argument from current
12529         input location and pass it to Compiler_Abort.
12531 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
12533         * cstand.adb (Create_Standard): When the target's storage unit size is
12534         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
12535         Standard_String.
12537 2007-04-06  Nicolas Roche  <roche@adacore.com>
12539         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
12540         absolute path can have the following form: device:/a/b. In this case
12541         '/' should be inserted between the path and the filename.
12543 2007-04-06  Olivier Hainque  <hainque@adacore.com>
12544             Eric Botcazou  <botcazou@adacore.com>
12546         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
12547         VAR_DECL to a CONST_DECL we make for a public constant when we know the
12548         corresponding definition has created the so made visible variable.
12549         Handle anonymous access to protected subprogram.
12550         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
12551         object with an address clause volatile.  Re-enable original fix.
12552         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
12553         too.
12554         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
12555         associated with either the Equivalent or Root type, instead of the
12556         naked type node.
12557         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
12558         subtree for every field of a global record type.
12559         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
12560         discriminants, invoke again variable_size on its newly computed sizes.
12562 2007-04-06  Robert Dewar  <dewar@adacore.com>
12563             Thomas Quinot  <quinot@adacore.com>
12564             Ed Schonberg  <schonberg@adacore.com>
12565             Bob Duff  <duff@adacore.com>
12567         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
12568         (Next_Component_Or_Discriminant): New function and procedure
12569         (First_Index, First_Literal, Master_Id,
12570         Set_First_Index, Set_First_Literal, Set_Master_Id):
12571         Add missing Ekind assertions.
12572         (Is_Access_Protected_Subprogram_Type): New predicate.
12573         (Has_RACW): New entity flag, set on package entities to indicate that
12574         the package contains the declaration of a remote accecss-to-classwide
12575         type.
12576         (E_Return_Statement): This node type has the Finalization_Chain_Entity
12577         attribute, in case the result type has controlled parts.
12578         (Requires_Overriding): Add this new flag, because "requires
12579         overriding" is subtly different from "is abstract" (see AI-228).
12580         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
12581         Is_Abstract_Type. Make sure these are called only when appropriate.
12582         (Has_Pragma_Unreferenced_Objects): New flag
12584         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
12585         class-wide, the tag of the right-hand side must be an exact match, not
12586         an ancestor of that of the object on left-hand side.
12587         (Move_Activation_Chain): New procedure to create the call to
12588         System.Tasking.Stages.Move_Activation_Chain.
12589         (Expand_N_Extended_Return_Statement): Generate code to call
12590         System.Finalization_Implementation.Move_Final_List at the end of a
12591         return statement if the function's result type has controlled parts.
12592         Move asserts to Build_In_Place_Formal.
12593         (Move_Final_List): New function to create the call statement.
12594         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
12595         tagged type, replace generation of call to the run-time subprogram
12596         CW_Membership by call to Build_CW_Membership.
12597         (Expand_N_Return_Statement): Replace generation of call to the run-time
12598         subprogram Get_Access_Level by call to Build_Get_Access_Level.
12599         (Expand_N_Simple_Function_Return): Replace generation of call to the
12600         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
12602         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
12603         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
12604         access to protected operations.
12605         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
12606         master and chain actual parameters to a build-in-place function call
12607         involving tasks.
12608         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
12609         statement.
12610         (Make_Build_In_Place_Call_In_Allocator,
12611         Make_Build_In_Place_Call_In_Anonymous_Context,
12612         Make_Build_In_Place_Call_In_Assignment,
12613         Make_Build_In_Place_Call_In_Object_Declaration): Call
12614         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
12615         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
12616         stubbed procedure with a null body, replace the call with a null
12617         statement without using the full inlining machinery, for efficiency
12618         and to avoid invalid values in source file table entries.
12620         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
12621         renamings of calls to build-in-place functions.
12623         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
12624         provides the functionality of RTE_Available to record components.
12625         (RTU_Entity): The function Entity has been renamed to RTU_Entity
12626         to avoid undesired overloading.
12627         (Entity): New subprogram that returns the entity for the referened
12628         unit. If this unit has not been loaded, it returns Empty.
12629         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
12630         Remove no longer used entities.
12631         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
12632         (RE_Type_Specific_Data): New entity.
12633         (RE_Move_Any_Value): New entity.
12634         (RE_TA_A, RE_Get_Any_Type): New entities.
12635         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
12636          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
12637          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
12638         (Entity): New subprogram that returns the entity for the referened
12639         unit. If this unit has not been loaded, it returns Empty.
12640         (RTE): Addition of a new formal that extends the search to the scopes
12641         of the record types found in the chain of the package.
12643         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
12644         "abstract subprograms must be visible" message, whether or not the type
12645         is an interface; that is, remove the special case for interface types.
12646         (Analyze_Function_Return): Remove error message "return of task objects
12647         is not yet implemented" because this is now implemented.
12648         (Create_Extra_Formals): Add the extra master and activation chain
12649         formals in case the result type has tasks.
12650         Remove error message "return of limited controlled objects is not yet
12651         implemented".
12652         (Create_Extra_Formals): Add the extra caller's finalization list formal
12653         in case the result type has controlled parts.
12654         (Process_Formals): In case of access formal types there is no need
12655         to continue with the analysis of the formals if we already notified
12656         errors.
12657         (Check_Overriding_Indicator): Add code to check overriding of predefined
12658         operators.
12659         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
12660         flags for formals that do not require them,.
12661         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
12662         hidden entity is use visible or directly visible.
12663         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
12664         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
12665         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
12666         New_Overloaded_Entity): Split Is_Abstract flag into
12667         Is_Abstract_Subprogram and Is_Abstract_Type.
12669         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
12670         a return statement's finalization list to the caller's list, used for
12671         build-in-place functions with result type with controlled parts.
12672         Remove no longer used entities.
12674         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
12675         longer needed, because the full type is now limited, and therefore a
12676         pass-by-reference type.
12677         (Foreign_Task_Level): New constant.
12679         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
12680         move tasks from the activation chain belonging to a return statement to
12681         the one passed in by the caller, and update the master to the one
12682         passed in by the caller.
12683         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
12684         of unactivated tasks, so we don't kill the ones that are being returned
12685         by a build-in-place function.
12686         (Create_Task): Ignore AI-280 for foreign threads.
12688 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12689             Robert Dewar  <dewar@adacore.com>
12690             Bob Duff  <duff@adacore.com>
12691             Gary Dismukes  <dismukes@adacore.com>
12693         * errout.adb (Unwind_Internal_Type): Use predicate
12694         Is_Access__Protected_Subprogram_Type.
12696         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
12697         (Freeze_Entity, packed array case): Do not override explicitly set
12698         alignment and size clauses.
12699         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
12700         the enclosing subprogram is a child unit body that acts as a spec.
12701         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
12702         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
12703         Remove all code for DSP option
12705         * layout.adb (Layout_Record_Type): Use First/
12706         Next_Component_Or_Discriminant
12707         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
12708         to handle properly the anonymous access case.
12710         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
12711         for all access attributes, because overload resolution should work the
12712         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
12713         causes the error message for the ambiguous "X'Access = Y'Access" and
12714         "X'Unrestricted_Access = Y'Access" and so forth to match.
12715         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
12716         now that anonymous access to protected operations have their own kind.
12717         (Resolve_Attribute): In case of dispatching call check the violation of
12718         restriction No_Dispatching_Calls.
12719         (Check_Array_Type): Check new -gnatyA array index style option
12721         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
12722         attempt to derive from a synchronized tagged type.
12723         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
12724         type, inherit the class-wide type already created, because it may
12725         already have been used in a self-referential anonymous access component.
12726         (Mentions_T): Recognize self-referential anonymous access components
12727         that use (a subtype of) the class-wide type of the enclosing type.
12728         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
12729         Derived_Type for Prev formal on call to
12730         Check_Anonymous_Access_Components rather than Empty.
12731         (Make_Incomplete_Type_Declaration): Add test for case where the type has
12732         a record extension in deciding whether to create a class-wide type,
12733         rather than just checking Tagged_Present.
12734         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
12735         to stand-alone object declarations as well as component declarations.
12736         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
12737         prevent accidental overwriting when enclosing package appears in
12738         a limited_with_clause.
12739         (Array_Type_Declaration): If the component type is an anonymous access,
12740         the associated_node for the itype is the type declaration itself.
12741         (Add_Interface_Tag_Components): Modified to support concurrent
12742         types with abstract interfaces.
12743         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
12744         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
12745         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
12746         to complete the decoration of synchronized interface types. Add also
12747         a call to Check_Abstract_Interfaces to verify the ARM rules.
12748         (Derive_Interface_Subprograms): Modified to support concurrent types
12749         with abstract interfaces.
12750         (Analyze_Subtype_Indication): Resolve the range with the given subtype
12751         mark, rather than delaying the full resolution depending on context.
12752         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
12753         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
12754         Array_Type_Declaration,Build_Derived_Record_Type,
12755         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
12756         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
12757         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
12758         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
12759         called only when appropriate.
12760         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
12761         to private type.
12762         (Analyze_Subtype_Declaration): For an access subtype declaration, create
12763         an itype reference for the anonymous designated subtype, to prevent
12764         scope anonmalies in gigi.
12765         (Build_Itype_Reference): New utility, to simplify construction of such
12766         references.
12768 2007-04-06  Vincent Celier  <celier@adacore.com>
12770         * errutil.adb (Initialize): Initialize warnings table, if all warnings
12771         are suppressed, supply an initial dummy entry covering all possible
12772         source locations.
12774         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
12775         and start with only one, such as "-RTS=none".
12776         (Collect_Arguments): Do not check for sources outside of projects.
12777         Do not collect arguments if project is externally built.
12778         (Compile_Sources): Do nothing, not even check if the source is up to
12779         date, if its project is externally built.
12780         (Compile): When compiling a predefined source, add -gnatpg
12781         as the second switch, after -c.
12782         (Compile_Sources): Allow compilation of Annex J renames without -a
12783         (Is_In_Object_Directory): Check if the ALI file is in the object
12784         even if there is no project extension.
12785         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
12786         gnatbind if the ALI file effectively exists.
12787         (Initialize): Add the directory where gnatmake is invoked in front of
12788         the path if it is invoked from a bin directory, even without directory
12789         information, so that the correct GNAT tools will be used when spawned
12790         without directory information.
12792         * makeusg.adb: Change switch -S to -eS
12793         Add lines for new switches -we, -wn and -ws
12794         Add line for new switch -p
12796         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
12797         Treat_As_Error and there are warnings.
12799         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
12800         -gnatww Change gnatmake switch -S to -eS
12801         (Scan_Make_Switches): Code reorganisation. Process separately multi
12802         character switches and single character switches.
12803         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
12804         False when switch is not recognized by gnatmake.
12805         (Scan_Make_Switches): Set Setup_Projects True when -p or
12806         --create-missing-dirs is specified.
12808         * fname.adb (Is_Predefined_File_Name): Return True for annex J
12809         renamings Calendar, Machine_Code, Unchecked_Conversion and
12810         Unchecked_Deallocation only when Renamings_Included is True.
12812         * par.adb: Allow library units Calendar, Machine_Code,
12813         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
12814         when -gnatg is not specified.
12815         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
12816         there is no need to generate always a record_definition_node in case
12817         of synchronized interface types.
12818         (SIS_Entry_Active): Initialize global variable to False
12819         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
12820         indicate cases where AI-447 says "not null" is legal.
12822         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
12824         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
12825         files with with several lines starting with the object fileb name.
12826         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
12827         is specified.
12828         (Initialize): Add the directory where gprmake is invoked in front of the
12829         path, if it is invoked from a bin directory or with directory
12830         information, so that the correct GNAT tools will be used when invoked
12831         directly.
12832         (Check_Compilation_Needed): Process correctly backslashes on Windows.
12834         * vms_data.ads: Update switches/qualifiers
12836 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12837             Thomas Quinot  <quinot@adacore.com>
12839         * exp_aggr.adb:
12840         If the array component is a discriminated record, the array aggregate
12841         is non-static even if the component is given by an aggregate with
12842         static components.
12843         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
12844         (Convert_Aggr_In_Allocator): If the allocator is for an access
12845         discriminant and the type is controlled. do not place on a finalization
12846         list at this point. The proper list will be determined from the
12847         enclosing object.
12848         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
12849         initialize record controller if needed, before the components, to ensure
12850         that they are properly finalized.
12851         (Build_Record_Aggr_Code): For the case of an array component that has a
12852         corresponding array aggregate in the record aggregate, perform sliding
12853         if required.
12855 2007-04-06  Javier Miranda  <miranda@adacore.com>
12856             Gary Dismukes  <dismukes@adacore.com>
12857             Ed Schonberg  <schonberg@adacore.com>
12859         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
12860         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
12862         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
12863         accessibility on class-wide allocators if the allocator occurs at the
12864         same scope level as the allocator's type. The check is guaranteed to
12865         succeed in that case, even when the expression originates from a
12866         parameter of the containing subprogram.
12867         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
12868         under No_Dispatching_Calls restriction. During the semantic analysis
12869         we already notified such violation.
12870         (Tagged_Membership): Constant folding. There is no need to check
12871         the tag at run-time if the type of the right operand is non
12872         class-wide abstract.
12873         Replace call to Is_Ancestor by call to Is_Parent
12874         to support concurrent types with interface types.
12875         (Expand_N_Allocator): Add an assertion associated with the generation
12876         of the master_id.
12877         (Expand_N_Slice): Do not enable range check to nodes associated
12878         with the frontend expansion of the dispatch table.
12879         (Is_Local_Access_Discriminant): Subsidiary function to
12880         Expand_N_Allocator.
12881         (Tagged_Membership): Replace generation of call to the run-time
12882         subprogram CW_Membership by call to Build_CW_Membership.
12883         (Expand_Allocator_Expression): Replace generation of call to the
12884         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
12886         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
12887         initialize most the TSD components by means of an aggregate.
12888         Modify the declaration of the object containing the TSD
12889         because we now expand code that has a higher level of abstraction.
12890         The TSD has a discriminant containing the Inheritance Depth Level,
12891         value that is used in the membership test but also to fix the size
12892         of the table of ancestors.
12893         (Expand_Interface_Conversion): Insert function body at the closest place
12894         to the conversion expression, to prevent access-before-elaboration
12895         errors in the backend.
12896         Code improved to reduce the size of the dispatch table if
12897         compiling under restriction No_Dispatching_Calls plus code cleanup.
12898         Code reorganization plus removal of calls to Set_Num_Prim_Ops
12899         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
12900         (Expand_Dispatching_Call): Minor code reorganization plus addition of
12901         code to return immediately if compiling under No_Dispatching_Calls
12902         restriction.
12903         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
12904         CPP_Virtual and CPP_Vtable are no longer supported.
12905         (Expand_Interface_Conversion): Add missing support for interface type
12906         derivations.
12907         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
12908         Is_Parent to support concurrent types with interfaces.
12909         (Init_Predefined_Interface_Primitives): Removed.
12910         (Make_Secondary_DT): Modified to support concurrent record types.
12911         (Set_All_DT_Position): Modified to support concurrent record types.
12912         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
12913         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
12914         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
12915         with CW_Membership.
12916         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
12917         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
12918         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
12919         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
12920         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
12921         (Expand_Dispatching_Call): Replace generation of call to the run-time
12922         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
12923         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
12924         Address.
12925         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
12926         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
12927         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
12928         Build_Set_Prim_Op_Address.
12929         (Get_Remotely_Callable): Subprogram removed.
12930         (Init_Predefined_Interface_Primitives): Replace generation of call to
12931         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
12932         Prims.
12934         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
12935         First (Parameter_Associations ()) with the call to First_Actual that
12936         returns an actual parameter expression for both named and positional
12937         associations.
12939         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
12940         check violation of restriction No_Dispatching_Calls.
12941         (Check_Controlling_Type): A formal of a tagged incomplete type is a
12942         controlling argument.
12944         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
12945         First/Next_Component_Or_Discriminant
12946         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
12947         (Find_Implemented_Interface): Removed. All the calls to this subprogram
12948         specify Any_Limited_Interface, and this functionality is already
12949         provided by the function Has_Abstract_Interfaces.
12950         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
12951         support concurrent types implementing interfaces.
12952         (Find_Implemented_Interface): Removed. All the calls to this subprogram
12953         specify kind Any_Limited_Interface, and this functionality is already
12954         provided by the function Has_Abstract_Interfaces.
12955         (Remove_Side_Effects): replace Controlled_Type by
12956         CW_Or_Controlled_Type whenever the issue is related to
12957         using or not the secondary stack.
12959         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
12960         P_Interface_Type_Definition to fulfill the new interface (the formal
12961         Is_Synchronized is no longer required).
12963         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
12964         Update dependencies.
12966         * exp_atag.ads, exp_atag.adb: New file
12968 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12969             Bob Duff  <duff@adacore.com>
12970             Cyrille Comar  <comar@adacore.com>
12972         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
12973         anonymous, use finalization list of enclosing dynamic scope.
12974         (Expand_N_Package_Declaration): For a library package declaration
12975         without a corresponding body, generate RACW subprogram bodies in the
12976         spec (just as we do for the task activation call).
12977         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
12978         Is_Abstract_Type. Make sure these are called only when appropriate.
12979         Remove all code for DSP option
12980         (CW_Or_Controlled_Type): new subprogram.
12982 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
12983             Ed Schonberg  <schonberg@adacore.com>
12984             Gary Dismukes  <dismukes@adacore.com>
12986         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
12987         parameter. If it is set to true, return a result capped according to
12988         the global upper bound for the index of an entry family.
12989         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
12990         (Build_Find_Body_Index): Adjust for above change.
12991         (Entry_Index_Expression): Likewise.
12992         (Is_Potentially_Large_Family): New function extracted from...
12993         (Collect_Entry_Families): ...here. Call it to detect whether the family
12994         is potentially large.
12995         (Build_Entry_Count_Expression): If the family is potentially large, call
12996         Family_Size with 'Cap' set to true.
12997         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
12998         a protected version of an operation declared in the private part of
12999         a protected object, because they may be invoked through a callback.
13000         (Set_Privals): If the type of a private component is an anonymous access
13001         type, do not create a new itype for each protected body.
13002         If the body of a protected operation creates
13003         controlled types (including allocators for class-widetypes), the
13004         body of the corresponding protected subprogram must include a
13005         finalization list.
13006         (Build_Activation_Chain_Entity): Build the chain entity for extended
13007         return statements.
13008         (Type_Conformant_Parameters): Use common predicate Conforming_Types
13009         to determine whether operation overrides an inherited primitive.
13010         (Build_Wrapper_Spec): Add code to examine the parents while looking
13011         for a possible overriding candidate.
13012         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
13013         hold an actual parameter value since its initialization is separated
13014         from the the declaration. Prevents errors on null-excluding access
13015         formals.
13017 2007-04-06  Thomas Quinot  <quinot@adacore.com>
13018             Pablo Oliveira  <oliveira@adacore.com>
13020         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
13021         Do an Unchecked_Conversion to handle the passage from the Underlying
13022         Type to the Base Type when calling Build_To_Any_Call and
13023         Build_From_Any_Call.
13024         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
13025         E_Constant, depending upon Variable formal.
13026         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13027         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
13028         parameter that requires an extra constrained parameter, declare
13029         temporary for actual as a variable, not a constant.
13030         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
13031         the unit being compiled is the one that contains the stub type.
13032         Change primitive operation name for the RACW associated with a RAS
13033         from Call to _Call so it cannot clash with any legal identifier.
13034         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
13035         Is_RAS.
13036         (Append_RACW_Bodies): New subprogram.
13037         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
13038         Add_Receiving_Stubs_To_Declarations functions.
13039         When expanding a package body, this list correspond to the
13040         statements in the HSS at the end of the pacakge.
13041         When expanding a package spec, this list correspond to the
13042         spec declarations.
13043         (Add_Receiving_Stubs_To_Declarations): Append the function
13044         registering the receiving stubs at the end of the 'Stmts' list.
13045         (RCI_Package_Locator): Pass the new Version generic formal when
13046         instantiating a RCI_Locator package.
13047         (Build_From_Any_Function): To compute the High bound for an
13048         unconstrained array actual, we add the Low bound with the length.
13049         Thus we must convert the low bound and the length to an appropriate
13050         type before doing the sum.
13051         (Build_Subprogram_Receiving_Stubs, PolyORB):
13052          * Retrieve the extra formals parameters at the
13053            end of the parameter stream.
13054          * Use Move_Any_Value to write back out parameters
13055            after executing the request as it is more efficient
13056            than Copy_Any_Value.
13057          * Build the any containing Extra Formals with the
13058            appropriate typecode.
13059         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
13060         empty Component_List.
13061         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
13062         the tree the declaration for an object that serves as actual parameter
13063         in server-side stubs.
13064         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13065         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13066         Use Build_Actual_Object_Declaration to prepare the actuals.
13067         (Add_Parameter_To_NVList): Set the parameter mode to In for
13068         Extra Constrained Parameters.
13069         (Build_General_Calling_Stubs): Set the parameter type to boolean for
13070         Extra Constrained parameters.
13071         (Build_To_Any_Function, Build_From_Any_Function,
13072         Built_TypeCode_Function): When Typ is implicit, call the correct
13073         function with the first not implicit parent type.
13074         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
13075         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
13076         typecode from the Etype. Therefore we retrieve the correct typecode
13077         with a call to Get_Any_Type.
13078         (Copy_Specification): Do controlling formal type substitution based on
13079         Is_Controlling_Formal flag, instead of caller-provided object type.
13080         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
13081         a RACW primitive operation, we might get a subprogram declaration for an
13082         ancestor of the RACW designated type (not for the designated type
13083         itself), in the case where this operation is inherited. In this case we
13084         have no easy means of determining the original tagged type for which
13085         the primitive was declared, so instead we now rely on
13086         Copy_Specification to use the Is_Controlling_Formal flag to determine
13087         which formals require type substitution.
13089 2007-04-06  Robert Dewar  <dewar@adacore.com>
13090             Ed Schonberg  <schonberg@adacore.com>
13092         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
13093         GNAT.Current_Exception are not allowed if pragma Restrictions
13094         (No_Exception_Propagation) is set and in any case make the associated
13095         handler unsuitable as a target for a local raise statement.
13096         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
13097         run-time subprogram CW_Membership by call to Build_CW_Membership.
13098         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
13099         by a function call, a temporary must be created before expanding the
13100         Constructor_Call itself, to prevent out-of-order elaboration in the
13101         back-end when stack checking is enabled..
13103 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13105         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
13106         result are the bounds of the left operand, not the right.
13108 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13110         * exp_strm.adb
13111         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
13112          discriminant defaults.
13113         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
13114         (Make_Component_List_Attributes): Ditto.
13116 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13117             Bob Duff  <duff@adacore.com>
13119         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
13120         an association with a box as providing a value even though the
13121         initialization procedure for the type is not available.
13122         (Resolve_Record_Aggregate): Check that a choice of an association with a
13123         box corresponds to a component of the type.
13124         (Resolve_Record_Aggregate): Split Is_Abstract flag into
13125         Is_Abstract_Subprogram and Is_Abstract_Type.
13127         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
13128         assert.
13130         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
13131         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
13132         called only when appropriate.
13134 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13136         * g-alleve.ads (Low Level Vector type definitions): Map each to the
13137         associated vector view instead of all to the unsigned char view.
13139         * g-altcon.adb (Generic_Conversions): New internal generic package,
13140         offering facilities for all the Vector/View conversion routines
13141         implemented by this unit.
13142         (To_View/To_Vector - all versions): Reimplemented in a systematic
13143         manner, using the internal Generic_Conversions facilities.
13145 2007-04-06  Pascal Obry  <obry@adacore.com>
13147         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
13148         string.
13149         (Create): Free the source string before storing the new one.
13151 2007-04-06  Vincent Celier  <celier@adacore.com>
13153         * g-debpoo.adb (Validity): New package with a complete new
13154         implementation of subprograms Is_Valid and Set_Valid.
13155         (Is_Valid): Move to local package Validity
13156         (Set_Valid): Move to local package Validity
13158 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
13159             Pablo Oliveira  <oliveira@adacore.com>
13161         * g-expect.adb (Get_Command_Output): When expanding the output buffer
13162         we must ensure that there is enough place for the new data we are going
13163         to copy in.
13165 2007-04-06  Thomas Quinot  <quinot@adacore.com>
13167         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
13168         computation.
13170 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
13171             Vincent Celier  <celier@adacore.com>
13173         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
13174         (Stack_String): Add this String that contains the name of the Stack
13175         package in the project file.
13176         (Packages_To_Check_By_Stack): Add this list that contains the packages
13177         to be checked by gnatstack, which are the naming and the stack packages.
13178         (Check_Files): If no .ci files were specified for gnatstack we add all
13179         the .ci files belonging to the projects, including binder generated
13180         files.
13181         (Non_VMS_Usage): Document that gnatstack accept project file switches.
13182         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
13183         Add gnatstack to the list of commands that use project file related
13184         switches, and get the single attribute Switches from the stack package
13185         in a project file when calling gnatstack. Parse the -U flag for
13186         processing files belonging to all projects in the project tree.
13187         Remove all processing for command Setup
13189         * prj-attr.adb: Add new package Stack with single attribute Switches
13191         * vms_conv.ads (Command_Type): Add command Stack.
13192         Move to body declarations that are only used in the body: types Item_Id,
13193         Translation_Type, Item_Ptr, Item and its subtypes.
13195         * vms_conv.adb: (Initialize): Add data for new command Stack.
13196         Add declarations moved from the spec: types Item_Id, Translation_Type,
13197         Item_Ptr, Item and its subtypes.
13198         (Cargs_Buffer): New table
13199         (Cargs): New Boolean global variable
13200         (Process_Buffer): New procedure to create arguments
13201         (Place): Put character in table Buffer or Cargs_Buffer depending on the
13202          value of Cargs.
13203         (Process_Argument): Set Cargs when processing qualifiers for GNAT
13204         COMPILE
13205         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
13206         empty, for table Cargs_Buffer.
13207         (Initialize): Remove component Setup in Command_List
13209 2007-04-06  Vincent Celier  <celier@adacore.com>
13211         * gprep.adb (Process_Files.Process_One_File): Use full file name when
13212         issuing pragma Source_Reference.
13214 2007-04-06  Emmanuel Briot  <briot@adacore.com>
13216         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
13217         [[:xdigit:]] character class.
13218         Also raise an exception when an invalid character class is used.
13220 2007-04-06  Pascal Obry  <obry@adacore.com>
13222         * i-cstrea.ads: (fopen): Add encoding parameter.
13223         (freopen): Idem.
13224         Change reference from a-sysdep.c to sysdep.c in comment.
13225         Update copyright notice.
13226         This set of patch add support for the encoding form parameter.
13228         * mingw32.h (S2WSU): New macro to convert from a string to a
13229         wide-string using the UTF-8 encoding. The S2WS macro supports now only
13230         standard 8bits encoding.
13231         (WS2SU): As above but converting from wide-sring to string.
13232         This is needed as it is necessary to have access to both versions in the
13233         runtime for the form parameter encoding support.
13234         This set of patch add support for the encoding form parameter.
13235         (S2WS): Improve implementation to handle cases where the filename is not
13236         UTF-8 encoded. In this case we default to using the current code page
13237         for the conversion.
13239         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
13240         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
13241         the constants defined in adaint.h.
13242         (fopen): Add encoding parameter.
13243         (freopen): Idem.
13245         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
13246         encoding. This is needed for the Reset routine (freopen low level-call).
13248         * s-fileio.adb (Open): Decode encoding form parameter and set the
13249         corresponding encoding value into AFCB structure.
13250         (Reset): Pass the encoding value to freopen.
13251         (Close): Move the call to Lock_Task to the beginning of the procedure.
13253 2007-04-06  Geert Bosch  <bosch@adacore.com>
13254             Robert Dewar  <dewar@adacore.com>
13256         * i-fortra.ads: Add Double_Complex type.
13258         * impunit.adb: (Is_Known_Unit): New function
13259         Add Gnat.Byte_Swapping
13260         Add GNAT.SHA1
13261         Add new Ada 2005 units
13262         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
13263         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
13264         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
13265         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
13267         * impunit.ads (Is_Known_Unit): New function
13269         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
13270         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
13271         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
13272         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
13273         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
13274         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
13275         New files.
13277         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
13279         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
13281 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
13282             Arnaud Charlet  <charlet@adacore.com>
13284         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
13285         __gnat_adjust_context_for_raise.
13286         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
13287         implementation of floating point operations as native x86 targets.
13288         So the FPU should be initialized in the same way using finit. Fix
13289         floating point operations accuracy issues.
13290         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
13291         member in struct sigaction, so as to avoid warning for incompatible
13292         pointer types.
13294 2007-04-06 Serguei Rybin  <rybin@adacore.com>
13296         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
13297         switches from previously loaded tree
13299 2007-04-06  Thomas Quinot  <quinot@adacore.com>
13301         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
13302         cases where a given dependency has a body or not.
13303         (Write_With_File_Names): New subprogram, common code for the two cases
13304         above.
13306 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13307             Javier Miranda  <miranda@adacore.com>
13309         * lib-xref.ads, lib-xref.adb: 
13310         Modify the loop that collects type references, to include interface
13311         types that the type implements. List each of these interfaces when
13312         building the entry for the type.
13313         (Generate_Definition): Initialize component Def and Typ of new entry
13314         in table Xrefs, to avoid to have these components unitialized.
13315         (Output_References): Split Is_Abstract flag into
13316         Is_Abstract_Subprogram and Is_Abstract_Type.
13317         (Generate_Reference): Add barrier to do not generate the warning
13318         associated with Ada 2005 entities with entities generated by the
13319         expander.
13321 2007-04-06  Robert Dewar  <dewar@adacore.com>
13322             Arnaud Charlet  <charlet@adacore.com>
13323             Vincent Celier  <celier@adacore.com>
13325         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
13326         Update 'Exception Handling Control' chapter which was outdated.
13327         Minor fix to documentation of -gnatwq
13328         Remove section "Adapting the Run Time to a New C++ Compiler" because
13329         it is now obsolete.
13330         Add passage on need of -nostart-files in some non-ada-main cases.
13331         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
13332         Update documentation about Interfacing with C++
13333         Add documentation for new gnatmake switch -p
13334         Add missing protocol part in URLs.
13335         Document -gnatyA
13336         Document pragma Compile_Time_Error
13337         Add documentation for Object_Size indicating that stand alone
13338         objects can have a larger size in some cases.
13339         Add node for GNAT.Byte_Swapping, GNAT.SHA1
13340         Update reference to the Ravenscar profile.
13341         Document pragma Unreferenced_Objects
13343         * gnat-style.texi: Fix typo
13345 2007-04-06  Vincent Celier  <celier@adacore.com>
13347         * mlib.adb (Building_Library): Only output "building a library..." in
13348         verbose mode
13350         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
13351         files in verbose mode.
13353         * mlib-utl.adb (Ar): Only output the first object files when not in
13354         verbose mode.
13355         (Gcc): Do not display all the object files if not in verbose mode, only
13356         the first one.
13358 2007-04-06  Robert Dewar  <dewar@adacore.com>
13360         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
13361         it no longer destroys the contents of Name_Buffer or Name_Len and
13362         non-standard and invalid names are handled better.
13363         (Get_Decoded_Name_String): Improve performance by using
13364         Name_Has_No_Encodings flag in the name table.
13365         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
13366         Used for debugging printouts.
13368 2007-04-06  Robert Dewar  <dewar@adacore.com>
13369             Javier Miranda  <miranda@adacore.com>
13370             Bob Duff  <duff@adacore.com>
13372         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
13373         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
13374         there is no need to generate always a record_definition_node in case
13375         of synchronized interface types.
13376         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
13377         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
13378         illegal in Ada 95, in cases where it is legal. Change the warnings to
13379         errors in other cases. Don't give the error unless the "not null"
13380         parses properly. Correct the source position at which the error occurs.
13381         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
13382         P_Null_Exclusion, to suppress "not null" warnings.
13383         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
13384         associated goto statements.
13386         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
13387         of END RECORD
13389         * scans.ads (Type_Token_Location): New flag
13391         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
13392         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
13393         P_Null_Exclusion, to suppress "not null" warnings.
13395 2007-04-06  Robert Dewar  <dewar@adacore.com>
13396             Javier Miranda  <miranda@adacore.com>
13397             Bob Duff  <duff@adacore.com>
13398             Vincent Celier  <celier@adacore.com>
13400         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
13401         (Extensions_Allowed): No longer sets Ada_Version
13402         Entry for pragma Unreferenced_Objects
13404         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
13405         system.tasking if pragma priority used in a procedure
13406         (Analyze_Pragma, case Warning): Handle dot warning switches
13407         (Process_Compile_Time_Warning_Or_Error): New procedure
13408         (Analyze_Pragma): Add processing for Compile_Time_Error
13409         Add support for extra arguments External_Name and Link_Name.
13410         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
13411         (Process_Import_Or_Interface): Add support for the use of pragma Import
13412         with tagged types.
13413         (Extensions_Allowed): No longer affects Ada_Version
13414         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
13415         Is_Abstract_Type. Make sure these are called only when appropriate.
13416         Add processing for pragma Unreferenced_Objects
13418         * snames.h, snames.ads, snames.adb: Add entry for pragma
13419         Compile_Time_Error
13420         Add new standard name Minimum_Binder_Options for new gprmake
13421         Add new standard names for gprmake: Archive_Suffix,
13422         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
13423         Library_Support, Library_Version_Options,
13424         Shared_Library_Minimum_Options,
13425         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
13426         Change Name_Call to Name_uCall so that it cannot clash with a legal
13427         subprogram name.
13428         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
13429         Append C_Plus_Plus to convention identifiers as synonym for CPP
13430         Add new standard names Stack and Builder_Switches
13431         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
13432         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
13433         Run_Path_Option, Toolchain_Version.
13434         Entry for pragma Unreferenced_Objects
13436         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
13437         switches, without repetition of "eD". Make sure that last character of
13438         -gnatep= switch is not taken as -gnat switch character.
13439         Complete rewrite of circuit for handling saving compilation options
13440         Occasioned by need to support dot switchs for -gnatw, but cleans up
13441         things in general.
13442         -gnatX does not affect Ada_Version
13443         Include -gnatyA in -gnatg style switches
13445         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
13446         warnings on return objects.
13447         (Warn_On_Useless_Assignment): Exclude warnings on return objects
13448         (Set_Dot_Warning_Switch): New procedure
13449         (Check_References): Add missing case of test for
13450         Has_Pragma_Unreferenced_Objects
13451         (Output_Unreferenced_Messages): Implement effect of new pragma
13452         Unreferenced_Objects, remove special casing of limited controlled
13453         variables.
13455 2007-04-06  Vincent Celier  <celier@adacore.com>
13457         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
13458         the default project path, initially done during elaboration of the
13459         package.
13460         If the prefix returned by Sdefault is null, get the prefix from a call
13461         to Executable_Prefix_Path.
13462         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
13463         null.
13465         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
13466         canonical directory name to open the directory from which files are
13467         retrieved.
13468         (Record_Other_Sources): Idem.
13469         (Locate_Directory): Add the possibility to create automatically missing
13470         directories when Setup_Projects is True.
13471         Call Locate_Directory so that the directory will be created when
13472         Setup_Projects is True, for object dir, library dir, library ALI dir,
13473         library source copy dir and exec dir.
13475         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
13476         versions of GNAT.
13478 2007-04-06  Robert Dewar  <dewar@adacore.com>
13480         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
13481         Use First/Next_Component_Or_Discriminant
13482         (Analyze_Record_Representation_Clause):
13483         Use First/Next_Component_Or_Discriminant
13484         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
13485         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
13486         definition if type is unconstrained.
13487         (Adjust_Record_For_Reverse_Bit_Order): New procedure
13488         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
13489         Is_Abstract_Subprogram and Is_Abstract_Type.
13490         (Adjust_Record_For_Reverse_Bit_Order): New procedure
13492         * repinfo.adb (List_Record_Info): Use First/
13493         Next_Component_Or_Discriminant.
13495         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
13496         New procedure.
13498         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
13499         Include -gnatyA in default switches
13501         * opt.ads: (Warn_On_Non_Local_Exception): New flag
13502         (Warn_On_Reverse_Bit_Order): New flag
13503         (Extensions_Allowed): Update the documentation.
13504         (Warn_On_Questionable_Missing_Parens): Now on by default
13506         * usage.adb: Add documentation of -gnatw.x/X switches
13507         Document new -gnatyA style switch
13508         -gnatq warnings are on by default
13510 2007-04-06  Ed Falis  <falis@adacore.com>
13512         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
13513         full word is no longer compared twice.
13515 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13517         * sem_ch10.adb (Install_Limited_Context_Clauses.
13518         Expand_Limited_With_Clause): Use a new copy of selector name in the
13519         call to Make_With_Clause. This fixes the tree structure for ASIS
13520         purposes. Nothing is changed in the compiler behaviour.
13521         (Process_Body_Clauses): Handle properly use clauses whose prefix is
13522         a package renaming.
13523         (Install_Limited_With_Clauses): Do not install non-limited view when it
13524         is still incomplete.
13526 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13527             Gary Dismukes  <dismukes@adacore.com>
13529         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
13530         when capturing size information, instead of base type, which for a
13531         formal array type will be the unconstrained type.
13532         (Analyze_Formal_Object_Declaration): Add check for illegal default
13533         expressions for a formal in object of a limited type.
13534         (Instantiate_Object): Ditto.
13535         (Check_Formal_Package_Instance): Skip entities that are formal objects,
13536         because they were defaulted in the formal package and no check applies
13537         to them.
13538         (Check_Formal_Package_Instance): Extend conformance check to other
13539         discrete types beyond Integer.
13540         (Process_Default): Copy directly the unmatched formal. A generic copy
13541         has already been performed in Analyze_Formal_Package.
13542         (Analyze_Associations): If a formal subprogram has no match, check for
13543         partial parametrization before looking for a default, to prevent
13544         spurious errors.
13545         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
13546         not set the instantiation environment before analyzing the actuals.
13547         Fixes regression on 8515-003 with implementation of AI-133.
13548         Set_Instance_Env checks whether the generic unit is a predefined
13549         unit, in which case the instance must be analyzed with the latest Ada
13550         mode. This setting must take place after analysis of the actuals,
13551         because the actuals must be analyzed and frozen in the Ada mode extant
13552         outside of the current instantiation.
13553         (Save_Env, Restore_Env): Preserve and restore the configuration
13554         parameters so that predefined units can be compiled in the proper Ada
13555         mode.
13556         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
13557         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
13558         and Is_Abstract_Type.
13559         (Analyze_Formal_Package): For better error recovery, Add exception
13560         handler to catch Instantion_Error, which can be raised in
13561         Analyze_Associations
13563 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13564             Bob Duff  <duff@adacore.com>
13565             Gary Dismukes  <dismukes@adacore.com>
13567         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
13568         prefix type is a discriminated subtype of the type of the formal.
13569         (Analyze_Allocator): Collect all coextensions regardless of the context.
13570         Whether they can be allocated statically is determined in exp_ch4.
13571         (Analyze_Selected_Component): If the prefix is a limited view and the
13572         non-limited view is available, use the non-limited one.
13573         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
13574         therefore illegal), suggest a qualified expression rather than a type
13575         conversion, because a type conversion would be illegal in this context.
13576         (Anayze_Allocator): Trace recursively all nested allocators so that all
13577         coextensions are on the corresponding list for the root. Do no mark
13578         coextensions if the root allocator is within a declaration for a stack-
13579         allocated object, because the access discriminants will be allocated on
13580         the stack as well.
13581         (Analyze_Call): Remove restriction on calls to limited functions for the
13582         cases of generic actuals for formal objects, defaults for formal objects
13583         and defaults for record components.
13584         (Analyze_Allocator): Before analysis, chain coextensions on the proper
13585         element list. Their expansion is delayed until the enclosing allocator
13586         is processed and its finalization list constructed.
13587         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
13588         for an operation with the given name among the primitive operations of
13589         the corresponding record type.
13590         (Analyze_Selected_Component): If the prefix is a task type that
13591         implements an interface, and there is no entry with the given name,
13592         check whether there is another primitive operation (e.g. a function)
13593         with that name.
13594         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
13595         properly the indexing of a function call written in prefix form, where
13596         the function returns an array type, and all parameters of the function
13597         except the first have defaults.
13598         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
13599         the original operands, rather than relocating them, for efficiency and
13600         to work properly when an operand is overloaded.
13601         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
13602         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
13603         (Analyze_Selected_Component): If the prefix is a private extension, only
13604         scan the visible components, not those of the full view.
13605         (Try_Primitive_Operation): If the operation is a procedure, collect all
13606         possible interpretations, as for a function, because in the presence of
13607         classwide parameters several primitive operations of the type can match
13608         the given arguments.
13610 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13611             Robert Dewar  <dewar@adacore.com>
13613         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
13614         tag-indeterminate call to an abstract function, when the left-hand side
13615         is not classwide.
13616         (Analyze_Loop_Statement): Improve detection of infinite loops
13618 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13619             Thomas Quinot  <quinot@adacore.com>
13621         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
13622         out of Analyze_Package_Declaration, because processing must be applied
13623         to package bodies as well, for deferred constants completed by pragmas.
13624         (Analyze_Package_Declaration): When the package declaration being
13625         analyzed does not require an explicit body, call Check_Completion.
13626         (May_Need_Implicit_Body): An implicit body is required when a package
13627         spec contains the declaration of a remote access-to-classwide type.
13628         (Analyze_Package_Body): If the package contains RACWs, append the
13629         pending subprogram bodies generated by exp_dist at the end of the body.
13630         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
13631         Is_Abstract_Subprogram and Is_Abstract_Type.
13632         (Preserve_Full_Attributes): The full entity list is not an attribute
13633         that must be preserved from full to partial view.
13635         * sem_dist.adb (Add_RAS_Dereference_TSS):
13636         Change primitive name to _Call so it cannot clash with any legal
13637         identifier, and be special-cased in Check_Completion.
13638         Mark the full view of the designated type for the RACW associated with
13639         a RAS as Comes_From_Source to get proper view switching when installing
13640         private declarations.
13641         Provite a placeholder nested package body along with the nested spec
13642         to have a place for Append_RACW_Bodies to generate the calling stubs
13643         and stream attributes.
13645 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13646             Robert Dewar  <dewar@adacore.com>
13648         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
13649         that is a limited view, check the non-limited view if available.
13650         (Undefined): Refine error message for missing with of Text_IO
13651         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
13652         to distinguish real missing with cases.
13653         Fix format of all missing with messages
13654         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
13655         renaming as body when renamed entity is abstract.
13657 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13658             Javier Miranda  <miranda@adacore.com>
13660         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
13661         predicate recursive, to handle complex expressions on literals whose
13662         spurious ambiguity comes from the abstract interpretation of some
13663         subexpression.
13664         (Interface_Present_In_Ancestor): Add support to concurrent record
13665         types.
13666         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
13667         Is_Abstract_Subprogram and Is_Abstract_Type.
13669 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13670             Javier Miranda  <miranda@adacore.com>
13672         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
13673         dereference of a local object R created as a reference to another
13674         object O, use the access level of O.
13675         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
13676         rather than local Same_Formal_Type, to check whether protected operation
13677         overrides an inherited one.
13678         (Same_Formal_Type): New predicate, used when matching signatures of
13679         overriding synchronized operations, to handle the case when a formal
13680         has a type that is a generic actual.
13681         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
13682         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
13683         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
13684         syntactic ambiguities involving indexing of function calls that return
13685         arrays.
13686         (Abstract_Interface_List): New subprogram that returns the list of
13687         abstract interfaces associated with a concurrent type or a
13688         concurrent record type.
13689         (Interface_Present_In_Parent): New subprogram used to check if a
13690         given type or some of its parents implement a given interface.
13691         (Collect_Abstract_Interfaces): Add support for concurrent types
13692         with interface types.
13693         (Has_Abstract_Interfaces): Add support for concurrent types with
13694         interface types.
13695         (Is_Parent): New subprogram that determines whether E1 is a parent
13696         of E2. For a concurrent type its parent is the first element of its
13697         list of interface types; for other types this function provides the
13698         same result than Is_Ancestor.
13699         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
13700         (Collect_Synchronized_Interfaces): Removed because the subprogram
13701         Collect_Abstract_Interfaces provides this functionality.
13702         (Collect_Abstract_Interfaces): Minor update to give support to
13703         concurrent types and thus avoid undesired code duplication.
13704         (Get_Subprogram_Entity): Handle entry calls.
13705         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
13706         entry calls.
13707         (Enter_Name): Do not give -gnatwh hiding warning for record component
13708         entities, they never result in hiding.
13710 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13711             Robert Dewar  <dewar@adacore.com>
13713         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
13714         to chain nested components that are allocators for access discriminants
13715         of the enclosing object.
13716         Add N_Push and N_Pop nodes
13717         New field Exception_Label added
13718         (Local_Raise_Statements): New field in N_Exception_Handler_Node
13719         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
13720         (Is_Coextension): New flag for allocators, to mark allocators that
13721         correspond to access discriminants of dynamically allocated objects.
13722         (N_Block_Statement): Document the fact that the corresponding entity
13723         can be an E_Return_Statement.
13724         (Is_Coextension): New flag for allocators.
13725         Remove all code for DSP option
13727         * sprint.ads, sprint.adb: Display basic information for class_wide
13728         subtypes. Add handling of N_Push and N_Pop nodes
13730 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
13732         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
13733         before propagating exception.
13735 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13737         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
13738         an address always within the call instruction from a return address.
13740 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13741             Eric Botcazou  <botcazou@adacore.com>
13743         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
13744         expression with a COMPOUND_EXPR including the call instead of emitting
13745         the call directly here.
13746         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
13747         high bound is constant and the slice is empty.  Tidy.
13748         (tree_transform, case N_Op_Not): Handle properly the case where the
13749         operation applies to a private type whose full view is a modular type.
13750         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
13751         Address_Clause, use the associated Expression as the GNAT tree
13752         representing the choice value to ensure the corresponding GCC tree is
13753         of the proper kind.
13754         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
13755         instead of just the operands, as the base GCC stabilize_reference does.
13756         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
13757         requested; otherwise fail.
13758         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
13760 2007-04-06  Thomas Quinot  <quinot@adacore.com>
13762         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
13763         implementation of UI_Div.
13764         (UI_Div): Reimplement as a call to UI_Div_Rem.
13765         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
13766         remainder, avoiding the cost of a multiplication and a subtraction.
13767         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
13768         provides both quotient and remainder in a single computation.
13769         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
13770         functions for uint.
13771         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
13772         is undefined if the given n is not inversible.
13774 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13776         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
13777         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
13778         opcodes.
13780 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
13781             Olivier Hainque  <hainque@adacore.com>
13783         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
13784         when updating the contents of the old pointer to an unconstrained array.
13785         (end_subprog_body): Set error_gnat_node to Empty.
13786         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
13787         (unchecked_convert): For subtype to base type conversions, require that
13788         the source be a subtype if it is an integer type.
13789         (builtin_decls): New global, vector of available builtin functions.
13790         (gnat_pushdecl): Add global builtin function declaration nodes to the
13791         builtin_decls list.
13792         (gnat_install_builtins): Adjust comments.
13793         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
13794         calling gnat_pushdecl, so that it knows when it handed a builtin
13795         function declaration node.
13796         (builtin_decl_for): Search the builtin_decls list.
13798 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
13800         * s-stchop-vxworks.adb: 
13801         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
13803 2007-04-06  Robert Dewar  <dewar@adacore.com>
13804             Arnaud Charlet  <charlet@adacore.com>
13806         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
13808         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
13809         of files
13810         Add mention of -Sev (set initialize_scalars option from environment
13811         variable at run time) in gnatbind usage message.
13813         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
13815         * fname-uf.ads: Minor comment fix
13817         * osint.ads: Change pragma Elaborate to Elaborate_All
13819         * par-load.adb: Add documentation.
13821         * sem_cat.ads, sem_cat.adb: Minor code reorganization
13823         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
13825         * s-secsta.ads: Extra comments
13827         * s-soflin.ads: Minor comment fixes
13829         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
13831         * s-wchcon.ads: Minor comment addition
13833         * treepr.adb: Minor change in message
13834         (Print_Name,Print_Node): Make these debug printouts more robust: print
13835         "no such..." instead of crashing on bad input.
13837 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
13839         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
13840         instead of gnat_signed_or_unsigned_type.
13841         * utils.c (gnat_signed_or_unsigned_type): Remove.
13842         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
13843         * gigi.h (gnat_signed_or_unsigned_type): Remove
13845 2007-03-09  Roger Sayle  <roger@eyesopen.com>
13847         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
13848         fold with the result of buildN.
13849         * decl.c (gnat_to_gnu_entity): Likewise.
13850         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
13851         * utils.c (finish_record_type, merge_sizes, max_size, convert):
13852         Likewise.
13853         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
13854         nonbinary_modular_operation, build_binary_op, build_unary_op,
13855         build_cond_expr): Likewise.
13857         * utils.c (convert): Use fold_build1 when casting values to void.
13858         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
13859         fold_convert instead of convert when appropriate.
13861 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
13863         * Make-lang.in: Add install-pdf target as copied from
13864         automake v1.10 rules.
13866 2007-02-28  Andreas Schwab  <schwab@suse.de>
13868         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
13869         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
13870         (doc/gnat-style.info): Likewise.
13872 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
13874         * gnat-style.texi: Standardize title page.
13875         * gnat_rm.texi: Likewise.
13876         * gnat_ugn.texi: Likewise.
13878 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
13880         * decl.c (annotate_value): Adjust for refactoring of tree_map
13881         hierarchy.
13883 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
13885         * decl.c (annotate_value): Adjust for refactoring of tree_map
13886         hierarchy.
13888 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
13890         PR ada/18819
13891         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
13892         untagged derived type, add hidden components to keep discriminant
13893         layout consistent, when a given discriminant of the derived type
13894         constraints several discriminants of the parent type.
13896 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
13897             Sandra Loosemore  <sandra@codesourcery.com>
13899         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
13900         build the call expression.
13901         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
13902         * utils.c (max_size) <tcc_exceptional>: Delete.
13903         <tcc_vl_exp>: New case.
13904         <tcc_expression>: Delete CALL_EXPR subcase.
13905         (build_global_cdtor): Use build_call_nary instead of build3.
13906         * utils2.c (build_call_1_expr): Likewise.
13907         (build_call_2_expr): Likewise.
13908         (build_call_0_expr): Likewise.
13909         (build_call_alloc_dealloc): Likewise.
13911 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
13913         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
13914         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
13915         and _Unwind_SWord with _sleb128_t.
13917 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
13919         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
13920         * decl.c: Include gt-ada-decl.h.
13921         (annotate_value_cache): New.
13922         (annotate_value): Use it instead of TREE_COMPLEXITY.
13924 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
13926         * misc.c, utils2.c: Fix comment typos.
13928 2007-01-24  Roger Sayle  <roger@eyesopen.com>
13930         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
13931         TREE_CONSTANT_OVERFLOW.
13932         (allocatable_size_p, annotate_value): Likewise.
13933         * trans.c (gnat_to_gnu): Likewise.
13934         * utils.c (unchecked_convert): Likewise.
13935         * utils2.c (build_simple_component_ref): Likewise.
13937 2007-01-23  Richard Guenther  <rguenther@suse.de>
13939         PR bootstrap/30541
13940         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
13941         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
13942         (gnatboot3): Likewise.
13943         (GNATBIND): Do not define.
13944         * Makefile.in (GNATBIND): Do not define.
13946 2007-01-08  Richard Guenther  <rguenther@suse.de>
13948         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
13949         * trans.c (gnat_to_gnu): Likewise.
13951 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
13953         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
13954         * adaint.c: Likewise.
13956 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
13958         Merge from gimple-tuples-branch:
13959         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
13961         * ada-tree.h (lang_tree_node): Handle gimple tuples.
13962         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
13963         GIMPLE_MODIFY_STMT.
13965 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
13967         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
13968         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
13969         Fix typos.
13971 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
13973         PR ada/27936
13974         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
13975         if the initializer takes into account the padding.
13977 2006-11-11  Richard Guenther  <rguenther@suse.de>
13979         * trans.c (maybe_stabilize_reference): Remove handling of
13980         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
13982 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
13984         PR ada/29707
13985         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
13986         (To_Target_Priority): New function.
13988 2006-10-31  Robert Dewar  <dewar@adacore.com>
13990         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
13991         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
13992         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
13993         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
13994         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
13995         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
13996         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
13997         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
13998         a-szbzha.adb: Minor reformatting. Fix header.
14000         * a-numaux-x86.adb: Add parentheses for use of unary minus
14001         * a-ngcefu.adb: Supply missing parentheses for unary minus
14002         * a-ngcoty.adb: Add parens for use of unary minus
14003         * a-ngelfu.adb: Add missing parens for unary minus
14004         * a-tifiio.adb: Add parentheses for uses of unary minus
14006 2006-10-31  Robert Dewar  <dewar@adacore.com>
14007             Bob Duff  <duff@adacore.com>
14008             Ed Schonberg  <schonberg@adacore.com>
14010         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
14011         with multiplying operator.
14012         (Expected_Type_Is_Any_Real): New function to determine from the Parent
14013         pointer whether the context expects "any real type".
14014         (Resolve_Arithmetic_Op): Do not give an error on calls to the
14015         universal_fixed "*" and "/" operators when they are used in a context
14016         that expects any real type. Also set the type of the node to
14017         Universal_Real in this case, because downstream processing requires it
14018         (mainly static expression evaluation).
14019         Reword some continuation messages
14020         Add some \\ sequences to continuation messages
14021         (Resolve_Call): Refine infinite recursion case. The test has been
14022         sharpened to eliminate some false positives.
14023         Check for Current_Task usage now includes entry barrier, and is now a
14024         warning, not an error.
14025         (Resolve): If the call is ambiguous, indicate whether an interpretation
14026         is an inherited operation.
14027         (Check_Aggr): When resolving aggregates, skip associations with a box,
14028         which are priori correct, and will be replaced by an actual default
14029         expression in the course of expansion.
14030         (Resolve_Type_Conversion): Add missing support for conversion from
14031         a class-wide interface to a tagged type. Minor code cleanup.
14032         (Valid_Tagged_Converion): Add support for abstact interface type
14033         conversions.
14034         (Resolve_Selected_Component): Call Generate_Reference here rather than
14035         during analysis, and use May_Be_Lvalue to distinguish read/write.
14036         (Valid_Array_Conversion): New procedure, abstracted from
14037         Valid_Conversion, to incorporate accessibility checks for arrays of
14038         anonymous access types.
14039         (Valid_Conversion): For a conversion to a numeric type occurring in an
14040         instance or inlined body, no need to check that the operand type is
14041         numeric, since this has been checked during analysis of the template.
14042         Remove legacy test for scope name Unchecked_Conversion.
14044         * sem_res.ads: Minor reformatting
14046         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
14047         (PE_Current_Task_In_Entry_Body): New exception code
14048         (SE_Restriction_Violation): Removed, not used
14050         * a-except.ads:  Update comments.
14052         * types.h, types.ads: Add definition for Validity_Check
14053         (PE_Current_Task_In_Entry_Body): New exception code
14054         (SE_Restriction_Violation): Removed, not used
14056 2006-10-31  Thomas Quinot  <quinot@adacore.com>
14058         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
14059         error status.
14061 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
14062             Jose Ruiz  <ruiz@adacore.com>
14064         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
14065         part of Ada.Calendar: all subprogram raise Unimplemented.
14066         (Split_W_Offset): Temp function body, raising Unimplemented
14068         * a-calend.ads, a-calend-vms.ads: 
14069         Add imported variable Invalid_TZ_Offset used to designate targets unable
14070         to support time zones.
14071         (Unimplemented): Temporary function raised by the body of new
14072         subprograms below.
14073         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
14074         unit provides handling of leap seconds and is used by the new Ada 2005
14075         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
14076         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
14077         version returns an extra value which is the offset to UTC.
14079         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
14080         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
14081         (Split_W_Offset): New function body.
14082         (Time_Of): When a date is close to UNIX epoch, compute the time for
14083         that date plus one day (that amount is later substracted after
14084         executing mktime) so there are no problems with time zone adjustments.
14086         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
14088         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
14089         a-catizo.ads, a-catizo.adb: New files.
14091         * impunit.adb: Add new Ada 2005 entries
14093         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
14094         Rename all occurences of "__gnat_localtime_r" to
14095         "__gnat_localtime_tzoff".
14096         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
14097         zone data and calculate the GMT offset.
14098         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
14099         Use the field "tm_gmtoff" to extract the GMT offset.
14100         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
14101         the external variable "timezone" to calculate the GMT offset.
14103 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
14104             Jose Ruiz  <ruiz@adacore.com>
14106         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
14107         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
14108         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
14109         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
14110         System.Any_Priority to a POSIX priority on the target.
14112         * system-linux-ia64.ads: 
14113         Extend range of Priority types on Linux to use the whole range made
14114         available by the system.
14116         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
14117         function maps from System.Any_Priority to a POSIX priority on the
14118         target.
14119         (PTHREAD_PRIO_PROTECT): Set real value.
14120         (PTHREAD_PRIO_INHERIT): Now a function.
14121         (SIGCPUFAIL): New signal.
14122         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
14123         are documented as reserved by the OS.
14125         * system-aix.ads: Use the full range of priorities provided by the
14126         system on AIX.
14128         * s-taprop-posix.adb: Call new function To_Target_Priority.
14129         (Set_Priority): Take into account Task_Dispatching_Policy and
14130         Priority_Specific_Dispatching pragmas when determining if Round Robin
14131         must be used for scheduling the task.
14133         * system-linux-x86_64.ads, system-linux-x86.ads, 
14134         system-linux-ppc.ads: Extend range of Priority types on Linux to use
14135         the whole range made available by the system.
14137         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
14138         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
14139         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
14140         when deallocating the TCB in order to avoid potential references to
14141         deallocated data.
14142         (Set_Priority): Take into account Task_Dispatching_Policy and
14143         Priority_Specific_Dispatching pragmas when determining if Round Robin
14144         or FIFO within priorities must be used for scheduling the task.
14146         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
14147         the Thread field (to be used internally by the run-time system) and the
14148         kernel-level task id in the LWP field (to be used by the debugger).
14149         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
14150         instance, and propagate the current task options to the spawned task.
14151         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
14152         (Initialize): Set Round Robin dispatching when the corresponding pragma
14153         is in effect.
14155 2006-10-31  Robert Dewar  <dewar@adacore.com>
14157         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
14158         system-linux-hppa.ads, system-hpux-ia64.ads, 
14159         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
14160         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
14161         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
14162         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
14163         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
14164         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
14165         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
14166         Default_Bit_Order) to kill constant condition warnings for references
14167         to this switch.
14169 2006-10-31  Vincent Celier  <celier@adacore.com>
14170             Eric Botcazou  <ebotcazou@adacore.com>
14172         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
14173         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
14174         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
14175         Ext_To, when building the library file name
14177         * mlib-tgt-vxworks.adb: ditto.
14178         (Get_Target_Suffix): Add support for x86 targets.
14180         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
14182         * mlib-tgt-darwin.adb: 
14183         Use Append_To, instead of Ext_To, when building the library file name
14184         (Flat_Namespace): New global variable.
14185         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
14186         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
14187         (Link_Shared_Libgcc): Delete.
14188         (Build_Dynamic_Library): Adjust for above changes.
14189         Use Opt package.
14190         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
14192 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
14194         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
14195         (Initialize): Add type conversions required by above change.
14197 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
14199         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
14200         (getpid): New body for this function that uses the underlying taskIdSelf
14201         function for VxWorks 5 and VxWorks 6 in kernel mode.
14202         (unsigned_int): New type, modular to allow logical bit operations.
14203         (taskOptionsGet): New imported function.
14205         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
14206         field to be compliant with the type used by the corresponding operating
14207         system primitive.
14209 2006-10-31  Pascal Obry  <obry@adacore.com>
14210             Eric Botcazou  <ebotcazou@adacore.com>
14211             Vincent Celier  <celier@adacore.com>
14213         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
14214         ASCII version of the registry API. This is needed as the GNAT runtime
14215         is now UNICODE by default.
14216         Include version.h.
14217         (get_gcc_version): Do not hardcode the return value.
14218         (__gnat_file_time_name): On Windows properly set the default returned
14219         value to -1 which corresponds to Invalid_Time.
14220         (__gnat_fopen): New routine. A simple wrapper on all plateforms
14221          except on Windows where it does conversion for unicode support.
14222         (__gnat_freopen): Idem.
14223         (__gnat_locate_exec_on_path): If environment variable PATH does not
14224         exist, return a NULL pointer
14226         * adaint.h: (__gnat_fopen): Declare.
14227         (__gnat_freopen): Likewise.
14229         * mingw32.h (_tfreopen): Define this macro here for older MingW
14230         version.
14231         Activate the unicode support on platforms using a MingW runtime
14232         version 3.9 or newer.
14234         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
14235         This is needed for proper unicode support on Windows.
14236         (freopen): Idem.
14238 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
14239             Nicolas Setton  <setton@adacore.com>
14240             Olivier Hainque  <hainque@adacore.com>
14241             Gary Dismukes  <dismukes@adacore.com>
14243         * gigi.h: (tree_code_for_record_type): Declare.
14244         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
14245         (get_global_renaming_pointers): Rename to
14246         invalidate_global_renaming_pointers.
14247         (static_ctors): Delete.
14248         (static_dtors): Likewise.
14249         (gnat_write_global_declarations): Declare.
14250         (create_var_decl): Adjust descriptive comment to indicate that the
14251         subprogram may return a CONST_DECL node.
14252         (create_true_var_decl): Declare new function, similar to
14253         create_var_decl but forcing the creation of a VAR_DECL node.
14254         (get_global_renaming_pointers): Declare.
14255         (add_global_renaming_pointer): Likewise.
14257         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
14259         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
14260         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
14261         processing.
14262         (gnat_to_gnu_entity): Remove From_With_Type from computation for
14263         imported_p.
14264         <E_Access_Type>: Use the Non_Limited_View as the full view of the
14265         designated type if the pointer comes from a limited_with clause.  Make
14266         incomplete designated type if it is in the main unit and has a freeze
14267         node.
14268         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
14269         Underlying_Full_View similarly.  Return earlier if the full view already
14270         has an associated tree.
14271         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
14272         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
14273         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
14274         reference type built for objects with an address clause.
14275         Use create_true_var_decl with const_flag set for
14276         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
14277         TREE_READONLY set.
14278         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
14279         for Character and Wide_Character types. This info is read by the
14280         dwarf-2 writer, and is needed to be able to use the command "ptype
14281         character" in the debugger.
14282         (gnat_to_gnu_entity): When generating a type representing
14283         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
14284         so that debug writers can distinguish it from ordinary integers.
14285         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
14286         addition to TREE_READONLY to assert the constantness of variables for
14287         elaboration purposes.
14288         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
14289         parameters to call new Einfo function First_Formal_With_Extras.
14290         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
14291         protected type with its corresponding discriminant, to obtain a usable
14292         declaration
14293         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
14294         for a multiple elaboration of the "equivalent" type.
14295         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
14296         into record_global_renaming_pointer.
14297         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
14298         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
14299         <E_Array_Subtype>: Likewise.
14300         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
14301         incomplete subtypes and incomplete subtypes of incomplete types visible
14302         through a limited with clause.
14303         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
14304         the base index type for the maximum size of the array only if they are
14305         constant.
14306         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
14307         expression into a SAVE_EXPR if stabilization failed.
14309         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
14310         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
14311         by lower level compilation passes.
14312         (gnat_genericize): New function, lowering a function body to GENERIC.
14313         Turn the type of RESULT_DECL into a real reference type if the decl
14314         has been marked DECL_BY_REFERENCE, and adjust references to the latter
14315         accordingly.
14316         (gnat_genericize_r): New function. Tree walking callback for
14317         gnat_genericize.
14318         (convert_from_reference, is_byref_result): New functions. Helpers for
14319         gnat_genericize_r.
14320         (create_type_decl): Call gnat_pushdecl before calling
14321         rest_of_decl_compilation, to make sure that field TYPE_NAME of
14322         type_decl is properly set before calling the debug information writers.
14323         (write_record_type_debug_info): The heuristics which compute the
14324         alignment of a field in a variant record might not be accurate. Add a
14325         safety test to make sure no alignment is set to a smaller value than
14326         the alignment of the field type.
14327         (make_dummy_type): Use the Non_Limited_View as the underlying type if
14328         the type comes from a limited_with clause. Do not loop on the full view.
14329         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
14330         (dummy_node_table): New global variable, moved from decl.c.
14331         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
14332         (save_gnu_tree): Use above macros.
14333         (get_gnu_tree): Likewise.
14334         (present_gnu_tree): Likewise.
14335         (init_dummy_type): New function, moved from decl.c. Use above macros.
14336         (make_dummy_type): Likewise.
14337         (tree_code_for_record_type): New function extracted from make_dummy_type
14338         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
14339         (static_ctors): Change it to a vector, make static.
14340         (static_dtors): Likewise.
14341         (end_subprog_body): Adjust for above change.
14342         (build_global_cdtor): Moved from trans.c.
14343         (gnat_write_global_declarations): Emit global constructor and
14344         destructor, and call cgraph_optimize before emitting debug info for
14345         global declarations.
14346         (global_decls): New global variable.
14347         (gnat_pushdecl): Store the global declarations in global_decls, for
14348         later use.
14349         (gnat_write_global_declarations): Emit debug information for global
14350          declarations.
14351         (create_var_decl_1): Former create_var_decl, with an extra argument to
14352          state whether the creation of a CONST_DECL is allowed.
14353         (create_var_decl): Behavior unchanged. Now a wrapper around
14354         create_var_decl_1 allowing CONST_DECL creation.
14355         (create_true_var_decl): New function, similar to create_var_decl but
14356         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
14357         (create_field_decl): Do not always mark the field as addressable
14358         if its type is an aggregate.
14359         (global_renaming_pointers): New static variable.
14360         (add_global_renaming_pointer): New function.
14361         (get_global_renaming_pointers): Likewise.
14363         * misc.c (gnat_dwarf_name): New function.
14364         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
14365         (gnat_post_options): Add comment about structural alias analysis.
14366         (gnat_parse_file): Do not call cgraph_optimize here.
14367         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
14369         * trans.c (process_freeze_entity): Don't abort if we already have a
14370         non dummy GCC tree for a Concurrent_Record_Type, as it might
14371         legitimately have been elaborated while processing the associated
14372         Concurrent_Type prior to this explicit freeze node.
14373         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
14374         exception handler volatile if it is of variable size.
14375         (process_type): Remove bypass for types coming from a limited_with
14376         clause.
14377         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
14378         actual, convert the corresponding gnu_actual to the real destination
14379         type when necessary.
14380         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
14381         originally TREE_READONLY but whose elaboration cannot be performed
14382         statically.
14383         Part of fix for F504-021.
14384         (tree_transform, subprogram cases): Change loops on formal parameters to
14385         call new Einfo function First_Formal_With_Extras.
14386         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
14387         stemming from type conversion for the lhs.
14388         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
14389         number of bits per unit for components of records.
14390         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
14391         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
14392         with At_End_Proc after the SJLJ EH cleanup.
14393         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
14394         compilation unit.
14395         (elaborate_all_entities): Do not retest type_annotate_only.
14396         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
14397         result type of an abstract subprogram, which may be an itype associated
14398         with an anonymous access result (related to AI-318-02).
14399         (build_global_cdtor): Move to utils.c.
14400         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
14401         this choice is not a null tree nor an integer constant.
14402         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
14403         on the body of elaboration routines instead of mark_unvisited.
14404         (add_stmt): Do not mark the tree.
14405         (add_decl_expr): Tweak comment.
14406         (mark_unvisited): Delete.
14407         (unshare_save_expr): New static function.
14408         (call_to_gnu): Issue an error when making a temporary around a
14409         procedure call because of non-addressable actual parameter if the
14410         type of the formal is by_reference.
14411         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
14412         after building the elaboration routine.
14414 2006-10-31  Bob Duff  <duff@adacore.com>
14416         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
14417         as finalization-started, so we can raise Program_Error on 'new'.
14419         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
14420         collection has already started.
14422         * s-finimp.ads (Collection_Finalization_Started): Added new special
14423         flag value for indicating that a collection's finalization has started.
14425         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
14426         create a task whose master has already waited for dependent tasks.
14428 2006-10-31  Robert Dewar  <dewar@adacore.com>
14430         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
14432         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
14433         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
14434         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
14435         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
14436         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
14437         a-except-2005.ads: Add pragma Preelaborable_Warning
14439 2006-10-31  Robert Dewar  <dewar@adacore.com>
14440             Jose Ruiz  <ruiz@adacore.com>
14442         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
14444         * ali.adb (Get_Name): Properly handle scanning of wide character names
14445         encoded with brackets notation.
14446         (Known_ALI_Lines): Add S lines to this list.
14447         (Scan_ALI): Acquire S (priority specific dispatching) lines.
14448         New flag Elaborate_All_Desirable in unit table
14450         * ali.ads (Priority_Specific_Dispatching): Add this range of
14451         identifiers to be used for Priority_Specific_Dispatching table entries.
14452         (ALIs_Record): Add First_Specific_Dispatching and
14453         Last_Specific_Dispatching that point to the first and last entries
14454         respectively in the priority specific dispatching table for this unit.
14455         (Specific_Dispatching): Add this table for storing each S (priority
14456         specific dispatching) line encountered in the input ALI file.
14457         New flag Elaborate_All_Desirable in unit table
14459         * bcheck.adb: (Check_Configuration_Consistency): Add call to
14460         Check_Consistent_Dispatching_Policy.
14461         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
14462         verifying that the use of Priority_Specific_Dispatching,
14463         Task_Dispatching_Policy, and Locking_Policy is consistent across the
14464         partition.
14466         * bindgen.adb: (Public_Version_Warning): function removed.
14467         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
14468         required information from ALI files in order to initialize the table
14469         containing the specific dispatching policy.
14470         (Gen_Adainit_Ada): Generate the variables required for priority specific
14471         dispatching entries (__gl_priority_specific_dispatching and
14472         __gl_num_specific_dispatching).
14473         (Gen_Adainit_C): Generate the variables required for priority specific
14474         dispatching entries (__gl_priority_specific_dispatching and
14475         __gl_num_specific_dispatching).
14476         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
14477         pragma entries.
14478         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
14479         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
14480         (Tab_To): Removed.
14481         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
14482         a call to gnat_set_globals.
14483         Generate a string containing settings from
14484         Priority_Specific_Dispatching pragma entries.
14485         (Gen_Object_Files_Options): Do not include the runtime libraries when
14486         pragma No_Run_Time is specified.
14488         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
14489         consistency with s-intman-posix.adb.
14490         (__gnat_error_handler, case FreeBSD): Account for the fact that the
14491         handler is installed with SA_SIGINFO.
14492         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
14493         FreeBSD ZCX support, copied from Linux version.
14494         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
14495         sigfillset, and sigemptyset so the routines defined by MaRTE.
14496         (__gl_priority_specific_dispatching): Add this variable that stores the
14497         string containing priority specific dispatching policies in the
14498         partition.
14499         (__gl_num_specific_dispatching): Add this variable that indicates the
14500         highest priority for which a priority specific dispatching pragma
14501         applies.
14502         (__gnat_get_specific_dispatching): Add this routine that returns the
14503         priority specific dispatching policy, as set by a
14504         Priority_Specific_Dispatching pragma appearing anywhere in the current
14505         partition. The input argument is the priority number, and the result
14506         is the upper case first character of the policy name.
14507         (__gnat_set_globals): Now a dummy function.
14508         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
14509         mechargs instead of sigargs, as the latter can be retrieved from the
14510         former and sigargs is not what we want on ia64.
14511         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
14512         mechargs argument.
14513         (__gnat_adjust_context_for_raise, ia64-vms): New function.
14514         (tasking_error): Remove unused symbol.
14515         (_abort_signal): Move this symbol to the IRIX specific part since this
14516         is the only target that uses this definition.
14517         (Check_Abort_Status): Move this symbol to the IRIX specific part since
14518         this is the only target that uses this definition.
14519         (Lock_Task): Remove unused symbol.
14520         (Unlock_Task): Remove unused symbol.
14522         * lib-writ.adb (Write_ALI): Output new S lines for
14523         Priority_Specific_Dispatching pragmas.
14524         Implement new flag BD for elaborate body desirable
14526         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
14527         (Specific_Dispatching): Add this table for storing the entries
14528         corresponding to Priority_Specific_Dispatching pragmas.
14529         Document new BD flag for elaborate body desirable
14531         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
14532         of known pragmas.
14534 2006-10-31  Javier Miranda  <miranda@adacore.com>
14536         * a-tags.ads, a-tags.adb: 
14537         (Predefined_DT): New function that improves readability of the code.
14538         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
14539         Inherit_DT): Use the new function Predefined_DT to improve code
14540         readability.
14541         (Register_Interface_Tag): Update assertion.
14542         (Set_Interface_Table): Update assertion.
14543         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
14544         determining progenitor interfaces in Tags.
14545         (Inherit_CPP_DT): New subprogram.
14547         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
14548         analysis of the thunk code.
14549         (Expand_Interface_Conversion): Handle run-time conversion of
14550         access to class wide types.
14551         (Expand_Dispatching_Call): When generating the profile for the
14552         subprogram itype for a dispatching operation, properly terminate the
14553         formal parameters chaind list (set the Next_Entity of the last formal
14554         to Empty).
14555         (Collect_All_Interfaces): Removed. This routine has been moved to
14556         sem_util and renamed as Collect_All_Abstract_Interfaces.
14557         (Set_All_DT_Position): Hidden entities associated with abstract
14558         interface primitives are not taken into account in the check for
14559         3.9.3(10); this check is done with the aliased entity.
14560         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
14561         interfacing with CPP by default.
14562         (Expand_Interface_Conversion): Add missing support for static conversion
14563         from an interface to a tagged type.
14564         (Collect_All_Interfaces): Add new out formal containing the list of
14565         abstract interface types to cleanup the subprogram Make_DT.
14566         (Make_DT): Update the code to generate the table of interfaces in case
14567         of abstract interface types.
14568         (Is_Predefined_Dispatching_Alias): New function that returns true if
14569         a primitive is not a predefined dispatching primitive but it is an
14570         alias of a predefined dispatching primitive.
14571         (Make_DT): If the ancestor of the type is a CPP_Class and we are
14572         compiling under full ABI compatibility mode we avoid the generation of
14573         calls to run-time services that fill the dispatch tables because under
14574         this mode we currently inherit the dispatch tables in the IP subprogram.
14575         (Write_DT): Emit an "is null" indication for a null procedure primitive.
14576         (Expand_Interface_Conversion): Use an address as the type of the formal
14577         of the internally built function that handles the case in which the
14578         target type is an access type.
14580 2006-10-31  Robert Dewar  <dewar@adacore.com>
14582         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
14584 2006-10-31  Robert Dewar  <dewar@adacore.com>
14586         * bindusg.ads, bindusg.adb:
14587         Change to package and rename procedure as Display, which
14588         now ensures that it only outputs usage information once.
14590 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
14592         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
14593         using RTPs.
14595         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
14596         when using RTPs.
14598 2006-10-31  Robert Dewar  <dewar@adacore.com>
14599             Ed Schonberg  <schonberg@adacore.com>
14601         * treepr.adb: Use new subtype N_Membership_Test
14603         * checks.ads, checks.adb: Add definition for Validity_Check
14604         (Range_Or_Validity_Checks_Suppressed): New function
14605         (Ensure_Valid): Test Validity_Check suppressed
14606         (Insert_Valid_Check): Test Validity_Check suppressed
14607         (Insert_Valid_Check): Preserve Do_Range_Check flag
14608         (Validity_Check_Range): New procedure
14609         (Expr_Known_Valid): Result of membership test is always valid
14610         (Selected_Range_Checks): Range checks cannot be applied to discriminants
14611         by themselves. Disabling those checks must also be done for task types,
14612         where discriminants may be used for the bounds of entry families.
14613         (Apply_Address_Clause_Check): Remove side-effects if address expression
14614         is non-static and is not the name of a declared constant.
14615         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
14616         Code cleanup and new error messages.
14617         (Enable_Range_Check): Test for some cases of suppressed checks
14618         (Generate_Index_Checks): Suppress index checks if index checks are
14619         suppressed for array object or array type.
14620         (Apply_Selected_Length_Checks): Give warning for compile-time detected
14621         length check failure, even if checks are off.
14622         (Ensure_Valid): Do not generate a check on an indexed component whose
14623         prefix is a packed boolean array.
14624         * checks.adb: (Alignment_Checks_Suppressed): New function
14625         (Apply_Address_Clause_Check): New procedure, this is a completely
14626         rewritten replacement for Apply_Alignment_Check
14627         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
14628         we request a discriminal value only in case of discriminants.
14629         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
14630         assignments where the target subtype is unconstrained and the target
14631         object is a parameter or dereference (other aliased cases are known
14632         to be unconstrained).
14634 2006-10-31  Robert Dewar  <dewar@adacore.com>
14636         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
14637         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
14638         vms_conv.adb: Fix bad table increment values (much too small)
14640         * table.adb (Realloc): Make sure we get at least some new elements
14641         Defends against silly small values for table increment
14643 2006-10-31  Robert Dewar  <dewar@adacore.com>
14644             Ed Schonberg  <schonberg@adacore.com>
14645             Bob Duff  <duff@adacore.com>
14647         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
14648         entities. Move other fields around to make this possible
14649         (Is_Derived_Type): Add missing call to Is_Type.
14650         (Extra_Formals): New function for subprograms, entries, subprogram
14651         types.
14652         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
14653         (First_Formal_With_Extras): New function for subprogs, entries, subp
14654         types.
14655         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
14656         Add node information for E_Return_Statement.
14657         (Elaborate_Body_Desirable): New flag
14658         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
14659         to be Is_Inherently_Limited_Type, because return-by-reference has
14660         no meaning in Ada 2005.
14661         (E_Return_Statement): New entity kind.
14662         (Return_Applies_To): Field of E_Return_Statement.
14663         (Is_Return_Object): New flag in object entities.
14664         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
14665         (Must_Have_Preelab_Init): New flag
14666         (Known_To_Have_Preelab_Init): New flag
14667         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
14668         (Is_Visible_Formal): New flag on entities in formal packages.
14669         (Low_Bound_Known): New flag
14670         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
14671         Incomplete_Kind.
14672         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
14673         output when Id is an incomplete subtype.
14675 2006-10-31  Robert Dewar  <dewar@adacore.com>
14677         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
14678         Avoid abbreviation Creat
14679         (Finalize): List all sources in extended mail source if -gnatl
14680         switch is active.
14681         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
14682         (Finalize): Implement new -gnatl=xxx switch to output listing to file
14683         (Set_Specific_Warning_On): New procedure
14684         (Set_Specific_Warning_Off): New procedure
14685         Add implementation of new insertion \\
14686         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
14687         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
14688         types.
14689         (Error_Msg_Internal): Make sure that we set Last_Killed to
14690         True when a message from another package is suppressed.
14691         Implement insertion character ~ (insert string)
14692         (First_Node): Minor adjustments to get better placement.
14694         * frontend.adb: 
14695         Implement new -gnatl=xxx switch to output listing to file
14697         * gnat1drv.adb: 
14698         Implement new -gnatl=xxx switch to output listing to file
14700         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
14701         (Commands_To_Stdout): New flag
14702         Implement new -gnatl=xxx switch to output listing to file
14703         New switch Dump_Source_Text
14704         (Warn_On_Deleted_Code): New warning flag for -gnatwt
14705         Define Error_Msg_Line_Length
14706         (Warn_On_Assumed_Low_Bound): New switch
14708         * osint.ads, osint.adb
14709         (Normalize_Directory_Name): Fix bug.
14710         Implement new -gnatl=xxx switch to output listing to file
14711         (Concat): Removed, replaced by real concatenation
14712         Make use of concatenation now allowed in compiler
14713         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
14714         we find the 'lib' or 'bin' directory even when the tool has been
14715         invoked with a relative path.
14716         (Executable_Name): New function taking string parameters.
14718         * osint-c.ads, osint-c.adb: 
14719         Implement new -gnatl=xxx switch to output listing to file
14721         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
14723         * switch-c.adb: 
14724         Implement new -gnatl=xxx switch to output listing to file
14725         Recognize new -gnatL switch
14726         (no longer keep in old warning about old style usage)
14727         Use concatenation to simplify code
14728         Recognize -gnatjnn switch
14729         (Scan_Front_End_Switches): Clean up handling of -gnatW
14730         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
14732 2006-10-31  Robert Dewar  <dewar@adacore.com>
14734         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
14735         (Set_Specific_Warning_Off): New procedure
14736         (Warning_Specifically_Suppressed): New function
14737         (Validate_Specific_Warnings): New procedure
14738         (Output_Msg_Text): Complete rewrite to support -gnatjnn
14740         * err_vars.ads: Implement insertion character ~ (insert string)
14742 2006-10-31  Bob Duff  <duff@adacore.com>
14743             Ed Schonberg  <schonberg@adacore.com>
14745         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
14746         the parent part is a build-in-place function call, generate assignments.
14747         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
14748         are build-in-place function calls.
14749         (Replace_Self_Reference): New subsidiary of
14750         Make_OK_Assignment_Statement, to replace an access attribute that is a
14751         self-reference into an access to the appropriate component of the
14752         target object. Generalizes previous mechanism to handle self-references
14753         nested at any level.
14754         (Is_Self_Referential_Init): Remove, not needed.
14755         (Is_Self_Referential_Init): New predicate to simplify handling of self
14756         referential components in record aggregates.
14757         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
14758         check for presence of entity before checking for self-reference.
14759         (Has_Default_Init_Comps): Return True if a component association is a
14760         self-reference to the enclosing type, which can only come from a
14761         default initialization.
14762         (Make_OK_Assignment_Statement): If the expression is of the form
14763         Typ'Acc, where Acc is an access attribute, the expression comes from a
14764         default initialized self-referential component.
14765         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
14766         that has been derived from several abstract interfaces we must also
14767         initialize the tags of the secondary dispatch tables.
14769 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
14770             Thomas Quinot  <quinot@adacore.com>
14771             Javier Miranda  <miranda@adacore.com>
14772             Robert Dewar  <dewar@adacore.com>
14774         * exp_attr.adb: 
14775         (Expand_Access_To_Protected_Op): If the context indicates that an access
14776         to a local operation may be transfered outside of the object, create an
14777         access to the wrapper operation that must be used in an external call.
14778         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
14779         target, pass the Valid attribute applied to a floating-point prefix on
14780         to the back end without expansion.
14781         (Storage_Size): Use the new run-time function Storage_Size to retrieve
14782         the allocated storage when it is specified by a per-object expression.
14783         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
14784         Nothing to do here, the attribute has been rewritten during semantic
14785         analysis.
14786         (Expand_Attribute_Reference): Handle expansion of the new Priority
14787         attribute
14788         (Find_Fat_Info): Handle case of universal real
14789         (Expand_Access_To_Protected_Op): Fix use of access to protected
14790         subprogram from inside the body of a protected entry.
14791         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
14792         'Access and 'Unrestricted_Access, to transform the attribute reference
14793         into a fat pointer.
14794         (Is_Constrained_Aliased_View): New predicate to help determine whether a
14795         subcomponent's enclosing variable is aliased with a constrained subtype.
14796         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
14797         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
14798         an aliased prefix must be known to be constrained in order to use True
14799         for the attribute value, and now it's possible for some aliased views
14800         to be unconstrained.
14802 2006-10-31  Robert Dewar  <dewar@adacore.com>
14804         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
14805         (Expand_Entity_Reference): Correct error of not handling subprogram
14806         formals in current_value processing.
14808 2006-10-31  Javier Miranda  <miranda@adacore.com>
14809             Robert Dewar  <dewar@adacore.com>
14810             Ed Schonberg  <schonberg@adacore.com>
14811             Gary Dismukes  <dismukes@adacore.com>
14813         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
14814         register in the final list objects containing class-wide interfaces;
14815         otherwise we incorrectly register the tag of the interface in the final
14816         list.
14817         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
14818         generate the wrapper if the parent primitive is abstract. This is
14819         required to report the correct error message.
14820         (Expand_N_Subtype_Indication): Do validity checks on range
14821         (Clean_Task_Names): If an initialization procedure includes a call to
14822         initialize a task (sub)component, indicate that the procedure will use
14823         the secondary stack.
14824         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
14825         compatibility for interfacing with CPP by default.
14826         (Expand_N_Object_Declaration): Only build an Adjust call when the
14827         object's type is a nonlimited controlled type.
14828         * exp_ch3.adb: Add with and use of Exp_Ch6.
14829         (Expand_N_Object_Declaration): Check for object initialization that is a
14830         call to build-in-place function and apply Make_Build_In_Place_Call_In_
14831         Object_Declaration to the call.
14832         (Freeze_Type): When the designated type of an RACW was not frozen at the
14833         point where the RACW was declared, validate the primitive operations
14834         with respect to E.2.2(14) when it finally is frozen.
14835         (Build_Initialization_Call,Expand_Record_Controller): Rename
14836         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
14837         return-by-reference has no meaning in Ada 2005.
14838         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
14839         to register tag of the immediate ancestor interfaces in the
14840         run-time structure.
14841         (Init_Secondary_Tags): Moved to the specification to allow the
14842         initialization of extension aggregates with abstract interfaces.
14843         (Build_Master_Renaming): Make public, for use by function declarations
14844         whose return type is an anonymous access type.
14845         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
14846         Insert_List_Before_And_Analyze after the generation of the specs
14847         associated with null procedures.
14848         (Expand_Tagged_Root): Update documentation in its specification.
14849         (Init_Secondary_Tags): Update documentation.
14850         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
14851         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
14852         then generate code to inherit the contents of the dispatch table
14853         directly from the ancestor.
14854         (Expand_Record_Controller): Insert controller component after tags of
14855         implemented interfaces.
14856         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
14857         create null procedure overridings when null procedures are inherited
14858         from interfaces.
14859         (Make_Null_Procedure_Specs): New procedure to generate null procedure
14860         declarations for overriding null primitives inherited from interfaces.
14861         (Is_Null_Interface_Procedure): New function in
14862         Make_Null_Procedure_Specs.
14863         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
14864         immediate ancestor of a tagged type is an abstract interface type we
14865         must generate the specification of the predefined primitives associated
14866         with controlled types (because the dispatch table of the ancestor is
14867         null and hence these entries cannot be inherited). This is required to
14868         elaborate well the dispatch table.
14870 2006-10-31  Javier Miranda  <miranda@adacore.com>
14871             Ed Schonberg  <schonberg@adacore.com>
14872             Bob Duff  <duff@adacore.com>
14873             Gary Dismukes  <dismukes@adacore.com>
14874             Robert Dewar  <dewar@adacore.com>
14876         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
14877         conversion.
14878         (Expand_N_In): Do validity checks on range
14879         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
14880         (Expand_N_Allocator): For "new T", if the object is constrained by
14881         discriminant defaults, allocate the right amount of memory, rather than
14882         the maximum for type T.
14883         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
14884         when the allocator is initialized by a build-in-place call, since the
14885         allocator is already rewritten as a reference to the function result,
14886         and this prevents an unwanted duplication of the function call.
14887         Add with and use of Exp_Ch6.
14888         (Expand_Allocator_Expresssion): Check for an allocator whose expression
14889         is a call to build-in-place function and apply
14890         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
14891         untagged designated types).
14892         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
14893         optimization if source or target is biased.
14894         (Expand_N_Allocator): Add comments for case of an allocator within a
14895         function that returns an anonymous access type designating tasks.
14896         (Expand_N_Allocator): apply discriminant checks for access
14897         discriminants of anonymous access types (AI-402, AI-416)
14899 2006-10-31  Bob Duff  <duff@adacore.com>
14900             Robert Dewar  <dewar@adacore.com>
14901             Gary Dismukes  <dismukes@adacore.com>
14902             Ed Schonberg  <schonberg@adacore.com>
14904         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
14906         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
14907         (Expand_N_Assignment_Statement): Call
14908         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
14909         build-in-place function call. Currently, this can happen only for
14910         assignments that come from aggregates.
14911         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
14912         in order to alleviate the upward compatibility introduced by AI-318.
14913         (Expand_N_Extended_Return_Statement): Add support for handling the
14914         return object as a build-in-place result.
14915         (Expand_Non_Function_Return): Implement simple return statements nested
14916         within an extended return.
14917         (Enable_New_Return_Processing): Turn on the new processing of return
14918         statements.
14919         (Expand_Non_Function_Return): For a return within an extended return,
14920         don't raise Program_Error, because Sem_Ch6 now gives a warning.
14921         (Expand_N_Extended_Return_Statement): Implement AI-318
14922         (Expand_Simple_Function_Return): Ditto.
14923         (Expand_N_If_Statement): Handle new -gnatwt warning
14924         (Expand_N_Case_Statement): Handle new -gnatwt warning
14925         (Expand_N_Assignment): Handle assignment to the Priority attribute of
14926         a protected object.
14927         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
14928         validity checking of assignments to elementary record components.
14929         (Expand_N_Return_Statement): return Class Wide types on the secondary
14930         stack independantly of their controlled status since with HIE runtimes,
14931         class wide types are not potentially controlled anymore.
14933         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
14934         node kind.
14936         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
14937         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
14938         it expects a block, procedure, or task. The return statement will get
14939         turned into a block, and Expand_Cleanup_Actions will happen then.
14941 2006-10-31  Robert Dewar  <dewar@adacore.com>
14942             Ed Schonberg  <schonberg@adacore.com>
14943             Bob Duff  <duff@adacore.com>
14944             Gary Dismukes  <dismukes@adacore.com>
14946         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
14947         capability.
14948         (Expand_Inlined_Call): Tagged types are by-reference types, and
14949         therefore should be replaced by a renaming declaration in the expanded
14950         body, as is done for limited types.
14951         (Expand_Call): If this is a call to a function with dispatching access
14952         result, propagate tag from context.
14953         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
14954         CPP by default.
14955         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
14956         build-in-place when the right-hand side of an assignment is a
14957         build-in-place function call.
14958         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
14959         of the explicit dereference of the allocator to the result subtype of
14960         the build-in-place function. This is needed to satisfy type checking
14961         in cases where the caller's return object is created by an allocator for
14962         a class-wide access type and the type named in the allocator is a
14963         specific type.
14964         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
14965         conversion of the reference to the declared object to the result subtype
14966         of the build-in-place function. This is needed to satisfy type checking
14967         in cases where the declared object has a class-wide type. Also, in the
14968         class-wide case, change the type of the object entity to the specific
14969         result subtype of the function, to avoid passing a class-wide object
14970         without explicit initialization to the back end.
14971         (Register_Interface_DT_Entry): Moved outside the body of
14972         Freeze_Subprogram because this routine is now public; it is called from
14973         Check_Dispatching_Overriding to handle late overriding of abstract
14974         interface primitives.
14975         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
14976         adding an implicit access actual on a call to a build-in-place function.
14977         (Expand_Actuals): Test for an actual parameter that is a call to a
14978         build-in-place function and apply
14979         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
14980         (Is_Build_In_Place_Function): New function to determine whether an
14981         entity is a function whose calls should be handled as build-in-place.
14982         (Is_Build_In_Place_Function_Call): New function to determine whether an
14983         expression is a function call that should handled as build-in-place.
14984         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
14985         calls to build-in-place functions as the initialization of an allocator.
14986         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
14987         handling calls to build-in-place functions in contexts that do not
14988         involve init of a separate object (for example, actuals of subprogram
14989         calls).
14990         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
14991         handling calls to build-in-place functions as the initialization of an
14992         object declaration.
14993         (Detect_Infinite_Recursion): Add explicit parameter Process to
14994         instantiation of Traverse_Body to avoid unreferenced warning.
14995         (Check_Overriding_Inherited_Interfaces): Removed.
14996         (Register_Interface_DT_Entry): Code cleanup.
14997         (Register_Predefined_DT_Entry): Code cleanup.
14998         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
14999         inlined statements if within a transient scope.
15000         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
15001         formal parameters with occurrences of actuals in inlined body, establish
15002         visibility on the proper view of the actual's subtype for the body's
15003         context.
15004         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
15005         compatibility mode and we have an imported CPP subprogram because
15006         for now we assume that imported CPP primitives correspond with
15007         objects whose constructor is in the CPP side (and therefore we
15008         don't need to generate code to register them in the dispatch table).
15009         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
15010         aligned selected component.
15011         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
15012         the actual of an in-mode parameter is a type conversion.
15013         (Expand_Actuals): If the call does not come from source and the actual
15014         is potentially misaligned, let gigi handle it rather than rejecting the
15015         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
15016         Class Wide types as returning by reference independantly of their
15017         controlled status since with HIE runtimes class wide types are not
15018         potentially controlled anymore.
15020 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15022         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
15023         references that are private components of the protected object.
15024         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
15025         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
15026         instantiation to deal with warnings.
15027         (Initialize_Protection): If expression for priority is non-static, use
15028         System_Priority as its expected type, in case the expression has not
15029         been analyzed yet.
15031 2006-10-31  Robert Dewar  <dewar@adacore.com>
15033         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
15034         initialization of Homonym_Len.
15035         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
15036         names from fully qualified name. Fixes problem of duplicate
15037         external names differing only in the presence of such a block name.
15039 2006-10-31  Thomas Quinot  <quinot@adacore.com>
15040             Pablo Oliveira  <oliveira@adacore.com>
15042         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
15043         subprogram Ids, even if they are not yet assigned.
15044         (Build_Subprogram_Id): It is now this function that will take care of
15045         calling Assign_Subprogram_Ids if necessary.
15046         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
15047         should be done only once they are assigned.
15048         (Build_From_Any_Function, case of tagged types): Add missing call to
15049         Allocate_Buffer.
15050         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
15051         type for an RACW type.
15052         (Add_RACW_Features): When processing an RACW declaration for which the
15053         designated type is already frozen, enforce E.2.2(14) rules immediately.
15054         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
15055         special reordering of controlling formals.
15057         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
15058         associated stub type for an RACW type.
15060 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15062         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
15063         fixed-point operations in an integer context, i.e. as operands of a
15064         conversion to an integer type, indicate that result must be rounded.
15066 2006-10-31  Robert Dewar  <dewar@adacore.com>
15068         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
15069         cases, pass the encoding method, since it is now required by the run
15070         time.
15072         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
15073         assumption that Str'First = 1.
15074         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
15075         it on to the Value_Wide_Wide_Character call.
15076         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
15077         properly handles a string of the form quote-encoded_wide_char-quote.
15079         * s-wchcnv.adb: Minor reformatting
15081 2006-10-31  Javier Miranda  <miranda@adacore.com>
15083         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
15084         run-time membership test to ensure that the constructed object
15085         implements the target abstract interface.
15087 2006-10-31  Robert Dewar  <dewar@adacore.com>
15089         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
15090         Machine_Attribute pragma internally to implement the user pragma.
15091         Add processing for pragma Interface so that it is now completely
15092         equivalent to pragma Import.
15094         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
15095         so that it can be applied to all entities, including record components
15096         and enumeration literals.
15097         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
15098         priority ranges are correct, verify compatibility against task
15099         dispatching and locking policies, and if everything is correct an entry
15100         is added to the table containing priority specific dispatching entries
15101         for this compilation unit.
15102         (Delay_Config_Pragma_Analyze): Delay processing
15103         Priority_Specific_Dispatching pragmas because when processing the
15104         pragma we need to access run-time data, such as the range of
15105         System.Any_Priority.
15106         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
15107         Allow pragma Unreferenced as a context item
15108         Add pragma Preelaborable_Initialization
15109         (Analyze_Pragma, case Interface): Interface is extended so that it is
15110         now syntactically and semantically equivalent to Import.
15111         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
15112         insertion characters.
15113         Add handling for Pragma_Wide_Character_Encoding
15114         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
15115         never supercedes a real restriction, and that a real restriction
15116         always supercedes a warning.
15117         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
15118         appropriate form.
15120 2006-10-31  Bob Duff  <duff@adacore.com>
15121             Ed Schonberg  <schonberg@adacore.com>
15122             Robert Dewar  <dewar@adacore.com>
15124         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
15125         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
15126         Is_Inherently_Limited_Type, because return-by-reference has no meaning
15127         in Ada 2005.
15128         (Find_Node_To_Be_Wrapped): Use new method of determining the result
15129         type of the function containing a return statement, because the
15130         Return_Type field was removed. We now use the Return_Applies_To field.
15132         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
15133         (Build_Task_Image_Decl): If procedure is not called from an
15134         initialization procedure, indicate that function that builds task name
15135         uses the sec. stack. Otherwise the enclosing initialization procedure
15136         will carry the indication.
15137         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
15138         N_Object_Declaration instead.
15139         (Kill_Dead_Code): New interface to implement -gnatwt warning for
15140         conditional dead code killed, and change implementation accordingly.
15141         (Insert_Actions): Add N_Return_Object_Declaration case.
15142         Correct comment to mention N_Extension_Aggregate node.
15143         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
15144         attempts to save information for global variables which cannot be
15145         safely tracked.
15146         (Get_Current_Value_Condition): Handle conditions the other way round
15147         (constant on left). Also handle right operand of AND and AND THEN
15148         (Set_Current_Value_Condition): Corresponding changes
15149         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
15150         (Get_Current_Value_Condition): Handle simple boolean operands
15151         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
15152         (Get_Current_Value_Condition): If the variable reference is within an
15153         if-statement, does not appear in the list of then_statments, and does
15154         not come from source, treat it as being at unknown location.
15155         (Get_Current_Value_Condition): Enhance to allow while statements to be
15156         processed as well as if statements.
15157         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
15158         come from source.
15159         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
15160         of loop. This is safe now that we fixed Kill_Current_Values.
15161         (OK_To_Do_Constant_Replacement): Check whether current scope is
15162         Standard, before examining outer scopes.
15164 2006-10-31  Vincent Celier  <celier@adacore.com>
15166         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
15167         When True, apply VMS treatment to children of packages A, G, I and S.
15168         For F320-016
15170         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
15172 2006-10-31  Robert Dewar  <dewar@adacore.com>
15173             Ed Schonberg  <schonberg@adacore.com>
15175         * freeze.adb: Add handling of Last_Assignment field
15176         (Warn_Overlay): Supply missing continuation marks in error msgs
15177         (Freeze_Entity): Add check for Preelaborable_Initialization
15179         * g-comlin.adb: Add Warnings (Off) to prevent new warning
15181         * g-expect.adb: Add Warnings (Off) to prevent new warning
15183         * lib-xref.adb: Add handling of Last_Assignment field
15184         (Generate_Reference): Centralize handling of pragma Obsolescent here
15185         (Generate_Reference): Accept an implicit reference generated for a
15186         default in an instance.
15187         (Generate_Reference): Accept a reference for a node that is not in the
15188         main unit, if it is the generic body corresponding to an subprogram
15189         instantiation.
15191         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
15193         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
15194         -gnatwq/Q.
15195         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
15196         exception handler.
15197         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
15198         use clauses, to avoid messages on packages used to qualify, and also
15199         to avoid messages from obsolescent units.
15200         (Warn_On_Useless_Assignments): Don't generate messages for imported
15201         and exported variables.
15202         (Warn_On_Useless_Assignments): New procedure
15203         (Output_Obsolescent_Entity_Warnings): New procedure
15204         (Check_Code_Statement): New procedure
15206         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
15207         Change name Is_Ada_2005 to Is_Ada_2005_Only
15208         (Last_Assignment): New field for useless assignment warning
15210 2006-10-31  Olivier Hainque  <hainque@adacore.com>
15212         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
15213         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
15215 2006-10-31  Bob Duff  <duff@adacore.com>
15216             Robert Dewar  <dewar@adacore.com>
15217             Ed Schonberg  <schonberg@adacore.com>
15219         * g-awk.adb (Default_Session, Current_Session): Compile this file in
15220         Ada 95 mode, because it violates the new rules for AI-318.
15222         * g-awk.ads: Use overloaded subprograms in every case where we used to
15223         have a default of Current_Session. This makes the code closer to be
15224         correct for both Ada 95 and 2005.
15226         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
15227         code, relying on the fact that the compiler generates a warning
15228         instead of an error in -gnatg mode.
15230         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
15231         E_Return_Statement entity kind.
15232         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
15234         * par.adb (P_Interface_Type_Definition): Addition of one formal to
15235         report an error if the reserved word abstract has been previously found.
15236         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
15238         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
15239         parenthesized range attribute usage
15240         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
15242         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
15243         in the syntax for extended_return_statement. This is not in the latest
15244         RM, but the ARG is expected to issue an AI allowing this.
15245         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
15246         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
15247         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
15248         P_Return_Statement): Parse the new syntax for extended_return_statement.
15250         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
15251         Output_End_Missing): Add error-recovery code for the new
15252         extended_return_statement syntax; that is, the new E_Return entry on
15253         the scope stack.
15255         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
15256         limited to nonlimited, because otherwise we violate the new Ada 2005
15257         rules about returning limited types in function Create_AST_Handler in
15258         s-asthan.adb.
15260         * sem.adb (Analyze): Add cases for new node kinds
15261         N_Extended_Return_Statement and N_Return_Object_Declaration.
15263         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
15264         type is in the same category as type of context before applying check,
15265         to prevent anomalies in instantiations.
15266         (Resolve_Aggregate): Remove test for limited components in aggregates.
15267         It's unnecessary in Ada 95, because if it has limited components, then
15268         it must be limited. It's wrong in Ada 2005, because limited aggregates
15269         are now allowed.
15270         (Resolve_Record_Aggregate): Move check for limited types later, because
15271         OK_For_Limited_Init requires its argument to have been resolved.
15272         (Get_Value): When copying the component default expression for a
15273         defaulted association in an aggregate, use the sloc of the aggregate
15274         and not that of the original expression, to prevent spurious
15275         elaboration errors, when the expression includes function calls.
15276         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
15277         were missing. We also didn't handle qualified expressions. Now also
15278         allow function calls. Use new common routine OK_For_Limited_Init.
15279         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
15280         with space can upper case letter).
15282         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
15283         Has_Static_Discriminants flag
15284         (Record_Type_Declaration): Diagnose an attempt to declare an interface
15285         type with discriminants.
15286         (Process_Range_Expr_In_Decl): Do validity checks on range
15287         (Build_Discriminant_Constraints): Use updated form of
15288         Denotes_Discriminant.
15289         (Process_Subtype): If the subtype is a private subtype whose full view
15290         is a concurrent subtype, introduce an itype reference to prevent scope
15291         anomalies in gigi.
15292         (Build_Derived_Record_Type, Collect_Interface_Primitives,
15293         Record_Type_Declaration):  The functionality of the subprograms
15294         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
15295         is now performed by a single routine.
15296         (Build_Derived_Record_Type): If the type definition includes an explicit
15297         indication of limitedness, then the type must be marked as limited here
15298         to ensure that any access discriminants will not be treated as having
15299         a local anonymous access type.
15300         (Check_Abstract_Overriding): Issue a detailed error message when an
15301         abstract subprogram was not overridden due to incorrect mode of its
15302         first parameter.
15303         (Analyze_Private_Extension_Declaration): Add support for the analysis of
15304         synchronized private extension declarations. Verify that the ancestor is
15305         a limited or synchronized interface or in the generic case, the ancestor
15306         is a tagged limited type or synchronized interface and all progenitors
15307         are either limited or synchronized interfaces.
15308         Derived_Type_Declaration): Check for presence of private extension when
15309         dealing with synchronized formal derived types.
15310         Process_Full_View): Enchance the check done on the usage of "limited" by
15311         testing whether the private view is synchronized.
15312         Verify that a synchronized private view is completed by a protected or
15313         task type.
15314         (OK_For_Limited_Init_In_05): New function.
15315         (Analyze_Object_Declaration): Move check for limited types later,
15316         because OK_For_Limited_Init requires its argument to have been resolved.
15317         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15318         in order to alleviate the upward compatibility introduced by AI-318.
15319         (Constrain_Corresponding_Record): If the constraint is for a component
15320         subtype, mark the itype as frozen, to avoid out-of-scope references to
15321         discriminants in the back-end.
15322         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
15323         this subprogram against wrong sources.
15324         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
15325         discriminant of limited type completed with a protected type, when the
15326         discriminant is used to constrain a private component of the type, and
15327         expansion is disabled.
15328         (Find_Type_Of_Object): Do not treat a return subtype that is an
15329         anonymous subtype as a local_anonymous_type, because its accessibility
15330         level is the return type of the enclosing function.
15331         (Check_Initialization): In -gnatg mode, turn the error "cannot
15332         initialize entities of limited type" into a warning.
15333         (OK_For_Limited_Init): Return true for generated nodes, since it
15334         sometimes violates the legality rules.
15335         (Make_Incomplete_Declaration): If the type for which an incomplete
15336         declaration is created happens to be the currently visible entity,
15337         preserve the homonym chain when removing it from visibility.
15338         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
15339         inherited subprograms.
15340         (Access_Definition): If this is an access to function that is the return
15341         type of an access_to_function definition, context is a type declaration
15342         and the scope of the anonymous type is the current one.
15343         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
15344         incomplete subtype to the set of private dependents of the original
15345         incomplete type.
15346         (Constrain_Discriminated_Type): Emit an error message whenever an
15347         incomplete subtype is being constrained.
15348         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
15349         corresponding subtype of the full view of the original incomplete type.
15350         (Check_Incomplete): Properly detect invalid usage of incomplete types
15351         and subtypes.
15353 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
15355         * g-catiio.ads, g-catiio.adb (Value): New function.
15356         Given an input String, try and parse a valid Time value.
15358 2006-10-31  Vincent Celier  <celier@adacore.com>
15360         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
15361         Integer_Address arithmetic, as in Set_Valid.
15363 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
15364             Robert Dewar  <dewar@adacore.com>
15366         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
15367         handling executable extension manually and duplicating code.
15369         * make.adb: Implement new -S switch
15370         (Gnatmake): Use new function Osint.Executable_Name instead
15371         of handling executable extension manually.
15373         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
15374         is specified, the executable name ends with this suffix.
15375         Take advantage of Osint.Executable_Name instead of duplicating code.
15377         * switch-m.adb: Recognize new gnatmake -S switch
15379         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
15380         variable.
15381         (Get_Target_Parameters): Set Executable_Extension_On_Target if
15382         available.
15384         * makeusg.adb: Add line for gnatmake -S switch
15386 2006-10-31  Vincent Celier  <celier@adacore.com>
15388         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
15389         call it with -static-libgcc, as there are some platforms, such as
15390         Darwin, where one of these two switches is compulsory to link.
15392 2006-10-31  Vincent Celier  <celier@adacore.com>
15394         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
15395         instead of ADA_PROJECT_PATH, for the project path.
15396         (Gnatls): When displaying the project path directories, use host dir
15397         specs.
15399         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
15400         names in the project path, as absolute paths may correspond to
15401         multi-valued VMS logical names.
15403 2006-10-31  Vincent Celier  <celier@adacore.com>
15405         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
15406         absolute path name.
15407         (Locate_Regular_File): Ditto
15408         (Change_Dir): Remove, no longer used
15409         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
15410         on Windows. Get it calling Get_Current_Dir.
15411         (OpenVMS): Remove imported boolean, no longer needed.
15412         (Normalize_Pathname)[VMS]: Do not resolve directory names.
15413         (Pid_To_Integer): New function to convert a Process_Id to  Integer
15415 2006-10-31  Thomas Quinot  <quinot@adacore.com>
15417         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
15418         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
15419         to No_Socket.
15420         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
15421         W_Sig_Socket.
15423 2006-10-31  Robert Dewar  <dewar@adacore.com>
15425         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
15426         initial letter o as a zero.
15428 2006-10-31  Robert Dewar  <dewar@adacore.com>
15430         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
15432 2006-10-31  Robert Dewar  <dewar@adacore.com>
15434         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
15435         variant records
15436         (Layout_Variant_Record): Retrieve the discriminants from the entity
15437         rather than from the type definition, because in the case of a full
15438         type for a private type we need to take the discriminants from the
15439         partial view.
15440         (Layout_Component_List): When applying the Max operator to variants with
15441         a nonstatic size, check whether either operand is static and scale that
15442         operand from bits to storage units before applying Max.
15443         (Layout_Type): In VMS, if a C-convention access type has no explicit
15444         size clause (and does not inherit one in the case of a derived type),
15445         then the size is reset to 32 from 64.
15447 2006-10-31  Vincent Celier  <celier@adacore.com>
15449         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
15450         its file has already been loaded, according to the unit being loaded,
15451         not to the current value of Multiple_Unit_Index.
15453 2006-10-31  Thomas Quinot  <quinot@adacore.com>
15454             Eric Botcazou  <ebotcazou@adacore.com>
15455             Arnaud Charlet  <charlet@adacore.com>
15457         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
15458         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
15459         possible.
15460         (a-except.o): Pass it to the compiler.
15461         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
15462         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
15463         a-calend-mingw.adb version.
15465         * Makefile.rtl: Added s-dsaser.
15466         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
15467         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
15468         Ada.Dispatching.Round_Robin.
15469         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
15471         * Make-lang.in: Remove all references to gt-ada-decl.h.
15472         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
15473         sources.
15474         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
15475         Update dependencies.
15477         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
15479 2006-10-31  Vincent Celier  <celier@adacore.com>
15481         * mlib-utl.adb (Initialized): Remove, no longer used
15482         (Initialize): Remove, no longer used
15483         (Ar): If Ar_Exec is null, get the location of the archive builder and,
15484         if there is one, the archive indexer. Fail if the archive builder cannot
15485         be found.
15486         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
15487         be found.
15489 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15491         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
15492         Process_Body_Clauses): If the context of a body includes a use clause
15493         for P.Q then a with_clause for P in the same body is not redundant,
15494         even if the spec also has a with_clause on P.
15495         Add missing continuation mark to error msg
15496         (Build_Limited_Views): A limited view of a type is tagged if its
15497         declaration includes a record extension.
15498         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
15499         node, even if the subunit has errors. This avoids malfunction by
15500         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
15501         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
15502         generation of obsolescent messages for with statements (cannot do
15503         this too early, or we cannot implement avoiding the messages in the
15504         case of obsolescent units withing obsolescent units).
15505         (Install_Siblings): If the with_clause is on a remote descendant of
15506         an ancestor of the current compilation unit, find whether there is
15507         a sibling child unit that is immediately visible.
15508         (Remove_Private_With_Clauses): New procedure, invoked after completing
15509         the analysis of the private part of a nested package, to remove from
15510         visibility the private with_clauses of the enclosing package
15511         declaration.
15512         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
15513         now centralized in Generate_Reference.
15514         (Install_Limited_Context_Clauses): Remove superfluous error
15515         message associated with unlimited view visible through use
15516         and renamings. In addition, at the point in which the error
15517         is reported, we add the backslash to the text of the error
15518         to ensure that it is reported as a single error message.
15519         Use new // insertion for some continuation messages
15520         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
15521         to create implicit with_clause for parent unit mentioned in original
15522         limited_with_clause.
15523         (Install_Limited_With_Unit): Set entity of parent identifiers if the
15524         unit is a child unit. For ASIS queries.
15525         (Analyze_Subunit): If the subunit appears within a child unit, make all
15526         ancestor child units directly visible again.
15528 2006-10-31  Robert Dewar  <dewar@adacore.com>
15530         * par-ch10.adb (P_Context_Clause): Minor error message fix
15532 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
15533             Javier Miranda  <miranda@adacore.com>
15535         * par-ch12.adb: Grammar update and cleanup.
15536         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
15537         support for synchronized derived type definitions.
15538         Add the new actual Abstract_Present to every call to
15539         P_Interface_Type_Definition.
15540         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
15541         a formal object declaration with an access definition or a subtype mark
15542         with a null exclusion.
15543         (P_Generic_Association): Handle association with box, and others_choice
15544         with box, to support Ada 2005 partially parametrized formal packages.
15546 2006-10-31  Robert Dewar  <dewar@adacore.com>
15547             Javier Miranda  <miranda@adacore.com>
15549         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
15550         (P_Type_Declaration): Remove barrier against the reserved word "limited"
15551         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
15552         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
15553         private extensions.
15554         (P_Type_Declaration): Add the new actual Abstract_Present to every call
15555         to P_Interface_Type_Definition.
15556         (P_Interface_Type_Definition): Addition of one formal to report an error
15557         if the reserved word abstract has been previously found.
15558         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
15559         object renaming declaration with an access definition or subtype mark
15560         with a possible null exclusion.
15562         * par-ch9.adb: Minor error msg fix
15564         * par-load.adb: Add missing continuation mark to error msg
15566         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
15568 2006-10-31  Vincent Celier  <celier@adacore.com>
15570         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
15571         unknown attribute in unknown package or in package that does not need
15572         to be checked.
15573         (Parse_Package_Declaration): Do not issue warning for unknown package in
15574         quiet output.
15576 2006-10-31  Vincent Celier  <celier@adacore.com>
15578         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
15579         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
15580         Packages_To_Check.
15582 2006-10-31  Vincent Celier  <celier@adacore.com>
15584         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
15585         on VMS, change "__" to '.' before checking the name.
15586         (Record_Ada_Source): Always add the source file name in the list of
15587         of sources, even if it is not the first time, as it is for another
15588         source index.
15589         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
15590         dot, instead of replacing only the first '_'.
15592         * prj-part.adb (Parse): Convert project file path to canonical form
15594         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
15595         extended, the project id of the project extending it is recorded in its
15596         data, even when it has already been processed as an imported project.
15598 2006-10-31  Robert Dewar  <dewar@adacore.com>
15600         * repinfo.adb (List_Entities): Don't list entities from renaming
15601         declarations.
15603 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
15604             Robert Dewar  <dewar@adacore.com>
15606         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
15607         only a restriction warning is active for the given restriction. This is
15608         desirable because we do not want to modify code in the case where only
15609         a warning is set.
15610         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
15611         causes overriding of real restrictions.
15612         Take advantage of new No_Restrictions constant.
15614         * raise.h: (__gnat_set_globals): Change profile.
15616 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
15618         * rtsfind.adb: Remove s-polint from comment as it exists no more.
15620         * rtsfind.ads: 
15621         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
15622         Move all the entities in obsolete package System.PolyORB_Interface to
15623         System.Partition_Interface.
15624         (RE_Storage_Size): New function in System.Tasking.
15625         (RE_Get_Ceiling): New entity.
15626         (RE_Set_Ceiling): New entity.
15627         (RO_PE_Get_Ceiling): New entity.
15628         (RO_RE_Set_Ceiling): New entity.
15629         (Inherit_CPP_DT): New entity
15631 2006-10-31  Robert Dewar  <dewar@adacore.com>
15633         * scng.adb (Scan, case of numeric literal): Better msg for identifier
15634         starting with a digit.
15636 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15637             Thomas Quinot  <quinot@adacore.com>
15638             Javier Miranda  <miranda@adacore.com>
15639             Gary Dismukes  <dismukes@adacore.com>
15641         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
15642         properly an attempt to apply Unchecked_Access to a protected operation.
15643         (OK_Self_Reference): New subprogram to check the legality of an access
15644         attribute whose prefix is the type of an enclosing aggregate.
15645         Generalizes previous mechanism to handle attribute references nested
15646         arbitrarily deep within the aggregate.
15647         (Analyze_Access_Attribute): An access attribute whose prefix is a type
15648         can appear in an aggregate if this is a default-initialized aggregate
15649         for a self-referential type.
15650         (Resolve_Attribute, case Access): Ditto.
15651         Add support for new implementation defined attribute Stub_Type.
15652         (Eval_Attribute, case Attribute_Stub_Type): New case.
15653         (Analyze_Attribute, case Attribute_Stub_Type): New case.
15654         (Stream_Attribute_Available): Implement using new subprogram from
15655         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
15656         Has_Specified_Stream_Attribute flag.
15657         Disallow Storage_Size and Storage_Pool for access to subprogram
15658         (Resolve_Attribute, case 'Access et al): Take into account anonymous
15659         access types of return subtypes in extended return statements. Remove
15660         accessibility checks on anonymous access types when Unchecked_Access is
15661         used.
15662         (Analyze_Attribute): Add support for the use of 'Class to convert
15663         a class-wide interface to a tagged type.
15664         Add support for the attribute Priority.
15665         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
15666         whether the designated type is discriminated with a constrained partial
15667         view and require static matching in that case.
15668         Add local variable Des_Btyp. The Designated_Type
15669         of an access to incomplete subtype is either its non-limited view if
15670         coming from a limited with or its etype if regular incomplete subtype.
15672         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
15673         Fix predicate to identify and allow cases of (expander-generated)
15674         references to tag of designated object of a RACW.
15675         (Validate_Static_Object_Name): In Ada 2005, a formal object is
15676         non-static, and therefore cannot appear as a primary in a preelaborable
15677         package.
15678         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
15679         Has_Read_Write_Attributes.
15680         (Has_Read_Write_Attributes): Reimplement in termes of
15681         Has_Stream_Attribute_Definition.
15682         (Missing_Read_Write_Attributes): When checking component types in a
15683         record, unconditionally call Missing_Read_Write_Attributes recursively
15684         (remove guard checking for Is_Record_Type / Is_Access_Type).
15686 2006-10-31  Robert Dewar  <dewar@adacore.com>
15688         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
15689         useless assignments here and conditionalize it on absence of exception
15690         handlers.
15691         (Analyze_Exception_Handlers): Small code reorganization of error
15692         detection code, for new handling of formal packages.
15694 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15695             Hristian Kirtchev  <kirtchev@adacore.com>
15697         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
15698         that has been constant-folded, preserve information of original tree,
15699         for ASIS uses.
15700         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
15701         generated private extension declaration if the formal derived type is
15702         synchronized. Carry synchronized present over to the generated private
15703         extension.
15704         (Validate_Derived_Type_Instance): Ensure that the actual of a
15705         synchronized formal derived type is a synchronized tagged type.
15706         (Instantiate_Formal_Package): When creating the instantiation used to
15707         validate the actual package of a formal declared without a box, check
15708         whether the formal itself depends on a prior actual.
15709         (Instantiate_Formal_Subprogram): Create new entities for the defining
15710         identifiers of the formals in the renaming declaration, for ASIS use.
15711         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
15712         a renaming declaration or a subtype declaration for an actual in an
15713         instance, capture location information of declaration in generic, for
15714         ASIS use.
15715         (Instantiate_Formal_Package): Add comments on needed additional tests.
15716         AI-317 (partial parametrization) is fully implemented.
15717         (Validate_Private_Type_Instance): Add check for actual which
15718         must have preelaborable initialization
15719         Use new // insertion for some continuation messages
15720         (Analyze_Formal_Object_Declaration): Change usage of Expression to
15721         Default_Expression. Add type retrieval when the declaration has an
15722         access definition. Update premature usage of incomplete type check.
15723         (Check_Access_Definition): New subsidiary routine. Check whether the
15724         current compilation version is Ada 05 and the supplied node has an
15725         access definition.
15726         (Instantiate object): Alphabetize local variables. Handle the creation
15727         of new renaming declarations with respect to the kind of definition
15728         used - either an access definition or a subtype mark. Guard against
15729         unnecessary error message in the context of anonymous access types after
15730         they have been resolved. Add check for required null exclusion in a
15731         formal object declaration.
15732         (Switch_View): A private subtype of a non-private type needs to be
15733         switched (the base type can have been switched without its private
15734         dependents because of the last branch of Check_Private_View.
15735         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
15736         value from BT.
15737         (Instantiate_Type): Emit an error message whenever a class-wide type of
15738         a tagged incomplete type is used as a generic actual.
15739         (Find_Actual_Type): Extend routine to handle a component type in a child
15740         unit that is imported from a formal package in a parent.
15741         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
15742         agree on constrainedness, rather than checking against ultimate ancestor
15743         (Instantiate_Subprogram_Body): Create a cross-reference link to the
15744         generic body, for navigation purposes.
15746 2006-10-31  Robert Dewar  <dewar@adacore.com>
15747             Thomas Quinot  <quinot@adacore.com>
15749         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
15750         type.
15751         (New_Stream_Subprogram): When processing an attribute definition clause
15752         for a stream-oriented subprogram, record an entity node occurring at
15753         the point of clause to use for checking the visibility of the clause,
15754         as defined by 8.3(23) as amended by AI-195.
15755         (New_Stream_Subprogram): New procedure, factoring behaviour from both
15756          New_Stream_Function and New_Stream_Procedure.
15757         (New_Stream_Function, New_Stream_Procedure): Removed.
15758         (Analyze_Attribute_Definition_Clause, case Address): Check new
15759         Alignment_Check check
15761 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15762             Javier Miranda  <miranda@adacore.com>
15763             Robert Dewar  <dewar@adacore.com>
15765         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
15766         generate the same errors compiling under -gnatc.
15767         (Try_Object_Operation): If no candidate interpretation succeeds, but
15768         there is at least one primitive operation with the right name, report
15769         error in call rather than on a malformed selected component.
15770         (Analyze_Selected_Component): If the prefix is an incomplete type from
15771         a limited view, and the full view is available, use the full view to
15772         determine whether this is a prefixed call to a primitive operation.
15773         (Operator_Check): Verify that a candidate interpretation is a binary
15774         operation before checking the type of its second formal.
15775         (Analyze_Call): Add additional warnings for function call contexts not
15776         yet supported.
15777         (Analyze_Allocator): Move the check for "initialization not allowed for
15778         limited types" after analyzing the expression. This is necessary,
15779         because OK_For_Limited_Init looks at the structure of the expression.
15780         Before analysis, we don't necessarily know what sort of expression it
15781         is. For example, we don't know whether F(X) is a function call or an
15782         indexed component; the former is legal in Ada 2005; the latter is not.
15783         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
15784         were missing. We also didn't handle qualified expressions. Now also
15785         allow function calls. Use new common routine OK_For_Limited_Init.
15786         (Analyze_Type_Conversion): Do not perform some legality checks in an
15787         instance, because the error message will be redundant or spurious.
15788         (Analyze_Overloaded_Selected_Component): Do not do style check when
15789         setting an entity, since we do not know it is the right entity yet.
15790         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
15791         (Analyze_Overloaded_Selected_Component): Same change
15792         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
15793         since regular incomplete subtypes are transformed into corresponding
15794         subtypes of their full views.
15795         (Complete_Object_Operation): Treat name of transformed subprogram call
15796         as coming from source, for browsing purposes.
15797         (Try_Primitive_Operation): If formal is an access parameter, compare
15798         with base type of object to determine whether it is a primitive
15799         operation.
15800         (Operator_Check): If no interpretation of the operator matches, check
15801         whether a use clause on any candidate might make the operation legal.
15802         (Try_Class_Wide_Operation): Check whether the first parameter is an
15803         access type whose designated type is class-wide.
15805 2006-10-31  Robert Dewar  <dewar@adacore.com>
15806             Ed Schonberg  <schonberg@adacore.com>
15807             Gary Dismukes  <dismukes@adacore.com>
15809         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
15810         warn on infinite loops.
15811         Add \\ to some continuation messages
15812         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
15813         (Process_Bounds): If the bounds are integer literals that result from
15814         constant-folding, and they carry a user-defined type, preserve that type
15815         rather than treating this as an integer range.
15816         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
15817         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
15818         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
15819         left hand side of assignment.
15820         (Analyze_Assignment): Add suport to manage assigments to the attribute
15821         priority of a protected object.
15822         (Check_Possible_Current_Value_Condition): Allow fully qualified names
15823         not just identifiers.
15824         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
15825         or AND THEN for possible tracking.
15826         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
15827         case of while loops so we can track values in the loop body.
15829 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15830             Hristian Kirtchev  <kirtchev@adacore.com>
15831             Bob Duff  <duff@adacore.com>
15833         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
15834         procedure cannot be a protected operation (it is a basic_declaration,
15835         not a subprogram_declaration).
15836         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
15837         Subp. Add logic for entry processing.
15838         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
15839         Determine whether an entry or subprogram of a protected or task type
15840         override an inherited primitive of an implemented interface.
15841         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
15842         Update the actual used in calls to Check_Overriding_Indicator.
15843         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
15844         generate the proper reference to the parent unit, for cross-reference.
15845         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
15846         Is_Formal.
15847         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15848         (Add_Extra_Formal): Revise procedure to allow passing in associated
15849         entity, scope, and name suffix, and handle setting of the new
15850         Extra_Formals field.
15851         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
15852         pass new parameters. Add support for adding the new extra access formal
15853         for functions whose calls are treated as build-in-place.
15854         (Analyze_A_Return_Statement): Correct casing in error message.
15855         Move Pop_Scope to after Analyze_Function_Return, because an extended
15856         return statement really is a full-fledged scope. Otherwise, visibility
15857         doesn't work right. Correct use of "\" for continuation messages.
15858         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
15859         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
15860         the node doesn't get properly marked as analyzed.
15861         (Analyze_Subprogram_Body): If subprogram is a function that returns
15862         an anonymous access type that denotes a task, build a Master Entity
15863         for it.
15864         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
15865         proper usage of null exclusion in a result definition.
15866         (Process_Formals): Code cleanup and new error message.
15867         (Process_Formals): Detect incorrect application of null exclusion to
15868         non-access types.
15869         (Conforming_Types): Handle conformance between [sub]types and itypes
15870          generated for entities that have null exclusions applied to them.
15871         (Maybe_Primitive_Operation): Add an additional type retrieval when the
15872          base type is an access subtype. This case arrises with null exclusions.
15873         (New_Overloaded_Entity): Do not remove the overriden entity from the
15874         homonym chain if it corresponds with an abstract interface primitive.
15875         (Process_Formals): Replace membership test agains Incomplete_Kind with a
15876         call to the synthesized predicate Is_Incomplete_Type.
15877         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
15878         primitives.
15879         (Analyze_Subprogram_Declaration): Check that abstract interface
15880         primitives are abstract or null.
15881         (Analyze_Subprogram_Specification): Remove previous check for abstract
15882         interfaces because it was not complete.
15883         (Has_Interface_Formals): Removed.
15885 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15886             Javier Miranda  <miranda@adacore.com>
15888         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
15889         of Analyze_Package_Body, to create Itype references for anonymous
15890         access types created in the package declaration, whose designated types
15891         may have only a limited view.
15892         (Analyze_Package_Specification): For the private part of a nested
15893         package, install private_with_clauses of enclosing compilation unit if
15894         we are in its visible part.
15895         (Declare_Inherited_Private_Subprograms): Complete barrier
15896         to ensure that the primitive operation has an alias to some parent
15897         primitive. This is now required because, after the changes done for the
15898         implementation of abstract interfaces, the contents of the list of
15899         primitives has entities whose alias attribute references entities of
15900         such list of primitives.
15901         (Analyze_Package_Specification): Simplify code that handles parent units
15902         of instances and formal packages.
15903         (Uninstall_Declarations): Check the convention consistency among
15904         primitive overriding operations of a tagged record type.
15906 2006-10-31  Robert Dewar  <dewar@adacore.com>
15907             Hristian Kirtchev  <kirtchev@adacore.com>
15908             Javier Miranda  <miranda@adacore.com>
15909             Ed Schonberg  <schonberg@adacore.com>
15911         * sem_ch8.adb: Minor error msg rewording
15912         (Undefined): When checking for misspellings, invert arguments (to get
15913         expected and found set right)
15914         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
15915         (Analyze_Generic_Renaming): Same fix
15916         (Use_One_Package): Do not take into account the internal entities of
15917         abstract interfaces during the analysis of entities that are marked
15918         as potentially use-visible.
15919         (Find_Type): Handle the case of an attribute reference for
15920         implementation defined attribute Stub_Type (simply let the analysis of
15921         the attribute reference rewrite it).
15922         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
15923         type that appears in a Use_Type clause.
15924         (Analyze_Object_Renaming): Add support for renaming of the Priority
15925         attribute.
15926         (Find_Type): In Ada 2005, a task type can be used within its own body,
15927         when it appears in an access definition.
15928         (Analyze_Object_Renaming): Remove warning on null_exclusion.
15929         (Analyze_Object_Renaming): Introduce checks for required null exclusion
15930          in a formal object declaration or in a subtype declaration.
15931         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
15932         (Check_Null_Exclusion): New local routine to
15933         Analyze_Subprogram_Renaming. Check whether the formals and return
15934         profile of a renamed subprogram have required null exclusions when
15935         their counterparts of the renaming already impose them.
15936         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
15937         Determine whether an entity is inside a generic scope.
15938         (In_Open_Scope): First pass of documentation update.
15939         (Find_Expanded_Name): Add support for shadow entities associated with
15940         limited withed packages. This is required to handle nested packages.
15941         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
15942         that makes a renaming of a limited withed package illegal.
15944 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
15945             Ed Schonberg  <schonberg@adacore.com>
15947         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
15948         Check_Overriding_Indicator.
15949         (Analyze_Task_Definition): Ditto.
15950         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
15951         (Check_Overriding_Indicator): To find overridden interface operation,
15952         examine only homonyms that have an explicit subprogram declaration, not
15953         inherited operations created by an unrelated type derivation.
15954         (Check_Overriding_Indicator): When checking for the presence of "null"
15955         in a procedure, ensure that the queried node is a procedure
15956         specification.
15957         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
15958         type when the formal is an access to variable.
15959         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
15960         (Analyze_Task_Type): Same addition
15961         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
15962         provide navigation capabilities for entries.
15964 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
15965             Ed Schonberg  <schonberg@adacore.com>
15966             Javier Miranda  <miranda@adacore.com>
15967             Gary Dismukes  <dismukes@adacore.com>
15969         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
15970         inherited from an interface ancestor by another interface in the
15971         context of an instance as 'late'.
15972         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
15973         of a call to a function that dispatches on access result.
15974         (Check_Dispatching_Operation): In case of late overriding of a primitive
15975         that covers abstract interface subprograms we register it in all the
15976         secondary dispatch tables associated with abstract interfaces.
15977         (Check_Dispatching_Call): Add check that a dispatching call is not made
15978         to a function with a controlling result of a limited type. This is a
15979         current implementation restriction.
15980         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
15981         (Check_Dispatching_Operation): Do no emit a warning if the controlling
15982         argument is an interface type that is a generic formal.
15983         (Is_Interface_Subprogram): Removed.
15984         (Check_Dispatching_Operation): If the subprogram is not a dispatching
15985         operation, check the formals to handle the case in which it is
15986         associated with an abstract interface type.
15988 2006-10-31  Robert Dewar  <dewar@adacore.com>
15989             Ed Schonberg  <schonberg@adacore.com>
15991         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
15992         Add new calls to this procedure during traversal
15993         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
15994         another unit if expansion is disabled.
15996 2006-10-31  Robert Dewar  <dewar@adacore.com>
15998         * sem_eval.adb (Compile_Time_Compare): Make use of information from
15999         Current_Value in the conditional case, to evaluate additional
16000         comparisons at compile time.
16002 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16003             Hristian Kirtchev  <kirtchev@adacore.com>
16004             Javier Miranda  <miranda@adacore.com>
16006         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
16007         subprogram type to provide better diagnostics in case of ambiguity.
16008         (Covers): Handle coverage of formal and actual anonymous access types in
16009         the context of generic instantiation.
16010         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
16011         abstract interface types; this is required to handle concurrent types
16012         with discriminants and abstract interface types.
16013         (Covers): Include type coverage of both regular incomplete subtypes and
16014         incomplete subtypes of incomplete type visibles through a limited with
16015         clause.
16017 2006-10-31  Robert Dewar  <dewar@adacore.com>
16018             Hristian Kirtchev  <kirtchev@adacore.com>
16019             Ed Schonberg  <schonberg@adacore.com>
16021         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
16022         messages for entities in packages which are not used.
16023         (Collect_Synchronized_Interfaces): New procedure.
16024         (Overrides_Synchronized_Primitive): New function.
16025         (Denotes_Discriminant): Extend predicate to apply to task types.
16026         Add missing continuation marks in error msgs
16027         (Unqualify): New function for removing zero or more levels of
16028         qualification from an expression. There are numerous places where this
16029         ought to be used, but we currently only deal properly with zero or one
16030         level.
16031         (In_Instance); The analysis of the actuals in the instantiation of a
16032         child unit is not within an instantiation, even though the parent
16033         instance is on the scope stack.
16034         (Safe_To_Capture_Value): Exclude the case of variables that are
16035         renamings.
16036         (Check_Obsolescent): Removed
16037         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
16038         is an aliased view, even when rewritten as a reference to the target
16039         object in an assignment.
16040         (Get_Subprogram_Entity): New function
16041         (Known_To_Be_Assigned): New function
16042         (Type_Access_Level): Compute properly the access level of a return
16043         subtype that is an anonymous access type.
16044         (Explain_Limited_Type): Correct use of "\" for continuation messages.
16045         (Is_Transfer): The new extended_return_statement causes a transfer of
16046         control.
16047         (Has_Preelaborable_Initialization): New function
16048         (Has_Null_Exclusion): New function. Given a node N, determine whether it
16049         has a null exclusion depending on its Nkind.
16050         Change Is_Lvalue to May_Be_Lvalue
16051         (May_Be_Lvalue): Extensive additional code to deal with subprogram
16052         arguments (IN parameters are not Lvalues, IN OUT parameters are).
16053         (Safe_To_Capture_Value): Extend functionality so it can be used for
16054         the current value condition case.
16055         (Has_Compatible_Alignment): New function
16056         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
16057         objects to handle the Ada 2005 case, where aliasedness no longer implies
16058         that the object is constrained. In particular, for dereferenced names,
16059         the designated object must be assumed to be unconstrained.
16060         (Kill_Current_Values): Properly deal with the case where we encounter
16061         a loop in the scope chain.
16062         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
16063         a value.
16064         (Compile_Time_Constraint_Error): Improve error message in error case
16066         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
16067         associated with entities of abstract interface primitives.
16068         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
16070 2006-10-31  Robert Dewar  <dewar@adacore.com>
16072         * s-osinte-tru64.adb: 
16073         Mark Asm statements Volatile to prevent warnings (seems a
16074         reasonable change anyway)
16075         Fixes new warnings
16077         * s-mastop-irix.adb: Add Volatile to Asm statements
16078         Suppresses warning, and seems appropriate in any case
16080         * s-osinte-vms.adb: Add Volatile to Asm statement
16082         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
16084         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
16085         returned.
16086         Add call to Check_Code_Statement
16088 2006-10-31  Robert Dewar  <dewar@adacore.com>
16089             Ed Schonberg  <schonberg@adacore.com>
16090             Bob Duff  <duff@adacore.com>
16092         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
16093         Synchronized_Present): Add Formal_Derived_Type_Definition and
16094         Private_Extension_Declaration to the list of assertions.
16095         (Is_Entry_Barrier_Function): New flag
16096         (Has_Self_Reference): New flag on aggregates, to indicate that they
16097         contain a reference to the enclosing type, inserted through a default
16098         initialization.
16099         (Next_Rep_Item): Move from Node4 to Node5.
16100         (Entity): Add this field for N_Attribute_Definition_Clause.
16101         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
16102         (N_Return_Object_Declaration): Remove this node kind. We now use
16103         N_Object_Declaration instead.
16104         (Actual_Designated_Subtype): Move to a different place to make room in
16105         N_Extended_Return_Statement.
16106         (Procedure_To_Call): Move to a different place to make room in
16107         N_Extended_Return_Statement.
16108         (Return_Type): Removed this field to make room in return statements
16109         (both kinds).
16110         (Return_Statement_Entity): New field in return statements, in part to
16111         replace Return_Type, and in part to support the fact that return
16112         statements are now pushed on the scope stack during semantic analysis.
16113         (Return_Object_Declarations): New field to support extended return
16114         statements.
16115         (N_Extended_Return_Statement): New node for extended_return_statement
16116         nonterminal.
16117         (N_Return_Object_Declaration): New node for part of
16118         extended_return_statement nonterminal. Needed because all the necessary
16119         fields won't fit in N_Extended_Return_Statement.
16120         Generic_associations now carry the Box_Present flag, to indicate a
16121         default for an actual in a partially parametrized formal package.
16123         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
16124         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
16125         and for the new predefined dispatching policies: EDF_Across_Priorities,
16126         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
16127         Introduce new name Stub_Type for implementation defined attribute.
16128         Add pragma Preelaborable_Initialization
16129         Add entry for Priority attribute.
16130         Add Pragma_Wide_Character_Encoding
16131         (Get_Convention_Name): Given a convention id, this function returns the
16132         corresponding name id from the names table.
16134 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16135             Robert Dewar  <dewar@adacore.com>
16136             Bob Duff  <duff@adacore.com>
16138         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
16139         print null exclusion twice in the case of an access definition,
16140         Implement new -gnatL switch
16141         Remove N_Return_Object_Declaration. We now use
16142         N_Object_Declaration instead. Implement the case for
16143         N_Extended_Return_Statement. Alphabetize the cases.
16144         Add cases for new nodes N_Extended_Return_Statement and
16145         N_Return_Object_Declaration. The code is not yet written.
16146         Update the output for N_Formal_Object_Declaration
16147         and N_Object_Renaming_Declaration.
16148         (Write_Itype): Account for the case of a modular integer subtype whose
16149         base type is private.
16151 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
16153         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
16154         Remove elaboration code, now done in the binder.
16156         * s-rident.ads: Make this unit Preelaborate.
16157         (No_Restrictions): New constant used to clean up code and follow
16158         preelaborate constraints.
16160         * s-stalib.adb: 
16161         Add System.Restrictions dependence, referenced directly from the
16162         binder generated file.
16164 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
16166         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
16167         True when AAMP extended floating-point is in use (48-bit). Change type
16168         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
16169         the two byte array types on AFloat. Change type of IV_Ilf overlay
16170         variable from Byte8 to ByteLF. Add appropriate initializations of
16171         floating-point overlays for AAMP cases.
16173 2006-10-31  Javier Miranda  <miranda@adacore.com>
16175         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
16176         (Get_Ceiling): New subprogram that returns
16177         the ceiling priority of the protected object.
16178         (Set_Ceiling): New subprogram that sets the new ceiling priority of
16179         the protected object.
16181         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
16183         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
16185 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
16187         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
16188         requeuing to the same protected object to give higher priority tasks
16189         the opportunity to execute.
16191 2006-10-31  Robert Dewar  <dewar@adacore.com>
16193         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
16194         add more precise check for the character sequence that follows '[' to
16195         avoid possible confusion in case if '[' is the last character of a
16196         string literals.
16197         (Scan_Wide): Always allow brackets encoding
16199 2006-10-31  Olivier Hainque  <hainque@adacore.com>
16201         * s-stchop.ads: make this unit preelaborate. This is desirable in
16202         general and made mandatory by the use of this unit by s-taprop which
16203         is itself preelaborate.
16205         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
16206         Td_Events component.
16208 2006-10-31  Vincent Celier  <celier@adacore.com>
16210         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
16211         in file names.
16213 2006-10-31  Vincent Celier  <celier@adacore.com>
16215         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
16217 2006-10-31  Vincent Celier  <celier@adacore.com>
16219         * makegpr.adb (Check_Compilation_Needed): Take into account path names
16220         with spaces.
16221         (Check_Compilation_Needed): When checking a C or C++ source, do not
16222         resolve symbolic links.
16223         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
16224         When not in verbose mode and Ellipse is True, display "..." for the
16225         first argument with Display set to False.
16226         (Build_Global_Archive): Always set Display True for the first object
16227         file. Call Display_Command with Ellipse set to True.
16229 2006-10-31  Matt Heaney  <heaney@adacore.com>
16231         * a-crbtgo.ads: Commented each subprogram
16233         * a-crbtgo.adb: Added reference to book from which algorithms were
16234         adapted.
16236         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
16237         indicate which child.
16238         (Generic_Conditional_Insert): changed parameter name from "Success" to
16239         "Inserted".
16240         (Generic_Unconditional_Insert_With_Hint): improved algorithm
16242         * a-coorse.adb (Replace_Element): changed parameter name in call to
16243         conditional insert operation.
16245         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
16247         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
16248         Generic_Iteration
16250         * a-ciorse.adb (Replace_Element): changed parameter name in call to
16251         conditional insert operation.
16253         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
16254         Generic_Iteration.
16256         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
16257         instead of mode inout.
16259         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
16260         draft
16261         (Generic_Read): preserve existing buckets array if possible
16262         (Generic_Write): don't send buckets array length anymore
16264         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
16265         instead of mode inout.
16267         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
16268         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16270         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
16271         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16272         (Replace_Element): local operation is now an instantiation
16274         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
16275         check current length.
16276         (Generic_Replace_Element): new operation
16278 2006-10-31  Doug Rupp  <rupp@adacore.com>
16280         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
16281         Call TBK$SYMBOLIZE without omitting parameters.
16283 2006-10-31  Vincent Celier  <celier@adacore.com>
16285         * symbols-processing-vms-ia64.adb,
16286         symbols-processing-vms-alpha.adb (Process): Do not include symbols
16287         that come from generic instantiations in bodies.
16289 2006-10-31  Pat Rogers  <rogers@adacore.com>
16291         * a-rttiev.ads, a-rttiev.adb: 
16292         This is a significant redesign primarily for the sake of automatic
16293         timer task termination but also to fix a design flaw.
16294         Therefore we are now using an RTS lock, instead of a protected
16295         object, to provide mutual exclusion to the queue of pending events
16296         and the type Timing_Event is no longer a protected type.
16298 2006-10-31  Robert Dewar  <dewar@adacore.com>
16299             Cyrille Comar  <comar@adacore.com>
16300             Ben Brosgol  <brosgol@adacore.com>
16302         * debug.adb:  Update flags documentation
16304         * gnat_ugn.texi: Add documentation for new -gnatwq switch
16305         Clean up documentation for several other warning switches
16306         Clarify how task stack size can be specified with various
16307         versions of Windows.
16308         Add note that -gnatVo includes ranges including loops
16309         Add documentation for -gnatL switch
16310         Add note on elaboration warning for initializing variables
16311         Add documentation for new -gnatwt warning switch
16312         Document new form of pragma Warnings (On|Off, string)
16313         Add comment on use of pragma Warnings to control warnings
16314         Add documentation for -gnatjnn switch
16315         Modify section on interfacing with C for VMS 64-bit.
16316         Add doc for -gnatVe/E
16317         Add documentation of new warning flags -gnatww/-gnatwW
16318         Add warnings about address clause overlays to list of warnings
16319         (Exception Handling Control): Document that the option --RTS must be
16320         used consistently for gcc and gnatbind.
16321         Clarify that inlining is not always possible
16322         Update documentation on pragma Unchecked_Union.
16324         * gnat_rm.texi: 
16325         Add documentation for new extended version of pragma Obsolescent
16326         Add documentation for implementation defined attribute 'Stub_Type.
16327         Add note on use of Volatile in asm statements
16328         Add documentation on use of pragma Unreferenced in context clause
16329         Document new form of pragma Warnings (On|Off, pattern)
16330         Document pragma Wide_Character_Encoding
16331         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
16332         enforced if code generation is active.
16333         Add section on pragma Suppress to document GNAT specific check
16334         Alignment_Check
16335         Clarify difference between No_Dispatching_Calls & No_Dispatch.
16336         Add documentation for pragma Restrictions (No_Elaboration_Code)
16338         * gnat-style.texi: 
16339         Add comments on layout of subprogram local variables in the
16340         presence of nested subprograms.
16342         * ug_words: Resync.
16344         * elists.ads: Minor reformatting
16345         Node returns Node_Or_Entity_Id (doc change only)
16347         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
16349         * g-arrspl.ads (Create): Update comments.
16351         * sem.ads: Add details on the handling of the scope stack.
16353         * usage.adb: Update documentation.
16355         * validsw.ads, validsw.adb: 
16356         Add definition of Validity_Check_Components and implement -gnatVe/E
16358         * vms_data.ads: Add missing VMS qualifiers.
16360         * s-addope.ads: Add documentation on overflow and divide by zero
16362 2006-10-31  Robert Dewar  <dewar@adacore.com>
16363             Thomas Quinot  <quinot@adacore.com>
16364             Arnaud Charlet  <charlet@adacore.com>
16366         * fmap.adb: Put routines in alpha order
16368         * g-boumai.ads: Remove redundant 'in' keywords
16370         * g-cgi.adb: Minor reformatting
16372         * g-cgi.ads: Remove redundant 'in' keywords
16374         * get_targ.adb: Put routines in alpha order
16376         * prj-attr.ads: Minor reformatting
16378         * s-atacco.ads: Minor reformatting
16380         * scn.adb: Put routines in alpha order
16382         * sinput-l.adb: Minor comment fix
16384         * sinput-p.adb: Minor comment fix
16386         * s-maccod.ads: Minor reformatting
16388         * s-memory.adb: Minor reformatting
16390         * s-htable.adb: Fix typo in comment.
16392         * s-secsta.adb: Minor comment update.
16394         * s-soflin.adb: Minor reformatting
16396         * s-stoele.ads: 
16397         Add comment about odd qualification in Storage_Offset declaration
16399         * s-strxdr.adb: 
16400         Remove unnecessary 'in' keywords for formal parameters.
16402         * treeprs.adt: Minor reformatting
16404         * urealp.adb: Put routines in alpha order
16406         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
16407         taking string.
16409         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16411         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
16413         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
16414         workaround as on other platforms.
16416         * g-eacodu-vms.adb: Remove redundant 'in' keywords
16417         * g-expect-vms.adb: Remove redundant 'in' keywords
16419         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
16420         clear error message if the list-of-files file cannot be opened.
16422         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
16423         equality operator is always visible.
16425         * lang.opt: Woverlength-strings: New option.
16427         * nmake.adt: 
16428         Update copyright, since nmake.ads and nmake.adb have changed.
16430         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
16431         (Binder_Output_Time_Stamps_Set): removed.
16432         (Old_Binder_Output_Time_Stamp): idem.
16433         (New_Binder_Output_Time_Stamp): idem.
16434         (Recording_Time_From_Last_Bind): idem.
16435         (Recording_Time_From_Last_Bind): Make constant.
16437         * output.ads, output.adb (Write_Str): Allow LF characters
16438         (Write_Spaces): New procedure
16440         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
16442         * inline.adb: Minor reformatting
16444         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16446         * s-mastop-vms.adb: Remove redundant 'in' keywords
16448         * s-osprim-vms.adb: Remove redundant 'in' keywords
16450         * s-trafor-default.adb: Remove redundant 'in' keywords
16452         * 9drpc.adb: Remove redundant 'in' keywords
16454         * s-osinte-mingw.ads: Minor reformatting
16456         * s-inmaop-posix.adb: Minor reformatting
16458         * a-direio.ads: Remove quotes from Compile_Time_Warning message
16460         * a-exexda.adb: Minor code reorganization
16462         * a-filico.adb: Minor reformatting
16464         * a-finali.adb: Minor reformatting
16466         * a-nudira.ads: Remove quote from Compile_Time_Warning message
16468         * a-numeri.ads: Minor reformatting
16470         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
16472         * exp_pakd.ads: Fix obsolete comment
16474         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
16475         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
16476         Probably not a bug, but certainly neater and more efficient.
16478         * a-tienio.adb: Minor reformatting
16480         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
16481         Avoid assuming low bound of string is 1.
16483         * gnatbind.adb: Change Bindusg to package and rename procedure as
16484         Display, which now ensures that it only outputs usage information once.
16485         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
16487         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
16488         Table'First.
16490         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
16491         warning.
16492         (Match): Add pragma Assert to ensure that Matches'First is zero
16494         * g-regpat.ads (Match): Document that Matches lower bound must be zero
16496         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
16497         documented preconditions (also kills warnings about bad indexes).
16499         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
16500         is 1.
16501         (Build_Import_Library): Ditto;
16503         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
16505         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
16507         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
16508         lower bound of choice table is 1.
16510         * sem_case.ads (Analyze_Choices): Document that lower bound of
16511         Choice_Table is 1.
16513         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
16514         string is 1.
16516         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
16517         and add appropriate Assert pragma to suppress warnings.
16519         * atree.h, atree.ads, atree.adb
16520         Change Elist24 to Elist25
16521         Add definitions of Field28 and Node28
16522         (Traverse_Field): Use new syntactic parent table in sinfo.
16524         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16526         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16528         * exp_tss.adb: Put routines in alpha order
16530         * fe.h: Remove redundant declarations.
16532 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
16534         * utils.c (builtin_function): Rename to gnat_builtin_function.
16535         Move common code to add_builtin_function.
16536         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
16537         gnat_builtin_function.
16538         * gigi.h (builtin_function): Rename to gnat_builtin_function.
16539         Change the signature.
16541 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
16543         * Makefile.in: Add TEXI2PDF definition.
16544         * Make-lang.in: Add "ada.pdf" target.
16546 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
16548         * decl.c, utils.c: Fix comment typos.
16549         * utils.c: Fix a typo.
16551 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
16553         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
16554         on "pure" Ada subprograms if SJLJ exceptions are used.
16555         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
16556         on the declaration node of JMPBUF_SAVE.
16557         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
16558         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
16559         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
16561 2006-08-20  Laurent Guerby  <laurent@guerby.net>
16563         PR ada/28716
16564         g-socket.adb (Bind_Socket): Call Set_Address.
16566 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
16568         PR ada/15802
16569         * decl.c (same_discriminant_p): New static function.
16570         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
16571         subtype and we have discriminants, fix up the COMPONENT_REFs
16572         for the discriminants to make them reference the corresponding
16573         fields of the parent subtype after it has been built.
16575 2006-09-15  Roger Sayle  <roger@eyesopen.com>
16577         PR ada/18817
16578         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
16579         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
16581 2006-09-13  Olivier Hainque  <hainque@adacore.com>
16583         PR ada/29025
16584         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
16585         of a SAVE_EXPR, just make the operand addressable/not-readonly and
16586         let the common gimplifier code make and propagate a temporary copy.
16587         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
16588         out/in-out actuals and defer setting the addressable/readonly bits
16589         to the gimplifier.
16591 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
16593         PR ada/28591
16594         * decl.c (components_to_record): Defer emitting debug info for the
16595         record type associated with the variant until after we are sure to
16596         actually use it.
16598 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
16600         PR ada/21952
16601         * gigi.h (gnat_internal_attribute_table): Declare.
16602         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
16603         * utils.c (gnat_internal_attribute_table): New global variable.
16604         (builtin_function): Always call decl_attributes on the builtin.
16605         (handle_const_attribute): New static function.
16606         (handle_nothrow_attribute): Likewise.
16608 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
16610         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
16612 2006-06-23  Olivier Hainque  <hainque@adacore.com>
16614         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
16615         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
16617 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
16618             Eric Botcazou  <ebotcazou@adacore.com>
16620         PR ada/18692
16621         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
16622         check-gnat into check-acats.
16624 2006-06-17  Karl Berry  <karl@gnu.org>
16626         * gnat-style.texi (@dircategory): Use "Software development"
16627         instead of "Programming", following the Free Software Directory.
16629 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16631         PR ada/27944
16632         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
16634 2006-06-06  Laurent Guerby  <laurent@guerby.net>
16636         PR ada/27769
16637         mlib-utl.adb: Use Program_Name.
16639 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
16641         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
16642         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
16643         trans.c, utils.c: Fix comment typos.  Follow spelling
16644         conventions.
16645         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
16646         conventions.
16648 2006-05-19  Nicolas Setton  <setton@adacore.com>
16650         * misc.c (gnat_dwarf_name): New function.
16651         (LANG_HOOKS_DWARF_NAME): Define to it.
16653 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16655         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
16656         (ada/misc.o): Likewise.
16657         (ada/utils.o): Likewise.
16659 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
16661         * Makefile.in: Add Ada support for GNU/kFreeBSD.
16662         * s-osinte-kfreebsd-gnu.ads: New file.
16664 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
16666         * Make-lang.in: Rename docdir to gcc_docdir.
16668 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
16670         * gigi.h (get_ada_base_type): Delete.
16671         * utils2.c (get_ada_base_type): Likewise.
16672         * trans.c (convert_with_check): Operate in the real base type.
16674 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16676         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
16678 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
16680         * utils.c (create_var_decl): Use have_global_bss_p when deciding
16681         whether to make the decl common.
16683 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
16685         * Make-lang.in (Ada): Remove.
16686         (.PHONY): Remove Ada
16688 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16690         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
16691         aggregate, check the interpretations of the other operand to find one
16692         that may be a boolean array.
16694         (Analyze_Selected_Component): Fix flow-of-control typo in case where
16695         the prefix is a private extension.
16697 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
16699         PR ada/26315
16700         * utils2.c (find_common_type): If both input types are BLKmode and
16701         have the same constant size, keep using the first one.
16703         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
16705         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
16707         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
16709 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
16711         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
16712         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
16713         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
16714         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
16715         Abort_Defer/Undefer pairs to avoid the possibility of a task being
16716         aborted while owning a lock.
16718 2006-02-17  Javier Miranda  <miranda@adacore.com>
16719             Robert Dewar  <dewar@adacore.com>
16721         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
16722         through an access to class-wide interface we force the displacement of
16723         the pointer to the allocated object to reference the corresponding
16724         secondary dispatch table.
16725         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
16726         if Long_Shifts are supported on the target, even if 64 bit divides
16727         are not supported (configurable run time mode).
16728         (Expand_N_Type_Conversion): Do validity check if validity checks on
16729         operands are enabled.
16730         (Expand_N_Qualified_Expression): Do validity check if validity checks
16731         on operands are enabled.
16733 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16735         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
16736         must be materialized when the renamed expression is an explicit
16737         dereference.
16739 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16741         * freeze.adb (Statically_Discriminated_Components): Return false if
16742         the bounds of the type of the discriminant are not static expressions.
16744         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
16745         the bounds of the discriminant type are not static.
16747 2006-02-17  Robert Dewar  <dewar@adacore.com>
16749         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
16750         then we close To if it is valid.
16752 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
16754         * init.c (facility_resignal_table): new array
16755         (__gnat_default_resignal_p): enhance default predicate to resignal if
16756         VMS condition has one of the predefined facility codes.
16758 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
16760         * Makefile.in: Use VMS64 specialized versions of several units in
16761         Interfaces.C hierarchy to be compatible with HP C default size choices.
16762         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
16764 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16766         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
16767         instantiation, the corresponding entity is the related_instance of the
16768         wrapper package created for the instance.
16770 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16772         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
16773         the current instance is nested within another instance in a child unit.
16775 2006-02-17  Javier Miranda  <miranda@adacore.com>
16776             Ed Schonberg  <schonberg@adacore.com>
16778         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
16779         type we cannot inherit the primitive operations; we inherit the
16780         Corresponding_Record_Type (which has the list of primitive operations).
16781         (Check_Anonymous_Access_Types): When creating anonymous access types for
16782         access components, use Rewrite in order to preserve the tree structure,
16783         for ASIS use.
16784         (Analyze_Object_Declaration): For limited types with access
16785         discriminants with defaults initialized by an aggregate, obtain
16786         subtype from aggregate as for other mutable types.
16787         (Derived_Type_Declaration): If the derived type is a limited interface,
16788         set the corresponding flag (Is_Limited_Record is not sufficient).
16790 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16792         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
16793         to inline a function that returns an unconstrained type, the return
16794         expression must be the first variable declared in the body of the
16795         function.
16797 2006-02-17  Javier Miranda  <miranda@adacore.com>
16799         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
16800         abstract interface type, the static analysis is not enough to know if
16801         the interface is implemented or not by the source tagged type. Hence
16802         we must pass the work to the expander to generate the required code to
16803         evaluate the conversion at run-time.
16804         (Resolve_Equality_Op): Do not apply previous
16805         transformation if expansion is disasbled, to prevent anomalies when
16806         locating global references in a generic unit.
16808 2006-02-17  Vincent Celier  <celier@adacore.com>
16810         * snames.ads, snames.adb: New standard names for new project attributes:
16811         archive_builder, archive_indexer, compiler_pic_option,
16812         config_body_file_name, config_body_file_name_pattern,
16813         config_file_switches, config_file_unique, config_spec_file_name,
16814         config_spec_file_name_pattern, default_builder_switches,
16815         default_global_compiler_switches, default_language,
16816         dependency_file_kind, global_compiler_switches, include_path,
16817         include_path_file, language_kind, linker_executable_option,
16818         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
16819         roots, runtime_project.
16821 2006-02-17  Matthew Heaney  <heaney@adacore.com>
16823         * a-convec.ads, a-convec.adb: 
16824         (operator "&"): handle potential overflow for large index types
16825         (Insert): removed Contraint_Error when using large index types
16826         (Insert_Space): removed Constraint_Error for large index types
16827         (Length): moved constraint check from Length to Insert
16829         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
16830         as not null access.
16831         Explicit raise statements now include an exception message.
16832         (operator "&"): handle potential overflow for large index types
16833         (Insert): removed Contraint_Error when using large index types
16834         (Insert_Space): removed Constraint_Error for large index types
16835         (Length): moved constraint check from Length to Insert
16837 2006-02-17  Robert Dewar  <dewar@adacore.com>
16839         * s-wchcnv.adb: Document handling of [ on output (we do not change
16840         this to ["5B"] and the new comments say why not.
16842         * gnat_ugn.texi: 
16843         Add note for -gnatVo that this now includes the cases of type
16844         conversions and qualified expressions.
16845         Add comments on handling of brackets encoding for Text_IO
16847 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
16848             Thomas Quinot  <quinot@adacore.com>
16849             Robert Dewar  <dewar@adacore.com>
16850             Javier Miranda  <miranda@adacore.com>
16852         * expander.adb: Fix typo in comment
16854         * exp_pakd.adb: Fix typo
16855         Minor comment reformatting.
16857         * g-dyntab.adb: Minor reformatting
16859         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
16860         aliased subprograms to look for the abstract interface subprogram.
16862 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
16864         * env.c (__gnat_setenv): Use size_t.
16865         (__gnat_unsetenv): Likewise.
16866         (__gnat_clearenv): Likewise.
16868 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
16870         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
16872 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
16874         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
16875         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
16876         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
16877         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
16878         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
16879         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
16880         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
16881         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
16882         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
16883         no longer used.
16885 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
16887         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
16888         protection against race conditions is not needed.
16889         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
16890         fallback handler.
16891         (Set_Specific_Handler): Add mutual exclusive access to the specific
16892         handler.
16893         (Specific_Handler): Add mutual exclusive access for retrieving the
16894         specific handler.
16896         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
16897         back handler.
16899         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
16900         Fall_Back_Handler and Specific_Handler.
16902         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
16903         termination handlers.
16904         Set two different owerflow depending on the maximal stack size.
16906         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
16907         protection against race conditions is not needed when executing the
16908         task termination handler.
16910 2006-02-13  Robert Dewar  <dewar@adacore.com>
16912         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
16913         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
16914         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
16915         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
16916         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
16917         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
16918         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
16919         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
16920         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
16921         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
16922         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
16923         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
16924         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
16925         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
16926         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
16927         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
16928         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
16929         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
16930         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
16931         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
16932         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
16933         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
16934         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
16935         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
16936         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
16937         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
16938         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
16939         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
16940         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
16941         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
16942         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
16943         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
16944         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
16945         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
16946         reformatting.
16948 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
16950         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
16951         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
16952         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
16953         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
16954         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
16955         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
16956         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
16957         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
16958         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
16960 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
16962         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
16963         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
16964         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
16965         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
16966         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
16967         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
16968         replaced by anonymous access type.
16969         (pthread_sigmask): Now take an access sigset_t
16971         * s-osinte-hpux.ads:  Ditto.
16972         (pthread_mutex_t, pthread_cond_t): Update definitions to support
16973         properly 32 and 64 bit ABIs.
16975 2006-02-13  Pascal Obry  <obry@adacore.com>
16977         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
16978         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
16979         s-taprop-linux.adb, s-taprop-solaris.adb,
16980         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
16981         adjustement is already done when calling this routine.
16983 2006-02-13  Pascal Obry  <obry@adacore.com>
16985         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
16986         table to take advantage of the 16 priority levels available on Windows
16987         2000 and XP. On NT4 there are only 7 priority levels, this is properly
16988         supported by this new mapping.
16990 2006-02-13  Nicolas Setton  <setton@adacore.com>
16992         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
16993         (get_encoding): New subprogram. Extracts the encodings from an encoded
16994         Ada name.
16996 2006-02-13  Pascal Obry  <obry@adacore.com>
16997             Nicolas Roche  <roche@adacore.com>
16998             Arnaud Charlet  <charlet@adacore.com>
17000         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
17001         support.
17002         (__gnat_try_lock): Add unicode support by using a specific section on
17003         Windows.
17004         (__gnat_get_current_dir): Idem.
17005         (__gnat_open_read): Idem.
17006         (__gnat_open_rw): Idem.
17007         (__gnat_open_create): Idem.
17008         (__gnat_create_output_file): Idem.
17009         (__gnat_open_append): Idem.
17010         (__gnat_open_new): Idem.
17011         (__gnat_file_time_name): Idem.
17012         (__gnat_set_file_time_name): Idem.
17013         (__gnat_stat): Idem.
17014         (win32_no_block_spawn): Idem.
17015         (__gnat_locate_exec_on_path): Idem.
17016         (__gnat_opendir): New routine.
17017         (__gnat_closedir): Idem.
17018         (__gnat_readdir): Add new parameter length (pointer to int). Update
17019         implementation to use it and add specific Win32 code for Unicode
17020         support.
17021         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
17022         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
17023         (convert_addresses): Do not define this dummy routine on VMS.
17025         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
17026         runtime Unicode support will be activated.
17027         (S2WS): String to Wide-String conversion. This version just copy a
17028         string in non Unicode version.
17029         (WS2S): Wide-String to String conversion. This version just copy a
17030         string in non Unicode version.
17032         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
17033         (Open): Now import __gnat_opendir from adaint.c.
17034         (Read): Change the implementation to support unicode characters. It is
17035         not possible to use strlen() on Windows as this version supports only
17036         standard ASCII characters. So the length of the directory entry is now
17037         returned from the imported __gnat_readdir routine.
17038         Update copyright notice.
17040         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
17041         (opendir): Moved to adaint.c.
17043         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
17044         (Get_Directory): Fix wrong indexing.
17045         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
17046         __gnat_getenv from env.c
17047         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
17048         from env.c
17050         * env.h, env.c: New file.
17052         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
17053         adaint.c by __gnat_getenv from env.c
17055         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
17056         adaint.c by __gnat_getenv from env.c
17058         * Make-lang.in: Add env.o in the list of C object needed by gnat1
17059         and gnatbind.
17060         Update dependencies.
17062 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17063             Olivier Hainque  <hainque@adacore.com>
17064             Eric Botcazou  <ebotcazou@adacore.com>
17066         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
17067         
17068         * gigi.h (value_factor_p): Add prototype and description, now public.
17070         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
17071         promotion for field with rep clause if the associated size was proven
17072         to be in error.
17073         Expand comments describing attempts to use a packable type.
17074         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
17075         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
17076         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
17077         necessary since these are not different types and pointers may
17078         actually designate any subtype in this hierarchy.
17079         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
17080         discriminants but put them into record only if not Unchecked_Union;
17081         pass flag to components_to_record showing Unchecked_Union.
17082         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
17083         components before variants; don't set TYPE_UNCHECKED_UNION_P.
17084         (components_to_record): New argument UNCHECKED_UNION.
17085         Remove special case code for Unchecked_Union and instead use main code
17086         with small changes.
17088         PR ada/26096
17089         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
17090         variable with the expression being built, only its inner field.
17092         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
17093         emit_sequence_entry_statements.
17094         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
17095         (establish_gnat_vms_condition_handler): Move before
17096         Subprogram_Body_to_gnu.
17097         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
17098         for a subprogram if it has a foreign convention or is exported.
17099         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
17100         substituted for a CONST_DECL.
17101         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
17102         Etype to assoc_to_constructor.
17103         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
17104         discriminants of Unchecked_Union.
17105         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
17106         don't need cluttering preprocessor directives.
17107         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
17108         condition handler as current in the compiled function.
17109         (body_with_handlers_p): New function. Tell whether a given sequence of
17110         statements node is attached to a package or subprogram body and involves
17111         exception handlers possibly nested within inner block statements.
17112         (emit_sequence_entry_statements): New function, to emit special
17113         statements on entry of sequences when necessary. Establish GNAT
17114         condition handler in the proper cases for VMS.
17115         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
17116         emit_sequence_entry_statements.
17118         * utils2.c (find_common_type): If both input types are BLKmode and
17119         have a constant size, use the smaller one.
17120         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
17121         the same.
17123         * utils.c (value_factor_p): Make public, to allow uses from other gigi
17124         units.
17125         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
17126         (convert, case UNION_TYPE): Remove special treatment for unchecked
17127         unions.
17129         PR ada/18659
17130         (update_pointer_to): Update variants of pointer types to unconstrained
17131         arrays by attaching the list of fields of the main variant.
17133 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
17134             Robert Dewar  <dewar@adacore.com>
17136         * a-exexpr.adb, a-exexpr-gcc.adb
17137         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
17138         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
17139         Remove code unused for exception propagation for the compiler itself
17140         from a-except.adb and update to still share separate packages.
17142         * a-except.ads, a-except.adb: Ditto.
17143         Add comments that this version is now used only by the compiler and
17144         other basic tools. The full version that includes the Ada 2005 stuff
17145         is in separate files a-except-2005.ads/adb. The reason is that we do
17146         not want to cause bootstrap problems with compilers not recognizing
17147         Wide_Wide_String.
17148         Add exception reason code PE_Implicit_Return
17149         Add new exception reason code (Null Exception_Id)
17151         * a-except-2005.adb, a-except-2005.ads: New files.
17153         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
17155         * s-wchcon.adb: New file.
17157         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
17158         (traceback.o deps): Likewise.
17159         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
17160         Activate build of GMEM instrumentation library on VMS targets.
17161         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
17162         Use a-except-2005.ads/adb for all run-time library builds unless
17163         specified otherwise.
17164         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
17165         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
17166         Use s-parame.adb on all native platforms.
17167         Use s-parame-vxworks.adb on all vxworks platforms.
17168         Add env.c env.h in LIBGNAT_SRCS
17169         Add env.o in LIBGNAT_OBJS
17170         (GNATMAKE_OBJS): Remove ctrl_c.o object.
17171         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
17172         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
17173         supports VxWorks 6 RTPs.
17174         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
17175         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
17177         * types.h, types.ads (Terminate_Program): New exception
17178         Add comment on modifying multiple versions of a-except.adb when the
17179         table of exception reasons is modified.
17180         Add exception reason code PE_Implicit_Return
17181         Add new exception reason code (Null Exception_Id)
17183         * clean.adb (Initialize): Get the target parameters before checking
17184         if target is OpenVMS. Move the OpenVMS specific code here from package
17185         body elaboration code.
17187 2006-02-13  Thomas Quinot  <quinot@adacore.com>
17188             Vincent Celier  <celier@adacore.com>
17189             Robert Dewar  <dewar@adacore.com>
17191         * ali-util.adb (Get_File_Checksum): Update to account for change in
17192         profile of Initialize_Scanner.
17194         * gprep.adb (Gnatprep): Update to account for change in profile of
17195         Initialize_Scanner.
17196         (Process_One_File): Same.
17198         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
17199         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
17200         that behaviour using the new Unit information recorded in the source
17201         files table, rather than going through all units every time.
17202         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
17203         (Get_Source_Unit): Same.
17205         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
17206         change in profile of Initialize_Scanner.
17207         (Prepare_To_Preprocess): Same.
17209         * lib.ads: Fix typo in comment (templace -> template).
17211         * prj-part.adb (Parse_Single_Project): Update to account for change in
17212         profile of Initialize_Scanner.
17214         * scn.adb (Initialize_Scanner): Account for change in profile of
17215         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
17216         Also record the association of the given Source_File_Index to the
17217         corresponding Unit_Number_Type.
17219         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
17220         procedure.
17221         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
17222         Remove Unit formal for generic scanner: this formal
17223         is only relevant to Scn (the scanner instance used to parse Ada source
17224         files), not to other instances. Update comment accordingly.
17225         (Scan): Use new function Snames.Is_Keyword_Name.
17227         * sinfo-cn.adb: Fix typo in comment.
17229         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
17230         Unit.
17232         * sinput.ads (Source_File_Record): New component Unit, used to capture
17233         the unit identifier (if any) associated to a source file.
17235         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
17236         Unit in Source_File_Record.
17238         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
17239         in profile of Initialize_Scanner.
17241         * scans.adb (Initialize_Ada_Keywords): New procedure
17243         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
17244         Ada keywords in the Namet table, without the need to call
17245         Initialize_Scanner.
17247         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
17248         (Is_Keyword_Name): New function
17250         * snames.ads: Add subtype Configuration_Pragma_Names
17251         Add pragma Ada_2005 (synonym for Ada_05)
17252         (Is_Keyword_Name): New function
17254         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
17256 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
17258         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
17259         index.
17261         * a-stwima.adb (To_Set): Add extra check when N = 0.
17263         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
17265 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
17267         * s-parame-mingw.adb, s-parame-linux.adb,
17268         s-parame-solaris.adb: Removed, replaced by s-parame.adb
17270         * s-parame-vxworks.ads: Fix typo.
17272         * s-parame-vxworks.adb: New file.
17274         * s-parame.adb: Version now used by all native platforms.
17275         (Default_Stack_Size): Use 2 megs for default stack size and use
17276         __gl_default_stack_size when available.
17277         (Minimum_Stack_Size): Use 12K.
17279         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
17280         (Create_Task): Refine implementation taking advantage of the XP stack
17281         size support. On XP, we now create the thread using the flag
17282         STACK_SIZE_PARAM_IS_A_RESERVATION.
17284         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
17286         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
17287         XP and 0 on older Windows versions.
17289         * interfac-vms.ads: Removed, no longer used.
17291 2006-02-13  Matthew Heaney  <heaney@adacore.com>
17293         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
17294         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
17295         a-cohase.adb: All explicit raise statements now include an exception
17296         message.
17298         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
17299         (Update_Element_Preserving_Key): renamed op to just Update_Element.
17300         Explicit raise statements now include an exception message
17302         * a-cihase.ads, a-cohase.ads: Removed comment.
17304         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
17305         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
17306         a-szbzha.adb, a-szfzha.ads: New files.
17308 2006-02-13  Matthew Heaney  <heaney@adacore.com>
17310         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
17311         quicksort.
17313 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
17315         * lang.opt: Wvariadic-macros: New option.
17316         Wold-style-definition: Likewise.
17317         Wmissing-format-attribute: Likewise.
17319         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
17320         -Wold-style-definition and -Wmissing-format-attribute.
17322 2006-02-13  Robert Dewar  <dewar@adacore.com>
17324         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
17326         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
17328 2006-02-13  Nicolas Roche  <roche@adacore.com>
17330         * a-envvar.adb, a-envvar.ads: New files.
17332 2006-02-13  Douglas Rupp  <rupp@adacore.com>
17334         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
17336         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
17338 2006-02-13  Pat Rogers  <rogers@adacore.com>
17340         * a-rttiev.adb, a-rttiev.ads: New files.
17342 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
17344         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
17345         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
17347         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
17349 2006-02-13  Robert Dewar  <dewar@adacore.com>
17351         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
17352         sem_case.adb: Minor code reorganization (not Present should be No)
17354 2006-02-13  Geert Bosch  <bosch@adacore.com>
17355             Gary Dismukes  <dismukes@adacore.com>
17357         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
17358         0, since the lower bound of the actual string may be greater than one.
17360         PR ada/20753
17361         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
17362         layout is requested.
17364 2006-02-13  Vincent Celier  <celier@adacore.com>
17366         * back_end.adb (Scan_Compiler_Arguments): Check if
17367         Search_Directory_Present is True and, if it is, add the argument in
17368         the source search directory path.
17370         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
17371         Search_Directory_Present to True.
17373 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
17375         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
17376         volatile, to tell the compiler to preserve this variable at any level
17377         of optimization.
17378         (Gen_Versions_Ada): Temporarily work around codegen bug.
17380 2006-02-13  Vincent Celier  <celier@adacore.com>
17382         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
17383         gcc to link with option -shared-libgcc.
17384         (Gnatlink): Remove duplicate switches -shared-libgcc
17386 2006-02-13  Robert Dewar  <dewar@adacore.com>
17388         * gnatvsn.ads (Current_Year): New constant, used to easily update
17389         copyright on all GNAT tools.
17391         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
17392         copyright notice.
17394 2006-02-13  Robert Dewar  <dewar@adacore.com>
17396         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
17397         after hyphen (small aesthetic change useful for a range of numbers
17398         using ^-^.
17399         Suppress range checks for a couple of assignments which otherwise
17400         cause validity checks with validity checking turned on.
17402         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
17403         Improvement in error message for object.
17404         (Rep_Item_Too_Late): Remove '!' in warning message.
17406 2006-02-13  Robert Dewar  <dewar@adacore.com>
17407             Eric Botcazou  <ebotcazou@adacore.com>
17409         * err_vars.ads: Suppress range checks for a couple of assignments
17410         which otherwise cause validity checks with validity checking turned on.
17411         Update comments.
17413         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
17414         Make message unconditional if it is a warning.
17415         (Error_Msg_NEL): Always output warning messages.
17416         Suppress range checks for a couple of assignments which otherwise
17417         cause validity checks with validity checking turned on.
17419         * errout.ads (Message Insertion Characters): Document that '!' is
17420         implied by '?' in error messages.
17422         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
17423         (Gnat1drv): Use a goto to end of main subprogram instead of
17424         Exit_Program (E_Success) so that finalization can occur normally.
17426 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
17428         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
17429         wrapped around.
17431 2006-02-13  Vincent Celier  <celier@adacore.com>
17433         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
17434         Unchecked_Conversion functions.
17435         (Modification_Time): Use direct conversion of OS_Time to Calendar time
17436         when OpenVMS returns False.
17438         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
17439         a-dirval.adb (OpenVMS): New Boolean function
17441 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17442             Thomas Quinot  <quinot@adacore.com>
17444         * checks.adb (Build_Discriminant_Checks): If the expression being
17445         checks is an aggregate retrieve the values of its discriminants to
17446         generate the check, rather than creating a temporary and a reference
17447         to it.
17448         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
17449         (Install_Null_Excluding_Check): Ditto
17450         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
17451         not for the renamed object, so that the actual itype is attached in the
17452         proper context.
17454 2006-02-13  Robert Dewar  <dewar@adacore.com>
17455             Vincent Celier  <celier@adacore.com>
17457         * debug.adb: Eliminate numeric switches for binder/gnatmake
17459         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
17460         switches for the compiler.
17461         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
17462         (Scan_Make_Switches): When failing with an illegal switch, output an
17463         error message with the full switch.
17464         Eliminate numeric switches for binder/gnatmake
17466         * switch.ads, switch.adb (Bad_Switch): New procedure
17468         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
17469         Remove 0-9 as debug flag character possibilities
17470         -d is now controlling the primary stack size when its value is a
17471         positive. Also add checks against invalid values, and support for kb,
17472         mb. Ditto for -D switch.
17474 2006-02-13  Robert Dewar  <dewar@adacore.com>
17475             Serguei Rybin  <rybin@adacore.com>
17477         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
17478         save/restore routines.
17479         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17480         were not always properly handled previously.
17481         Since we are changing the tree format anyway, also get rid of the
17482         junk obsolete Immediate_Errors flag.
17483         (Tree_Read): Change the way of reading Tree_Version_String - now we
17484         read the version string from the tree even if its length is not the
17485         same as the length of the version string computed from Gnatvsn.
17486         (Search_Directory_Present): New Boolean flag for the compiler.
17487         Define Tree_Version_String as a dynamic string.
17488         (Default_Stack_Size): new variable, used to handle switch -d.
17490         * par-prag.adb: 
17491         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
17492         only for main unit.
17493         Add pragma Ada_2005 (synonym for Ada_05)
17494         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17495         were not always properly handled previously.
17497         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
17498         explicit Ada_95 to Ada_2005.
17500 2006-02-13  Javier Miranda  <miranda@adacore.com>
17501             Robert Dewar  <dewar@adacore.com>
17502             Ed Schonberg  <schonberg@adacore.com>
17504         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
17505         against errors in the source program: a private types for which the
17506         corresponding full type declaration is missing and pragma CPP_Virtual
17507         is used.
17508         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
17509         (Is_Known_Null): New flag
17510         (Has_Pragma_Pure): New flag
17511         (No_Return): Present in all entities, set only for procedures
17512         (Is_Limited_Type): A type whose ancestor is an interface is limited if
17513         explicitly declared limited.
17514         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
17515         entities. Only used for component marked Is_Tag. If present it stores
17516         the Offset_To_Top function used to provide this value in tagged types
17517         whose ancestor has discriminants.
17519         * exp_ch2.adb: Update status of new Is_Known_Null flag
17521         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
17523         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
17524         the categorization sense if Is_Pure was set by pragma Pure_Function.
17526 2006-02-13  Quentin Ochem  <ochem@adacore.com>
17527             Olivier Hainque  <hainque@adacore.com>
17529         * bindusg.adb: Updated documentation for -d and -D switches.
17531         * raise.h (__gnat_set_globals): added new parameter for
17532         Default_Stack_Size.
17534         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
17535         (__gnat_handle_vms_condition): Adjust context before raise.
17536         (__gnat_install_handler): Restore the global vector setup for GCC
17537         versions before 3.4, as the frame based circtuitry is not available
17538         in this case.
17539         (__gnat_set_globals): added a parameter default_stack_size
17540         (__gl_default_stack_size): new variable.
17542 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17544         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
17545         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
17546         does not exist in the Ada RM.
17547         (Compatible_Int_Bounds): Determine whether two integer range bounds
17548         are of equal length and have the same start and end values.
17549         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
17550         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
17551         aggregate when it is part of an object declaration.
17552         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
17553         constrains discriminants of its parent, add explicitly the discriminant
17554         constraints of the ancestor by retrieving them from the
17555         stored_constraint of the parent.
17557 2006-02-13  Robert Dewar  <dewar@adacore.com>
17559         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
17560         attribute Mechanism_Code is applied to renamed subprogram, modify
17561         prefix to point to base subprogram.
17562         Max/Min attributes now violate Restriction No_Implicit_Conditionals
17564         * sinfo.ads: Document that Mechanism_Code cannot be applied to
17565         renamed subprograms so that the front-end must replace the prefix
17566         appropriately.
17568 2006-02-13  Javier Miranda  <miranda@adacore.com>
17569             Gary Dismukes  <dismukes@adacore.com>
17571         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
17572         availability of RE_Interface_Tag.
17573         (Build_Initialization_Call): Fix wrong access to the discriminant value.
17574         (Freeze_Record_Type): Do not generate the tables associated with
17575         timed and conditional dispatching calls through synchronized
17576         interfaces if compiling under No_Dispatching_Calls restriction.
17577         When compiling for Ada 2005, for a nonabstract
17578         type with a null extension, call Make_Controlling_Function_Wrappers
17579         and insert the wrapper function declarations and bodies (the latter
17580         being appended as freeze actions).
17581         (Predefined_Primitive_Bodies): Do not generate the bodies of the
17582         predefined primitives associated with timed and conditional
17583         dispatching calls through synchronized interfaces if we are
17584         compiling under No_Dispatching_Calls.
17585         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
17586         service is available before generating a call.
17587         (Make_Controlling_Function_Wrappers): New procedure.
17588         (Expand_N_Full_Type_Declaration): Create a class-wide master for
17589         access-to-limited-interfaces because they can be used to reference
17590         tasks that implement such limited interface.
17591         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
17592         procedure spec and body of the Offset_To_Top function that is generated
17593         when the parent of a type with discriminants has secondary dispatch
17594         tables.
17595         (Init_Secondary_Tags): Handle the case in which the parent of the type
17596         containing secondary dispatch tables has discriminants to generate the
17597         correct arguments to call Set_Offset_To_Top.
17598         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
17600         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
17601         Add Wide_[Wide_]Expanded_Name.
17602         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
17603         the same functionality of Get_Prim_Op_Address but applied to predefined
17604         primitive operations because the pointers to the predefined primitives
17605         are now saved in a separate table.
17606         (Parent_Size): Modified to get access to the separate table of primitive
17607         operations or the parent type.
17608         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
17609         functionality of Set_Prim_Op_Address but applied to predefined primitive
17610         operations.
17611         (Set_Signature): New subprogram used to store the signature of a DT.
17612         (Displace): If the Offset_To_Top value is not static then call the
17613         function generated by the expander to get such value; otherwise use
17614         the value stored in the table of interfaces.
17615         (Offset_To_Top): The type of the actual has been changed to Address to
17616         give the correct support to tagged types with discriminants. In this
17617         case this value is stored just immediately after the tag field.
17618         (Set_Offset_To_Top): Two new formals have been added to indicate if the
17619         offset_to_top value is static and hence pass this value to the run-time
17620         to store it in the table of interfaces, or else if this value is dynamic
17621         and then pass to the run-time the address of a function that is
17622         generated by the expander to provide this value for each object of the
17623         type.
17625         * rtsfind.ads (Default_Prin_Op_Count): Removed.
17626         (Default_Prim_Op_Count): New entity
17627         (Get_Predefined_Prim_Op_Address): New entity
17628         (Set_Predefined_Prim_Op_Address): New entity
17629         (RE_Set_Signature): New entity
17631 2006-02-13  Thomas Quinot  <quinot@adacore.com>
17632             Ed Schonberg  <schonberg@adacore.com>
17634         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
17635         Make_Adjust_Call done for a newly-allocated object.
17637         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
17638         in a subprogram are wrapped in a cleanup block, indicate that the
17639         subprogram contains an inner block with an exception handler.
17640         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
17641         Adjust call is for a newly-allocated object. In that case we must not
17642         assume that the finalization list chain pointers are correct (since they
17643         come from a bit-for-bit copy of the original object's pointers) so if
17644         the attach level would otherwise be zero (no change), we set it to 4
17645         instead to cause the pointers to be reset to null.
17647         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
17648         reset chain pointers to null.
17650 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17652         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
17653         string, and the context requires a loop for the assignment (e.g.
17654         because the left-hand side is packed), generate a unique name for the
17655         temporary that holds the string, to prevent spurious name clashes.
17657 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17658             Javier Miranda  <miranda@adacore.com>
17659             Robert Dewar  <dewar@adacore.com>
17660             Gary Dismukes  <dismukes@adacore.com>
17662         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
17663         return unconstrained arrays.
17664         Update comments.
17665         (Expand_Call):  An indirect call through an access parameter of a
17666         protected operation is not a protected call.
17667         Add circuit to raise CE in Ada 2005 mode following call
17668         to Raise_Exception.
17669         (Register_DT_Entry): Do nothing if
17670         the run-time does not give support to abstract interfaces.
17671         (Freeze_Subprogram): In case of dispatching operations, do not generate
17672         code to register the operation in the dispatch table if the source
17673         is compiled with No_Dispatching_Calls.
17674         (Register_Predefined_DT_Entry): Generate code that calls the new
17675         run-time subprogram Set_Predefined_Prim_Op_Address instead of
17676         Set_Prim_Op_Address.
17678         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
17679         on array assignments if the right-hand side is a function call that has
17680         been inlined. Check is performed on the assignment in the block.
17681         (Process_Bounds): If bounds and range are overloaded, apply preference
17682         rule for root operations to disambiguate, and diagnose true ambiguity.
17683         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
17684         a tag-indeterminate right-hand side even when Expander_Active is True.
17685         Needed to ensure that dispatching calls to T'Input are allowed and
17686         get the tag of the target class-wide object.
17688         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
17689         an inherited primitive operation that already overrides several
17690         abstract interface primitives. For transitivity, the new entity must
17691         also override all the abstract interface primitives covered by the
17692         inherited overriden primitive.
17693         Emit warning if new entity differs from homograph in same scope only in
17694         that one has an access parameter and the other one has a parameter of
17695         a general access type with the same designated type, at the same
17696         position in the signature.
17697         (Make_Inequality_Operator): Use source locations of parameters and
17698         subtype marks from corresponding equality operator when creating the
17699         tree structure for the implicit declaration of "/=". This does not
17700         change anything in behaviour except that the decoration of the
17701         components of the subtree created for "/=" allows ASIS to get the
17702         string images of the corresponding identifiers.
17703         (Analyze_Return_Statement): Remove '!' in warning message.
17704         (Check_Statement_Sequence): Likewise.
17705         (Analyze_Subprogram_Body): For an access parameter whose designated type
17706         is an incomplete type imported through a limited_with clause, use the
17707         type of the corresponding formal in the body.
17708         (Check_Returns): Implicit return in No_Return procedure now raises
17709         Program_Error with a compile time warning, instead of beging illegal.
17710         (Has_Single_Return):  Function returning unconstrained type cannot be
17711         inlined if expression in unique return statement is not an identifier.
17712         (Build_Body_To_Inline): It is possible to inline a function call that
17713         returns an unconstrained type if all return statements in the function
17714         return the same local variable. Subsidiary procedure Has_Single_Return
17715         verifies that the body conforms to this restriction.
17717         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
17718         same type, and  one of them is of an anonymous access type, convert
17719         the other operand to it, so that this is a valid binary operation for
17720         gigi.
17721         (Resolve_Type_Conversion): Handle subtypes of protected types and
17722         task types when accessing to the corresponding record type.
17723         (Resolve_Allocator): Add '\' in 2-line warning message.
17724         Remove '!' in warning message.
17725         (Resolve_Call): Add '\' in 2-line warning message.
17726         (Valid_Conversion): Likewise.
17727         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
17728         resulting type may be an access type with an implicit dereference.
17729         Obtain the proper component from the designated type.
17730         (Make_Call_Into_Operator): Handle properly a call to predefined equality
17731         given by an expanded name with prefix Standard, when the operands are
17732         of an anonymous access type.
17733         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
17734         Explicit_Dereference and Resolve_Selected_Component, to verify that the
17735         prefix of the expression is not of an incomplete type. Allows full
17736         diagnoses of all semantic errors.
17737         (Resolve_Actuals): If the actual is an allocator whose directly
17738         designated type is a class-wide interface we build an anonymous
17739         access type to use it as the type of the allocator. Later, when
17740         the subprogram call is expanded, if the interface has a secondary
17741         dispatch table the expander will add a type conversion to force
17742         the displacement of the pointer.
17743         (Resolve_Call): If a function that returns an unconstrained type is
17744         marked Inlined_Always and inlined, the call will be inlined and does
17745         not require the creation of a transient scope.
17746         (Check_Direct_Boolean_Op): Removed
17747         (Resolve_Comparison_Op): Remove call to above
17748         (Resolve_Equality_Op): Remove call to above
17749         (Resolve_Logical_Op): Inline above, since this is only call.
17750         (Valid_Conversion): Handle properly conversions between arrays of
17751         convertible anonymous access types.
17753         PR ada/25885
17754         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
17755         the literal in an unchecked conversion, because GCC 4.x needs a static
17756         value for a string bound.
17758 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17759             Hristian Kirtchev  <kirtchev@adacore.com>
17761         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
17762         components of the corresponding record, take into account component
17763         definitions that are access definitions.
17764         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
17765         procedure is not considered a dispatching call and will be expanded
17766         properly.
17768 2006-02-13  Javier Miranda  <miranda@adacore.com>
17770         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
17771         controlling argument of the dispatching call is an abstract interface
17772         class-wide type then we use it directly.
17773         Check No_Dispatching_Calls restriction.
17774         (Default_Prim_Op_Position): Remove the code that looks for the last
17775         entity in the list of aliased subprograms. This code was wrong in
17776         case of renamings.
17777         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
17778         when the source is compiled with the No_Dispatching_Calls restriction.
17779         (Init_Predefined_Interface_Primitives): No need to inherit primitives
17780         if we are compiling with restriction No_Dispatching_Calls.
17781         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
17782         subprograms if we are compiling under No_Dispatching_Calls restriction.
17783         (Make_DT): Generate a dispatch table with a single dummy entry if
17784         we are compiling with the No_Dispatching_Calls restriction. In
17785         addition, in this case we don't generate code that calls to the
17786         following run-time subprograms: Set_Type_Kind, Inherit_DT.
17787         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
17788         of this subprogram if compiling with the No_Dispatching_Calls
17789         restriction.
17790         (Expand_Type_Conversion): Instead of using the actual parameter,
17791         the argument passed as parameter to the conversion function was
17792         erroneously referenced by the expander.
17793         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
17794         Set_Predefined_Primitive_Op_Address and Set_Signature.
17795         (Expand_Dispatching_Call): Generate call to
17796         Get_Predefined_Prim_Op_Address for predefined primitives.
17797         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
17798         predefined primitives.
17799         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
17800         primitives we reserve one dummy entry to ensure that the tag does not
17801         point to some memory that is associated with some other object. In
17802         addition, remove all the old code that generated the assignments
17803         associated with the signature of the dispatch table and replace them
17804         by a call to the new subprogram Set_Signature.
17805         (Set_All_DT_Position): Change the algorithm because now we have a
17806         separate dispatch table associated with predefined primitive operations.
17807         (Expand_Interface_Conversion): In case of non-static offset_to_top
17808         add explicit dereference to get access to the object after the call
17809         to displace the pointer to the object.
17810         (Expand_Interface_Thunk): Modify the generation of the actual used
17811         in the calls to the run-time function Offset_To_Top to fulfil its
17812         new interface.
17813         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
17815 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17817         * exp_dist.adb (Copy_Specification): For access parameters, copy
17818         Null_Exclusion flag, which will have been set for stream subprograms
17819         in Ada2005 mode.
17821 2006-02-13  Pascal Obry  <obry@adacore.com>
17823         * expect.c (__gnat_expect_portable_execvp): New implementation. The
17824         previous implementation was using the C runtime spawnve routine but
17825         the corresponding wait was using directly the Win32 API. This was
17826         causing some times a lock when waiting for an event using
17827         WaitForSingleObject in __gnat_waitpid. This new implementation uses
17828         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
17829         API fixes this problem.
17831 2006-02-13  Robert Dewar  <dewar@adacore.com>
17833         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
17834         call.
17836 2006-02-13  Thomas Quinot  <quinot@adacore.com>
17838         * exp_pakd.ads: Fix typos in comments.
17840         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
17841         array reference that is an explicit dereference, mark the converted
17842         (packed) array reference as analyzed to prevent a forthcoming
17843         reanalysis from resetting its type to the original (non-packed) array
17844         type.
17846 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17847             Javier Miranda  <miranda@adacore.com>
17848             Eric Botcazou  <ebotcazou@adacore.com>
17850         * exp_util.ads, exp_util.adb (Find_Prim_Op,
17851         Is_Predefined_Primitive_Operation): When
17852         searching for the predefined equality operator, verify that operands
17853         have the same type.
17854         (Is_Predefined_Dispatching_Operation): Remove the code that looks
17855         for the last entity in the list of aliased subprograms. This code
17856         was wrong in case of renamings.
17857         (Set_Renamed_Subprogram): New procedure
17858         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
17859         Exp_Type constant computed when entering this subprogram.
17860         (Known_Null): New function
17861         (OK_To_Do_Constant_Replacement): New function
17862         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
17863         (Side_Effect_Free): An attribute reference 'Input is not free of
17864         side effect, unlike other attributes that are functions. (from code
17865         reading).
17866         (Remove_Side_Effects): Expressions that involve packed arrays or records
17867         are copied at the point of reference, and therefore must be marked as
17868         renamings of objects.
17869         (Is_Predefined_Dispatching_Operation): Return false if the operation is
17870         not a dispatching operation.
17872         PR ada/18819
17873         (Remove_Side_Effects): Lift enclosing type conversion nodes for
17874         elementary types in all cases.
17876 2006-02-13  Javier Miranda  <miranda@adacore.com>
17878         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
17879         task types when accessing to the corresponding record type.
17880         Remove '!' in warning message.
17882 2006-02-13  Olivier Hainque  <hainque@adacore.com>
17884         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
17885         to avoid useless and space inefficient overalignments on targets where
17886         Max_Alignment is larger than 16.
17888 2006-02-13  Pascal Obry  <obry@adacore.com>
17890         * g-catiio.adb (Sec_Number): New type used to compute the number of
17891         seconds since 1-1-1970.
17892         (Image) [Natural]: The parameter was an Integer, as we can't deal with
17893         negative numbers (years, months...) it is better to have a Natural here.
17894         Code clean-up.
17895         (Image) [Number]: Change parameter from Long_Integer to Number.
17896         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
17897         overflow for dates past year 2038.
17899 2006-02-13  Matthew Heaney  <heaney@adacore.com>
17901         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
17902         Constraint_Error.
17904 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
17906         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
17907         native platforms.
17908         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
17909         finalization can occur normally.
17911 2006-02-13  Vincent Celier  <celier@adacore.com>
17913         * gnatcmd.adb (Rules_Switches): New table
17914         (Add_To_Rules_Switches): New procedure
17915         (GNATCmd): For command CHECK, put all options following "-rules" in the
17916         Rules_Switches table. Append these -rules switches after the -cargs
17917         switches.
17919 2006-02-13  Robert Dewar  <dewar@adacore.com>
17921         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
17922         These two cases were generating incorrect output, and if this unit
17923         was built with checks on, generated a discriminant mismatch constraint
17924         error.
17926 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17927             Robert Dewar  <dewar@adacore.com>
17929         * lib-xref.adb (Get_Type_Reference): For a private type whose full
17930         view is an array type, indicate the component type as well, for
17931         navigation purposes.
17932         (Generate_Reference): Don't consider array ref on LHS to be a case
17933         of violating pragma Unreferenced.
17934         Do not give Ada 2005 warning except on real reference.
17936 2006-02-13  Vincent Celier  <celier@adacore.com>
17938         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
17939         main source, add switch -mdebug-main=_ada_ so that the executable can
17940         be debugged by the standard VMS debugger.
17941         (Gnatmake): Set No_Main_Subprogram to True when there is no main
17942         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
17943         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
17944         of the last source, as the binding and linking phases are never
17945         performed.
17946         Set all executable obsolete when rebuilding a library.
17948         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
17949         options.
17951 2006-02-13  Javier Miranda  <miranda@adacore.com>
17953         PR ada/23973
17954         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
17955         code to improve the error message reported when the program has
17956         declarations of abstract interface types and it is not compiled with
17957         the -gnat05 switch.
17958         (P_Access_Definition): Reorganize the code to improve the error
17959         message reported when the new Ada 2005 syntax for anonymous
17960         access types is used and the program is not compiled with the
17961         -gnat05 switch.
17963 2006-02-13  Robert Dewar  <dewar@adacore.com>
17965         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
17966         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
17967         (MODE_IN)
17969 2006-02-13  Javier Miranda  <miranda@adacore.com>
17971         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
17972         against source containing syntax errors.
17974 2006-02-13  Vincent Celier  <celier@adacore.com>
17976         * prj.adb (Reset): Initialize the first element of table Namings with
17977         the standard naming data.
17979 2006-02-13  Vincent Celier  <celier@adacore.com>
17981         * prj.ads (Error_Warning): New enumeration type
17983         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
17984         unknown, use the location of the project to report the error.
17985         (When_No_Sources): New global variable
17986         (Report_No_Ada_Sources): New procedure
17987         (Check): New parameter When_No_Sources. Set value of global variable
17988         When_No_Sources,
17989         (Find_Sources): Call Report_No_Ada_Sources when appropriate
17990         (Get_Sources_From_File): Ditto
17991         (Warn_If_Not_Sources): Better warning messages indicating the unit name
17992         and the file name.
17994         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
17995         Call Prj.Proc.Process with parameter When_No_Sources.
17997         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
17998         Call Recursive_Check with parameter When_No_Sources.
17999         (Recursive_Check): New parameter When_No_Sources. Call itself and
18000         Prj.Nmsc.Check with parameter When_No_Sources.
18001         (Process): New parameter When_No_Sources. Call Check with parameter
18002         When_No_Sources.
18003         (Copy_Package_Declarations): New procedure to copy renamed parameters
18004         and setting the location of the declared attributes to the location
18005         of the renamed package.
18006         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
18007         packages.
18009 2006-02-13  Vincent Celier  <celier@adacore.com>
18011         * prj-makr.adb (Make): Preserve the comments from the original project
18012         file.
18013         When removing nodes (attributes Source_Dirs, Source_Files,
18014         Source_List_File and package Naming), save the comments and attach the
18015         saved comments to the newly created nodes.
18016         Do not add a with clause for the naming package if one already exists.
18018 2006-02-13  Javier Miranda  <miranda@adacore.com>
18019             Gary Dismukes  <dismukes@adacore.com>
18020             Robert Dewar  <dewar@adacore.com>
18022         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
18024         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
18025         aliased entities to look for the overriden abstract interface
18026         subprogram.
18027         (Is_Interface_Subprogram): Complete documentation.
18028         (Check_Dispatching_Operation): Do not generate code to register the
18029         operation in the dispatch table if the source is compiled with
18030         restriction No_Dispatching_Calls.
18031         (Override_Dispatching_Operation): Check for illegal attempt to override
18032         No_Return procedure with procedure that is not No_Return
18033         (Check_Dispatching_Call): Suppress the check for an abstract operation
18034         when the original node of an actual is a tag-indeterminate attribute
18035         call, since the attribute, which must be 'Input, can never be abstract.
18036         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
18037         call to the Input attribute (even when rewritten).
18038         (Propagate_Tag): Augment comment to indicate the possibility of a call
18039         to an Input attribute.
18041         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
18042         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
18044         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
18045         No_Wide_Characters is no longer partition-wide
18046         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
18047         rather than GNAT
18049 2006-02-13  Douglas Rupp  <rupp@adacore.com>
18051         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
18053 2006-02-13  Javier Miranda  <miranda@adacore.com>
18055         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
18056         handles default-initialized components to keep separate the management
18057         of this feature but also avoid the unrequired resolution and
18058         expansion of components that do not have partially initialized
18059         values.
18060         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
18061         (Check_Bounds): Likewise.
18062         (Check_Length): Likewise.
18064 2006-02-13  Javier Miranda  <miranda@adacore.com>
18065             Ed Schonberg  <schonberg@adacore.com>
18067         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
18068         abstract interface type call analyze_and_resolve to expand the type
18069         conversion into the corresponding displacement of the
18070         reference to the base of the object.
18071         (Eval_Attribute, case Width): For systems where IEEE extended precision
18072         is supported, the maximum exponent occupies 4 decimal digits.
18073         (Accessibility_Message): Add '\' in 2-line warning message.
18074         (Resolve_Attribute): Likewise.
18075         (case Attribute_Access): Significantly revise checks
18076         for illegal access-to-subprogram Access attributes to properly enforce
18077         the rules of 3.10.2(32/2).
18078         Diagnose use of current instance with an illegal attribute.
18080         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
18081         to a Node_Id.
18082         (Enclosing_Generic_Unit): New function to return a node's innermost
18083         enclosing generic declaration node.
18084         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
18085         (Type_Access_Level): The accessibility level of anonymous acccess types
18086         associated with discriminants is that of the current instance of the
18087         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
18088         (Compile_Time_Constraint_Error): Handle case of conditional expression.
18089         (Kill_Current_Values_For_Entity): New function
18090         (Enter_Name): Change formal type to Entity_Id
18092 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
18093             Ed Schonberg  <schonberg@adacore.com>
18094             Gary Dismukes  <dismukes@adacore.com>
18096         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
18097         Analyze_Compilation_Unit.
18098         Detect and warn on redundant with clauses detected in a package spec
18099         and/or body when -gnatwr is used.
18100         (Analyze_Context): Analyze config pragmas before other items
18101         (Install_Context_Items): Don't analyze config pragmas here
18102         (Install_Limited_Withed_Unit): Set limited entity of package in
18103         with_clause so that cross-reference information or warning messages on
18104         unused packages can be properly generated
18105         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
18106         has Error_Posted set. Prevent infinite loops in illegal programs.
18107         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
18108         to the point of the error test requiring the current unit to be private.
18109         This ensures that private with clauses are not exempted from the basic
18110         checking for being a descendant of the same library unit parent as a
18111         withed private descendant unit.
18112         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
18113         handle private with clauses properly, as well as to account for cases
18114         where the withed unit is a public descendant of a private ancestor
18115         (in which case the current unit must be a descendant of the private
18116         ancestor's parent). The spec comments were updated accordingly. Also,
18117         the old error message in this subprogram was replaced with error
18118         messages that mirror the errors tested and reported by
18119         Check_Private_Child_Unit.
18120         Parameter and variable names improved for readability.
18121         (Install_Limited_Context_Clauses): Remove test for a withed unit being
18122         private as the precondition for calling
18123         Check_Private_Limited_Withed_Unit since that subprogram has been
18124         revised to test public units as well as private units.
18126 2006-02-13  Thomas Quinot  <quinot@adacore.com>
18127             Robert Dewar  <dewar@adacore.com>
18128             Ed Schonberg  <schonberg@adacore.com>
18129             Javier Miranda  <miranda@adacore.com>
18131         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
18132         that Scope_Stack.First = 1.
18133         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18134         were not always properly handled previously.
18135         (Formal_Entity): Complete rewrite, to handle properly some complex case
18136         with multiple levels of parametrization by formal packages.
18137         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
18138         to the corresponding derived type declaration for proper semantics.
18140         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
18141         (Check_Component): Enforce restriction on components of
18142         unchecked_unions: a component in a variant cannot contain tasks or
18143         controlled types.
18144         (Unchecked_Union): Allow nested variants and multiple discriminants, to
18145         conform to AI-216.
18146         Add pragma Ada_2005 (synonym for Ada_05)
18147         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18148         were not always properly handled previously.
18149         Document that pragma Propagate_Exceptions has no effect
18150         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
18151         (Set_Convention_From_Pragma): Check that if a convention is
18152         specified for a dispatching operation, then it must be
18153         consistent with the existing convention for the operation.
18154         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
18155         longer required to specify an vtable-ptr component in the record. For
18156         compatibility reasons we leave the support for the previous definition.
18157         (Analyze_Pragma, case No_Return): Allow multiple arguments
18159         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
18160         non-overrideen inherited operation with a controlling result as
18161         illegal only its implicit declaration comes from the derived type
18162         declaration of its result's type.
18163         (Check_Possible_Deferred_Completion): Relocate the object definition
18164         node of the subtype indication of a deferred constant completion rather
18165         than directly analyzing it. The analysis of the generated subtype will
18166         correctly decorate the GNAT tree.
18167         (Record_Type_Declaration): Check whether this is a declaration for a
18168         limited derived record before analyzing components.
18169         (Analyze_Component_Declaration): Diagnose record types  not explicitly
18170         declared limited when a component has a limited type.
18171         (Build_Derived_Record_Type): Code reorganization to check if some of
18172         the inherited subprograms of a tagged type cover interface primitives.
18173         This check was missing in case of a full-type associated with a private
18174         type declaration.
18175         (Constant_Redeclaration): Check that the subtypes of the partial and the
18176         full view of a constrained deferred constant statically match.
18177         (Mentions_T): A reference to the current type in an anonymous access
18178         component declaration  must be an entity name.
18179         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
18180         class_wide type to refer to full type, not to the incomplete one.
18181         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
18182         available. Required to give support to the certified run-time.
18183         (Analyze_Component_Declaration): In case of anonymous access components
18184         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
18185         (Process_Discriminants): For an access discriminant, use the
18186         discriminant specification as the associated_node_for_itype, to
18187         simplify accessibility checks.
18189 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18190             Javier Miranda  <miranda@adacore.com>
18192         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
18193         abstract interpretations on an operator, remove interpretations that
18194         yield Address or a type derived from it, if one of the operands is an
18195         integer literal.
18196         (Try_Object_Operation.Try_Primitive_Operation,
18197         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
18198         location when creating the new reference to a primitive or class-wide
18199         operation as a part of rewriting a subprogram call.
18200         (Try_Primitive_Operations): If context requires a function, collect all
18201         interpretations after the first match, because there may be primitive
18202         operations of the same type with the same profile and different return
18203         types. From code reading.
18204         (Try_Primitive_Operation): Use the node kind to choose the proper
18205         operation when a function and a procedure have the same parameter
18206         profile.
18207         (Complete_Object_Operation): If formal is an access parameter and prefix
18208         is an object, rewrite as an Access reference, to match signature of
18209         primitive operation.
18210         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
18211         by an expanded name with prefix Standard, when the operands are of an
18212         anonymous access type.
18213         (Remove_Abstract_Operations): If the operation is abstract because it is
18214         inherited by a user-defined type derived from Address, remove it as
18215         well from the set of candidate interpretations of an overloaded node.
18216         (Analyze_Membership_Op): Membership test not applicable to cpp-class
18217         types.
18219 2006-02-13  Bob Duff  <duff@adacore.com>
18221         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
18222         redundant use clauses.
18223         In particular, if the scope of two use clauses overlaps, but one is not
18224         entirely included in the other, we should not warn.  This can happen
18225         with nested packages.
18226         (Analyze_Subprogram_Renaming): Protect the compiler against previously
18227         reported errors. The bug was reported when the compiler was built
18228         with assertions enabled.
18229         (Find_Type): If the node is a 'Class reference and the prefix is a
18230         synchronized type without a corresponding record, return the type
18231         itself.
18233 2006-02-13  Javier Miranda  <miranda@adacore.com>
18235         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
18236         if this is the full-declaration associated with a private declaration
18237         that implement interfaces, then the private type declaration must be
18238         limited.
18239         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
18240         as aliased. The use of the 'access attribute is not available for such
18241         object (for this purpose the object should be explicitly marked as
18242         aliased, but being an anonymous type this is not possible).
18244 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18245             Robert Dewar  <dewar@adacore.com>
18247         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
18248         compilation unit is an elaboration scope.
18249         (Add_Task_Proc): Add '\' in 2-line warning message.
18250         (Activate_All_Desirable): Deal with case of unit with'ed by parent
18252 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18253             Javier Miranda  <miranda@adacore.com>
18255         * sem_type.adb (Write_Overloads): Improve display of candidate
18256         interpretations.
18257         (Add_One_Interp): Do not add to the list of interpretations aliased
18258         entities corresponding with an abstract interface type that is an
18259         immediate ancestor of a tagged type; otherwise we have a dummy
18260         conflict between this entity and the aliased entity.
18261         (Disambiguate): The predefined equality on universal_access is not
18262         usable if there is a user-defined equality with the proper signature,
18263         declared in the same declarative part as the designated type.
18264         (Find_Unique_Type): The universal_access equality operator defined under
18265         AI-230 does not cover pool specific access types.
18266         (Covers): If one of the types is a generic actual subtype, check whether
18267         it matches the partial view of the other type.
18269 2006-02-13  Thomas Quinot  <quinot@adacore.com>
18271         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
18272         line. This is necessary to allow In_Extended_Main_Unit to provide
18273         correct results for itypes while writing out expanded source.
18274         (Close_File): No need to update the source_index_table here since it's
18275         now done for each line.
18277 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18278             Robert Dewar  <dewar@adacore.com>
18280         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
18281         preserve the source unit where the itype is declared, and prevent a
18282         backend abort.
18283         (Note_Implicit_Run_Time_Call): New procedure
18284         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
18285         E_Subprogram_Type)
18287         * sprint.ads: Document use of $ for implicit run time routine call
18289 2006-02-13  Quentin Ochem  <ochem@adacore.com>
18291         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
18292         task name.
18294 2006-02-13  Bob Duff  <duff@adacore.com>
18296         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
18297         Scan_Unsigned, so we do not scan leading blanks and sign twice.
18298         Integer'Value("- 5") and Integer'Value("-+5") now correctly
18299         raise Constraint_Error.
18301         * s-vallli.adb (Scan_Long_Long_Integer): Call
18302         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
18303         do not scan leading blanks and sign twice.
18304         Integer'Value("- 5") and Integer'Value("-+5") now correctly
18305         raise Constraint_Error.
18307         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
18308         Scan_Long_Long_Unsigned): Split out most of the processing from
18309         Scan_Long_Long_Unsigned out into
18310         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
18311         This prevents scanning leading blanks and sign twice.
18312         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
18313         See RM-3.5(44).
18315         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
18316         out most of the processing from Scan_Unsigned out into
18317         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
18318         This prevents scanning leading blanks and sign twice.
18320         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
18321         use with Modular'Value attribute.
18322         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
18323         attribute.
18325 2006-02-13  Robert Dewar  <dewar@adacore.com>
18327         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
18329 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
18331         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
18332         (PPC VxWorks): Likewise.
18333         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
18334         (forced_callee): Make non-inlinable and non-pure.
18335         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
18337 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18338             Ben Brosgol  <brosgol@adacore.com>
18339             Robert Dewar  <dewar@adacore.com>
18341         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
18342         support.
18343         Document that gnatbind -M option is for cross environments only.
18344         Added description of using gnatmem to trace gnat rtl allocs and deallocs
18345         Add note on use of $ to label implicit run time calls
18346         Add documentation for -gnatyI (check mode IN)
18347         Updated chapter on compatibility with HP Ada
18348         VMS-oriented edits.
18349         Ran spell and corrected errors
18350         Add documentation for gnatbind -d and rework documentation of -D
18351         at the same time.
18352         Add subprogram/data elimination section.
18353         Minor editing of annex A.
18354         Add section for gnatcheck.
18355         Add documentation for restriction No_Dispatching_Calls
18356         Add documentation for pragma Ada_2005
18357         Remove mention of obsolete pragma Propagate_Exceptions
18358         Document that pragma Unreferenced can appear after DO in ACCEPT
18359         Clarify Pure_Function for library level units
18360         Mention Max/Min in connection with No_Implicit_Conditionals
18361         No_Wide_Characters restriction is no longer partition-wide
18362         Add a nice example for Universal_Literal_String attribute
18363         Document that pragma No_Return can take multiple arguments
18365         * ug_words: Added entry for gnatcheck
18367         * g-ctrl_c.ads (Install_Handler): Enhance comments
18369         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
18371         * g-trasym.ads: Add documentation on how to do off line symbolic
18372         traceback computation.
18374         * s-fatgen.adb: Add comments for Unaligned_Valid
18376         * stand.ads: Fix typo in comment
18378 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18380         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
18382 2006-02-06  Roger Sayle  <roger@eyesopen.com>
18384         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
18386 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18388         PR target/25926
18389         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
18390         implementation that calls __main.
18392 2006-01-25  Peter O'Gorman  <peter@pogma.com>
18394         PR bootstrap/25859
18395         * Makefile.in (GCC_LINK): Remove quotes.
18396         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
18397         or $(GCC_LINK).
18399         (powerpc-darwin): Pass -shared-libgcc when building shared library.
18401 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18403         PR ada/24533
18404         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
18406 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18408         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
18410 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
18412         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
18413         needed.
18415 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
18417         * Make-lang.in: Update dependencies
18419 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
18421         * Make-lang.in: Add rule for ada/exp_sel.o
18423 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
18425         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
18427 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
18429         * gnatvsn.ads (Library_Version): Bump to version 4.2
18430         (ASIS_Version_Number): Bumped.
18432 2005-12-09  Doug Rupp  <rupp@adacore.com>
18434         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
18435         Ada bind file prefix on VMS from b$ to b__.
18436         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
18437         __init.
18439         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
18440         Targparm.OpenVMS_On_Target.
18441         (Object_Suffix): Initialize with target object suffix.
18442         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
18444         * butil.adb: Change some Hostparm.OpenVMS checks to
18445         Targparm.OpenVMS_On_Target.
18447         * clean.adb: Change some Hostparm.OpenVMS checks to
18448         Targparm.OpenVMS_On_Target.
18449         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
18450         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
18451         Ada bind file prefix on VMS from b$ to b__.
18453         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
18454         --GCC so that Get_Target_Parameters can find system.ads.
18455         (Gnatlink): Call Get_Target_Parameters in mainline.
18456         Initialize standard packages for Targparm.
18457         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
18458         (Process_Args): Also Check for object files with target object
18459         extension.
18460         (Make_Binder_File_Names): Create with target object extension.
18461         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
18462         to b__.
18464         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
18465         Targparm.OpenVMS_On_Target.
18466         ({declaration},Build_Library,Check_Library): Change Ada bind file
18467         prefix on VMS from b$ to b__.
18469         * osint-b.adb: Change some Hostparm.OpenVMS checks to
18470         Targparm.OpenVMS_On_Target.
18471         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
18472         b__.
18474         * targext.c: New file.
18476         * Makefile.in: add support for vxworks653 builds
18477         (../../vxaddr2line): gnatlink with targext.o.
18478         (TOOLS_LIBS): Move targext.o to precede libgnat.
18479         (init.o, initialize.o): Minor clean up in dependencies.
18480         (GNATLINK_OBJS): Add targparm.o, snames.o
18481         Add rules fo building targext.o and linking it explicitly with all
18482         tools.
18483         Also add targext.o to gnatlib.
18485         * Make-lang.in: Add rules for building targext.o and linking it in
18486         with gnat1 and gnatbind.
18487         Add entry for exp_sel.o.
18489         * osint.adb Change some Hostparm.OpenVMS checks to
18490         Targparm.OpenVMS_On_Target.
18491         (Object_File_Name): Use target object suffix.
18493         * osint.ads (Object_Suffix): Remove, no longer used.
18494         (Target_Object_Suffix): Initialize with target object suffix.
18496         * rident.ads: Add special exception to license.
18498         * targparm.adb (Get_Target_Parameters): Set the value of
18499         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
18500         value.
18501         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
18502         
18503         * targparm.ads: Add special exception to license.
18505         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
18506         function.
18507         (Copy_File): Make sure from file is closed if error on to file
18508         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
18510         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
18511         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
18513         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
18514         target object suffix.
18516 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
18517             Quentin Ochem  <ochem@adacore.com>
18518             Florian Villoing  <villoing@adacore.com>
18520         * a-taster.ads, a-taster.adb: New files.
18522         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
18523         link to the version that does nothing. This way the task termination
18524         routine is not executed twice for the environment task when finishing
18525         because of an unhandled exception.
18527         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
18528         handler because of an unhandled exception.
18530         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
18531         System.Tasking.Utilities instead of that in System.Tasking.Stages.
18533         * s-finimp.adb (initialization code): Modify the soft link for the
18534         finalization of the global list instead of Adafinal.
18536         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
18537         non-tasking version of the soft link for task termination. We do
18538         nothing since if we are using the non-tasking version it
18539         means that the task termination functionality is not used.
18540         (Null_Finalize_Global_List): Add this null version for the procedure
18541         in charge of finalizing the global list for controlled objects.
18542         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
18543         instead for handling run-time termination in a more flexible way.
18544         (Adafinal_NT): This new procedure will take care of finalizing the
18545         global list for controlled objects if needed, but no tasking
18546         finalization.
18548         * s-tarest.adb (Task_Lock): Do not try to lock again the
18549         Global_Task_Lock if we already own it. Otherwise, we get blocked in
18550         some run-time operations.
18551         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
18552         until all nested locks have been released.
18553         (Task_Wrapper): Call the fall-back task termination handler. It
18554         applies to all tasks but the environment task.
18555         (Finalize_Global_Tasks): Add the call for the task termination
18556         procedure for the environment task.
18557         (Task_Wrapper): suppress warnings around declaration of
18558         Secondary_Stack_Address.
18560         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
18561         moved to the Common_ATCB record.
18562         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
18563         Common_ATCB record.
18564         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
18565         Common_ATCB record.
18567         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
18568         Fall_Back_Handler, and Specific_Handler.
18570         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
18571         defined in Ada.Task_Termination, to avoid circular dependencies.
18572         (Termination_Handler): Redefine this type here, alredy defined in
18573         Ada.Task_Termination, for avoiding circular dependencies.
18574         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
18575         for storing task termination handlers. In addition,
18576         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
18577         Common_ATCB because it is used by both the regular and the restricted
18578         run times.
18579         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
18580         Common_ATCB because it is used by both the regular and the restricted
18581         run times.
18582         (Common_ATCB): Added a dynamic task analyzer field.
18584         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
18585         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
18586         (Task_Wrapper): Call the task termination handler. It applies to all
18587         tasks but the environment task.
18588         (Finalize_Global_Tasks): Call the task termination procedure for the
18589         environment task. The call to Finalize_Global_List is now performed
18590         using the soft links mechanism.
18591         (Task_Wrapper): added dynamic stack analysis.
18593         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
18594         potentially blocking operations has been moved from
18595         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
18596         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
18597         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
18598         this run-time check.
18600         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
18601         of task termination procedure.
18602         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
18603         link for the task termination procedure.
18605         * bindusg.adb: (Bindusg): Added documentation for -u option.
18607         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
18608         (Get_Main_C): Add handling of dynamic stack analysis.
18609         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
18611         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
18612         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
18613         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
18615         * opt.ads: Added flags used by dynamic stack measurement.
18616         (Max_Line_Length): Remove (not used anymore)
18618         * s-io.ads, s-io.adb (Standard_Error): new subprogram
18619         (Standart_Output): new subprogram
18620         (Set_Output): new subprogram
18621         (Put): now uses the value of Current_Out to know if the output has to be
18622         send to stderr or stdout.
18623         
18624         * s-stausa.ads: Complete implementation.
18626         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
18627         
18628         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
18629         list of Ada 05 files.
18630         (GNAT Library Units): Add AltiVec files.
18632         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
18633         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
18634         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
18636 2005-12-09  Nicolas Setton  <setton@adacore.com>
18638         * adaint.c (__gnat_locate_regular_file): Return immediately if
18639         file_name is empty.
18641 2005-12-09  Javier Miranda  <miranda@adacore.com>
18642             Hristian Kirtchev  <kirtchev@adacore.com>
18644         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
18645         to the specification because the frontend generates code that uses this
18646         subprogram.
18647         (Set_Interface_Table): Add missing assertion.
18648         Update documentation describing the run-time structure.
18649         (Displace): New subprogram that displaces the pointer to the object
18650         to reference one of its secondary dispatch tables.
18651         (IW_Membership): Modified to use the new table of interfaces.
18652         (Inherit_TSD): Modified to use the new table of interfaces.
18653         (Register_Interface_Tag): Use the additional formal to fill the
18654         contents of the new table of interfaces.
18655         (Set_Interface_Table): New subprogram that stores in the TSD the
18656         pointer to the table of interfaces.
18657         (Set_Offset_To_Top): Use the additional formal to save copy of
18658         the offset value in the table of interfaces.
18659         Update structure of GNAT Primary and Secondary dispatch table diagram.
18660         Add comment section on GNAT dispatch table prologue.
18661         (Offset_To_Signature): Update the constant value of the Signature field.
18662         (Dispatch_Table): Update comment on hidden fields in the prologue.
18663         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
18664         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
18665         the type of formal parameter T to Tag, introduce additional assertions.
18666         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
18667         conversion.
18668         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
18670         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
18671         in all the calls to Expand_Interface_Thunk. Instead of referencing the
18672         record component containing the tag of the secondary dispatch table we
18673         have to use the Offset_To_Top run-time function to get this information;
18674         otherwise if the pointer to the base of the object has been displace
18675         we get a wrong value if we use the 'position attribute.
18677         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
18678         all the calls to Expand_Interface_Thunk.
18679         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
18680         interfaces; hence the call to Set_Interface_Table was clearly wrong.
18681         (Collect_All_Interfaces): Modify the internal subprogram Collect to
18682         ensure that the interfaces implemented by the ancestors are placed
18683         at the header of the generated list.
18684         (Expand_Interface_Conversion): Handle the case in which the displacement
18685         associated with the interface conversion is not statically known. In
18686         this case we generate a call to the new run-time subprogram Displace.
18687         (Make_DT): Generate and fill the new table of interfaces.
18688         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
18689         Get_Tagged_Kind and Set_Tagged_Kind.
18690         (Tagged_Kind): New function that determines the tagged kind of a type
18691         with respect to limitedness and concurrency and returns a reference to
18692         RE_Tagged_Kind.
18693         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
18694         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
18695         primary dispatch table for a type.
18696         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
18697         secondary dispatch table respectively of a tagged type.
18699         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
18700         (Expand_Interface_Conversion): New subprogram to indicate if the
18701         displacement of the type conversion is statically known.
18702         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
18704         * rtsfind.ads (RE_Offset_To_Top): New entity
18705         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
18706         accessible to users.
18707         (Re_Displace): New entity
18708         (RE_Interface_Data): New entity
18709         (RE_Set_Interface_Data): New_Entity
18710         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
18711         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
18712         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
18713         RE_TK_Tagged, RE_TK_Task.
18715         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
18716         Init_Secondary_Tags_Internal to allow its use with interface types and
18717         also to generate the code for the new additional actual required
18718         by Set_Offset_To_Top.
18719         (Build_Init_Statements): In case of components associated with abstract
18720         interface types there is no need to generate a call to its IP.
18721         (Freeze_Record_Type): Generate Select Specific Data tables only for
18722         concurrent types.
18723         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
18724         the bodies and specifications of the predefined primitive operations
18725         dealing with dispatching selects and abort, 'Callable, 'Terminated only
18726         for concurrent types.
18728         * exp_sel.ads, exp_sel.adb: New files.
18730         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
18731         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
18732         properly protected objects and attach handler in the case of the
18733         restricted profile.
18734         Move embeded package Select_Expansion_Utilities into a separate external
18735         package.
18736         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
18737         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
18738         (Build_K, Build_S_Assignment): New subprograms, part of the select
18739         expansion utilities.
18740         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
18741         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
18742         where the trigger is a dispatching procedure of a limited tagged type.
18744 2005-12-09  Olivier Hainque  <hainque@adacore.com>
18746         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
18747         pointer initialization values. Make a SAVE_EXPR instead. Add comments
18748         about the use and expansion of SAVE_EXPRs in the various possible
18749         renaming handling cases.
18750         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
18751         abusing DECL_FCONTEXT.
18753 2005-12-09  Matthew Heaney  <heaney@adacore.com>
18755         * a-convec.adb (Merge): Added assertions to check whether vector params
18756         are sorted.
18758         * a-coinve.adb (Merge): Added assertions to check whether vector params
18759         are sorted.
18761         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
18762         draft.
18763         (Cursor'Read): raises PE
18765         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
18766         to its default value.
18768         * a-cihama.adb: Manually check whether cursor's key and elem are
18769         non-null
18771         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
18772         (Merge): Assert that target and source lists are in order
18773         (Swap): Declare non-const temporaries, to pass to Splice
18775         * a-cdlili.ads: (Splice): Changed param name and param mode
18777         * a-cdlili.adb: (Splice): Changed param name and param mode
18778         (Merge): Assert that target and source lists are in order
18779         (Swap): Declare non-const temporaries, to pass to Splice
18781         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
18782         (Write): declare Stream param as not null
18784         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
18785         an exception message.
18787 2005-12-09  Thomas Quinot  <quinot@adacore.com>
18788             Robert Dewar  <dewar@adacore.com>
18790         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
18791         which is the absolute maximum length we can support.
18793         * frontend.adb: For the processing of configuration pragma files,
18794         remove references to Opt.Max_Line_Length, which is not checked anymore.
18796         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
18797         length.
18799         * scn.adb, scng.adb: 
18800         Always check line length against the absolute supported maximum,
18801         Hostparm.Max_Line_Length.
18803         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
18804         value for the maximum line length is Max_Line_Length (not
18805         Column_Number'Last).
18806         Minor error msg update
18807         (Set_Style_Check_Options): New interface returning error msg
18808         Minor code reorganization (processing for 'M' was out of alpha order)
18810         * switch-c.adb: New interface for Set_Style_Check_Options
18812         * stylesw.ads (Set_Style_Check_Options): New interface returning error
18813         msg.
18815 2005-12-09  Javier Miranda  <miranda@adacore.com>
18817         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
18818         with IP subprogram were only supported if there were limited types.
18820         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
18821         records with IP subprogram were only supported if there were limited
18822         types.
18824 2005-12-09  Olivier Hainque  <hainque@adacore.com>
18825             Eric Botcazou  <ebotcazou@adacore.com>
18827         * trans.c (tree_transform, emit_check): Adjust calls to
18828         build_call_raise, passing the now expected GNAT_NODE argument.
18830         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
18831         source line information than what the current global locus indicates
18832         when appropriate.
18834         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
18835         field has overflowed.
18836         (build_call_raise): Add a GNAT_NODE argument to convey better source
18837         line information than what the current global locus indicates when
18838         appropriate.
18839         (build_component_ref): Adjust call to build_call_raise.
18841 2005-12-09  Pascal Obry  <obry@adacore.com>
18843         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
18844         the iterator is quitting iteration on parent directory.
18846 2005-12-09  Javier Miranda  <miranda@adacore.com>
18848         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
18849         and the assignment to a class-wide object, before the assignment we
18850         generate a run-time check to ensure that the tag of the Target is
18851         covered by the tag of the source.
18853 2005-12-09  Robert Dewar  <dewar@adacore.com>
18855         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
18856         parameter in call to Image_Wide_Character.
18858         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
18859         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
18860         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
18861         annoying FFFE/FFFF inconsistency.
18863 2005-12-09  Robert Dewar  <dewar@adacore.com>
18864             Javier Miranda  <miranda@adacore.com>
18865             Ed Schonberg  <schonberg@adacore.com>
18867         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
18868         of type conversion.
18869         (Find_Interface): New subprogram that given a tagged type and one of its
18870         component associated with the secondary table of an abstract interface
18871         type, return the entity associated with such abstract interface type.
18872         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
18873         base type to create anonymous subtype, because entity may be a locally
18874         declared subtype or generic actual.
18875         (Find_Interface): New subprogram that given a tagged type and one of its
18876         component associated with the secondary table of an abstract interface
18877         type, return the entity associated with such abstract interface type.
18879         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
18880         conversion cannot be handled at compile time. In this case we pass this
18881         information to the expander to generate the appropriate code.
18883 2005-12-09  Robert Dewar  <dewar@adacore.com>
18884             Ed Schonberg  <schonberg@adacore.com>
18885             Gary Dismukes  <dismukes@adacore.com>
18886             Javier Miranda  <miranda@adacore.com>
18887             Hristian Kirtchev  <kirtchev@adacore.com>
18889         * einfo.adb (Itype_Printed): New flag
18890         (Is_Limited_Type): Derived types do not inherit limitedness from
18891         interface progenitors.
18892         (Is_Return_By_Reference_Type): Predicate does not apply to limited
18893         interfaces.
18895         * einfo.ads (Itype_Printed): New flag
18896         Move Is_Wrapper_Package to proper section
18897         Add missing Inline for Is_Volatile
18899         * output.ads, output.adb (Write_Erase_Char): New procedure
18900         (Save/Restore_Output_Buffer): New procedures
18901         (Save/Restore_Output_Buffer): New procedures
18903         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
18904         Add missing support for anonymous access type
18905         (Write_Id): Insert calls to Write_Itype
18906         (Write_Itype): New procedure to output itypes
18908         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
18909         use of "limited" in declaration.
18911         * sinfo.ads, sinfo.adb: 
18912         Formal derived types can carry an explicit "limited" indication.
18914         * sem_ch3.adb: Add with and use of Targparm.
18915         (Create_Component): If Frontend_Layout_On_Target is True and the
18916         copied component does not have a known static Esize, then reset
18917         the size and positional fields of the new component.
18918         (Analyze_Component_Declaration): A limited component is
18919         legal within a protected type that implements an interface.
18920         (Collect_Interfaces): Do not add to the list the interfaces that
18921         are implemented by the ancestors.
18922         (Derived_Type_Declaration): If the parent of the full-view is an
18923         interface perform a transformation of the tree to ensure that it has
18924         the same parent than the partial-view. This simplifies the job of the
18925         expander in order to generate the correct object layout, and it is
18926         needed because the list of interfaces of the full-view can be given in
18927         any order.
18928         (Process_Full_View): The parent of the full-view does not need to be
18929         a descendant of the parent of the partial view if both parents are
18930         interfaces.
18931         (Analyze_Private_Extension_Declaration): If declaration has an explicit
18932         "limited" the parent must be a limited type.
18933         (Build_Derived_Record_Type): A derived type that is explicitly limited
18934         must have limited ancestor and progenitors.
18935         (Build_Derived_Type): Ditto.
18936         (Process_Full_View): Verify that explicit uses of "limited" in partial
18937         and full declarations are consistent.
18938         (Find_Ancestor_Interface): Remove function.
18939         (Collect_Implemented_Interfaces): New procedure used to gather all
18940         implemented interfaces by a type.
18941         (Contain_Interface): New function used to check whether an interface is
18942         present in a list.
18943         (Find_Hidden_Interface): New function used to determine whether two
18944         lists of interfaces constitute a set equality. If not, the first
18945         differing interface is returned.
18946         (Process_Full_View): Improve the check for the "no hidden interface"
18947         rule as defined by AI-396.
18949 2005-12-09  Robert Dewar  <dewar@adacore.com>
18951         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
18952         types, not on record subtypes.
18953         (Freeze_Entity): Code cleanup. Add barrier to the loop
18954         that generates the references for primitive operations. This allows to
18955         remove an unnecessary exception handler.
18956         Code reformatting and comment clean ups.
18958 2005-12-09  Vincent Celier  <celier@adacore.com>
18960         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
18961         If GNAT CHECK is called with a project file, but with no
18962         source on the command line, call gnatcheck with all the compilable
18963         sources of the project.
18964         Take into account the new command Check, for gnatcheck. Treat as for
18965         other ASIS tools: take into account project, specific package Check and
18966         Compiler switches.
18967         For ASIS tools, add the switches in package Compiler for
18968         the invocation of the compiler.
18970         * prj-attr.adb: Add package Check and its attributes
18972         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
18974         * vms_conv.adb (Initialize): Change Params of command Check to
18975         unlimited files.
18976         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
18977         Add data for new command Check
18979         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
18980         ELIM.
18981         Add qualifiers for Check command options
18982         (Command_Type): New command Check
18984 2005-12-09  Thomas Quinot  <quinot@adacore.com>
18986         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
18987         command line switch overruns the output buffer.
18989 2005-12-09  Robert Dewar  <dewar@adacore.com>
18991         * sem_prag.adb: Processing for new pragma Complete_Representation
18992         (Analyze_Pragma, case Debug): Implement two argument form.
18994         * par-prag.adb: Entry for new pragma Complete_Representation
18995         (Prag, case Debug): Recognize two argument form of pragma Debug
18996         New interface for Set_Style_Check_Options.
18998         * sem_ch13.adb: Implement new pragma Complete_Representation.
19000         * snames.adb, snames.ads, snames.h: Entry for new pragma
19001         Complete_Representation.
19003 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
19005         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
19006         available user-specified stream attributes on limited parameters to
19007         also test the type directly rather than only its underlying type (for
19008         Ada 95) and, in the case of Ada 2005, to check that the user-specified
19009         attributes are visible at the point of the subprogram declaration.
19010         For Ada 2005, the error message is modified to indicate that the
19011         type's stream attributes must be visible (again, only for -gnat05).
19013 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
19015         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
19016         anonymous access types.
19018         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
19019         matching of anonymous access types and anonymous access to subprogram
19020         types. 'R'M 4.9.1 (2/2).
19022 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
19024         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
19025         rule prematurely when operands are universal, remaining ambiguities
19026         will be removed during resolution.
19027         Code cleanup.
19029         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
19030         that are Ada 2005 functions.
19031         (Has_Abstract_Interpretation): Subsidiary to
19032         Remove_Conversions, to remove ambiguities caused by abstract operations
19033         on numeric types when operands are universal.
19035 2005-12-09  Robert Dewar  <dewar@adacore.com>
19037         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
19038         for case where spec is categorized.
19040 2005-12-09  Javier Miranda  <miranda@adacore.com>
19042         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
19043         types use the corresponding record type. This was not needed before
19044         the implementation of Ada 2005 synchronized types because
19045         concurrent types were never tagged types in Ada 95.
19047 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
19049         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
19050         first subtype of the type of the expression to verify that it is a
19051         legal Time type.
19053 2005-12-09  Robert Dewar  <dewar@adacore.com>
19055         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
19056         decoded names.
19058 2005-12-09  Quentin Ochem  <ochem@adacore.com>
19059             Robert Dewar  <dewar@adacore.com>
19060             Ed Falis  <falis@adacore.com>
19061             Florian Villoing  <villoing@adacore.com>
19062             Thomas Quinot  <quinot@adacore.com>
19063             Arnaud Charlet  <charlet@adacore.com>
19065         * gnat_ugn.texi: Created section "Stack Related Tools"
19066         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
19067         "Stack Related Tools"
19068         Added subsection "Static Stack Usage Analysis"
19069         Added subsection "Dynamic Stack Usage Analysis"
19070         Include documentation of itypes in sprint listing (-gnatG)
19071         Documented gnatbind -D switch (default sec stack size for fixed sec
19072         stacks).
19073         Added Interrupt_State and Persistent_BSS to list of configuration
19074         pragmas.
19075         Add missing doc for maximum value of nnn in -gnatyMnnn
19077         * gnat_rm.texi: Document the AltiVec binding.
19078         Add documentation for pragma Complete_Representation
19079         Shortened an overly long line (> 79 chars)
19080         Clarify documentation of unchecked conversion in implementation
19081         defined cases.
19082         Document two argument form of pragma Debug
19084         * types.ads (Column_Number): Update documentation.
19086         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
19087         library level Finalize_Storage_Only objects (these are not attached to
19088         any finalization list).
19090         * system-mingw.ads: (Underlying_Priorities): Update comment.
19092 2005-12-09  Robert Dewar  <dewar@adacore.com>
19094         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
19095         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
19096         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
19097         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
19098         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
19099         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
19100         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
19101         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
19102         reformatting.
19104 2005-12-09  Robert Dewar  <dewar@adacore.com>
19106         * s-vaflop-vms-alpha.adb: (Ne_F): New function
19107         (Ne_G): New function
19109         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
19110         for tag assignment.
19111         (Rewrite_Comparison): Handle case where operation is not a comparison
19112         and ignore, and also handle type conversion case.
19114 2005-12-09  Thomas Quinot  <quinot@adacore.com>
19116         * exp_aggr.ads: Fix typo in comment.
19117         ???-mark Convert_Aggr_In_Assignment as needing documentation.
19119 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
19121         * layout.adb: Replace various uses of byte by storage unit throughout.
19122         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
19123         static size, convert to storage units before returning, to conform to
19124         spec.
19126 2005-12-09  Matthew Gingell  <gingell@adacore.com>
19128         * g-exctra.ads: Fix typo in comment.
19130 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19132         * utils.c: Minor reformatting.
19134 2005-12-09  Robert Dewar  <dewar@adacore.com>
19136         * g-soccon.ads: 
19137         Further comment fixes to make the status of the default file clear
19139         * s-bitops.adb: Clarify comment for Bits_Array
19141 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19143         * Make-lang.in (ada.install-normal): Remove.
19145 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19147         * Make-lang.in: Remove all dependencies on s-gtype.
19149 2005-12-05  Richard Guenther  <rguenther@suse.de>
19151         * utils.c (convert): Use fold_convert where appropriate.
19153 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
19155         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
19156         a period is meant.
19158 2005-12-02  Richard Guenther  <rguenther@suse.de>
19160         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
19162 2005-12-01  Roger Sayle  <roger@eyesopen.com>
19164         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
19165         nodes.
19167 2005-11-23  Laurent Guerby  <laurent@guerby.net>
19169         * mlib-prj.adb (Build_Library): Initialize Delete.
19171 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
19173         * socket.c: Add extern int h_errno for rtems since networking header
19174         files are not available at this point in a tool bootstrap. Newlib
19175         only has basic C library header files.
19177 2005-11-19  Richard Guenther  <rguenther@suse.de>
19178         Roger Sayle  <roger@eyesopen.com>
19180         PR ada/23717
19181         * misc.c (internal_error_function): Don't use vsprintf to format
19182         the error message text, instead use pp_format_text and the new
19183         pretty printer APIs.  This allows handling of %qs, %w, etc.
19185 2005-11-18  Laurent Guerby  <laurent@guerby.net>
19187         PR ada/24857
19188         * Makefile.in: Use s-auxdec-empty for RTEMS.
19190 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19192         PR ada/22333
19193         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
19194         a temporary if taking the address of something that is neither
19195         reference, declaration, or constant, since the gimplifier
19196         can't handle that case.
19198 2005-11-17  Laurent Guerby  <laurent@guerby.net>
19200         PR ada/24857
19201         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
19203 2005-11-16  Richard Guenther  <rguenther@suse.de>
19205         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
19207 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
19209         PR ada/24855
19210         * raise-gcc.c: Add missing stdarg.h include.
19212 2005-11-16  Richard Guenther  <rguenther@suse.de>
19214         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
19215         (ada/misc.o): Likewise.
19217 2005-11-14  Thomas Quinot  <quinot@adacore.com>
19219         * g-soccon.ads: Minor reformatting. Update comments.
19221         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
19222         gain visibility on the declaration of struct timeval.
19224         * g-soccon-freebsd.ads,
19225         g-soccon-darwin.ads,
19226         g-soccon-tru64.ads,
19227         g-soccon-aix.ads,
19228         g-soccon-irix.ads,
19229         g-soccon-hpux.ads,
19230         g-soccon-solaris.ads,
19231         g-soccon-vms.ads,
19232         g-soccon-mingw.ads,
19233         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
19235         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
19236         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
19237         g-soccon-linux-x86.ads: New files.
19239         * g-socthi-mingw.adb: 
19240         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
19242         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
19243         (time_t, suseconds_t): New types constructed to match the tv_sec
19244         and tv_usec fields of C struct timeval.
19245         (Timeval): Construct structure in terms of the new types.
19246         (Host_Errno): New function (imported from socket.c), returns last hosts
19247         database error.
19249         * g-socthi-vxworks.adb:  Add error handling circuitry.
19251         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
19252         components of struct timeval.
19253         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
19254         (Check_Selector): In error conditions, clear internal socket sets to
19255         avoid a memory leak.
19256         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
19257         Send_Timeout, Receive_Timeout.
19259         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
19260         the tv_sec and tv_usec fields of C struct timeval.
19261         (Timeval): Construct structure in terms of the new types.
19262         (Host_Errno): New function (imported from socket.c), returns last hosts
19263         database error.
19265         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
19266         hosts database last error code.
19268         * gen-soccon.c: Complete value expansion should not be performed on
19269         TARGET, as it has the form of a math expression, and some components
19270         may be platform-defined macros.
19271         For VxWorks, generate the OK and ERROR values.
19272         New constants giving the sizes of the components of C struct timeval.
19274 2005-11-14  Robert Dewar  <dewar@adacore.com>
19275             Ed Schonberg  <schonberg@adacore.com>
19277         PR ada/18434
19278         * types.ads: Include All_Checks in Suppress_Array
19280         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
19281         not(a=b), since we no longer do this rewriting, and hence it is not
19282         needed.
19283         (Elaboration_Checks_Suppressed): Add special casing to
19284         deal with different cases of static and dynamic elaboration checks (all
19285         checks does not count in the first case, but does in the second).
19286         (Expr_Known_Valid): Do not assume that the result of any arbitrary
19287         function call is valid, since this is not the case.
19288         (Ensure_Valid): Do not apply validity check to a real literal
19289         in a universal or fixed context
19291         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
19292         elementary types using the operator in standard. It is cleaner not to
19293         modify the programmers intent, especially in the case of floating-point.
19294         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
19295         it did not matter because we always rewrote a/=b to not(a=b).
19296         (Expand_Allocator_Expression): For an allocator expression whose nominal
19297         subtype is an unconstrained packed type, convert the expression to its
19298         actual constrained subtype.
19299         Implement warning for <= or >= where < or > not possible
19300         Fix to Vax_Float tests (too early in many routines, causing premature
19301         Vax_Float expansions.
19303         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
19304         to be used with packages and generic packages as well as with
19305         subprograms.
19306         (Suppress): Set All_Checks, but not Elaboration_Check, for case
19307         of pragma Suppress (All_Checks)
19308         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
19309         a string literal for precise control over warnings.
19310         Avoid raise of pragma in case of unrecognized pragma and just return
19311         instead.
19313         * sem_prag.ads: Minor reformatting
19315         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
19316         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
19317         Switch. Do not handle any exception.
19318         Include -gnatwx as part of -gnatg (warn on redundant parens)
19319         Allow optional = after -gnatm
19320         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
19321         longer sets Elaboration_Checks.
19322         Code to set warning mode moved to Sem_Warn
19323         so that it can be shared by pragma processing.
19325         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
19326         statement.
19328         * s-taprop-solaris.adb: 
19329         Change some <= to =, to avoid new warning
19331         * a-exexda.adb, prj-proc.adb: 
19332         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
19333         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
19335 2005-11-14  Robert Dewar  <dewar@adacore.com>
19337         * exp_vfpt.adb: Handle /= case
19338         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
19339         so that we do not get duplicate scaling for fixed point conversions.
19341         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
19343 2005-11-14  Matthew Gingell  <gingell@adacore.com>
19345         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
19346         Increase default priority on Lynx from 15 to 17, and meet the Ada
19347         requirement that Default_Priority be ((Priority'First +
19348         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
19350 2005-11-14  Vincent Celier  <celier@adacore.com>
19352         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19353         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
19354         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
19355         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
19356         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
19357         mlib-tgt-lynxos.adb (DLL_Prefix): New function
19359 2005-11-14  Doug Rupp  <rupp@adacore.com>
19361         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
19362         private part.
19364 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
19366         * s-traces-default.adb, s-trafor-default.ads,
19367         s-tratas-default.adb: Fix compilation errors.
19369 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
19371         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
19372         raising the exception so the memory used is freed.
19374 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
19376         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
19377         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
19378         (convert_address): Update comments and list of platforms using this.
19380         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
19381         no longer used.
19383 2005-11-14  Pascal Obry  <obry@adacore.com>
19384             Vincent Celier  <celier@adacore.com>
19386         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
19387         GNAT.Command_Line.
19389         * memroot.adb: Remove redundant with/use clause on
19390         System.Storage_Elements.
19392 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
19394         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
19395         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
19396         related code to a-exexpr.adb
19397         (Save_Occurrence_And_Private): Move GCC EH related code to
19398         a-exexpr-gcc.adb
19399         (Raise_Current_Excep): Add new variable Id with pragma
19400         volatile, to ensure that the variable lives on stack.
19402         * a-exexpr-gcc.adb, raise-gcc.c: New file.
19404         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
19405         from a-except.adb.
19406         Move GCC EH related code to a-exexpr-gcc.adb
19408         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
19409         64-bit Solaris
19410         Split the Linux version of g-soccon into separate variants for 32 and 64
19411         bit platforms.
19412         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
19413         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
19414         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
19415         of host variable $(RANLIB_FLAGS).
19416         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
19417         Code clean up: remove unused/obsolete targets.
19418         (EH_MECHANISM): New variable introduced to differenciate between the
19419         two EH mechanisms statically.
19420         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
19421         (LIBGNAT_OBJS): Add raise-gcc.o
19422         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
19423         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19424         supports VxWorks 6 RTPs.
19425         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
19426         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19428         * raise.c: Move all GCC EH-related routines to raise-gcc.c
19430 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
19432         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
19433         deferral level, when abort is not allowed, to a later stage (the
19434         Task_Wrapper).
19435         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
19436         it will not get changed by the generated code. It was previously done
19437         in Create_Task.
19439 2005-11-14  Thomas Quinot  <quinot@adacore.com>
19440             Olivier Hainque  <hainque@adacore.com>
19441             Eric Botcazou  <ebotcazou@adacore.com>
19443         * decl.c:
19444         Factor common code to build a storage type for an unconstrained object
19445         from a fat or thin pointer type and a constrained object type.
19446         (annotate_value): Handle BIT_AND_EXPR.
19447         (annotate_rep): Don't restrict the back annotation of inherited
19448         components to the type_annotate_only case.
19449         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
19450         we are not defining the type.
19451         <E_Record_Type>: Likewise.
19452         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
19453         to get advantage of the new maybe_stabilize_reference interface, to
19454         ensure that what we reference is indeed stabilized instead of relying
19455         on assumptions on what the stabilizer does.
19456         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
19457         type imported through a limited_with clause, use its non-limited view.
19458         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
19459         differentiation.
19460         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
19461         of #if sections + explicit comparisons of convention identifiers.
19462         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
19463         before early-returning for certain types when code generation is
19464         disabled.
19465         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
19466         nullification of gnu_expr we do for objects with address clause and
19467         that we are not defining.
19468         (elaborate_expression_1): Do not create constants when creating
19469         variables needed by the debug info: the dwarf2 writer considers that
19470         CONST_DECLs is used only to represent enumeration constants, and emits
19471         nothing for them.
19472         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
19473         object with an address clause into an indirect reference, drop the
19474         initializing expression.
19475         Include "expr.h".
19476         (STACK_CHECK_BUILTIN): Delete.
19477         (STACK_CHECK_PROBE_INTERVAL): Likewise.
19478         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
19479         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
19480         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
19481         corresponding to the renamed object as ignored for debugging purposes.
19483         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
19484         related): For a prefix that is a dereference of a fat or thin pointer,
19485         if there is an actual subtype provided by the front-end, use that
19486         subtype to build an actual type with bounds template.
19487         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
19488         is provided by the front-end, use that subtype to compute the size of
19489         the deallocated object.
19490         (gnat_to_gnu): When adding a statement into an elaboration procedure,
19491         check for a potential violation of a No_Elaboration_Code restriction.
19492         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19493         with extra arguments to control whether to recurse through non-values
19494         and to let the caller know if the stabilization has succeeded.
19495         (gnat_stabilize_reference): Now a simple wrapper around
19496         maybe_stabilize, for common uses without restriction on lvalues and
19497         without need to check for the success indication.
19498         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
19499         pass false instead of 0 as the FORCE argument which is a bool.
19500         (Identifier_to_gnu): Remove checks ensuring that an renamed object
19501         attached to a renaming pointer has been properly stabilized, as no such
19502         object is attached otherwise.
19503         (call_to_gnu): Invoke create_var_decl to create the temporary when the
19504         function uses the "target pointer" return mechanism.
19505         Reinstate conversion of the actual to the type of the formal
19506         parameter before any other specific treatment based on the passing
19507         mechanism. This turns out to be necessary in order for PLACEHOLDER
19508         substitution to work properly when the latter type is unconstrained.
19510         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
19511         common pattern.
19512         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19513         with extra arguments to control whether to recurse through non-values
19514         and to let the caller know if the stabilization has succeeded.
19516         * utils2.c (gnat_build_constructor): Only sort the fields for possible
19517         static output of record constructor if all the components are constant.
19518         (gnat_build_constructor): For a record type, sort the list of field
19519         initializers in increasing bit position order.
19520         Factor common code to build a storage type for an unconstrained object
19521         from a fat or thin pointer type and a constrained object type.
19522         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
19523         types variants, and process special cases of VIEW_CONVERT expressions
19524         as their NOP_EXPR counterpart to ensure we get to the
19525         CORRESPONDING_VARs associated with CONST_DECls.
19526         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
19527         on the right-hand side.
19529         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
19530         a common pattern.
19531         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
19532         are converting back to its original type.
19533         (convert) <JM input>: Fallthrough regular conversion code instead of
19534         extracting the object if converting to a type variant.
19535         (create_var_decl): When a variable has an initializer requiring code
19536         generation and we are at the top level, check for a potential violation
19537         of a No_Elaboration_Code restriction.
19538         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
19539         SIZE and SIZE_UNIT which we need for later back-annotations.
19540         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
19541         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
19542         is an unchecked union.
19543         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
19544         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
19545         main variant, just replace the VIEW_CONVERT_EXPR.
19546         <UNION_TYPE>: Revert 2005-03-02 change.
19548         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
19550         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
19552 2005-11-14  Matthew Heaney  <heaney@adacore.com>
19554         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
19555         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
19556         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
19557         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
19558         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
19559         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
19560         Compiles against the spec for ordered maps described in sections
19561         A.18.6 of the most recent (August 2005) AI-302 draft.
19563 2005-11-14  Olivier Hainque  <hainque@adacore.com>
19565         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
19566         to ensure bias adjustments take place when need be and to prevent
19567         occurrences of intermediate overflows.
19569 2005-11-14  Matthew Gingell  <gingell@adacore.com>
19570             Olivier Hainque  <hainque@adacore.com>
19572         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
19573         ia64 HP-UX.
19575         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
19576         tracebacks on ia64 HP-UX and provide explanatory comment.
19577         Enable backtraces on ia64 GNU/Linux.
19578         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
19579         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
19581 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
19582             Javier Miranda  <miranda@adacore.com>
19584         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
19585         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
19586         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
19587         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
19589         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
19590         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
19591         assertions).
19593         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
19594         subprogram that generates the external name associated with a
19595         secondary dispatch table.
19596         (Get_Secondary_DT_External_Name): New subprogram that generates the
19597         external name associated with a secondary dispatch table.
19599 2005-11-14  Emmanuel Briot  <briot@adacore.com>
19601         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
19602         line in the ALI file to include both an instantiation reference, and a
19603         returned value.
19605 2005-11-14  Vincent Celier  <celier@adacore.com>
19607         * clean.adb (Check_Project): Look for Ada code in extending project,
19608         even if Ada is not specified as a language.
19609         Use new function DLL_Prefix for DLL_Name
19610         (Clean_Interface_Copy_Directory): New procedure
19611         (Clean_Library_Directory): New procedure
19612         (Clean_Directory): Remove procedure, no longer used
19613         (Clean_Project): Do not delete any file in an externally built project
19615         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
19616         directory of an extending project, even when there are no Ada source
19617         present.
19618         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
19619         (Set_Ada_Paths.Add.Recursive_Add): Ditto
19621         * mlib-prj.adb (Check_Library): For all library projects, get the
19622         library file timestamp.
19623         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
19624         (Build_Library): Use new function DLL_Prefix for the DLL_Name
19625         (Clean): Remove procedure, no longer used
19626         (Ultimate_Extension_Of): New function
19627         (Build_Library): When cleaning the library directory, only remove an
19628         existing library file and any ALI file of a source of the project.
19629         When cleaning the interface copy directory, remove any source that
19630         could be a source of the project.
19632         * prj.ads, prj.adb (Project_Empty): Add values of new components
19633         Library_TS and All_Imported_Projects.
19634         (Project_Empty): Add values for new components of Project_Data:
19635         Library_ALI_Dir and Display_Library_ALI_Dir
19637         * prj-attr.adb: New project level attribute name Library_ALI_Dir
19639         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
19640         attribute Library_ALI_Dir.
19641         (Check_Library_Attributes): The library directory cannot be the same as
19642         any source directory of the project tree.
19643         (Check_Stand_Alone_Library): The interface copy directory cannot be
19644         the same as any source directory of the project tree.
19646         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
19647         all temporary files.
19649 2005-11-14  Robert Dewar  <dewar@adacore.com>
19650             Ed Schonberg  <schonberg@adacore.com>
19652         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19653         (Check_Elab_Call): A call within a protected body is never an
19654         elaboration call, and does not require checking.
19655         (Same_Elaboration_Scope): Take into account protected types for both
19656         entities.
19657         (Activate_Elaborate_All_Desirable): New procedure
19659         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
19660         desirable
19662         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
19663         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
19665         * lib-writ.ads, lib-writ.adb: 
19666         Implement new AD/ED for Elaborate_All/Elaborate desirable
19667         Use new Elaborate_All_Desirable flag in N_With_Clause node
19669         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
19670         N_Free_Statement nodes.
19671         Define new class N_Subprogram_Instantiation
19672         Add Elaborate_Desirable flag to N_With_Clause node
19673         Add N_Delay_Statement (covering two kinds of delay)
19675         * debug.adb: Introduce d.f flag for compiler
19676         Add -da switch for binder
19678 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
19679             Cyrille Comar  <comar@adacore.com>
19681         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
19682         for task component, in the case of a limited aggregate. The enclosed
19683         object declaration will create it earlier. Otherwise, in the case of a
19684         nested aggregate, the object may appear in the wrong scope.
19685         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
19686         (Gen_Assign): If the component being assigned is an array type and the
19687         expression is itself an aggregate, wrap the assignment in a block to
19688         force finalization actions on the temporary created for each row of the
19689         enclosing object.
19690         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
19691         structures are initialized after all discriminants are set so that
19692         they can be accessed even when their offset is dynamic.
19694 2005-11-14  Robert Dewar  <dewar@adacore.com>
19695             Hristian Kirtchev  <kirtchev@adacore.com>
19697         * sem_attr.adb: Implement Machine_Rounding attribute
19698         (Analyze_Access_Attribute): The access attribute may appear within an
19699         aggregate that has been expanded into a loop.
19700         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
19701         'Terminated whenever the prefix is of a task interface class-wide type.
19702         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
19703         the prefix is of a task interface class-wide type.
19705         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
19706         to avoid warnings.
19708         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
19709         Remove pragma Inline for [Unaligned_]Valid.
19710         Add comments that Valid routines do not work for Vax_Float
19712         * exp_attr.adb: Implement Machine_Rounding attribute
19714         * snames.h: Add entry for Machine_Rounding attribute
19716 2005-11-14  Javier Miranda  <miranda@adacore.com>
19717             Robert Dewar  <dewar@adacore.com>
19718             Hristian Kirtchev  <kirtchev@adacore.com>
19720         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
19721         and related): For a prefix that is an explicit dereference of an
19722         access to unconstrained packed array type, annotate the dereference
19723         with an actual subtype so GIGI can make a correct size computation.
19724         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
19725         'Unrestricted_Access, if the designated type is an interface we
19726         add a type conversion to force the displacement of the pointer
19727         to the secondary dispatch table.
19728         Use Universal_Real instead of Long_Long_Float when we need a high
19729         precision float type for the generated code (prevents gratuitous
19730         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
19731         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
19732         'Terminated for task interface class-wide objects. Generate a call to
19733         the predefined dispatching routine used to retrieve the _task_id from
19734         a task corresponding record.
19735         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
19737         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19738         (Check_Dispatching_Operation): Protect the frontend againts
19739         previously detected errors.
19741         * Makefile.rtl: Add new instantiations of system.fat_gen
19743         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
19744         Change name of instantiated package for better consistency
19745         with newly added system.fat_gen instantiations.
19747         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
19748         s-fvagfl.ads: New files.
19750 2005-11-14  Cyrille Comar  <comar@adacore.com>
19751             Thomas Quinot  <quinot@adacore.com>
19753         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
19754         assignment of a value of a tagged type that has been rewritten to a
19755         block statement, it is known by construction that no checks are
19756         necessary for the statements within the block: analyze it with checks
19757         suppressed.
19758         (Expand_N_If_Statement): When killing a dead then-branch in an
19759         if-statement that has elsif_parts, recompute the Current_Value node
19760         for any entity whose value is known from the condition of the first
19761         elsif_part.
19762         (Expand_N_Return_Statement): When returning a mutable record, convert
19763         the return value into its actual subtype in order to help the backend
19764         to return the actual size instead of the maximum. This is another
19765         aftermath of not returning mutable records on the sec-stack anymore.
19767         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
19768         handling of error msg for suspicious reverse range iteration.
19769         (Check_Possible_Current_Value_Condition): Move declaration from body to
19770         spec, to allow this subprogram to be called from exp_ch5.
19772 2005-11-14  Thomas Quinot  <quinot@adacore.com>
19774         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
19775         generate a set of nested array aggregates instead of a single flat
19776         aggregate for multi-dimensional arrays.
19778 2005-11-14  Pascal Obry  <obry@adacore.com>
19780         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
19781         by spawnve is a process handle, no need to convert. Add a parameter
19782         close to control wether the process handle must be closed.
19783         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
19784         a process handle, not need to convert.
19785         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
19787         * g-expect.adb: (Kill): Document the new close parameter.
19788         (Close): Do not release the process handle in the kill there as
19789         waitpid() is using it.
19790         (Send_Signal): Release the process handle.
19792 2005-11-14  Robert Dewar  <dewar@adacore.com>
19794         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
19795         need a high precision float type for the generated code (prevents
19796         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19797         used).
19799         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
19800         need a high precision float type for the generated code (prevents
19801         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19802         used).
19803         (Expand_Width_Attribute): In configurable run-time, the attribute is not
19804         allowed on non-static enumeration subtypes. Force a load error to emit
19805         the correct diagnostic.
19807 2005-11-14  Thomas Quinot  <quinot@adacore.com>
19808             Robert Dewar  <dewar@adacore.com>
19809             Ed Schonberg  <schonberg@adacore.com>
19811         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
19812         subtype to compute the size of the designated object at run-time,
19813         create such a subtype and store it in the Actual_Designated_Subtype
19814         attribute of the N_Free_Statement.
19815         Generate itype for classwide designated object in both cases of
19816         user-specified storage pool: specific and class-wide, not only in the
19817         specific case.
19818         Raise CE when trying to set a not null access type object to null.
19819         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
19820         an explicit loop, because freeze nodes make its position variable.
19822         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
19823         null object.
19825 2005-11-14  Javier Miranda  <miranda@adacore.com>
19827         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
19828         Build_Stream_Procedure): Add the null-excluding attribute to the first
19829         formal.
19830         This has no semantic meaning under Ada95 mode but it is a
19831         requirement under Ada05 mode.
19833         * par-ch3.adb (P_Access_Definition): Addition of warning message if
19834         the null exclusion is used under Ada95 mode
19835         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
19836         (P_Access_Definition): Remove assertion that forbids the use of
19837         the null-exclusion feature in Ada95.
19839 2005-11-14  Robert Dewar  <dewar@adacore.com>
19841         * impunit.adb: Exclude container helper units not intended for use by
19842         users.
19844 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
19846         * freeze.adb (Freeze_Entity): For an access formal that is an access
19847         to subprogram, freeze the anonymous subprogram type at the same time,
19848         to prevent later freezing in the wrong scope, such as the enclosing
19849         subprogram body.
19850         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
19851         subprogram whenever available.
19853 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
19855         PR ada/23732
19856         * gnatvsn.ads (Library_Version): Bump to 4.1
19858 2005-11-14  Robert Dewar  <dewar@adacore.com>
19860         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
19861         Storage_Offset to avoid wrap around causing invalid results.
19863 2005-11-14  Pascal Obry  <obry@adacore.com>
19865         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
19866         cross-compiler.
19867         (Scan_Bind_Arg): Fail with an error message if -M option is used
19868         on a native compiler.
19870 2005-11-14  Robert Dewar  <dewar@adacore.com>
19871             Vincent Celier  <celier@adacore.com>
19873         * gprep.adb: Implement -C switch to scan comments
19875         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
19877         * scans.ads: Comment updates (including new use of Tok_Comment in
19878         preprocessing)
19880         * opt.ads: Add documentation for flags that are used by gprmake,
19881         currently and in the next version of gprmake.
19882         (Verbosity_Level): New variable
19883         Add Replace_In_Comments switch
19885         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
19886         and -vm.
19887         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
19889 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
19891         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
19892         message, friendlier.
19894 2005-11-14  Robert Dewar  <dewar@adacore.com>
19896         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
19898 2005-11-14  Doug Rupp  <rupp@adacore.com>
19900         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
19902 2005-11-14  Robert Dewar  <dewar@adacore.com>
19904         * interfac.ads: Change declarations of IEEE float types so that we no
19905         longer need a separate version of this package for VMS.
19907 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
19909         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
19910         internal entity created for the declaration of a child subprogram body
19911         with no spec as coming from source, to generate proper cross-reference
19912         information.
19914 2005-11-14  Vincent Celier  <celier@adacore.com>
19916         * make.adb (Compile_Sources): Change verbose message to minimum
19917         verbosity level High for "is in an Ada library", "is a read-only
19918         library" and "is an internal library",
19919         (Create_Binder_Mapping_File): Path name of ALI file for library project
19920         must include the library directory, not the object directory.
19921         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
19922         for new switches -vl, -vm and -vh.
19923         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
19924         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
19925         (Compile_Sources): Do not attempt to compile if an ALI file is missing
19926         in a project that is externally built.
19927         (Compute_All_Imported_Projects): New procedure
19928         (Gnatmake): Check if importing libraries should be regenerated because
19929         at least an imported library is more recent.
19930         (Initialize): For each project compute the list of the projects it
19931         imports directly or indirectly.
19932         (Add_Library_Search_Dir): New procedure, used in place of
19933         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
19934         put in the search paths.
19935         (Add_Source_Search_Dir): New procedure, used in place of
19936         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
19937         put in the search paths.
19938         (Mark_Directory): Resolve the absolute path the directory before marking
19939         it.
19941         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
19942         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
19943         Switch. Do not handle any exception.
19944         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
19945         so that the switch is recognized as valid.
19946         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
19948 2005-11-14  GNAT Script  <nobody@adacore.com>
19950         * Make-lang.in: Makefile automatically updated
19952 2005-11-14  Pascal Obry  <obry@adacore.com>
19954         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
19955         used.
19956         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
19957         In both cases the last argument was dropped.
19959 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
19961         * namet.h: (Column_Numbe): New type.
19962         (Get_Column_Number): Define to sinput__get_column_number.
19963         (Instantiation): Define to sinput__instantiation.
19964         (Get_Column_Number): Declare.
19965         (Instantiation): Likewise.
19967 2005-11-14  Robert Dewar  <dewar@adacore.com>
19969         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
19970         syntax, which could cause compiler hangs.
19972 2005-11-14  Vincent Celier  <celier@adacore.com>
19974         * prj-ext.adb: Take into account new environment variable
19975         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
19976         are defined.
19977         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
19978         normalize its path name, making it absolute and resolving symbolic
19979         links, and replace the original if resolved path is different.
19981 2005-11-14  Vincent Celier  <celier@adacore.com>
19983         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
19984         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
19986 2005-11-14  Emmanuel Briot  <briot@adacore.com>
19988         * prj-pp.adb (Print): Do not output the with statement if the
19989         associated name is empty, which happens for virtual extending projects.
19990         (Print): Preserve the "extends all" attribute when printing the project.
19992         * prj-tree.ads (String_Value_Of): Add comment about returned value for
19993         a virtual extending project.
19995 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
19997         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
19998         rhs of an assignment even if the type is unconstrained, when the
19999         context is non-expanding.
20000         In an inlined body, if the context type is private,
20001         resolve with its full view, which must be a composite type.
20003 2005-11-14  Robert Dewar  <dewar@adacore.com>
20004             Ed Schonberg  <schonberg@adacore.com>
20006         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20007         Do not give obsolescent warning on with of subprogram (since we
20008         diagnose calls)
20009         (Analyze_With_Clause): Add test for obsolescent package
20010         (Install_Context_Clauses): If the unit is the body of a child unit, do
20011         not install twice the private declarations of the parents, to prevent
20012         circular lists of Use_Clauses in a parent.
20013         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
20014         compiling body of child unit.
20015         Use new class N_Subprogram_Instantiation
20016         (Expand_With_Clause): If this is a private with_clause for a child unit,
20017         appearing in the context of a package declaration, then the implicit
20018         with_clauses generated for parent units are private as well.
20019         (License_Check): Do not generate message if with'ed unit is internal
20021 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
20022             Ed Schonberg  <schonberg@adacore.com>
20023             Thomas Quinot  <quinot@adacore.com>
20025         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
20026         names are internal, because they will not have a corresponding partner
20027         in the actual package.
20028         (Analyze_Formal_Package): Move the setting of the formal package spec's
20029         Generic_Parent field so that it occurs prior to analyzing the package,
20030         to allow proper operation of Install_Parent_Private_Declarations.
20031         (Analyze_Package_Instantiation): Set the instantiated package entity's
20032         Package_Instantiation field.
20033         (Get_Package_Instantiation_Node): Move declaration to package spec.
20034         Retrieve the N_Package_Instantiation node when the Package_Instantiation
20035         field is present.
20036         (Check_Generic_Child_Unit): Within an inlined call, the only possible
20037         instantiation is Unchecked_Conversion, for which no parents are needed.
20038         (Inline_Instance_Body): Deinstall and record the use_clauses for all
20039         parent scopes of a scope being removed prior to inlining an instance
20040         body.
20041         (Analyze_Package_Instantiation): Do not perform front-end inlining when
20042         the current context is itself an instance within a non-instance child
20043         unit, to prevent scope stack errors.
20044         (Save_References): If the node is an aggregate that is an actual in a
20045         call, rewrite as a qualified expression to preserve some type
20046         information, to resolve possible ambiguities in the instance.
20047         (Instance_Parent_Unit): New global variable to record the ultimate
20048         parent unit associated with a generic child unit instance (associated
20049         with the existing Parent_Unit_Visible flag).
20050         (type Instance_Env): New component Instance_Parent_Unit for stacking
20051         parents recorded in the global Instance_Parent_Unit.
20052         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
20053         stack.
20054         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
20055         it's not a top-level unit, and only do this if Instance_Parent_Unit is
20056         not already set. Replace test of Is_Child_Unit with test of parent's
20057         scope against package Standard. Add comments and a ??? comment.
20058         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
20059         on a child instance parent to test that the parent equals
20060         Instance_Parent rather than simply checking that the unit is not a
20061         child unit.
20062         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
20063         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
20064         a formal interface are ancestors of the corresponding actual.
20065         (Validate_Formal_Interface_Type): Additional legality checks.
20066         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
20067         interface types with ancestors.
20068         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
20069         to diagnose attempts to use generic within its own declaration.
20071 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
20072             Javier Miranda  <miranda@adacore.com>
20074         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
20075         discriminant.
20076         (Build_Private_Derived_Type): The entity of the created full view of the
20077         derived type does not come from source. If after installing the private
20078         declarations of the parent scope the parent is still private, use its
20079         full view to construct the full declaration of the derived type.
20080         (Build_Derived_Record_Type): Relax the condition that controls the
20081         execution of the check that verifies that the partial view and
20082         the full view agree in the set of implemented interfaces. In
20083         addition, this test now only takes into account the progenitors.
20084         (Derive_Interface_Subprograms): No need to derive subprograms
20085         of ancestors that are interfaces.
20086         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
20087         associated code.
20088         Change name Is_Package to Is_Package_Or_Generic_Package
20089         (Complete_Subprograms_Derivation): Handle the case in which the full
20090         view is a transitive derivation of the ancestor of the partial view.
20091         (Process_Full_View): Rename local subprogram Find_Interface_In_
20092         Descendant to Find_Ancestor_Interface to leave the code more clear.
20093         Remove wrong code that avoids the generation of an error message
20094         when the immediate ancestor of the partial view is an interface.
20095         In addition some minor reorganization of the code has been done to
20096         leave it more clear.
20097         (Analyze_Type_Declaration): If type has previous incomplete tagged
20098         partial view, inherit properly its primitive operations.
20099         (Collect_Interfaces): Make public, for analysis of formal
20100         interfaces.
20101         (Analyze_Interface_Declaration): New procedure for use for regular and
20102         formal interface declarations.
20103         (Build_Derived_Record_Type): Add support for private types to the code
20104         that checks if a tagged type implements abstract interfaces.
20105         (Check_Aliased_Component_Type): The test applies in the spec of an
20106         instance as well.
20107         (Access_Type_Declaration): Clean up declaration of malformed type
20108         declared as an access to its own classwide type, to prevent cascaded
20109         crash.
20110         (Collect_Interfaces): For private extensions and for derived task types
20111         and derived protected types, the parent may be an interface that must
20112         be included in the interface list.
20113         (Access_Definition): If the designated type is an interface that may
20114         contain tasks, create Master_Id for it before analyzing the expression
20115         of the declaration, which may be an allocator.
20116         (Record_Type_Declaration): Set properly the interface kind, for use
20117         in allocators, the creation of master id's for task interfaces, etc.
20119 2005-11-14  Javier Miranda  <miranda@adacore.com>
20120             Ed Schonberg  <schonberg@adacore.com>
20122         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
20123         omitted in case of stream attribute subprograms.
20124         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
20125         appear immediately after a subprogram body, when there is no previous
20126         subprogram declaration.
20127         Change name Is_Package to Is_Package_Or_Generic_Package
20128         (Process_Formals): A non null qualifier on a non null named access
20129         type is not an error, and is a warning only if Redundant_Constructs
20130         are flagged.
20132 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
20133             Ed Schonberg  <schonberg@adacore.com>
20135         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
20136         nested within Analyze_Package_Specification to install the private
20137         declarations and use clauses within each of the parent units of a
20138         package instance of a generic child package.
20139         (Analyze_Package_Specification): When entering a private part of a
20140         package associated with a generic instance or formal package, the
20141         private declarations of the parent must be installed (by calling new
20142         procedure Install_Parent_Private_Declarations).
20143         Change name Is_Package to Is_Package_Or_Generic_Package
20144         (Preserve_Full_Attributes): For a synchronized type, the corresponding
20145         record is absent in a generic context, which does not indicate a
20146         compiler error.
20148 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
20150         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
20151         not try to rewrite a renamed stream attribute, because the operations
20152         on the type may not have been generated.
20153         Handle properly a renaming_as_body generated for a stream operation
20154         whose default is abstract because the object type itself is abstract.
20155         (Find_Type): If the type is incomplete and appears as the prefix of a
20156         'Class reference, it is tagged, and its list of primitive operations
20157         must be initialized properly.
20158         (Chain_Use_Clauses): When chaining the use clauses that appear in the
20159         private declaration of a parent unit, prior to compiling the private
20160         part of a child unit, find on the scope stack the proper parent entity
20161         on which to link the use clause.
20162         (Note_Redundant_Use): Emit a warning when a redundant use clause is
20163         detected.
20164         (Analyze_Object_Renaming): An attribute reference is not a legal object
20165         if it is not a function call.
20167 2005-11-14  Robert Dewar  <dewar@adacore.com>
20168             Ed Schonberg  <schonberg@adacore.com>
20170         * sem_eval.adb: Implement d.f flag
20171         (Subtype_Statically_Match): A generic actual type has unknown
20172         discriminants when the corresponding actual has a similar partial view.
20173         If the routine is called to validate the signature of an inherited
20174         operation in a child instance, the generic actual matches the full view,
20176 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
20177             Ed Schonberg  <schonberg@adacore.com>
20178             Robert Dewar  <dewar@adacore.com>
20179             Thomas Quinot  <quinot@adacore.com>
20181         * sem_res.adb (Resolve_Call): Provide a better error message whenever
20182         a procedure call is used as a select statement trigger and is not an
20183         entry renaming or a primitive of a limited interface.
20184         (Valid_Conversion): If the operand has a single interpretation do not
20185         remove address operations.
20186         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
20187         statement to inhibit warning.
20188         (Resolve_Unary_Op): Do not produce a warning when
20189         processing an expression of the form -(A mod B)
20190         Use Universal_Real instead of Long_Long_Float when we need a high
20191         precision float type for the generated code (prevents gratuitous
20192         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
20193         (Resolve_Concatenation_Arg): Improve error message when argument is an
20194         ambiguous call to a function that returns an array.
20195         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
20196         there is an implicit operator in the given scope if we are within an
20197         instance: legality check has been performed on the generic.
20198         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
20199         after resolving operand, to avoid false warnings on overloaded calls.
20201 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
20202             Javier Miranda  <miranda@adacore.com>
20204         PR ada/15604
20205         * sem_type.adb (Covers): In an inlined body, a composite type matches
20206         a private type whose full view is a composite type.
20207         (Interface_Present_In_Ancestor): Protect the frontend against
20208         previously detected errors to ensure that its compilation
20209         with assertions enabled gives the same output that its
20210         compilation without assertions.
20211         (Interface_Present_In_Ancestor): Add support for private types.
20212         Change name In_Actual to In_Generic_Actual (clean up)
20213         (Disambiguate): New predicate In_Actual, to recognize expressions that
20214         appear in the renaming declaration generated for generic actuals, and
20215         which must be resolved in the outer context.
20217 2005-11-14  Robert Dewar  <dewar@adacore.com>
20218             Thomas Quinot  <quinot@adacore.com>
20219             Hristian Kirtchev  <kirtchev@adacore.com>
20220             Ed Schonberg  <schonberg@adacore.com>
20222         * sem_util.ads, sem_util.adb: Change name Is_Package to
20223         Is_Package_Or_Generic_Package.
20224         (Check_Obsolescent): New procedure.
20225         (Set_Is_Public): Remove obsolete junk test.
20226         (Set_Public_Status): Do not set Is_Public on an object whose declaration
20227         occurs within a handled_sequence_of_statemets.
20228         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
20229         for a parameterless procedure.
20230         (Enter_Name): Recognize renaming declarations created for private
20231         component of a protected type within protected operations, so that
20232         the source name of the component can be used in the debugger.
20234 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
20235             Robert Dewar  <dewar@adacore.com>
20237         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
20238         of a generic subprogram are not visible outside the body.
20239         (Set_Warning_Switch): New procedure (code to set warning mode moved
20240         here from Switch.C so that it can be shared by pragma processing.
20241         (Check_References): Special case warning for non-modified non-imported
20242         volatile objects.
20243         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
20244         form with a string literal argument
20246 2005-11-14  Javier Miranda  <miranda@adacore.com>
20248         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
20249         anonymous access.
20250         (Write): Addition of "not null" to the anonymous access.
20251         (Read): Addition of "not null" to the anonymous access.
20252         (Write): Addition of "not null" to the anonymous access.
20254         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
20255         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
20256         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
20257         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
20258         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
20259         "not null" to the anonymous access.
20261 2005-11-14  Robert Dewar  <dewar@adacore.com>
20263         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
20264         offset values
20266 2005-11-14  Vincent Celier  <celier@adacore.com>
20268         * switch.adb (Bad_Switch): New procedure
20269         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
20270         message when in error.
20272         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
20273         Too_Many_Output_Files): Remove declarations, no longer used.
20274         (Scan_Nat): New parameter Switch
20275         (Scan_Pos): Ditto
20276         (Bad_Switch): New procedure
20278         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
20279         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
20280         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
20281         to Osint.Fail. Do not handle any exception.
20283 2005-11-14  Vincent Celier  <celier@adacore.com>
20285         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
20286         designates a non existent directory.
20288 2005-11-14  Robert Dewar  <dewar@adacore.com>
20290         * xgnatugn.adb: Replace invalid membership test by 'Valid
20292 2005-11-14  Vincent Celier  <celier@adacore.com>
20294         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
20295         there is no object directory.
20297 2005-11-14  Robert Dewar  <dewar@adacore.com>
20299         * usage.adb: Minor adjustment to output format, use nn instead of nnn
20300         (so that -gnateInnn does not run into next column)
20302 2005-11-14  Ed Falis  <falis@adacore.com>
20304         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
20305         "constrained"
20307 2005-11-14  Cyrille Comar  <comar@adacore.com>
20309         * s-chepoo.ads: Add comments on Dereference.
20310         Remove unnecessary inherited abstract primitives.
20311         Cosmetic cleanup.
20313 2005-11-14  Robert Dewar  <dewar@adacore.com>
20315         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
20316         node parameter, not needed, since it is available as Declaration_Node.
20318 2005-11-14  Geert Bosch  <bosch@adacore.com>
20320         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
20321         grammatically correct.
20323 2005-11-14  Vincent Celier  <celier@adacore.com>
20325         * s-fileio.ads: Correct spelling error in comment
20327 2005-11-14  Cyrille Comar  <comar@adacore.com>
20328             Robert Dewar  <dewar@adacore.com>
20329             Vincent Celier  <celier@adacore.com>
20330             Ben Brosgol  <brosgol@adacore.com>
20331             Jose Ruiz  <ruiz@adacore.com>
20332             Pascal Obry  <obry@adacore.com>
20334         * gnat_ugn.texi: 
20335         Document that -fstack-check is needed for strict compliance with the
20336         Ada 95 Reference Manual.
20337         Correct reference to VAX systems to meet HP guidelines
20338         Add documentation for new gnatmake switches -vl, -vm and -vh
20339         Replace DEC Ada by HP Ada
20340         Replace DIGITAL by HP
20341         Remove empty section on tools in compatibility section
20342         Clarify the Windows convention semantics.
20343         Document the Win32 calling convention.
20344         The Stdcall, Win32 and DLL convention are synonyms.
20345         Add a note in -gnatR description about zero size record components
20346         Note on new >= and <= warnings for -gnatwc
20347         Document that equal sign after -gnatm is optional.
20348         Note that strip is working fine on DLL built with a Library
20349         Project. The restriction apply only to DLL built with gnatdll.
20350         Update section about the way to debug a DLL.
20351         Update information about the DLL convention.
20352         Document -C switch for gnatprep
20353         Document new attribute Library_ALI_Dir
20354         Update elaboration doc to include implicit Elaborate pragmas now
20355         generated for subprogram instantiations.
20356         Document limitation on executable names that include spaces for --GCC,
20357         --GNATBIND, and --GNATLINK switches.
20358         Document that -w causes -gnatws to be added at start of gcc switches
20360         * gnat_rm.texi: Document that -mieee is needed for generating infinite
20361         and NaN values in case of overflow on machines that are not fully
20362         compliant with the IEEE floating-point standard.
20363         Create a section describing the set of compiler options needed for
20364         strict compliance with the Ada 95 Reference Manual.
20365         Add documentation for pragma Obsolescent applied to a package
20366         Clarify potential issues of mixed language programs related to the
20367         I/O buffering enabling in the elaboration of the GNAT runtime.
20368         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
20369         This documentation only patch adds extra documentsion for pragma
20370         Restrictions (No_Elaboration_Code), explaining why it is not possible
20371         to document this restriction in terms of allowed source constructs.
20372         Document string literal form of pragma Warnings
20373         Document new attribute Library_ALI_Dir
20374         Add documentation on stable attributes in project files that was missing
20376         * gnat-style.texi: Indicate that paragraphs within a single comment
20377         should be separated by empty comment lines
20379         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
20380         /05 respectively)
20382         * bindusg.adb: Minor cleanup, put -m before -M for consistency
20384 2005-11-14  Robert Dewar  <dewar@adacore.com>
20386         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
20387         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
20388         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
20389         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
20390         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
20391         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
20392         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
20393         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
20394         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
20395         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
20396         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
20397         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
20398         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
20399         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
20400         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
20401         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
20402         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
20403         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
20404         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
20405         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
20406         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
20407         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
20408         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
20409         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
20410         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
20411         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
20412         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
20413         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
20414         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
20415         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
20416         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
20417         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
20418         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
20419         system-interix.ads, system-solaris-sparc.ads,
20420         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
20421         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
20422         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
20423         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
20424         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
20425         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
20426         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
20427         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
20428         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
20429         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
20430         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
20431         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
20432         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
20433         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
20434         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
20435         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
20436         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
20437         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
20438         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
20439         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
20440         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
20441         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
20442         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
20443         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
20444         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
20445         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
20446         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
20447         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
20448         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
20449         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
20450         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
20451         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
20452         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
20453         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
20454         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
20455         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
20456         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
20457         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
20458         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
20459         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
20460         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
20461         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
20462         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
20463         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
20464         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
20465         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
20466         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
20467         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
20468         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
20469         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
20470         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
20471         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
20472         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
20473         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
20474         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
20475         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
20476         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
20477         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
20478         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
20479         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
20480         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
20481         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
20482         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
20483         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
20484         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
20485         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
20486         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
20487         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
20488         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
20489         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
20490         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
20491         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
20492         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
20493         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
20494         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
20495         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
20496         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
20497         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
20498         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
20499         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
20500         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
20501         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
20502         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
20503         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
20504         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
20505         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
20506         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
20507         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
20508         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
20509         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
20510         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
20511         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
20512         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
20513         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
20514         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
20515         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
20516         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
20517         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
20518         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
20519         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
20520         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
20521         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
20522         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
20523         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
20524         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
20525         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
20526         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
20527         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
20528         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
20529         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
20530         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
20531         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
20532         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
20533         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
20534         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
20535         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
20536         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
20537         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
20538         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
20539         a-numaux-darwin.ads, a-numaux-darwin.adb,
20540         a-swuwha.ads, a-stunha.ads: Minor reformatting
20542 2005-11-14  Robert Dewar  <dewar@adacore.com>
20544         PR ada/18434
20545         * osint-m.adb: Add pragma Elaborate_All for Osint
20547 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
20549         PR ada/23995
20550         * trans.c (call_to_gnu): Restore statement lost in translation.
20552 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
20554         * init.c: Use the Linux-specific section for the IA-64/Linux target.
20555         (__gnat_adjust_context_for_raise): Add conditional code so that the
20556         IA-64 is also supported.
20558 2005-11-03  James E Wilson  <wilson@specifix.com>
20560         PR ada/23427
20561         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
20562         TREE_OVERFLOW check.
20564 2005-09-21  Olivier Hainque  <hainque@adacore.com>
20566         PR ada/22418
20567         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
20568         as we create them to store a size in bits.
20570 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
20572         PR ada/21937
20573         PR ada/22328
20574         PR ada/22381
20575         PR ada/22383
20576         PR ada/22419
20577         PR ada/22420
20578         * utils2.c (build_return_expr): New helper function.
20579         * gigi.h (build_return_expr): Declare it.
20580         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
20581         of manually building the RETURN_EXPR tree.
20582         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
20583         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
20584         build_binary_op for the "target pointer" case.  Use build_return_expr
20585         instead of manually building the RETURN_EXPR tree.
20587 2005-09-16  Laurent Guerby  <laurent@guerby.net>
20589         PR ada/23788
20590         * s-tpinop.ads: Make this unit Preelaborate.
20592 2005-09-16  Andreas Jaeger  <aj@suse.de>
20594         * socket.c: Add string.h for memcpy.
20596 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
20598         * dec-io.ads, dec-io.adb: Removed, no longer used.
20600 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
20602         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
20604         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
20605         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
20606         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
20607         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
20608         dependent units are Preelaborate.
20609         (Initialize): Call Interrupt_Managemeent.Initialize and
20610         OS_Primitives.Initialize to ensure proper initialization of this unit.
20611         Remove use of System.Soft_Links
20612         Make this unit Preelaborate.
20614         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
20615         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
20616         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
20617         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
20618         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
20619         s-tratas.ads, s-tasinf.ads: Minor reformatting.
20620         Add pragma Preelaborate, since these packages are suitable for this
20621         categorization.
20622         Update comments.
20624         * s-traent-vms.ads, s-intman-dummy.adb,
20625         s-taprop-dummy.adb: Make this unit Preelaborate.
20627         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
20628         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
20629         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
20630         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
20631         s-intman-solaris.adb, s-intman-irix-athread.adb,
20632         s-intman-irix.adb: Mark this unit Preelaborate.
20633         (Initialize): New procedure.
20634         Update comments.
20636         * s-taspri-linux.ads: Removed.
20638         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
20639         as done by other implementations (e.g. posix).
20641         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
20642         responsible for deferring abort.
20643         Mark this unit Preelaborate.
20645         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
20646         proper initialization of the tasking run-time.
20648         * s-tasdeb.ads: Mark this unit Preelaborate.
20649         (Known_Tasks): Add explicit default value to avoid elaboration code.
20651         * s-inmaop-vms.adb (Elaboration code): Add call to
20652         Interrupt_Management.Initialize since the elaboration code depends on
20653         proper initialization of this package.
20655         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
20656         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
20657         s-osprim-posix.adb: Make this unit Preelaborate.
20659         * a-calend.adb: Add call to OS_Primitives.Initialize
20661         * a-elchha.adb: Update use of Except.Id.Full_Name.
20662         Minor reformatting.
20663         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
20665         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
20666         Move with clauses outside Warnings Off now that dependent units are
20667         Preelaborate.
20668         Use raise xxx with "..."; Ada 2005 form.
20670         * a-taside.ads, a-taside.adb:
20671         Remove some dependencies, to make it easier to make this unit truly
20672         Preelaborate.
20673         Rewrite some code to be conformant with Preelaborate rules.
20675         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
20676         marked Preelaborate in the future.
20678         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
20679         these units Preelaborate.
20681         * s-exctab.adb: Update use of Except.Id.Full_Name.
20683         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
20684         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
20685         Set_Exc_Stack_Addr): Removed, no longer used.
20686         Remove reference to *Machine_State_Addr*, no longer needed.
20688         * s-stalib.ads: Mark this unit as Preelaborate[_05].
20689         (Exception_Data): Full_Name is now a System.Address so that this unit
20690         can be made Preelaborate.
20691         Clean up/simplify code thanks to Full_Name being a System.Address.
20692         Remove obsolete pragma Suppress (All_Checks), no longer needed.
20694         * s-taskin.ads, s-taskin.adb:
20695         Move with clauses outside Warnings Off now that dependent units are
20696         Preelaborate.
20697         Make this unit Preelaborate.
20698         (Initialize): New proceduure, replace elaboration code and makes the
20699         set up of the tasking run-time cleaner.
20700         (Detect_Blocking): Now a function instead of a deferred boolean, to
20701         obey Preelaborate rules.
20703         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
20704         soft links, no longer used.
20706         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
20707         packages are suitable for this categorization.
20709         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
20710         since we compile run-time sources in Ada 2005 mode.
20711         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
20712         avoid having s-taprop*.adb depend on s-soflin and to avoid code
20713         duplication.
20714         Remove reference to *Machine_State_Addr*, no longer needed.
20716 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
20718         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
20719         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20720         Remove reference to System.Exceptions.
20722         * s-mastop-x86.adb: Removed, no longer used.
20724         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
20726         * a-excach.adb: Minor reformatting.
20728         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
20729         instead fix new warnings that were hidden by this change.
20730         (AAA, ZZZ): Removed, replaced by...
20731         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
20732         are used instead of constants, to help make Ada.Exception truly
20733         preelaborate.
20734         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
20735         Raise_Storage_Error): File is now a System.Address, to simplify code.
20736         (Elab code): Removed, no longer used.
20737         (Null_Occurrence): Remove Warnings Off and make this construct
20738         preelaborate.
20739         Remove code related to front-end zero cost exception handling, since
20740         it is no longer used.
20741         Remove -gnatL/-gnatZ switches.
20743         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
20744         Update use of Except.Msg.
20746         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
20747         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
20748         to front-end zero cost exception handling, since it is no longer used.
20749         Remove -gnatL/-gnatZ switches.
20751         * lib-writ.ads: Minor reformatting
20752         Remove doc of UX
20754         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
20756         * Make-lang.in: Remove references to s-except.ads
20758         * s-except.ads: Removed, no longer used.
20760         * s-mastop.ads, s-mastop.adb:
20761         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20762         Remove reference to System.Exceptions.
20764         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
20765         switch-b.adb: Remove code related to front-end zero cost exception
20766         handling, since it is no longer used.
20767         Remove -gnatL/-gnatZ switches.
20769 2005-09-01  Robert Dewar  <dewar@adacore.com>
20770             Gary Dismukes  <dismukes@adacore.com>
20771             Javier Miranda  <miranda@adacore.com>
20773         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
20774         type by valid test and generate warning.
20775         (Tagged_Membership): Generate call to the run-time
20776         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
20777         Change formal name Subtype_Mark to Result_Definition in several calls to
20778         Make_Function_Specification.
20779         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
20780         check for proper accessibility of the operand of a class-wide allocator.
20781         The check can be left out if checks are suppressed or if the expression
20782         has a specific tagged type whose level is known to be safe.
20784         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
20785         generates the run-time check associated with null-excluding entities.
20786         (Expand_N_Return_Statement): Add tests to determine if the accessibility
20787         check on the level of the return expression of a class-wide function
20788         can be elided. The check usually isn't needed if the expression has a
20789         specific type (unless it's a conversion or a formal parameter). Also
20790         add a test for whether accessibility checks are suppressed. Augment
20791         the comments to describe the conditions for performing the check.
20793 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
20794             Javier Miranda  <miranda@adacore.com>
20795             Gary Dismukes  <dismukes@adacore.com>
20796             Ed Schonberg  <schonberg@adacore.com>
20798         * a-tags.adb (IW_Membership): Give support to
20799         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
20800         subprogram has been extended to look for the tag in the ancestors tag
20801         table.
20802         Update the structure of the GNAT Dispatch Table to reflect the
20803         additional two tables used in dispatching selects.
20804         Introduce appropriate array types and record components in
20805         Type_Specific_Data to reflect the two tables.
20806         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
20807         the TSD of a tag, indexed by position.
20808         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
20809         operation kind in the TSD of a tag, indexed by position.
20811         * a-tags.ads: Introduce an enumeration type to capture different
20812         primitive operation kinds. Define a constant reflecting the number of
20813         predefined primitive operations.
20814         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
20815         of an entry wrapper.
20816         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
20817         callable entity of a primitive operation.
20819         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
20820         primitive operations used in dispatching selects for limited
20821         interfaces, limited tagged, task and protected types what implement a
20822         limited interface.
20823         (Freeze_Type): Generate the bodies of the primitive operations used in
20824         dispatching selects for limited tagged, task and protected types that
20825         implement a limited interface. Generate statements to populate the two
20826         auxiliary tables used for dispatching in select statements.
20827         (Freeze_Record_Type): Add call to initialize the dispatch table entries
20828         associated with predefined interface primitive operations.
20829         (Build_Dcheck_Function): Change Set_Subtype_Mark to
20830         Set_Result_Definition.
20831         (Build_Variant_Record_Equality): Change Subtype_Mark to
20832         Result_Definition.
20833         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
20834         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
20835         (Build_Assignment): Simplify the code that adds the run-time-check.
20836         (Expand_N_Object_Declaration): Code cleanup.
20838         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
20839         entries when there is a protected type that implements a limited
20840         interface.
20842         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
20843         common routines used in expansion of dispatching selects.
20844         (Add_Private_Declarations): Select the appropriate protection type when
20845         there is a protected type that implements a limited interface.
20846         (Build_Parameter_Block): Generate a wrapped parameter block.
20847         (Build_Protected_Subprogram_Body): Select the appropriate type for
20848         locking entries when there is a protected type that implements a
20849         limited interface.
20850         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
20851         classified as entry wrappers.
20852         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
20853         asynchronous selects.
20854         (Expand_N_Conditional_Entry_Call): Add support for expansion of
20855         dispatching conditional selects.
20856         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
20857         protection when there is a protected type that implements limited
20858         interfaces.
20859         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
20860         timed selects.
20861         (Extract_Dispatching_Call): Extract the entity of the name of a
20862         dispatching call, the object parameter, actual parameters and
20863         corresponding formals.
20864         (Make_Initialize_Protection): Correct logic of protection initialization
20865         when there is a protected type that implements a limited interface.
20866         (Parameter_Block_Pack): Populate a wrapped parameter block with the
20867         values of actual parameters.
20868         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
20869         block and assign them to the original actual parameters.
20871         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
20872         (Build_Protected_Sub_Specification): Change the type and name of the
20873         last formal to account for the increased variety of protection modes.
20875         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
20876         entities. Used to save the value of the Is_Hidden attribute when the
20877         limited-view is installed.
20878         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
20879         the attribute of procedures classified as entry wrappers.
20880         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
20881         entity of a primitive wrapper.
20882         (Write_Entity_Flags): Output the name and value of the
20883         Is_Primitive_Wrapper attribute.
20884         (Write_Field27_Name): Output the name and entity of the field Wrapped_
20885         Entity.
20886         (Underlying_Type): If we have an incomplete entity that comes from
20887         the limited view then we return the Underlying_Type of its non-limited
20888         view if it is already available.
20889         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
20890         including operators.
20891         (Write_Field26_Name): Add entry for Overridden_Operation
20892         (Overridden_Operation): New attribute of functions and procedures.
20894         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
20895         predefined position in the dispatch table for the primitive operations
20896         used in dispatching selects.
20897         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
20898         predefined primitive operations and replace it with
20899         Default_Prim_Op_Count.
20900         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
20901         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
20902         the names of the generated primitive operations used in dispatching
20903         selects.
20904         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
20905         case of abstract interface types. They will be inherit by the objects
20906         implementing the interface.
20907         (Make_DT): There is no need to inherit the dispatch table of the
20908         ancestor interface for the elaboration of abstract interface types.
20909         The dispatch table will be inherited by the object implementing the
20910         interface.
20911         (Copy_Secondary_DTs): Add documentation.
20912         (Validate_Position): Improve this static check in case of
20913         aliased subprograms because aliased subprograms must have
20914         the same position.
20915         (Init_Predefined_Interface_Primitives): New subprogram that initializes
20916         the entries associated with predefined primitives of all the secondary
20917         dispatch tables.
20918         (Build_Anonymous_Access_Type): Removed.
20919         (Expand_Interface_Actuals): With the previous cleanup there is no need
20920         to build an anonymous access type. This allows further cleanup in the
20921         code generated by the expander.
20922         (Expand_Interface_Conversion): If the actual is an access type then
20923         build an internal function to handle the displacement. If the actual
20924         is null this function returns null because no displacement is
20925         required; otherwise performs a type conversion that will be
20926         expanded in the code that returns the value of the displaced actual.
20927         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
20928         conversions that have no effect in the generated code because no
20929         displacement is required. Code cleanup; use local variables to
20930         avoid repeated calls to the subprogram directly_designated_type().
20932         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
20933         Classify the primitive operations used in dispatching selects as
20934         predefined.
20935         (Implements_Limited_Interface): Determine whether some type either
20936         directly implements a limited interface or extends a type that
20937         implements a limited interface.
20938         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
20939         (Expand_Subtype_From_Expr): Do not build actual subtype if the
20940         expression is limited.
20941         (Find_Interface_Tag): Add code to handle class-wide types and
20942         entities from the limited-view.
20944         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
20945         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
20946         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
20947         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
20948         Set_Prim_Op_Kind.
20950         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
20951         of procedure name or prefix that appears as a trigger in a triggering
20952         alternative.
20954         * uintp.ads: Introduce constants Uint_11 and Uint_13.
20956 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
20958         * s-tataat.adb, a-tasatt.adb:
20959         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
20961         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
20962         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
20963         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
20964         longer used.
20966 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
20967             Jose Ruiz  <ruiz@adacore.com>
20969         * s-taprop-vxworks.adb:
20970         Move with clauses outside Warnings Off now that dependent units are
20971         Preelaborate.
20972         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
20973         initialization of this unit.
20974         (Specific): Add new procedures Initialize and Delete so that this
20975         package can be used for VxWorks 5.x and 6.x
20976         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
20977         differences between VxWorks 5.x and 6.x
20978         Minor reformatting.
20979         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
20980         caller.
20981         Use only Preelaborate-compatible constructs.
20983         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
20984         Primitives.Operations.
20985         (Delete, Initialize): New procedures.
20987         * s-osinte-vxworks.adb: Body used to handle differences between
20988         VxWorks 5.x and 6.x
20989         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
20991         * s-osinte-vxworks.ads: Minor reformatting.
20992         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
20993         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
20994         and 6.
20995         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
20996         between Vxworks 5 and 6.
20997         (taskLock, taskUnlock): Removeed, no longer used.
20999         * adaint.c: The wait.h header is not located in the sys directory on
21000         VxWorks when using RTPs.
21001         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
21002         using RTPs.
21003         (__gnat_dup): dup is available on Vxworks when using RTPs.
21004         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
21006         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
21008         * expect.c: The wait.h header is not located in the sys directory on
21009         VxWorks when using RTPs.
21011 2005-09-01  Thomas Quinot  <quinot@adacore.com>
21013         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
21015         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
21017         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
21018         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21019         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
21020         g-soccon-freebsd.ads: Add new constants:
21021          IP_MULTICAST_IF
21022          SO_RCVTIMEO/SO_SNDTIMEO
21023          IOV_MAX
21025         * gen-soccon.c:
21026         Move all target-specific file inclusions and macro definitions to
21027         gsocket.h, in order to ensure that any C code in socket.c will see a
21028         set of constants that is consistent with the contents of g-soccon.ads.
21030         * gsocket.h: Code imported from gen-soccon.c:
21031         Move all target-specific file inclusions and macro definitions to
21032         gsocket.h, in order to ensure that any C code in socket.c will see a set
21033         of constants that is consistent with the contents of g-soccon.ads.
21034         This change also makes gen-soccon self-contained (removing dependencies
21035         upon GCC internal headers).
21037         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
21038         iovecs at a time.
21039         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
21041         * socket.c: Minor reformatting.
21043 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21044             Thomas Quinot  <quinot@adacore.com>
21046         * fname-sf.adb, mlib-tgt.ads,
21047         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
21048         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
21049         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
21050         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
21051         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
21052         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
21053         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
21054         makegpr.adb: Remove redundant use_clauses.
21056 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
21058         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
21059         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
21060         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
21061         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
21062         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
21063         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
21064         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
21065         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
21066         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
21067         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
21068         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
21069         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
21070         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
21071         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
21072         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
21073         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
21074         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
21075         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
21076         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
21077         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
21078         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
21079         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
21080         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
21081         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
21082         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
21083         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
21084         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
21085         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
21086         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
21087         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
21088         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
21089         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
21090         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
21091         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
21092         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
21093         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
21094         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
21095         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
21096         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
21097         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
21098         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
21099         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
21100         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
21101         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
21102         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
21103         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
21104         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
21105         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
21106         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
21107         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
21108         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
21109         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
21110         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
21111         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
21112         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
21113         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
21114         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
21115         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
21116         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
21117         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
21118         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
21119         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
21120         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
21121         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
21122         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
21123         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
21124         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
21125         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
21126         and always use the no parameter form for consistency.
21128         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
21130 2005-09-01  Robert Dewar  <dewar@adacore.com>
21132         * binde.adb: Minor reformatting
21133         (Find_Elab_Order): Output warning if -p used with static elab order
21135 2005-09-01  Robert Dewar  <dewar@adacore.com>
21137         * checks.adb (Check_Needed): New procedure, deals with removing checks
21138         based on analysis of short-circuited forms. Also generates warnings for
21139         improper use of non-short-circuited forms.
21140         Code clean ups.
21142 2005-09-01  Robert Dewar  <dewar@adacore.com>
21144         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
21145         with 'Valid tests.
21147 2005-09-01  Robert Dewar  <dewar@adacore.com>
21149         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
21150         spec.
21151         Implement new insertion char < (conditional warning)
21152         * errutil.adb, erroutc.adb: Implement new insertion char <
21153         (conditional warning).
21154         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
21155         (Error_Msg_Warn): New variable for < insertion char.
21156         * prj-nmsc.adb: Implement new errout insertion char < (conditional
21157         warning).
21158         (Check_For_Source): Change value of Source_Id only after the current
21159         source has been dealt with.
21161 2005-09-01  Robert Dewar  <dewar@adacore.com>
21162             Doug Rupp  <rupp@adacore.com>
21164         * exp_attr.adb: Handle vax fpt for 'Valid attribute
21165         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
21166         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
21167         (Valid_D, Valid_F, Valid_G): New functions
21169 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21170             Hristian Kirtchev  <kirtchev@adacore.com>
21171             Javier Miranda  <miranda@adacore.com>
21173         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
21174         from object notation, the original node is unanalyzed and carries no
21175         semantic information, so that accessiblity checks must be performed on
21176         the type of the actual itself.
21177         (Expand_N_Subprogram_Declaration): Change last actual parameter for
21178         compatibility with Build_Protected_Sub_Specification.
21179         (Check_Overriding_Inherited_Interfaces): Add suport to handle
21180         overloaded primitives.
21181         (Register_Interface_DT_Entry): Use the new name of the formal
21182         the the calls to Expand_Interface_Thunk
21184         * exp_dbug.ads: Augment comments on encoding of protected types to
21185         include the generation of dispatching subprograms when the type
21186         implements at least one interface.
21188         * lib.ads: Extend information in Load_Stack to include whether a given
21189         load comes from a Limited_With_Clause.
21191         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
21192         whether a potential circularity is harmless, because it includes units
21193         loaded through a limited_with clause. Extends previous treatment which
21194         did not handle properly arbitrary combinations of limited and
21195         non-limited clauses.
21197 2005-09-01  Nicolas Setton  <setton@adacore.com>
21199         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
21200         to be encoded as typ___XBLU_lowerbound__upperbound instead of
21201         typ___XB_lowerbound__upperbound.
21203 2005-09-01  Thomas Quinot  <quinot@adacore.com>
21205         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
21206         dummy access formal for RACW/RAS TypeCode TSS.
21207         (Build_TypeCode_Call): Do not generate dummy null access actual for
21208         calls to the TypeCode TSS.
21210 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21212         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
21213         fully qualified name, to distinguish instances with the same local name.
21215         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
21216         fully qualified.
21218 2005-09-01  Robert Dewar  <dewar@adacore.com>
21220         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
21221         packed arrays.
21223 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
21225         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
21226         (Free): New deallocation procedure for filter elements
21227         (Close): Deallocate any existing filter for the concerned connection
21229 2005-09-01  Laurent Pautet  <pautet@adacore.com>
21231         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
21232         position set is provided, we compute one in order to reduce the maximum
21233         length of the keys.  This computation first selects a character
21234         position between 1 and the minimum length of the keys in order to
21235         avoid reducing one of the keys to an empty string.
21236         (Initialize, Compute): When the ratio V to K is too low, the algorithm
21237         does not converge. The initialization procedure now comes with a
21238         maximum number of iterations such that when exceeded, an exception is
21239         raised in Compute. The user can initialize this ratio to another value
21240         and try again
21241         Reformating and updated headers.
21243 2005-09-01  Javier Miranda  <miranda@adacore.com>
21245         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
21246         that given an entity T creates and returns an Itype that duplicates the
21247         contents of T. The returned Itype has the null-exclusion
21248         attribute set to True, and its Etype attribute references T
21249         to keep the association between the two entities.
21250         Update copyright notice
21252         * sem_aggr.adb (Check_Can_Never_Be_Null,
21253         Aggregate_Constraint_Checks, Resolve_Aggregate,
21254         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
21256         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
21258 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
21259             Robert Dewar  <dewar@adacore.com>
21260             Hristian Kirtchev  <kirtchev@adacore.com>
21262         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
21263         Result_Definition.
21265         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
21266         function specs.
21267         Call Set_Result_Definition instead of Set_Subtype_Mark.
21268         (P_Subprogram_Specification): Add parsing of anonymous access result
21269         plus null exclusions. Call Set_Result_Definition instead of
21270         Set_Subtype_Mark.
21272         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21273         (P_Access_Type_Definition): Add parsing for an anonymous access result
21274         subtype, plus parsing for null exclusions. Call Set_Result_Definition
21275         instead of Set_Subtype_Mark.
21277         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21278         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
21279         (Result_Definition): New function for N_Function_Specifications.
21280         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
21281         N_Function_Specification.
21282         (Set_Null_Exclusion_Present): Allow this flag for
21283         N_Function_Specification.
21284         (Set_Result_Definition): New procedure for N_Function_Specifications.
21285         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
21286         and N_Function_Specification.
21288         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
21289         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
21290         Add support for LIMITED NEW for Ada 2005 AI-419
21291         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
21292         syntax for anonymous access results.
21293         Replace Subtype_Mark field by Result_Definition in
21294         N_Function_Specification and N_Access_Definition specs.
21295         Add Null_Exclusion_Present to spec of N_Function_Specification.
21296         (Result_Definition): New function for N_Function_Specification and
21297         N_Access_Function_Definition.
21298         (Set_Result_Definition): New procedure for N_Function_Specification and
21299         N_Access_Function_Definition.
21301         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
21302         Result_Definition for cases of N_Access_Function_Definition and
21303         N_Function_Specification.
21304         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
21306 2005-09-01  Vincent Celier  <celier@adacore.com>
21308         * lib-writ.adb: Update Copyright notice
21309         (Write_With_Lines): On platforms where file names are case-insensitive,
21310         record the file names in lower case.
21311         (Write_ALI): For D lines, on platforms where file names are
21312         case-insensitive, record the file names in lower case.
21314 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21315             Emmanuel Briot  <briot@adacore.com>
21317         * lib-xref.adb (Output_Overridden_Op): Display information on
21318         overridden operation.
21320         * lib-xref.ads: Add documentation on overridden operations.
21322         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
21323         information.
21325         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
21326         overriding entity information.
21328 2005-09-01  Vincent Celier  <celier@adacore.com>
21330         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
21331         including those that are inherited.
21333 2005-09-01  Robert Dewar  <dewar@adacore.com>
21335         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
21337         * par-prag.adb: Implement new pragma Debug_Policy
21339         * sem_prag.adb Implement new pragma Debug_Policy
21340         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
21341         Component_Size attribute specification. Give warning for ignored pragma
21342         Pack.
21344         * snames.h, snames.ads, snames.adb: Introduce entries in
21345         Preset_Names for Name_Disp_Asynchronous_Select,
21346         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
21347         Name_Disp_Timed_Select.
21348         New pragma Debug_Policy
21350         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
21351         explicitly.
21352         Switch -gnata also sets Debug_Pragmas_Enabled
21354         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
21355         handle an explicit -gnata when compiling predefined files.
21357 2005-09-01  Vincent Celier  <celier@adacore.com>
21359         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
21360         directories of projects that have no Ada sources.
21362 2005-09-01  Robert Dewar  <dewar@adacore.com>
21364         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
21365         (makes a difference for wide characters)
21367         * widechar.adb, widechar.ads:
21368         Add Wide_Char_Byte_Count feature to count chars vs bytes
21370 2005-09-01  Thomas Quinot  <quinot@adacore.com>
21371             Ed Schonberg  <schonberg@adacore.com>
21372             Robert Dewar  <dewar@adacore.com>
21374         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
21375         'Address attribute reference with an overloaded prefix, use the
21376         location of the prefix (not the location of the attribute reference) as
21377         the error location.
21378         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
21379         a function renaming thereof, is a valid prefix for 'Size (where it is
21380         intepreted as a function call).
21381         (Statically_Denotes_Entity): New predicate to determine whether the
21382         prefix of an array attribute can be considered static.
21384         PR ada/9087
21385         (Eval_Attr): Fix failure to evaluate Component_Size for
21386         unconstrained arrays (resulted in wrong value in packed case, since
21387         back end cannot handle this case)
21389 2005-09-01  Robert Dewar  <dewar@adacore.com>
21391         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
21392         error msgs for most common cases.
21393         Use new errout insertion char < (conditional warning)
21395 2005-09-01  Javier Miranda  <miranda@adacore.com>
21396             Ed Schonberg  <schonberg@adacore.com>
21398         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
21399         become local to the whole package.
21400         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
21401         the package was already analyzed the new algorithm "replaces" the
21402         real entities by the shadow ones. This is required to ensure that
21403         the order of these entities in the homonym chains does not change;
21404         otherwise we can have undefined references at linking time because
21405         in case of conflicts the external name of the entities will have
21406         a suffix that depends on the order of the entities in the chain.
21407         (Remove_Limited_With_Clause): Complementary code that completes the
21408         new algorithm and replaces the shadow entities by the real ones.
21409         (Install_Limited_Withed_Unit): When unchaining entities before the
21410         installation of the shadow entities, only regular entities of the
21411         public part must be taken into account. This is required to
21412         keep this routine in synch with the work done by Remove_Limited_
21413         With_Clause
21414         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
21415         even if unit is analyzed, because the analysis of the unit is
21416         idempotent in any case, and the limited view of the unit may have to
21417         be installed for proper visibility.
21418         (Expand_Limited_With_Clause): Even if the unit in the implicit
21419         with_clause has been analyzed already, a limited view of the package
21420         must be built for the current context, if it does not exist yet.
21422 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21423             Javier Miranda  <miranda@adacore.com>
21424             Gary Dismukes  <dismukes@adacore.com>
21426         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
21427         defining entity for the instance body, make a new defining identifier
21428         rather than copying the entity of the spec, to prevent accidental
21429         sharing of the entity list.
21430         (Check_Private_View): When exchanging views of private types, build the
21431         list of exchanged views as a stack, to ensure that on exit the exchanges
21432         are undone in the proper order.
21433         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
21434         Restore the compilation environment in case of instantiation_error.
21435         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
21436         for an anonymous access result.
21437         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
21438         (Formal_Entity): Handle properly the case of a formal package that
21439         denotes a generic package renaming.
21441 2005-09-01  Thomas Quinot  <quinot@adacore.com>
21443         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
21444         clause if the array aggregate is surrounded by parentheses.
21446 2005-09-01  Cyrille Comar  <comar@adacore.com>
21447             Gary Dismukes  <dismukes@adacore.com>
21448             Ed Schonberg  <schonberg@adacore.com>
21449             Javier Miranda  <miranda@adacore.com>
21451         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
21452         underlying type
21453         to check if a type is Constrained in cases related to code generation
21454         (rather than semantic checking) since otherwise we do not generate
21455         similar code for mutable private types depending if their
21456         discriminants are visible or not.
21457         (Check_Abstract_Overriding): Do not complain about failure to override
21458         the primitive operations used in dispatching selects since they will
21459         always be overriden at the freeze point of the type.
21460         (Access_Definition): Separate out handling for resetting the scope
21461         of an anonymous access function result type. Retrieve the scope
21462         of the associated function rather than using Current_Scope, which
21463         does not have a consistent value (depends on whether we're in the
21464         middle of analyzing formal parameters). Add ??? comment about
21465         finding a cleaner way to handle the special cases of scope setting.
21466         (Process_Incomplete_Dependents): A protected operation is never a
21467         dispatching operation (only its wrapper may be).
21468         (Build_Derived_Record_Type): In case of tagged private types that
21469         implement interfaces add derivation of predefined primitive
21470         operations.
21471         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
21472         by two parameters that are used in case of derivation from abstract
21473         interface types: No_Predefined_Prims is used to avoid the derivation
21474         of predefined primitives from the interface, and Predefined
21475         Prims_Only is used to complete the derivation predefined primitives
21476         in case of private tagged types implementing interfaces.
21477         Fix typo in comments
21478         (Find_Interface_In_Descendant): Protect the frontend against
21479         wrong code with large circularity chains.
21480         (Is_Private_Overriding): Add support for entities overriding interface
21481         subprograms. The test failed because Entities associated with overriden
21482         interface subprograms are always marked as hidden (and used to build
21483         the secondary dispatch table); in this case the overriden entity is
21484         available through the field abstract_interface_alias (cf. override_
21485         dispatching_operation)
21486         (Access_Definition): Set the scope of the type to Current_Scope for the
21487         case of a function with an anonymous access result type.
21488         (Access_Subprogram_Declaration): Handle creation of the type entity for
21489         an access-to-function type with an anonymous access result.
21490         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
21491         in handling for N_Access_Function_Definition.
21492         (Analyze_Subtype_Declaration): Modify the text of error message.
21493         (Derived_Type_Declaration): Modify the text of error message.
21494         (Process_Subtype): Modify the text of error message plus cleanup
21495         of one redundant error message.
21496         (Analyze_Component_Declaration): Code cleanup.
21497         (Analyze_Object_Declaration): Code cleanup.
21498         (Analyze_Subtype_Declaration): Propagate the null-exclusion
21499         attribute in case of access types. Code cleanup.
21500         (Array_Type_Declaration): Code cleanup.
21501         (Process_Discriminants): Create the new null-excluding itype
21502         if required. Code cleanup.
21503         (Process_Subtype): Create the new null-excluding itype if
21504         required. Code cleanup.
21505         (Build_Derived_Record_Type): Code cleanup to avoid calling
21506         twice the subprogram derive_subprograms in case of private
21507         types that implement interfaces. In this particular case the
21508         subprogram Complete_Subprograms_Derivation already does the
21509         job associated with the second call.
21511         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
21512         conversion to the full view when generating an operation for a
21513         discriminant whose type may currently be private.
21515 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21516             Javier Miranda  <miranda@adacore.com>
21518         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
21519         V (Obj.F), the rewriting does not involve the indexed component, but
21520         only the selected component itself.
21521         Do not apply the transformation if the analyzed node is an actual of a
21522         call to another subprogram.
21523         (Complete_Object_Operation): Retain the entity of the
21524         dispatching operation in the selector of the rewritten node. The
21525         entity will be used in the expansion of dispatching selects.
21526         (Analyze_One_Call): Improve location of the error message associated
21527         with interface.
21528         (Analyze_Selected_Component): No need to resolve prefix when it is a
21529         function call, resolution is done when parent node is resolved, as
21530         usual.
21531         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
21532         when attempting to resolve a call transformed from its object notation.
21533         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
21534         of the argument list for each interpretation of the operation.
21535         (Try_Object_Operation): The designated type of an access parameter may
21536         be an incomplete type obtained through a limited_with clause, in which
21537         case the primitive operations of the type are retrieved from its full
21538         view.
21539         (Analyze_Call): If this is an indirect call, and the return type of the
21540         access_to_subprogram is incomplete, use its full view if available.
21542 2005-09-01  Javier Miranda  <miranda@adacore.com>
21543             Gary Dismukes  <dismukes@adacore.com>
21545         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
21546         access types the null-exclusion and access-to-constant attributes must
21547         also match.
21548         (Analyze_Return_Statement): When the result type is an anonymous access
21549         type, apply a conversion of the return expression to the access type
21550         to ensure that appropriate accessibility checks are performed.
21551         (Analyze_Return_Type): For the case of an anonymous access result type,
21552         generate the Itype and set Is_Local_Anonymous_Access on the type.
21553         Add ??? placeholder for check to disallow returning a limited object
21554         in Ada 2005 unless it's an aggregate or a result of a function call.
21555         Change calls from Subtype_Mark to Result_Definition.
21556         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
21557         Result_Definition in call to Make_Function_Specification.
21558         (Build_Body_To_Inline): Change Set_Subtype_Mark to
21559         Set_Result_Definition.
21560         (Make_Inequality_Operator): Change formal Subtype_Mark to
21561         Result_Definition in call to Make_Function_Specification.
21562         (Process_Formals): Create the new null-excluding itype if required.
21563         (New_Overloaded_Entity): For an entity overriding an interface primitive
21564         check if the entity also covers other abstract subprograms in the same
21565         scope. This is required to handle the general case, that is, overriding
21566         other interface primitives and overriding abstract subprograms inherited
21567         from some abstract ancestor type.
21568         (New_Overloaded_Entity): For an overriding entity that comes from
21569         source, note the operation that it overrides.
21570         (Check_Conformance, Type_Conformant): Addition of one new formal
21571         to skip controlling formals in the analysis. This is used to
21572         handle overloading of abstract interfaces.
21573         (Base_Types_Match): Add missing case for types imported from
21574         limited-with clauses
21575         (New_Overloaded_Entity): Add barrier to protect the use of
21576         the "alias" attribute.
21578 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21580         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
21581         verify that the procedure and the entry are mode conformant.
21582         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
21583         as a different operator, which is often a cut-and-paste error.
21585 2005-09-01  Javier Miranda  <miranda@adacore.com>
21586             Ed Schonberg  <schonberg@adacore.com>
21588         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
21589         used in controlling parameters exclude null because it is necessary to
21590         read the tag to dispatch, and null has no tag.
21591         (Override_Dispatching_Operation): If the previous operation is inherited
21592         from an interface, it becomes hidden  and does not participate in later
21593         name resolution.
21595 2005-09-01  Javier Miranda  <miranda@adacore.com>
21596             Ed Schonberg  <schonberg@adacore.com>
21597             Gary Dismukes  <dismukes@adacore.com>
21599         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
21600         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
21601         the expander will generate the corresponding run-time check to evaluate
21602         the expression.
21603         (Resolve_Call): Check for legal type of procedure name or prefix that
21604         appears as a trigger in a triggering alternative.
21605         (Valid_Conversion): If expression is ambiguous and the context involves
21606         an extension of System, remove System.Address interpretations.
21607         (Resolve_Qualified_Expression): Reject the case of a specific-type
21608         qualification applied to a class-wide argument. Enhance comment
21609         to explain checking of Original_Node.
21610         (Resolve_Type_Conversion): The location of the error message was not
21611         general enough to handle the general case and hence it has been removed.
21612         In addition, this patch improves the text of the message.
21613         (Resolve_Type_Conversion): Add missing support for access to interface
21614         types.
21615         (Resolve_Type_Conversion): If the target is a class-wide interface type,
21616         do not expand if the expression is the actual in a call, because proper
21617         expansion will take place when the call itself is expanded.
21618         (Resolve_Allocator): If the context is an unchecked conversion, the
21619         allocator inherits its storage pool, if any, from the target type of
21620         the conversion.
21622 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21623             Javier Miranda  <miranda@adacore.com>
21625         * sem_type.adb (Add_One_Interp): If a candidate operation is an
21626         inherited interface operation that has an implementation, use the
21627         implementation to avoid spurious ambiguities.
21628         (Interface_Present_In_Ancestor): In case of concurrent types we can't
21629         use the Corresponding_Record_Typ attribute to look for the interface
21630         because it is set by the expander (and hence it is not always
21631         available). For this reason we traverse the list of interfaces
21632         (available in the parent of the concurrent type).
21633         (Interface_Present_In_Ancestor): Handle entities from the limited view
21635 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21637         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
21638         from the list of required components.
21639         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
21640         primitive procedure of a limited interface with a controlling first
21641         parameter.
21642         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
21643         of an entry.
21644         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
21645         capture if it is generated in the second operand of a short-circuit
21646         operation.
21647         Do not capture values for variables with address clauses.
21648         (Is_Object_Reference): Treat a function call as an object reference only
21649         if its type is not Standard_Void_Type.
21651 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21653         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
21654         to a variable that is statically known to be constant.
21656 2005-09-01  Geert Bosch  <bosch@adacore.com>
21657             Robert Dewar  <dewar@adacore.com>
21659         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
21660         (VAXGF_Safe_First): Idem.
21662 2005-09-01  Robert Dewar  <dewar@adacore.com>
21663             Arnaud Charlet  <charlet@adacore.com>
21665         * g-dirope.ads: Minor reformatting
21666         Document that bounds of result of Base_Name match the input index
21667         positions.
21668         Add documentation on environment variable syntax for Expand_Path
21670         * gnat_ugn.texi: Update documentation to include mention of -m switches
21671         Document new treatment of wide characters in max line length
21672         style check.
21673         Remove -gnatL/-gnatZ switches, no longer used.
21674         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
21675         of -gnata switch.
21677         * gnat_rm.texi: Add doc for two argument form of pragma
21678         Float_Representation.
21679         Add documentation for pragma No_Strict_Aliasing
21680         Add note that explicit component clause overrides pragma Pack.
21681         Add documentation of pragma Debug_Policy
21683 2005-09-01  Matthew Heaney  <heaney@adacore.com>
21685         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
21686         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
21687         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
21688         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
21689         draft (Draft 13, August 2005) of Ada Amendment 1.
21691 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
21693         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
21694         Note that the platform-specific version of g-soccon.ads for VMS is now
21695         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
21696         really is a package spec).
21697         Replace s-taspri-linux.ads by s-taspri-posix.ads
21698         Remove references to s-mastop-x86.adb
21700         * system-vxworks-xscale.ads: Removed, no longer used.
21701         * s-vxwork-xscale.ads: Removed, no longer used.
21703 2005-09-01  Robert Dewar  <dewar@adacore.com>
21705         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
21706         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
21707         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
21708         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
21709         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
21710         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
21711         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
21712         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
21713         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
21714         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
21715         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
21716         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
21717         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
21718         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
21719         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
21720         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
21721         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
21722         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
21723         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
21724         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
21725         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
21727 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
21729         PR ada/23187
21730         * adaint.c
21731         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
21733 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
21734             Doug Rupp  <rupp@adacore.com>
21736         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
21737         when needed.
21738         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
21739         this code in the GNAT run-time.
21741         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
21743         PR ada/21053
21744         * init.c (__gnat_error_handler [many]): Mark "msg" as const
21745         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
21747         (__gnat_inside_elab_final_code): Moved here from
21748         Standard_Library and only defined for the compiler.
21749         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
21750         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
21751         using RTPs because directly vectored Interrupt routines are not
21752         supported on this configuration.
21753         (getpid): Do not redefine this function on VxWorks when using RTPs
21754         because this primitive is well supported by the RTP libraries.
21755         (copy_msg): Correct the code that checks for buffer overflow.
21756         Discovered during code reading.
21758 2005-08-29  Olivier Hainque  <hainque@adacore.com>
21760         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
21761         a library level mutable variable with an initializer, tell
21762         build_allocator to ignore the initializer's size. It may not be large
21763         enough for all the values that might be assigned to the variable later
21764         on.
21766 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
21767             Eric Botcazou  <ebotcazou@adacore.com>
21769         * trans.c: Protect < in error msg with quote
21770         Replace GCC_ZCX by Back_End_Exceptions.
21771         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
21772         has been sufficiently aligned in the record.
21774 2005-08-15  James E. Wilson  <wilson@specifix.com>
21776         * system-linux-alpha.ads: Change ia64 to alpha.
21778 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
21780         * decl.c, utils.c: Fix comment typos.
21782 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
21784         * decl.c, init.c, initialize.c: Fix comment typos.
21786 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
21788         Make CONSTRUCTOR use VEC to store initializers.
21789         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
21790         CONSTRUCTOR_ELTS.
21791         * trans.c (extract_values): Likewise.
21792         * utils.c (convert, remove_conversions): Likewise.
21793         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
21794         gnat_build_constructor): Likewise.
21796 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
21798         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
21799         DECL_SECTION_NAME.
21800         (compare_field_bitpos): Likewise.
21802 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
21804         * utils.c (create_var_decl): Only set DECL_COMMON on
21805         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
21806         VAR_OR_FUNCTION_DECL_P.
21808 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
21810         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
21811         removed.
21813 2005-07-07  Pascal Obry  <obry@adacore.com>
21815         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
21816         returned type on Windows.
21818         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
21819         routine.
21821         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
21822         exception in this case.
21823         Simplify the code as "Image (Image'Range)" = "Image".
21825 2005-07-07  Vincent Celier  <celier@adacore.com>
21827         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
21828         the destructor/constructor attributes for <lib>final/<lib>init.
21830         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
21832 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
21834         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
21835         type if the parameter is not passed by copy but reference by default.
21837 2005-07-07  Javier Miranda  <miranda@adacore.com>
21839         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
21840         Reimplementation of the support for abstract interface types in order
21841         to leave the code more clear and easy to maintain.
21843         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
21844         abstract interface types in order to leave the code clearer and easier
21845         to maintain.
21847         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
21848         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
21849         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
21850         appropriate entry of the secondary dispatch table.
21851         (Make_DT): Add code to inherit the secondary dispatch tables of
21852         the ancestors.
21854         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
21855         implementing both functionalities by means of a common routine, each
21856         routine has its own code.
21858 2005-07-07  Javier Miranda  <miranda@adacore.com>
21860         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
21862         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
21863         types:
21864         --
21865           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
21866         --
21868         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
21869         use of tag incomplete types.
21871         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
21872         give support to tagged incomplete types.
21874         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
21875         expression is a discriminant reference and its type is private, as can
21876         happen within a stream operation for a mutable record, use the full
21877         view of the type to resolve the case alternatives.
21878         (Analyze_Assignment): Check wrong dereference of incomplete types.
21880         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
21881         types.
21883         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
21884         incomplete types.
21886         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
21887         N_Incomplete_Type_Declaration nodes.
21889         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
21890         Tag_Present to give support to tagged incomplete types:
21891         --
21892           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
21893         --
21895 2005-07-07  Olivier Hainque  <hainque@adacore.com>
21897         PR ada/22301
21898         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
21899         definitions for the Unwind wrappers in the compiler case.
21901 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
21902             Javier Miranda  <miranda@adacore.com>
21904         * par-load.adb (Load): If a child unit is loaded through a limited_with
21905         clause, each parent must be loaded as a limited unit as well.
21907         * sem_ch10.adb (Previous_Withed_Unit): Better name for
21908         Check_Withed_Unit. Return true if there is a previous with_clause for
21909         this unit, whether limited or not.
21910         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
21911         the current unit.
21912         (Is_Visible_Through_Renamings): New local subprogram of install_limited
21913         _withed_unit that checks if some package installed through normal with
21914         clauses has a renaming declaration of package whose limited-view is
21915         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
21916         of the current Draft document for Ada 2005.
21917         (Analyze_Context): Complete the list of compilation units that
21918         are allowed to contain limited-with clauses. It also contains
21919         checks that were previously done by Install_Limited_Context_Clauses.
21920         This makes the code more clear and easy to maintain.
21921         (Expand_Limited_With_Clause) It is now a local subprogram of
21922         Install_Limited_Context_Clauses, and contains the code that adds
21923         the implicit limited-with clauses for parents of child units.
21924         This functionality was prevously done by Analyze_Context.
21926         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
21927         incomplete type.
21929         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
21930         been erroneously named in a limited-with clause of its own context.
21931         In this case the error has been previously notified by Analyze_Context.
21933 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
21935         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
21936         generic package that contains local declarations with the same name.
21937         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
21939 2005-07-07  Bernard Banner  <banner@adacore.com>
21941         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
21942         ia64 platform only on platforms that you the GCC unwind library
21943         rather than the system unwind library.
21945 2005-07-07  Thomas Quinot  <quinot@adacore.com>
21947         * expect.c: Minor reformatting
21949 2005-07-07  Sergey Rybin  <rybin@adacore.com>
21951         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
21952         --no-separate-is
21954         * gnat_ugn.texi: Add description for new gnatpp option
21955         (--no-separate-is)
21957 2005-07-04  Thomas Quinot  <quinot@adacore.com>
21959         * g-expect-vms.adb, g-expect.ads, g-expect.adb
21960         (Get_Command_Output): New subprogram to launch a process and get its
21961         standard output as a string.
21963 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
21964             Olivier Hainque  <hainque@adacore.com>
21966         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
21967         fetch a code-range descriptor associated with the machine state. On
21968         failure set the machine state's PC to 0; on success, pass the
21969         descriptor to exc_virtual_unwind.
21971         * init.c (Tru64 section): New function __gnat_set_code_loc.
21973 2005-07-04  Vincent Celier  <celier@adacore.com>
21975         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21976         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
21977         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
21978         Remove all auto-initialization code, as this is now done through the
21979         constructor mechanism.
21981         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
21982         __gnat_sals_init_using_constructors): New functions.
21984         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
21985         Linker_Constructor and Linker_Destructor when switch -a is used.
21987         * bindusg.adb: Add line for new switch -a
21989         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
21990         (Gnatbind): When switch -a is used, check if it is allowed
21992         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
21994 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
21996         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
21997         This prevents us from hitting a limitation during the debug info
21998         generation when using stabs.
21999         (Prims_Ptr): Likewise.
22001 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
22002             Ed Schonberg  <schonberg@adacore.com>
22003             Javier Miranda  <miranda@adacore.com>
22005         * checks.adb (Null_Exclusion_Static_Checks): In the case of
22006         N_Object_Declaration, only perform the checks if the Object_Definition
22007         is not an Access_Definition.
22009         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
22010         where the parent of an the access definition is an N_Object_Declaration
22011         when determining the Associated_Node_For_Itype and scope of an
22012         anonymous access-to-subprogram type.
22014         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
22015         Corresponding_Spec on the body created for a null procedure. Add ???
22016         comment. Remove New_Copy_Tree call on body argument to
22017         Set_Body_To_Inline.
22019         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
22020         discriminants, use the type of the actual as well, because the
22021         discriminants may be read by the called subprogram.
22023         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
22024         access type we do not need to handle non-limited views.
22025         (Build_Derived_Record_Type): Additional check to check that in case of
22026         private types, interfaces are only allowed in private extensions.
22028 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
22030         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
22031         <Pragma_Linker_Destructor>: Likewise.
22033         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
22034         Pragma_Linker_Destructor.
22036         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
22037         ATTR_LINK_DESTRUCTOR.
22038         (static_ctors, static_dtors): New variables.
22040         * misc.c (gnat_expand_body): Output current function as constructor
22041         and destructor if requested.
22043         * par-prag.adb: Add processing for pragma Linker_Constructor and
22044         Linker_Destructor.
22046         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
22047         extracted from Check_Interrupt_Or_Attach_Handler.
22048         (Check_Interrupt_Or_Attach_Handler): Invoke it.
22049         Implement pragma Linker_Constructor and Linker_Destructor with the
22050         help of Find_Unique_Parameterless_Procedure.
22051         Replace Name_Alias with Name_Target for pragma Linker_Alias.
22053         * snames.h, snames.ads, snames.adb:
22054         Add Name_Linker_Constructor and Name_Linker_Destructor.
22055         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
22056         * snames.adb: Remove Name_Alias.
22058         * trans.c: Include cgraph.h.
22059         (build_global_cdtor): New function.
22060         (Compilation_Unit_to_gnu): Build global constructor and destructor if
22061         needed.
22062         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
22063         of objects too.
22064         (addressable_p) <COMPONENT_REF>: Unconditionally test
22065         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
22067         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
22068         variable if it is external.
22070         (static_ctors, static_dtors): New global variables.
22071         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
22072         <ATTR_LINK_DESTRUCTOR>: Likewise.
22073         (end_subprog_body): Chain function as constructor and destructor
22074         if requested.
22076         * exp_util.adb (Force_Evaluation): Unconditionally invoke
22077         Remove_Side_Effects with Variable_Ref set to true.
22078         (Remove_Side_Effects): Handle scalar types first. Use a renaming
22079         for non-scalar types even if Variable_Ref is true and for class-wide
22080         expressions.
22082 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22084         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
22085         to prevent spurious warnings.
22087 2005-07-04  Thomas Quinot  <quinot@adacore.com>
22089         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
22090         Itypes. Itypes are really unexpected there.
22091         (Build_TypeCode_Function): Generalise special processing for Itypes to
22092         handle the case of numeric implicit base types as well as enumerated
22093         ones.
22095 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22097         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
22098         controlled, indicate the expected type of the dereference that is
22099         created for the call to Deep_Finalize, to prevent spurious errors when
22100         the designated type is private and completed with a derivation from
22101         another private type.
22103 2005-07-04  Vincent Celier  <celier@adacore.com>
22105         * make.adb (Change_To_Object_Directory): When unable to change the
22106         current dir to the object directory, output the full path of the
22107         directory.
22109 2005-07-04  Matthew Gingell  <gingell@adacore.com>
22111         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
22113         * indepsw-linux.adb: Replace by...
22115         * indepsw-gnu.adb: ...this new file
22117 2005-07-04  Vincent Celier  <celier@adacore.com>
22119         * mlib-prj.adb (Auto_Initialize): New constant String
22120         (SALs_Use_Constructors): New Boolean function
22121         (Build_Library): Call gnatbind with Auto_Initialize switch when
22122         SALs_Use_Constructors returns True.
22124         * mlib-tgt.ads: Minor reformatting
22126         * mlib-utl.ads: Minor reformatting
22128         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
22130 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22132         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
22133         single protected declarations can have an interface list.
22134         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
22135         with seriously malformed entry declarations, and lead to compilation
22136         abandoned messages.
22138 2005-07-04  Javier Miranda  <miranda@adacore.com>
22140         * par-load.adb: Load the context items in two rounds.
22142 2005-07-04  Robert Dewar  <dewar@adacore.com>
22144         * scng.adb: Do not consider Mod used as an attribute to be a keyword
22146 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22147             Javier Miranda  <miranda@adacore.com>
22149         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
22150         type extension needs a limited view.
22151         Remove previous restriction on private types available through the
22152         limited-view (only tagged private types were previously allowed).
22153         (Install_Withed_Unit): In the code that implements the
22154         legality rule given in AI-377, exclude a child unit with the name
22155         Standard, because it is a homonym of the Standard environment package.
22157 2005-07-04  Thomas Quinot  <quinot@adacore.com>
22159         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
22160         overloaded function call, carry interpretations from the original tree
22161         to the copy.
22163 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22165         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
22166         types check whether some designated type is a limited view, and use
22167         the non-limited view if available.
22169 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
22171         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
22172         constraint of full view of a private view T1 if present, when T2 is a
22173         discriminated full view.
22175 2005-07-04  Thomas Quinot  <quinot@adacore.com>
22177         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
22178         actual that is a view conversion of a bit packed array reference.
22180 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22182         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
22183         present before checking whether an interface type covers a synchronized
22184         type.
22186 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22188         * sem_util.adb (Is_Object_Reference): An indexed or selected component
22189         whose prefix is an implicit dereference is an object reference. Removes
22190         spurious errors when compiling with -gnatc.
22192 2005-07-04  Robert Dewar  <dewar@adacore.com>
22194         PR ada/22039
22195         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
22197 2005-07-04  Matthew Gingell  <gingell@adacore.com>
22199         * tracebak.c: Enable tracebacks on ia64 platforms
22201 2005-07-04  Vincent Celier  <celier@adacore.com>
22203         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
22204         the GNAT BIND command, as gnatbind accepts multiples ALI files with
22205         the -L or -n switches.
22207 2005-07-04  Vincent Celier  <celier@adacore.com>
22209         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
22210         correctly computed and the main project data is not modified while
22211         doing so.
22212         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
22213         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
22214         c++linker as this does not work on some platforms.
22216 2005-07-04  Matthew Heaney  <heaney@adacore.com>
22218         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
22219         was changed.
22220         * a-coinve.adb: Perform constraint checks explicitly.
22222 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22223             Thomas Quinot  <quinot@adacore.com>
22225         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
22226         new target gen-soccon.
22228 2005-07-04  Robert Dewar  <dewar@adacore.com>
22230         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
22232 2005-07-04  Thomas Quinot  <quinot@adacore.com>
22234         * g-socket.ads (Check_Selector): Minor rewording of comment.
22236 2005-07-04  Vincent Celier  <celier@adacore.com>
22238         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
22240 2005-07-04  Thomas Quinot  <quinot@adacore.com>
22242         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
22244 2005-07-04  Sergey Rybin  <rybin@adacore.com>
22246         * gnat_ugn.texi: Add description of --eol gnatpp option
22248 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
22249             Thomas Quinot  <quinot@adacore.com>
22251         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
22252         if the user wants all calls of a subprogram to be flagged,
22253         independently of whether they are made from within the same unit or
22254         another unit.
22255         Mention restriction for pragma Linker_Alias on some platforms.
22256         Document pragma Linker_Constructor and Linker_Destructor.
22257         Rewrite documentation of Weak_External, Linker_Section and
22258         Linker_Alias pragmas.
22260 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
22262         * s-stausa.ads, s-stausa.adb: New files.
22264 2005-06-30  Kelley Cook
22266         * all files:  Update FSF address in copyright headers.
22267         * gen-soccon.co (main): Output new FSF address in generated files.
22269 2005-06-28  Paul Brook  <paul@codesourcery.com>
22271         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
22273 2005-06-14  Olivier Hainque  <hainque@adacore.com>
22274             Eric Botcazou  <ebotcazou@adacore.com>
22276         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
22277         exc_unwind, now that we are generating proper .debug_frame output for
22278         that target.
22280         * tracebak.c: Remove the mips-irix section, as we are now using the
22281         s-mastop based unwinder again.
22282         Under SPARC/Solaris, take into account the stack bias to compute the
22283         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
22284         ABI.
22286 2005-06-14  Doug Rupp  <rupp@adacore.com>
22288         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
22290         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
22292 2005-06-14  Pascal Obry  <obry@adacore.com>
22294         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
22295         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
22296         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
22297         package name).
22299         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
22300         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
22301         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
22302         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22303         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
22304         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
22305         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
22306         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
22307         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
22308         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
22309         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
22310         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
22311         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
22312         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
22313         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
22314         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
22315         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
22316         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
22317         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
22318         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
22319         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
22320         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
22321         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
22322         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
22323         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
22324         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
22325         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
22326         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
22327         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
22328         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
22329         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
22330         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
22331         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
22332         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
22333         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
22334         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
22335         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
22336         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
22337         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
22338         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
22339         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
22340         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
22341         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
22342         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
22343         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
22344         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
22345         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
22346         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
22347         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
22348         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
22349         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22350         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
22351         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
22352         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
22353         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
22354         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22355         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
22356         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
22357         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
22358         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
22359         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
22360         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
22361         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
22362         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
22363         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
22364         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
22365         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
22366         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
22367         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
22368         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
22369         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
22370         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
22371         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
22372         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
22373         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
22374         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
22375         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
22376         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
22377         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
22378         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
22379         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
22380         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
22381         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
22382         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
22383         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
22384         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
22385         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
22386         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
22387         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
22388         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
22389         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
22390         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
22391         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
22392         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
22393         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
22394         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
22395         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
22396         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
22397         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
22398         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
22399         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
22400         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
22401         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
22402         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
22403         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
22404         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
22405         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
22406         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
22407         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
22408         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
22409         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
22410         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
22411         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
22412         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
22413         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
22414         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
22415         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
22416         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
22417         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
22418         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
22419         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
22420         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
22421         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
22422         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
22423         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
22424         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
22425         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
22426         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
22427         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
22428         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
22429         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
22430         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
22431         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
22433 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
22434             Arnaud Charlet  <charlet@adacore.com>
22436         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
22437         longer protected objects. They have been replaced by lower-level
22438         suspension objects made up by a mutex and a condition variable (or
22439         their equivalent given a particular OS) plus some internal data to
22440         reflect the state of the suspension object.
22441         (Initialize, Finalize): Add this initialization procedure for
22442         Suspension_Object, which is a controlled type.
22443         (Finalize): Add the finalization procedure for Suspension_Object,
22444         which is a controlled type.
22446         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
22447         Ada.Synchronous_Task_Control because there is no longer a need for a
22448         VxWorks specific version of this package. Target dependencies
22449         has been moved to System.Task_Primitives.Operations.
22451         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
22452         longer needed.
22453         (InitializeCriticalSection, EnterCriticalSection,
22454         LeaveCriticalSection, DeleteCriticalSection): Replace the type
22455         pCriticalSection by an anonymous access type so that we avoid problems
22456         of accessibility to local objects.
22458         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
22459         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
22460         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
22461         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
22462         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
22463         set the environment task mask here.
22464         (Current_State): Add this function that returns the state of the
22465         suspension object.
22466         (Set_False): Add this procedure that sets the state of the suspension
22467         object to False.
22468         (Set_True): Add this procedure that sets the state of the suspension
22469         object to True, releasing the task that was suspended, if any.
22470         (Suspend_Until_True): Add this procedure that blocks the calling task
22471         until the state of the object is True. Program_Error is raised if
22472         another task is already waiting on that suspension object.
22473         (Initialize): Add this procedure for initializing the suspension
22474         object. It initializes the mutex and the condition variable which are
22475         used for synchronization and queuing, and it sets the internal state
22476         to False.
22477         (Finalize): Add this procedure for finalizing the suspension object,
22478         destroying the mutex and the condition variable.
22480         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
22481         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
22482         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
22483         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
22484         which provides a low-level abstraction (using operating system
22485         primitives) for Ada.Synchronous_Task_Control.
22486         This object is made up by a mutex (for ensuring mutual exclusion), a
22487         condition variable (for queuing threads until the condition is
22488         signaled), a Boolean (State) indicating whether the object is open,
22489         and a Boolean (Waiting) reflecting whether there is a task already
22490         suspended on this object.
22492         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
22493         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
22494         s-intman-vms.ads, s-intman-mingw.adb,
22495         (Initialize_Interrupts): Removed, no longer used.
22497         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
22498         (Setup_Interrupt_Mask): New procedure.
22500         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
22502         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
22504         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
22505         this is no longer done in the body of s-taprop
22506         (Server_Task): Explicitely test for Pending_Action in case
22507         System.Parameters.No_Abort is True.
22509         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
22510         is no longer done in the body of s-taprop
22512 2005-06-14  Robert Dewar  <dewar@adacore.com>
22514         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
22515         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
22516         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22517         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
22518         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
22519         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
22520         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
22521         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
22522         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
22523         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
22524         system-linux-hppa.ads, system-vms_64.ads,
22525         system-vxworks-alpha.ads: Minor comment update for
22526         AI-362 (unit is Pure).
22528         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
22529         Add pragma Pure_05 for AI-362
22530         Make remaining conversion functions obsolescent in Ada 95
22532         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22533         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
22534         Add entries for a-wichun and a-zchuni
22535         Add a-widcha a-zchara for AI-395
22536         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
22538         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22539         Add entries for a-wichun.o and a-zchuni.o
22540         Entries for a-widcha.o and a-zchara.o
22541         Add entry for a-chacon.o
22543         * a-ztenau.adb: Add with of Ada.Characters.Conversions
22545         * a-chacon.ads, a-chacon.adb: New files.
22547         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
22548         categorization violations.
22550         * a-strmap.ads: Add pragma Pure_05 for AI-362
22551         * a-strmap.ads: Add note on implicit categorization for AI-362
22553         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
22555         * par-prag.adb: Dummy entry for pragma Persistent_BSS
22556         Set Ada_Version_Explicit, for implementation of AI-362
22557         Add processing for pragma Pure_05 and Preelaborate_05
22558         Add entry for Assertion_Policy pragma
22560         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
22561         when needed for proper processing of categorization stuff
22563         * sem_cat.adb:
22564         For several cases, make errors in preealborate units warnings,
22565         instead of errors, if GNAT_Mode is set. For AI-362.
22567         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
22568         preelaborate unit is now warning if in GNAT mode
22570         * s-stoele.ads: Document AI-362 for pragma preelaborate
22572 2005-06-14  Doug Rupp  <rupp@adacore.com>
22574         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
22575         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
22576         Default_Exception_Msg_Max_Length: new parameter.
22578         * a-except.ads: (Exception_Msg_Max_Length): Set to
22579         System.Parameters.Default_Exception_Msg_Max_Length
22580         Add pragma Preelaborate_05 for AI-362
22581         Add warnings off to allow categorization violations for AI-362
22583 2005-06-14  Vincent Celier  <celier@adacore.com>
22585         * gnatsym.adb: Adapt to modification of package Symbols: procedure
22586         Process is now in package Processing.
22588         * symbols.ads, symbols.adb:
22589         (Processing): New package, containing procedure Process
22591         * symbols-vms-alpha.adb:
22592         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
22594         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
22595         symbols-processing-vms-ia64.adb: New files.
22597 2005-06-14  Pascal Obry  <obry@adacore.com>
22599         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
22600         implementation. This new version generates the proper DllMain routine
22601         to initialize the SAL. The DllMain is generated in Ada and compiled
22602         before being added as option to the library build command.
22604 2005-06-14  Doug Rupp  <rupp@adacore.com>
22605             Pascal Obry  <obry@adacore.com>
22607         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
22608         call to decc$translate_vms.
22609         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
22610         need to remove those quotes before catenating the filename.
22611         (__gnat_locate_exec_on_path): improvements to the Win32 section:
22612         * avoid allocating the memory twice for better efficiency;
22613         * allocate 32K buffer for environment expansion as suggested by MSDN;
22614         * prepend ".;" to the path so that current directory is searched too.
22616 2005-06-14  Robert Dewar  <dewar@adacore.com>
22618         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
22619         instead of raising CE (AI-241)
22620         Add warnings off to allow categorization violations for AI-362
22622 2005-06-14  Robert Dewar  <dewar@adacore.com>
22624         * ali-util.adb, gnatbind.adb: Remove references to
22625         Force_RM_Elaboration_Order.
22627         * switch-b.adb: Remove recognition of -f switch
22629 2005-06-14  Pascal Obry  <obry@adacore.com>
22631         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
22632         implementation which is slightly more efficient.
22634 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
22635             Javier Miranda  <miranda@adacore.com>
22636             Ed Schonberg  <schonberg@adacore.com>
22637             Hristian Kirtchev  <kirtchev@adacore.com>
22639         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
22640         allocator's designated type is a class-wide type, and compiling for
22641         Ada 2005, emit a run-time check that the accessibility level of the
22642         type given in the allocator's expression is not deeper than the level
22643         of the allocator's access type.
22645         (Tagged_Membership): Modified to gives support to abstract interface
22646         types.
22648         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
22649         Access_Level.
22650         (Descendant_Tag): New predefined function
22651         (Is_Descendant_At_Same_Level): New predefined function
22652         (Get_Access_Level): New private function
22653         (Set_Access_Level): New private procedure
22654         (IW_Membership): New function. Given the tag of an object and the tag
22655         associated with an interface, evaluate if the object implements the
22656         interface.
22657         (Register_Interface_Tag): New procedure used to initialize the table of
22658         interfaces used by the IW_Membership function.
22659         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
22660         of the dispatch table.
22661         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
22662         table of interfaces of the parent.
22663         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
22664         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
22665         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
22666         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
22667         Ada 2005 semantics for the new predefined function.
22669         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
22670         call to Descendant_Tag rather than Internal_Tag.
22671         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
22672         the accessibility level of the attribute's Item parameter is not deeper
22673         than the level of the attribute's prefix type. Tag_Error is raised if
22674         the check fails. The check is only emitted for Ada_05.
22675         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
22676         requested stream attribute, use it.
22677         (Expand_N_Attribute_Reference): If the designated type is an interface
22678         then rewrite the referenced object as a conversion to force the
22679         displacement of the pointer to the secondary dispatch table.
22680         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
22681         is a dereference of an object with a constrained partial view.
22683         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
22684         type is a class-wide type, emit a run-time check that the accessibility
22685         level of the returned object is not deeper than the level of the
22686         function's master (only when compiling for Ada 2005).
22688         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
22689         Action_Nb_Arg): Add entries for new Get_Access_Level and
22690         Set_Access_Level routines in these tables.
22691         (Make_DT): Generate a call to set the accessibility level of the
22692         tagged type in its TSD.
22693         (Make_DT): Code cleanup. The functionality of generating all the
22694         secondary dispatch tables has been moved to freeze_record_type.
22695         (Make_Abstract_Interface_DT): Minor code cleanup.
22696         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
22697         this subprogram implements a new algorithm that provides the
22698         same functionality and it is more clear in case of primitives
22699         associated with abstract interfaces.
22700         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
22701         clean up, the functionality of this subprogram is now provided
22702         by Set_All_DT_Position.
22703         (Write_DT): New subprogram: a debugging procedure designed to be called
22704         within gdb to display the dispatch tables associated with a tagged
22705         type.
22706         (Collect_All_Interfaces): New subprogram that collects the whole list
22707         of interfaces that are directly or indirectly implemented by a tagged
22708         type.
22709         (Default_Prim_Op_Position): New subprogram that returns the fixed
22710         position in the dispatch table of the default primitive operations.
22711         (Expand_Interface_Actuals): New subprogram to generate code that
22712         displaces all the actuals corresponding to class-wide interfaces to
22713         reference the interface tag of the actual object.
22714         (Expand_Interface_Conversion): New subprogram. Reference the base of
22715         the object to give access to the interface tag associated with the
22716         secondary dispatch table.
22717         (Expand_Interface_Thunk): New subprogram that generates the code of the
22718         thunk. This is required for compatibility with the C+ ABI.
22719         (Make_Abstract_Interface_DT): New subprogram that generate the
22720         declarations for the secondary dispatch tables associated with an
22721         abstract interface.
22722         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
22723         attribute for each primitive operation covering interface subprograms
22724         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
22725         These subprograms were upgraded to give support to abstract interfaces
22727         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
22728         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
22729         RE_Set_Access_Level.
22730         (RE_Unit_Table): Add entries for new Ada.Tags operations.
22731         Add support to call the followig new run-time subprograms:
22732         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
22734         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
22735         match its full declaration when both have an access definition with
22736         statically matching designated subtypes.
22737         (Analyze_Component_Declaration): Delete commented out code that was
22738         incorrectly setting the scope of an anonymous access component's type.
22739         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
22740         an access discriminant when the containing type is nonlimited.
22741         (Make_Incomplete_Type_Declaration): Create an incomplete type
22742         declaration for a record type that includes self-referential access
22743         components.
22744         (Check_Anonymous_Access_Types): Before full analysis of a record type
22745         declaration, create anonymous access types for each self-referential
22746         access component.
22747         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
22748         an access component in this context is a Local_Anonymous_Access, for
22749         proper accessibility checks.
22750         (Access_Definition): Set properly the scope of the anonymous access type
22751         created for a stand-alone access object.
22752         (Find_Type_Of_Object): An object declaration may be given with an access
22753         definition.
22754         (Complete_Subprograms_Derivation): New subprogram used to complete
22755         type derivation of private tagged types implementing interfaces.
22756         In this case some interface primitives may have been overriden
22757         with the partial-view and, instead of re-calculating them, they
22758         are included in the list of primitive operations of the full-view.
22759         (Build_Derived_Record_Type): Modified to give support to private
22760         types implemening interfaces.
22761         (Access_Definition): Reject ALL on anonymous access types.
22762         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
22763         type derivation to occur at a deeper accessibility level than the
22764         parent type.
22765         For the case of derivation within a generic body however, disallow the
22766         derivation if the derived type has an ancestor that is a formal type
22767         declared in the formal part of an enclosing generic.
22768         (Analyze_Object_Declaration): For protected objects, remove the check
22769         that they cannot contain interrupt handlers if not declared at library
22770         level.
22771         (Add_Interface_Tag_Components): New subprogram to add the tag components
22772         corresponding to all the abstract interface types implemented by a
22773         record type or a derived record type.
22774         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22775         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22776         Process_Full_View, Record_Type_Declaration): Modified to give
22777         support to abstract interface types
22778         (Collect_Interfaces): New subprogram that collects the list of
22779         interfaces that are not already implemented by the ancestors
22780         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
22781         when partial view has no discriminants and full view has defaults.
22782         (Constrain_Access): Reject a constraint on a general access type
22783         if the discriminants of the designated type have defaults.
22784         (Access_Subprogram_Declaration): Associate the Itype node with the inner
22785         full-type declaration or subprogram spec. This is required to handle
22786         nested anonymous declarations.
22787         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22788         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22789         Process_Full_View, Record_Type_Declaration): Modified to give
22790         support to abstract interface types
22791         (Derive_Subprograms): Addition of a new formal to indicate if
22792         we are in the case of an abstact-interface derivation
22793         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
22794         to the specification because it is requied to analyze all the
22795         identifiers found in a list of interfaces
22797         * debug.adb: Complete documentation of flag "-gnatdZ"
22799         * exp_ch3.adb: Implement config version of persistent_bss pragma
22800         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
22801         testing for TSS presence to properly enforce visibility rules.
22802         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
22803         Make_Abstract_Interfaces_DT to generate the secondary tables
22804         associated with abstract interfaces.
22805         (Build_Init_Procedure): Modified to initialize all the tags
22806         corresponding.
22807         (Component_Needs_Simple_Initialization): Similar to other tags,
22808         interface tags do not need initialization.
22809         (Freeze_Record_Type): Modified to give support to abstract interface
22810         types.
22811         (Expand_N_Object_Declaration): Do not generate an initialization for
22812         a scalar temporary marked as internal.
22814         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
22815         in-out parameter that is a component in an initialization procedure,
22816         whose constraint might depend on discriminants, and that may be
22817         misaligned because of packing or representation clauses.
22818         (Is_Legal_Copy): New predicate to determine whether a possibly
22819         misaligned in-out actual can actually be passed by copy/return. This
22820         is an error in case the type is by_reference, and a warning if this is
22821         the consequence of a DEC import pragma on the subprogram.
22822         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
22823         interface types
22824         (Expand_Inlined_Call): Mark temporary generated for the return value as
22825         internal, so that no useless scalar normalization is generated for it.
22826         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
22827         null procedure can always be inlined.
22828         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
22829         procedure, generate an explicit empty body for it.
22831         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
22832         Given a type implementing an interface, returns the corresponding
22833         access_disp_table value.
22834         (Find_Interface_Tag): New subprogram. Given a type implementing an
22835         interface, returns the record component containing the tag of the
22836         interface.
22837         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
22838         previous ones that return the corresponding tag and access_disp_table
22839         entities.
22840         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
22841         is a predefined primitive operation.
22842         (Expand_Subtype_From_Expr): If the expression is a selected component
22843         within an initialization procedure, compute its actual subtype, because
22844         the component may depend on the discriminants of the enclosing record.
22846         * i-cpp.ads, i-cpp.adb:
22847         This package has been left available for compatibility with previous
22848         versions of the frontend. As part of the new layout this is now a
22849         dummy package that uses declarations available at a-tags.ads
22851         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
22852         "constant access" and "aliased [constant] access" when not compiling
22853         with -gnat05.
22854         Suppress Ada 2005 keyword warning if -gnatwY used
22855         (P_Identifier_Declarations): Add support for object declarations with
22856         access definitions.
22857         (Private_Extension_Declaration): Complete the documentation
22858         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
22859         attribute in case of private extension declaration
22860         (P_Type_Declaration): Mark as "abstract" the type declarations
22861         corresponding with protected, synchronized and task interfaces
22862         (P_Declarative_Items): "not" and "overriding" are overriding indicators
22863         for a subprogram or instance declaration.
22865         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
22866         instantiation that is a dispatching operation has controlling access
22867         parameters that are null excluding.
22868         Save and restore Ada_Version_Explicit, for implementation of AI-362
22869         (Validate_Derived_Type_Instance): Add check for abstract interface
22870         types.
22871         (Analyze_Formal_Package): Establish Instantiation source for the copy of
22872         the generic that is created to represent the formal package.
22873         (Analyze_Package_Instantiation): Instantiate body immediately if the
22874         package is a predefined unit that contains inlined subprograms, and
22875         we are compiling for a Configurable_Run_Time.
22876         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
22877         If the program has a null default, generate an empty body for it.
22879         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
22880         error message condition, null procedures are correctly detected now.
22881         (New_Overloaded_Entity): Bypass trivial overriding indicator check
22882         for subprograms in the context of protected types. Instead, the
22883         indicator is examined in Sem_Ch9 while analysing the subprogram
22884         declaration.
22885         (Check_Overriding_Indicator): Check consistency of overriding indicator
22886         on subprogram stubs as well.
22887         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
22888         the library level.
22889         (Analize_Subprogram_Specification): When analyzing a subprogram in which
22890         the type of the first formal is a concurrent type, replace this type
22891         by the corresponding record type.
22892         (Analyze_Subprogram_Body): Undo the previous work.
22893         (Analyze_Procedure_Call): If the call has the form Object.Op, the
22894         analysis of the prefix ends up analyzing the call itself, after which
22895         we are done.
22896         (Has_Interface_Formals): New subprogram subsidiary to analyze
22897         subprogram_specification that returns true if some non
22898         class-wide interface subprogram is found
22899         (New_Overloaded_Entity): Modified to give support to abstract
22900         interface types
22901         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
22902         access to subprograms must be recursive.
22903         (Is_Unchecked_Conversion): Improve the test that recognizes
22904         instantiations of Unchecked_Conversion, and allows them in bodies that
22905         are to be inlined by the front-end. When the body comes from an
22906         instantiation, a reference to Unchecked_Conversion will be an
22907         Expanded_Name, even though the body has not been analyzed yet.
22908         Replace Is_Overriding and Not_Overriding in subprogram_indication with
22909         Must_Override and Must_Not_Override, to better express intent of AI.
22910         (Analyze_Subprogram_Body): If an overriding indicator is given, check
22911         that it is consistent with the overrinding status of the subprogram
22912         at this point.
22913         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
22914         always inlined.
22915         If the subprogram is a null procedure, indicate that it does not need
22916         a completion.
22918         * sem_disp.adb (Check_Controlling_Type): Give support to entities
22919         available through limited-with clauses.
22920         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
22921         allowed as the last primitive of a tagged type if it has no previous
22922         spec.
22923         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
22924         to give support to abstract interface types
22926         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
22927         in the case where the target type is an anonymous access type of an
22928         object or component (that is, when Is_Local_Anonymous_Access is true).
22929         Prevent the special checks for conversions of access discriminants in
22930         the case where the discriminant belongs to a nonlimited type, since
22931         such discriminants have their accessibility level defined in the same
22932         way as a normal component of an anonymous access type.
22933         (Resolve_Allocator): When an allocator's designated type is a class-wide
22934         type, check that the accessibility level of type given in the
22935         allocator's expression or subtype indication is not statically deeper
22936         than the level of the allocator's access type.
22937         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
22938         name in a discriminant constraint of a record component.
22939         (Resolve_Explicit_Dereference): Do not check whether the type is
22940         incomplete when the dereference is a use of an access discriminant in
22941         an initialization procedure.
22942         (Resolve_Type_Conversion): Handle conversions to abstract interface
22943         types.
22944         (Valid_Tagged_Conversion): The conversion of a tagged type to an
22945         abstract interface type is always valid.
22946         (Valid_Conversion): Modified to give support to abstract interface types
22947         (Resolve_Actuals): Enable full error reporting on view conversions
22948         between unrelated by_reference array types.
22949         The rule for view conversions of arrays with aliased components is
22950         weakened in Ada 2005.
22951         Call to obsolescent subprogram is now considered to be a violation of
22952         pragma Restrictions (No_Obsolescent_Features).
22953         (Check_Direct_Boolean_Operator): If the boolean operation has been
22954         constant-folded, there is nothing to check.
22955         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
22956         check on possible violation of restriction No_Direct_Boolean_Operators
22957         until after expansion of operands, to prevent spurious errors when
22958         operation is constant-folded.
22960         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
22961         Has_Compatible_Type): Modified to give support to abstract interface
22962         types.
22963         (Interface_Present_In_Ancestor): New function to theck if some ancestor
22964         of a given type implements a given interface
22966         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
22967         prefix is a parameterless function that returns an access_to_procedure.
22968         (Transform_Object_Operation): Handle properly function calls of the
22969         form Obj.Op (X), which prior to analysis appear as indexed components.
22970         (Analyze_One_Call): Complete the error notification to help new Ada
22971         2005 users.
22972         (Analyze_Allocator): For an allocator without an initial value, where
22973         the designated type has a constrained partial view, a discriminant
22974         constraint is illegal.
22976 2005-06-14  Robert Dewar  <dewar@adacore.com>
22978         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
22979         do with treatment of Set_Col when positioned at end of line character.
22981 2005-06-14  Robert Dewar  <dewar@adacore.com>
22983         * atree.adb: (Elist*): Protect against uninitialized field
22985 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
22987         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
22988         for an attribute reference that returns an access type.
22989         (Apply_Discriminant_Check): No need for check if (designated) type has
22990         constrained partial view.
22992         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
22993         both bound checks, rather than a conjunction.
22994         (Insert_Valid_Check): If the expression is an actual that is an indexed
22995         component of a bit-packed array, force expansion of the packed element
22996         reference, because it is specifically inhibited elsewhere.
22998 2005-06-14  Vincent Celier  <celier@adacore.com>
23000         * clean.adb (Clean_Project): Correctly delete executable specified as
23001         absolute path names.
23003         * make.adb (Gnatmake): Allow relative executable path names with
23004         directory information even when project files are used.
23005         (Change_To_Object_Directory): Fail gracefully when unable to change
23006         current working directory to object directory of a project.
23007         (Gnatmake): Remove exception handler that could no longer be exercized
23008         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
23009         may be deallocated by Normalize_Arguments.
23010         (Collect_Arguments): Eliminate empty arguments
23012         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
23013         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
23014         (Check_Project): Return False when Project is No_Project. Return True
23015         when All_Projects is True.
23016         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
23017         All_Projects to True.
23018         Minor reformatting
23020 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23021             Javier Miranda  <miranda@adacore.com>
23022             Thomas Quinot  <quinot@adacore.com>
23023             Robert Dewar  <dewar@adacore.com>
23024             Hristian Kirtchev  <kirtchev@adacore.com>
23025             Gary Dismukes  <dismukes@adacore.com>
23027         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
23028         anonymous access types, to indicate that the accessibility level of
23029         the type is determined by that of the enclosing declaration.
23030         (Has_Persistent_BSS): New flag
23031         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
23032         of this attribute with functions.
23033         (Is_Primitive_Wrapper): Remove the barrier.
23034         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
23035         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
23036         New subprograms.
23037         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
23038         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
23039         New subprograms.
23040         (Is_Pure_Unit_Access_Type): New flag
23041         (Abstract_Interfaces): Complete the assertion to cover all usages.
23042         (Set_Is_Interface): Complete the assertion to cover all usages.
23043         (Is_Primitive_Wrapper): New attribute.
23044         (Is_Obsolescent): Now applies to all entities (though it is only set
23045         for subprograms currently)
23046         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
23047         which solves various problems concerning access subtypes.
23048         (Has_Persistent_BSS): New flag
23049         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
23050         Remove these subprograms because this attribute is currently
23051         not used.
23052         New entity flags:
23053         Has_Specified_Stream_Input (Flag190)
23054         Has_Specified_Stream_Output (Flag191)
23055         Has_Specified_Stream_Read (Flag192)
23056         Has_Specified_Stream_Write (Flag193)
23057         Present in all type and subtype entities. Set for a given view if the
23058         corresponding stream-oriented attribute has been defined by an
23059         attribute definition clause. When such a clause occurs, a TSS is set
23060         on the underlying full view; the flags are used to track visibility of
23061         the attribute definition clause for partial or incomplete views.
23062         (Is_Pure_Unit_Access_Type): New flag
23063         Clarify use of Is_Internal.
23064         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
23065         internally generated to wrap the invocation of tasks and protected
23066         types that implement interfaces.
23067         (Implementation_Base_Type): Documentation correction
23068         (Is_Obsolescent): Now applies to all entities (though it is only set
23069         for subprograms currently)
23070         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
23071         which solves various problems concerning access subtypes.
23073         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
23074         for examined parameters. Identify unequal parameter list lengths as
23075         non-conformant parameters.
23076         (Overriding_Possible): Do not check for "All" qualifier in declaration
23077         of controlling access parameter, following prescription of AI-404.
23078         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
23079         that build the procedure body that wraps an entry invocation
23080         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
23081         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
23082         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
23083         give support to abstract interface types
23085         * freeze.adb (Freeze_Entity): Issue error message if
23086         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
23087         type has no storage pool (Ada 2005) AI-366.
23088         Also modified to give support to abstract interface types
23089         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
23090         Inline_Always pragma.
23092         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
23093         now begin an entry declaration.
23094         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
23095         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
23096         a subprogram declaration preceded by an overriding indicator.
23097         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
23098         declarations or subprogram declarations preceded by reserved words
23099         "not" or "overriding".
23100         (P_Entry_Declaration): Update comment. Parse and check overriding
23101         indicator, set semantic flags of entry declarations.
23102         (P_Task): New error message in case of private applied
23103         to a task type declaration.
23104         (P_Protected): New error message in case of private applied
23105         to a task type declaration.
23107         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
23108         in which the full view of a type implementing an interface is a
23109         concurrent type.
23110         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
23111         Declare_Inherited_Private_Subprograms): If an explicit operation
23112         overrides an operation that is inherited in the private part, mark the
23113         explicit one as overriding, to enable overriding indicator checks.
23114         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
23115         full view to partial view, to simplify handling in back-end.
23117         * sprint.adb: Print interface lists where needed: derived types,
23118         protected types, task types.
23119         output "is null" for null procedures. Part of implementation of
23121         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
23122         relaxation of rules for access types in pure, shared passive partitions.
23124         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
23125         first read discriminants into temporary objects, performing checks on
23126         the read values, then possibly performing discriminant checks on the
23127         actual (if it is constrained), and only finally reading the components
23128         into a constrained temporary object.
23129         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
23130         case of reading discriminants of a mutable record type to recognize
23131         the new form of the code generated by
23132         Build_Mutable_Record_Read_Procedure.
23134         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
23135         of a simple call to Make_TSS_Name.
23136         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
23137         buffer, in order for Is_TSS to work correctly on local TSS names.
23139         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
23140         Is_Local_Anonymous_Access to check legaliy of attributes in the
23141         context of  access components and stand-alone access objects.
23142         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
23143         treated as available for a limited private type if there is an
23144         attribute_definition_clause that applies to its full view, but not in
23145         other cases where the attribute is available for the full view
23146         (specifically, the sole fact that the full view is non-limited does not
23147         make the attribute available for the partial view).
23148         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
23149         non-overloaded intrinsic subprogram.
23150         (Check_Stream_Attribute): Reject an attribute reference for an
23151         unavailable stream attribute even if the prefix is not a limited type
23152         (case of a 'Input attribute reference for an abstract, non-classwide
23153         type)
23154         (Stream_Attribute_Available): New function to determine whether a stream
23155         attribute is available at a place.
23156         (Check_Attribute): Use Stream_Attribute_Available instead of just
23157         testing for TSS presence on the implementation base type.
23158         (Analyze_Attribute): Modified to give support to task interfaces.
23159         (Analyze_Access_Attribute): Add error check for use of an Access (or
23160         Unrestricted_Access) attribute with a subprogram marked as
23161         Inline_Always.
23162         (Analyze_Attribute, case Attribute_Address): Add error check for use of
23163         an Address attribute with a subprogram marked as Inline_Always.
23164         Update Eval_Attribute to handle new value of Width from AI-395
23166         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
23167         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
23168         Factor common code across the stream-oriented attribute circcuits into
23169         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
23170         processing is functionally identical to the previous duplicated one,
23171         except that an expression that denotes an abstract subprogram will now
23172         be rejected, as mandated by AI-195 item 5.
23174         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
23175         Is_Local_Anonymous_Access to apply accessibility checks to access
23176         components and stand-alone access objects.
23177         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
23178         elsewhere.
23179         (Is_Potentially_Persistent_Type): New function
23180         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
23181         a heap-object whose type has a constrained partial view, the object is
23182         unconstrained and the component may depend on a discriminant, making its
23183         renaming illegal.
23185         * sinfo.ads, sinfo.adb
23186         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
23187         (Must_Override): Flag applicable to N_Entry_Declaration.
23188         Indicate that interface_list can appear in single task and single
23189         protected declarations.
23190         Replace Is_Overriding and Not_Overriding with Must_Override and
23191         Must_Not_Override, to better express intent of AI.
23192         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
23193         of an overriding indicator in a subprogram or instance.
23194         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
23195         Add the overriding indicator [[not] overriding] construct to the
23196         following grammar productions:
23197          ENTRY_DECLARATION
23198          GENERIC_INSTANTIATION
23199          SUBPROGRAM_SPECIFICATION
23201         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
23202         can start with an overriding indicator.
23204         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
23205         flags accordingly on subrogram specifications or instances.
23207         * sem_ch8.adb:
23208         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
23209         overriding_indicator, if present, is consistent with status of spec.
23210         Improve error message for null-excluding checks on controlling access
23211         parameters.
23212         (Check_In_Previous_With_Clause): Protect the frontend against
23213         previously reported critical errors in the context clauses.
23214         Save and restore Ada_Version_Explicit, for implementation of AI-362
23215         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
23216         operation verify that controlling formals of the renamed entity that
23217         are access parameters are explicitly non-null.
23218         (Find_Expanded_Name): Improve error message when prefix is an illegal
23219         reference to a private child unit.
23221         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
23222         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
23223         Rewrite to correspond to new wide character names in AI-395
23225         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
23226         default procedures.
23228 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23229             Robert Dewar  <dewar@adacore.com>
23231         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
23232         code, not on the bodies of predefined operations, to cut down on
23233         spurious noise.
23235 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23237         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
23238         be expanded in place. The size computation does not require a
23239         subtraction, which would raise an exception on a compiler built with
23240         assertions when the upper bound is Integer'first.
23241         (Flatten): For an array of composite components, take into account the
23242         size of the components to determine whether it is safe to expand the
23243         array into a purely positional representation.
23245 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23247         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
23248         denoting a formal parameter into account.
23250 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23252         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
23253         the entry_call alternative of a conditional entry call, wrap the
23254         conditional entry call itself.
23256 2005-06-14  Nicolas Setton  <setton@adacore.com>
23257             Ed Schonberg  <schonberg@adacore.com>
23259         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
23260         the "simple_choice" member in a variant record, in accordance with the
23261         description in the package spec: the information output for a constant
23262         should be "S number", not "SS number".
23263         (Get_Encoded_Name): Return at once if not generating code. Avoids name
23264         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
23266 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23268         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
23269         RACW without any primitives, do not generate the if statement for
23270         dispatching by name in the PolyORB/DSA case, as it would be malformed
23271         (it would have an Elsif_Parts list that is not No_List, but with a
23272         length of 0).
23274 2005-06-14  Robert Dewar  <dewar@adacore.com>
23276         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
23278 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
23280         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
23281         can determine whether pragma Suppress_Exception_Locations is in effect.
23283         * utils2.c (build_call_raise): Do not pass the file name to the
23284         exception handler if pragma Suppress_Exception_Locations is in effect.
23285         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
23287 2005-06-14  Emmanuel Briot  <briot@adacore.com>
23289         * g-debpoo.adb (Deallocate, Dereference): Improve output.
23291 2005-06-14  Nicolas Roche  <roche@adacore.com>
23293         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
23294         to ""
23295         (Next_Level): Fix minor bug in handling of ../dir case
23296         (Read): Add dir separator to Directory name so that "" is understood as
23297          "/"
23299 2005-06-14  Pascal Obry  <obry@adacore.com>
23301         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
23302         releasing the items.
23304 2005-06-14  Vincent Celier  <celier@adacore.com>
23305             Cyrille Comar  <comar@adacore.com>
23307         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
23308         with output file descriptor and with output file name.
23309         (Dup, Dup2): Now global procedures as they are used by two subprograms
23310         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
23312 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23314         PR ada/6717
23315         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
23316         broadcast address.
23317         (Create_Selector): Bind listening socket used to create the signalling
23318         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
23319         Set listen backlog to 1 to ensure that we detect socket theft by a
23320         failure of our own connect(2) call.
23321         (Check_Selector): Improve documentation of the selector mechanism.
23322         (Broadcast_Inet_Addr): New constant.
23324 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
23326         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
23327         type which turns out to be an incomplete and incorrect fix.
23328         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
23329         of the type is declared in a record (for determination of insertion
23330         type).
23331         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
23332         a private type and ensure that the primary entity is used for the type
23333         of the newly created function's V formal by taking the Etype of the
23334         view.
23336 2005-06-14  Javier Miranda  <miranda@adacore.com>
23337             Jose Ruiz  <ruiz@adacore.com>
23338             Robert Dewar  <dewar@adacore.com>
23339             Ed Schonberg  <schonberg@adacore.com>
23341         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
23342         that indicates if we are parsing a compilation unit found in a
23343         limited-with clause.
23344         It is use to avoid the circularity check.
23346         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
23347         we are parsing a compilation unit found in a limited-with clause. This
23348         is use to avoid the circularity check.
23350         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
23351         unit as a consequence of parsing a limited-with clause. This is used
23352         to avoid the circularity check.
23354         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
23355         (Analyze_Context): Limited-with clauses are now allowed
23356         in more compilation units.
23357         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
23358         againts previously reported critical errors in context clauses
23359         (Install_Limited_Withed_Unit): Code cleanup plus static detection
23360         of two further errors: renamed subprograms and renamed packages
23361         are not allowed in limited with clauses.
23362         (Install_Siblings): Do not install private_with_clauses on the package
23363         declaration for a non-private child unit.
23364         (Re_Install_Parents): When a parent of the subunit is reinstalled,
23365         reset visibility of child units properly.
23366         (Install_Withed_Unit): When a child unit appears in a with_clause of its
23367         parent, it is immediately visible.
23369 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23370             Emmanuel Briot  <briot@adacore.com>
23372         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
23373         declared within an inlined body as referenced, to prevent spurious
23374         warnings.
23375         (Output_One_Ref): If an entity renames an array component, indicate in
23376         the ALI file that this aliases (renames) the array. Capture as well
23377         function renamings that rename predefined operations.
23378         Add information about generic parent for package and subprogram
23379         instances.
23380         (Get_Type_Reference): For a subtype that is the renaming of an actual in
23381         an instantiation, use the first_subtype to ensure that we don't generate
23382         cross-reference information for internal types.
23383         For objects and parameters of a generic private type, retain the '*'
23384         indicator to distinguish such an entity from its type.
23386         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
23387         to store information about instantiated entities.
23389         * ali.adb (Scan_ALI): Add support for parsing the reference to the
23390         generic parent
23392         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
23393         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
23394         information.
23396 2005-06-10  Doug Rupp  <rupp@adacore.com>
23397             Arnaud Charlet  <charlet@adacore.com>
23398             Olivier Hainque  <hainque@adacore.com>
23399             Jose Ruiz  <ruiz@adacore.com>
23401         * Make-lang.in: Add initialize.o when needed.
23402         Remove obsolete references to RT_FLAGS.
23403         Add missing dependencies for sdefault.o
23405         * initialize.c: New file.
23407         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
23408         [VMS] cond_signal_table: Fix problem in declaration.
23409         [VMS] __gnat_error_handler: rewrite.
23410         Move all __gnat_initialize() routines to initialize.c
23411         Specialize the former "hpux" section to "hppa hpux", as this is what the
23412         section really is here for and we now have other hpux ports that need
23413         different contents.
23414         (__gnat_adjust_context_for_raise) i386-linux: First version of this
23415         function for this target. Adjust PC by one in the machine context. This
23416         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
23417         it is more reliable to do that in the signal handler itself.
23418         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
23419         flags, so that the handler is passed the context structure to adjust
23420         prior to the raise.
23421         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
23422         SA_SIGINFO sigaction should look like. Call
23423         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
23424         Machine_State_Operations stuff.
23425         Add conditional code so that the x86_64 is also supported.
23427 2005-06-14  Pascal Obry  <obry@adacore.com>
23429         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
23430         the library name.
23432 2005-06-14  Robert Dewar  <dewar@adacore.com>
23434         * opt.ads, opt.adb: New flags for persistent_bss mode
23435         Add Ada_Version_Explicit, for implementation of AI-362
23436         Add Assertions_Enabled_Config and associated handling
23437         Needed since setting can be changed with Assertion_Policy pragma
23438         Add new flag Warn_On_Ada_2005_Compatibility
23440         * switch-c.adb: Recognize -gnatwy/Y
23441         Set Ada_Version_Explicit, for implementation of AI-362
23442         The -gnatg switch now includes -gnatyu
23444         * usage.adb: Add -gnatwy/Y
23445         Remove wrong asterisk on -gnatwX line
23446         Add line for -gnatyu switch
23448 2005-06-14  Vincent Celier  <celier@adacore.com>
23450         * osint.adb (Add_Default_Search_Dirs): Put source and object
23451         directories of project files before directories coming from
23452         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
23454 2005-06-14  Robert Dewar  <dewar@adacore.com>
23456         PR ada/15613
23457         * par-ch2.adb (Scan_Pragma_Argument): New procedure
23458         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
23460 2005-06-14  Vincent Celier  <celier@adacore.com>
23462         * prep.adb (Preprocess): Ignore error when scanning the first token of
23463         a line.
23465 2005-06-14  Vincent Celier  <celier@adacore.com>
23467         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
23468         (Check_Stand_Alone_Library): If the specified reference symbol file does
23469         not exist, only issue a warning when the symbol policy is not
23470         Controlled. And, when symbol policy is Compliant, set the symbol
23471         policy to Autonomous.
23473 2005-06-14  Vincent Celier  <celier@adacore.com>
23475         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
23476         when the project file in a with clause is not the last one, that is the
23477         project file name is followed by a comma.
23478         * prj-pp.adb: (First_With_In_List): New Boolean global variable
23479         (Print): Issue list of project files separated by commas in with clauses
23480         according to the values returned by Is_Not_Last_In_List.
23481         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
23482         (Set_Is_Not_Last_In_List): New procedure
23484 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
23486         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
23488 2005-06-14  Robert Dewar  <dewar@adacore.com>
23490         * scng.adb: Add call to new Check_EOF routine
23491         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
23492         Add some comments regarding wide character handling
23494         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
23496         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
23498         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
23499         characters are now considered graphic characters and hence yield false
23500         in this call.
23502         * nmake.adt: Modify header so that xnmake does not generate output
23503         files with multiple blank lines.
23505         * treeprs.adt: Remove a blank line so that output from xtreeprs does
23506         not have an extra blank line
23508 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
23510         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
23511         expression when the component type is an anonymous access type to
23512         ensure that appropriate accessibility checks are done.
23514         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
23515         expression of an assignment when the target object is of an anonymous
23516         access type. This ensures that required accessibility checks are done.
23517         (One_Bound): Move the check for type Universal_Integer to
23518         Process_Bounds.
23519         (Process_Bounds): Check whether the type of the preanalyzed range is
23520         Universal_Integer, and in that case set Typ to Integer_Type prior
23521         to setting the type of the original range and the calls to One_Bound.
23523 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23525         * sem_case.adb (Expand_Others_Choice): Improve warning.
23527 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23529         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
23530         constraint of full view if present, when other type is discriminated.
23531         (Eval_Relational_Op): Recognize tests of pointer values against Null,
23532         when the pointer is known to be non-null, and emit appropriate warning.
23534 2005-06-14  Robert Dewar  <dewar@adacore.com>
23535             Ed Schonberg  <schonberg@adacore.com>
23537         PR ada/10671
23538         * sem_prag.adb: Implement pragma Persistent_BSS
23539         Remove obsolete pragma Persistent_Data, Persistent_Object
23540         Set Ada_Version_Explicit, for implementation of AI-362
23541         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
23542         Add processing for pragma Pure_05 and Preelaborate_05
23543         Add processing for Assertion_Policy pragma
23544         Add pragma identifiers for Assert
23545         (Analyze_Pragma, case Assert): Check number of arguments
23546         (Process_Inline): Additional guard against an illegal program, where the
23547         argument of the pragma is undefined, and warnings on redundant
23548         constructs are enabled.
23549         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
23550         Ada_05 to this pragma, specifying that the pragma is only active in
23551         Ada_05 mode.
23552         (Check_Arg_Order): New procedure
23553         Add appropriate calls to this procedure throughout
23554         Also throughout, check entity name before doing any other checks
23556         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
23557         Remove obsolete pragma Persistent_Data, Persistent_Object
23558         Add entries for pragma Pure_05 and Preelaborate_05
23559         Add entries for Assertion_Policy pragma and associated names
23560         Add some names for pragma argument processing
23562         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
23564 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23566         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
23567         appears within a negation (either from source or as a rewriting of
23568         inequality) adjust text of warning accordingly.
23570 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23572         * s-strxdr.adb: Follow AI95-00132
23574 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
23576         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
23578 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
23579             Jose Ruiz  <ruiz@adacore.com>
23581         * s-tposen.adb, s-tpobop.adb
23582         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
23583         the exception id.
23584         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
23585         there is no violation of the Max_Entry_Queue_Length restriction (if it
23586         has been set); Program_Error is raised otherwise.
23587         (Requeue_Call): Before requeuing the task on the target entry queue we
23588         check that there is no violation of the Max_Entry_Queue_Length
23589         restriction (if it has been set); Program_Error is raised otherwise.
23591 2005-06-14  Robert Dewar  <dewar@adacore.com>
23593         * styleg.adb: Fix several remaining problems in -gnatyu switch
23594         Blank line count not reset at start
23595         Scanning outside source buffer in some cases
23596         Confusing message for blanks at end of file
23597         Non-empty blank lines not recognized
23599         * nmake.adt: Modify header so that xnmake does not generate output
23600         files with multiple blank lines.
23602         * treeprs.adt: Remove a blank line so that output from xtreeprs does
23603         not have an extra blank line
23605 2005-06-14  Sergey Rybin  <rybin@adacore.com>
23607         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
23609 2005-06-14  Doug Rupp  <rupp@adacore.com>
23610             Vincent Celier  <celier@adacore.com>
23612         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
23613         Update copyright.
23615         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23616         Remove "Library" command.
23617         Change keyword for style check -gnatyd from NOCRLF to
23618         DOS_LINE_ENDINGS.
23619         Remove useless second style check keyword NONE
23620         Remove help documentation for inexistent style check keyword
23621         RM_COLUMN_LAYOUT.
23622         Add help documentation for style check keywords DOS_LINE_ENDINGS,
23623         UNNECESSARY_BLANK_LINES and XTRA_PARENS
23624         Add UNNECESSARY_BLANK_LINES for -gnatyu
23625         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
23627         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23629 2005-06-14  Vincent Celier  <celier@adacore.com>
23631         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
23632         gprmake was invoked with -d.
23633         (Compile_Sources): If -d was used, output the "completed ..." message
23634         for each compilation.
23635         (Scan_Arg): Recognize new switch -d
23636         When -c and at least one main is specified, set
23637         Unique_Compile to True to guarantee that no other sources will be
23638         compiled.
23640 2005-06-14  Matthew Heaney  <heaney@adacore.com>
23642         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
23643         * a-swuwha.ads, a-swuwha.adb: New files
23645         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
23646         * a-szuzha.ads, a-szuzha.adb: New files.
23648         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
23649         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
23650         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
23651         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
23652         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
23653         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
23654         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
23655         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
23656         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
23657         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
23658         Ada 2005 RM.
23660 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
23661             Olivier Hainque  <hainque@adacore.com>
23662             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23663             Pascal Obry  <obry@adacore.com>
23665         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
23667         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
23668         making a temporary around a procedure call because of non-addressable
23669         actual parameter.
23670         (process_freeze_entity): If entity is a private type, capture size
23671         information that may have been computed for the full view.
23672         (tree_transform, case N_Allocator): If have initializing expression,
23673         check type for Has_Constrained_Partial_View and pass that to
23674         build_allocator.
23675         (tree_transform, case N_Return_Statement): Pass extra arg to
23676         build_allocator.
23678         * decl.c (annotate_value): Remove early return if -gnatR is not
23679         specified.
23680         (gnat_to_gnu_field): Don't make a packable type for a component clause
23681         if the position is byte aligned, the field is aliased, and the clause
23682         size isn't a multiple of the packable alignment. It serves no useful
23683         purpose packing-wise and would be rejected later on.
23684         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
23686         PR ada/20515
23687         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
23688         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
23689         instead.
23690         (create_concat_name): Idem.
23692 2005-06-10  Robert Dewar  <dewar@adacore.com>
23693             Eric Botcazou  <ebotcazou@adacore.com>
23694             Ben Brosgol  <brosgol@adacore.com>
23695             Cyrille Comar  <comar@adacore.com>
23696             Sergey Rybin  <rybin@adacore.com>
23697             Pascal Obry  <obry@adacore.com>
23699         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
23700         Document second argument (Ada_05) of pragma Obsolescent
23701         Add note that call to subprogram marked with pragma Obsolescent
23702         is now considered to be a violation of program Restrictions
23703         (No_Obsolescent_Features).
23704         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
23705         that only machine-dependent attributes are supported.
23707         * gnat_ugn.texi:
23708         Commented out menu lines and empty section for gnatclean examples
23709         Document -gnatwy/Y
23710         Fix some over long lines
23711         Clarify and enhance documentation of ADA_PROJECT_PATH.
23712         Rework section 2.11.2(3) about linking with a non-GNU compiler.
23713         Mention new switch -fcallgraph-info.
23714         Mention new switch -fstack-usage.
23715         For gnatpp, replace '-notab' with '-N' and add this option to Index
23716         Corrected VMS example.
23717         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
23718         Minor reformatting
23719         Add documentation for -gnatyu switch (unnecessary blank lines)
23720         Document new switch -U for GNAT PRETTY and GNAT METRIC
23721         Add note about Stdcall being handled as C convention on non Windows OS.
23722         Remove some junk typo in description of gnatbind -S switch
23723         Remove reference to Extensions_Allowed pragma
23724         Document the new order of the directories to be searched (source and
23725         object directories of project files before directories in ADA_*_PATH
23726         environment variables.
23728         * g-trasym.ads: Document that IRIX is supported
23730 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
23732         * Makefile.in: Add initialize.o when needed.
23733         Adapt to new VMS package body Symbols and subunits
23734         No specialized version of a-sytaco is needed for VxWorks.
23736         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
23737         * a-zchara.ads, a-widcha.ads: New files.
23739         * system-hpux-ia64.ads: New file.
23741         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
23742         is imported from the VxWorks kernel.
23744 2005-06-14  Robert Dewar  <dewar@adacore.com>
23746         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
23747         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
23748         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
23749         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
23750         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
23751         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
23752         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
23753         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
23754         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
23755         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
23756         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
23757         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
23759 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23761         * xeinfo.adb: Fix typo in comment
23763 2005-06-14  Javier Miranda  <miranda@adacore.com>
23765         * repinfo.ads: Fix typo in comment
23767 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
23769         * s-finimp.adb (Parent_Tag): Delete this imported function (function
23770         Parent_Tag is now in the visible part of Ada.Tags).
23771         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
23772         using imported function.
23774 2005-06-14  Bernard Banner  <banner@adacore.com>
23776         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
23777         also apply for handling support for VxSim 653.
23779 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
23781         * xsnames.adb: Add automatic generation of snames.h.
23783 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23785         * gen-soccon.c: Add IP_MULTICAST_IF constant
23786         Minor reformatting and adjustments to prevent warnings.
23788 2005-06-14  Pascal Obry  <obry@adacore.com>
23790         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
23792 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
23794         * trans.c (gnat_gimplify_expr): Call
23795         recompute_tree_invarant_for_addr_expr when we change
23796         the operand of the ADDR_EXPR.
23798 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23800         * misc.c: Don't include errors.h.
23802 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23804         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
23806 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
23808         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
23809         comment typos.
23810         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
23812 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
23814         PR ada/20270
23815         * Makefile.in: Make TGT_LIB behave correctly.
23817 2005-04-23  DJ Delorie  <dj@redhat.com>
23819         * misc.c: Adjust warning() callers.
23821 2005-04-16  Laurent Guerby  <laurent@guerby.net>
23823         PR ada/18847
23824         * a-nudira.adb (Value): Check for valid string.
23825         * a-nuflra.adb (Value): Likewise.
23827 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
23829         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
23831 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
23833         * adaint.c, init.c, tracebak.c: Fix comment typos.
23834         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
23836 2005-04-07  Laurent Guerby  <laurent@guerby.net>
23837             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23839         * Makefile.in: Add make ifeq define for hppa linux tasking support.
23840         * system-hpux.ads: Define Signed_Zeros to be True.
23841         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
23843 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
23845         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
23846         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
23847         typos.
23849 2005-03-30  Tom Tromey  <tromey@redhat.com>
23851         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
23853 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
23855         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
23857 2005-03-29  Robert Dewar  <dewar@adacore.com>
23859         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
23860         fixed-point expression has value that is not a multiple of the Small
23861         value.
23863         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
23865         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
23866         nanoseconds.
23868         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
23870 2005-03-29  Vincent Celier  <celier@adacore.com>
23872         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
23873         (Build_Dynamic_Library.Version_String): Return the empty string when
23874         Lib_Version is empty or when the symbol policy is not Autonomous.
23876         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
23877         a symbol is not in the reference symbol file, increase the Major ID
23878         and set the Minor ID to 0.
23879         Use gsmatch=lequal instead of gsmatch=equal
23881 2005-03-29  Doug Rupp  <rupp@adacore.com>
23883         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
23884         name and translate.
23886 2005-03-29  Javier Miranda  <miranda@adacore.com>
23888         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
23889         (Inherit_DT): The first formal has been redefined as a Tag.
23890         This allows us the removal of the subprogram Get_TSD.
23891         (TSD): Replace the call to Get_TSD by the actual code.
23893         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
23894         (Make_DT): Upgrade the call to Inherit_TSD according to the
23895         new interface: the first formal is now a Tag.
23897         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
23898         redefined as a Tag.
23899         This change allows us to remove the subprogram Get_TSD.
23900         (CPP_Get_TSD): Subprogram removed.
23901         (TSD): Replace the call to CPP_Get_TSD by the actual code.
23903         * rtsfind.ads: Remove support to call the run-time
23904         subprogram Get_TSD
23906 2005-03-29  Robert Dewar  <dewar@adacore.com>
23908         * errutil.adb, errout.adb:
23909         Minor comment updates on Line_Terminator references
23911         * par-ch10.adb: Add ??? comment about line terminator
23913         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
23914         (check dos line terminator).
23915         (Check_Line_Max_Length): New procedure, split off from the existing
23916         Check_Line_Terminator routine. Separating this out allows -gnatyf to
23917         be properly recognized.
23919         * styleg.adb: Add ??? comment for line terminator reference
23921         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
23922         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
23924         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
23925         (check dos line terminator).
23926         (Check_Line_Max_Length): New procedure, split off from the existing
23927         Check_Line_Terminator routine. Separating this out allows -gnatyf to
23928         be properly recognized.
23930         * stylesw.ads, stylesw.adb:
23931         Add handling for new -gnatyd switch (check dos line terminator)
23933         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
23934         Recognize -gnatwb/-gnatwB switches
23935         Include Warn_On_Bad_Fixed_Value for -gnatg
23937         * usage.adb:
23938         Add line for new -gnatyd switch (check dos line terminator)
23940         * usage.adb: Add lines for -gnatwb/-gnatwB
23942         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
23944         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
23946         * gnat_ugn.texi: Fix overlong lines
23947         Document new -gnatyd switch
23948         Document new -gnatwb/-gnatwB switches
23950 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
23952         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
23953         order to retrieve the component list of the type, before examining
23954         individual components.
23956         * sem_type.adb (Covers): Types are compatible if one is the base type
23957         of the other, even though their base types might differ when private
23958         views are involved.
23960 2005-03-29  Thomas Quinot  <quinot@adacore.com>
23962         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
23963         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
23964         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
23965         analyzed if expansion is disabled (which could otherwise cause spurious
23966         error messages if expansion has been disabled due to previous
23967         (unrelated) errors).
23969         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
23970         is disabled, the entity denoted by the argument is the access type
23971         itself, not an underlying record type, so there is no need to go back
23972         to the Corresponding_Remote_Type.
23974 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
23975             Robert Dewar  <dewar@adacore.com>
23977         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
23978         expand a call to an instance of
23979         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
23980         Constructor actual of the instance. A class-wide membership
23981         check is also generated, to ensure that the tag passed to the instance
23982         denotes a type in the class.
23983         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
23984         of Name_Generic_Dispatching_Constructor.
23986         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
23987         05 unit for AI-260-02).
23989         * a-tgdico.ads: New file.
23991         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
23992         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
23994         * snames.ads, snames.adb (Preset_Names): Add entry for
23995         Generic_Dispatching_Constructor.
23997         PR ada/20300
23998         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
23999         character type cases.
24000         (Analyze_Subprogram_Renaming): Add special handling for
24001         the case of renaming of stream attributes when the renaming denotes a
24002         generic formal subprogram association for an abstract formal subprogram.
24003         Check that the attribute is a primitive stream attribute (and not
24004         a class-wide stream attribute) and then rewrite the attribute name
24005         as the name of the appropriate compiler-generated stream primitive.
24007 2005-03-29  Robert Dewar  <dewar@adacore.com>
24009         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
24010         recursive calls.
24011         (Is_Possibly_Unaligned_Object): Correct typo that
24012         resulted in inaccurate result for unaligned scalars within records.
24014 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
24016         * freeze.adb (Freeze_Record_Type): If the type of the component is an
24017         itype whose parent is controlled and not yet frozen, do not create a
24018         freeze node for the itype if expansion is disabled.
24020 2005-03-29  Vincent Celier  <celier@adacore.com>
24022         * make.adb (Gnatmake): Don't fail if the main project file is declared
24023         as having no Ada sources. Do not display message "no sources to
24024         compile" in quiet output.
24026 2005-03-29  Doug Rupp  <rupp@adacore.com>
24028         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
24029         extra tools.
24031 2005-03-29  Robert Dewar  <dewar@adacore.com>
24033         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
24034         child.
24036 2005-03-29  Robert Dewar  <dewar@adacore.com>
24038         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
24039         missing TYPE Improve the error message generated when compiling a
24040         limited interface in Ada83 or Ada95 mode.
24042 2005-03-29  Robert Dewar  <dewar@adacore.com>
24044         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
24045         rather than proceed ahead using a junk attribute name.
24047 2005-03-29  Vincent Celier  <celier@adacore.com>
24049         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
24051         * prj-part.adb (Parse_Single_Project): Set the location of a project
24052         on its defining identifier, rather than on the reserved word "project".
24054         * prj-proc.adb (Expression): Adapt to the fact that default of external
24055         references may be string expressions, not always literal strings.
24056         (Recursive_Process): Set Display_Name equal to Name
24057         when Location is No_Location, that is when there is no actual file.
24058         Get the Display_Name of the project from the source, when it is not a
24059         virtual project.
24060         (Process): Use the Display_Name in error messages
24062         * prj-strt.adb (External_Reference): Allow default to be string
24063         expressions, not only literal strings.
24065 2005-03-29  Vincent Celier  <celier@adacore.com>
24067         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
24068         file and the reference symbol file to be the same file.
24070 2005-03-29  Thomas Quinot  <quinot@adacore.com>
24072         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
24073         forbid conversion of a local access-to-subprogram type to a remote one.
24075         * sem_util.adb (Wrong_Type): For a record type that is the expanded
24076         equivalent type for a remote access-to-subprogram type, go back to the
24077         original RAS entity when displaying an error message, so the casing is
24078         the original source casing.
24080 2005-03-29  Robert Dewar  <dewar@adacore.com>
24082         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
24083         on param update.
24085 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
24087         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
24088         subtype if code is being pre-analyzed, to prevent un-expanded
24089         references to protected formals, among others.
24090         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
24091         interpretation that can be a call, include the result of the call as a
24092         possible interpretation of the dereference.
24094         * sem_ch5.adb (Process_Bounds): Determine type of range by
24095         pre-analyzing a copy of the original range, and then analyze the range
24096         with the expected type.
24098         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
24099         with an overloaded prefix where not all interpretations yield an
24100         access to subprogram, do not rewrite node as a call.
24101         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
24102         the node as a call once the context identifies the interpretation of
24103         the prefix whose call yields the context type.
24104         (Valid_Conversion): For the case of a conversion between
24105         local access-to-subprogram types, check subtype conformance using
24106         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
24107         detailed error message.
24109 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
24111         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
24112         indicator, indicate that the formal can never be null.
24113         (Process_Formals): If a formal has a non_null indicator, insert the
24114         resulting subtype immediately before the enclosing subprogram decl,
24115         and not at the beginning of the corresponding declarative part, to
24116         prevent access before elaboration (Ada2005).
24118 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24120         PR ada/19956
24121         * utils.c (finish_record_type): Use variable_size when setting sizes.
24123 2005-03-29  Robert Dewar  <dewar@adacore.com>
24125         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
24126         guarantee Unix style line terminators for the output files, even when
24127         running on windows.
24129 2005-03-29  Robert Dewar  <dewar@adacore.com>
24131         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
24132         buffer if an exception is raised.
24134 2005-03-29  Ed Falis  <falis@adacore.com>
24136         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
24137         VxWorks 653 1.4
24139 2005-03-29  Robert Dewar  <dewar@adacore.com>
24141         * sem_util.ads: Minor reformatting
24142         * gnat_rm.texi: Minor editing.
24144 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
24146         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
24147         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
24149 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
24151         * adaint.c (__gnat_portable_spawn): Adjust cast.
24153 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
24155         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
24157 2005-03-17  Pascal Obry  <obry@adacore.com>
24159         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
24160         used.
24162         * expect.c (__gnat_waitpid): Moved here from adaint.c.
24163         Reimplement under Win32 using Win32 API.
24165         (__gnat_kill) [Win32]: Properly close the process handle before leaving
24166         this routine.
24168 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
24170         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
24171         (DECL_RENAMED_OBJECT): New accessor macro.
24172         (SET_DECL_RENAMED_OBJECT): New setter macro.
24174         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
24175         object in all cases.  Attach the renamed object to the VAR_DECL.
24176         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
24177         field is not prescribed.
24179         * misc.c (gnat_handle_option): Handle -gnatO separately.
24180         (gnat_print_decl) <VAR_DECL>: New case.
24181         Print the DECL_RENAMED_OBJECT node.
24183         * lang.opt:  Declare separate -gnatO option.
24185         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
24186         pointer, replace it with the renamed object.
24187         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
24188         pointer type if the source is not a fat pointer type whose underlying
24189         array has the same non-zero alias set as that of the destination array.
24191 2005-03-17  Javier Miranda  <miranda@adacore.com>
24193         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
24194         (Get_Inheritance_Depth): Removed.
24195         (Set_Inheritance_Depth): Removed.
24197         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
24198         subprogram Get_Expanded_Name because it is not referenced by the
24199         frontend.
24201         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
24202         (CPP_Get_Inheritance_Depth): Removed.
24203         (CPP_Set_Inheritance_Depth): Removed.
24205         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
24207 2005-03-17  Robert Dewar  <dewar@adacore.com>
24209         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
24210         3, since we now expect GCC 3 to do all the work.
24212 2005-03-17  Javier Miranda  <miranda@adacore.com>
24214         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
24215         of one barrier to avoid wrong usage of this attribute.
24217         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
24218         First_Private_Entity.
24220         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
24221         the subprogram against wrong usage.
24222         Adapt the code to traverse the entities in the
24223         scope of a record_type because in addition to its usage regarding
24224         packages, this subprogram is also called by Expand_N_Freeze_Entity
24225         to install the visible declarations of the enclosing scope of a
24226         record_type_with_private to establish the proper visibility before
24227         freezing the entity and related subprograms.
24229 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
24231         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
24232         entry formals.
24234 2005-03-17  Thomas Quinot  <quinot@adacore.com>
24236         * exp_ch3.adb (Check_Attr): New subprogram.
24237         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
24238         into a new Check_Attr subprogram, in order to provide a more
24239         explanatory error message (including the name of the missing attribute).
24240         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
24241         subprogram determines whether a default implementation exists for a
24242         given stream attribute.
24243         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
24244         Determine whether to generate a default implementation for each stream
24245         attribute separately, as this depends on the specific attribute.
24247         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
24248         limited extension where a stream attribute is missing for a limited
24249         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
24250         generate a bogus reference to the missing attribute to prevent
24251         cascaded errors. Instead, generate a null statement.
24253         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
24254         available for a limited type if it has been specified for an ancestor
24255         of the type.
24257 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
24259         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
24260         entity is an operator.
24262 2005-03-17  Thomas Quinot  <quinot@adacore.com>
24264         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24265         spec, to make this predicate available to other units.
24267         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
24268         reimplementing it.
24270         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
24271         when no distribution runtime library is available.
24273         * sem_res.adb, sem_dist.adb: Disable expansion of remote
24274         access-to-subprogram types when no distribution runtime library is
24275         available.
24276         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
24277         predicate available to other units.
24279         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24280         spec, to make this predicate available to other units.
24282 2005-03-17  Vincent Celier  <celier@adacore.com>
24284         * make.adb (Insert_Project_Sources): Make sure the Q is always
24285         initialized.
24287         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
24288         the default for the tree, not the global default naming.
24290         * prj-proc.adb (Recursive_Process): No need to put the default naming
24291         in the project data, it's already there.
24293 2005-03-17  Doug Rupp  <rupp@adacore.com>
24295         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
24297         * 5xcrtl.ads: Renamed to...
24298         * s-crtl-vms64.ads: ...this new file
24300 2005-03-17  Robert Dewar  <dewar@adacore.com>
24302         PR ada/19519
24303         * namet.adb (Copy_One_Character): Set proper wide character encoding
24304         for upper half character if we have upper half encoding.
24306 2005-03-17  Robert Dewar  <dewar@adacore.com>
24308         * par.adb (Par): Improved msg for attempt to recompile predefined unit
24310 2005-03-17  Thomas Quinot  <quinot@adacore.com>
24312         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
24313         tagged limited type, the TSS is a newly built renaming declaration:
24314         insert it using Set_TSS, not Copy_TSS.
24316 2005-03-17  Javier Miranda  <miranda@adacore.com>
24318         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
24319         Try_Object_Operation): Analyze the object that is accessible
24320         through the prefix of the subprogram call before we apply
24321         the transformation of the object-operation notation.
24323 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
24325         * s-taprob.adb (Initialize_Protection): Initialize the protected
24326         object's owner to Null_Task.
24327         (Lock): If pragma Detect_Blocking is in effect and the caller of this
24328         procedure is already the protected object's owner then Program_Error
24329         is raised. In addition the protected object's owner is updated.
24330         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
24331         of this procedure is already the protected object's owner then
24332         Program_Error is raised.
24333         In addition the protected object's owner is updated.
24334         (Unlock): Remove the ownership of the protected object.
24336         * s-taprob.ads (Protection): Add the field Owner, used to store the
24337         protected object's owner.
24338         This component is needed for detecting one type of potentially blocking
24339         operations (external calls on a protected subprogram with the same
24340         target object as that of the protected action). Document the rest of
24341         the components.
24343         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
24344         Initialize the protected object's owner to Null_Task.
24345         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
24346         caller of this procedure is already the protected object's owner then
24347         Program_Error is raised.
24348         Do not raise Program_Error when this procedure is called from a
24349         protected action.
24350         (Unlock_Entries): Remove the ownership of the protected object.
24351         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
24352         of this procedure is already the protected object's owner then
24353         Program_Error is raised.
24354         Do not raise Program_Error when this procedure is called from
24355         a protected action.
24357         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
24358         used to store the protected object's owner.
24360         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
24361         effect and this procedure (a potentially blocking operation) is called
24362         from whithin a protected action, Program_Error is raised.
24363         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
24364         and this procedure (a potentially blocking operation) is called from
24365         whithin a protected action, Program_Error is raised.
24367 2005-03-17  Vincent Celier  <celier@adacore.com>
24368             Nicolas Setton  <setton@adacore.com>
24370         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
24371         switch, not supported by the linker on Darwin. Add '_' before
24372         <library>init, as this character is added unconditionally by the
24373         compiler.
24374         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
24375         correct one ".dylib". This fixes detection of the archive files when
24376         building library projects.
24378 2005-03-17  Vincent Celier  <celier@adacore.com>
24380         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
24381         -gnat83, -gnat95 and -gnat05.
24383 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
24385         * gnat_ugn.texi: Document gnatmem restriction
24387 2005-03-17  Thomas Quinot  <quinot@adacore.com>
24389         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
24390         cleanup
24392 2005-03-17  Robert Dewar  <dewar@adacore.com>
24394         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
24395         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
24396         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
24398         * casing.adb: Comment improvements
24400 2005-03-17  Pascal Obry  <obry@adacore.com>
24402         * g-expect.adb: Minor reformatting.
24404 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
24406         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
24407         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
24408         to dependencies.
24410 2005-03-15  Vincent Celier  <celier@adacore.com>
24412         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
24413         Add new parameter In_Tree to specify the project tree: needed
24414         by the project manager. Adapt to changes in project manager
24415         using new parameter In_Tree.
24417 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
24419         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
24420         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
24421         ada/bldtools to avoid make -jN failures.
24423 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
24425         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
24426         to NULL_TREE on entry.
24428 2005-03-15  Robert Dewar  <dewar@adacore.com>
24430         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
24431         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
24432         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24433         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
24434         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
24435         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
24436         system-interix.ads, system-solaris-sparc.ads,
24437         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
24438         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
24439         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
24440         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
24441         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
24442         Compiler_System_Version to be False.
24444         * opt.ads: Add new flag Opt.Address_Is_Private
24446         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
24447         Add new parameter Compiler_System_Version to avoid checking for
24448         completeness of parameters when compiler is compiling itself.
24449         Allows old versions of GNAT to be compiled with new compiler.
24451 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
24453         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
24454         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
24455         calling thread.
24456         (Stack_Base_Available): New flag.
24457         (Get_Page_Size): New overloaded functions imported from C.
24458         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
24459         PROT_ON, PROT_OFF): New constants.
24460         (mprotect): New function imported from C.
24461         (pthread_teb_t): New record type.
24463         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
24464         (Create_Task): Account for the Yellow Zone and the guard page.
24466 2005-03-15  Vincent Celier  <celier@adacore.com>
24468         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24469         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24470         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
24471         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
24472         Library_File_Name_For): Add new parameter In_Tree
24473         to specify the project tree: needed by the project manager.
24474         Adapt to changes in project manager using new parameter In_Tree.
24475         Remove local imports, use functions in System.CRTL.
24477         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
24478         to use the project manager.
24480         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
24481         In_Tree to designate the project tree. Adapt to changes in the project
24482         manager, using In_Tree.
24484         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
24485         Copy_Interface_Sources): Add new parameter In_Tree to specify the
24486         project tree: needed by the project manager.
24487         (Build_Library): Check that Arg'Length >= 6 before checking if it
24488         contains "--RTS=...".
24490         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
24491         Library_File_Name_For): Add new parameter In_Tree to specify the
24492         project tree: needed by the project manager.
24494         * prj.ads, prj.adb: Major modifications to allow several project trees
24495         in memory at the same time.
24496         Change tables to dynamic tables and hash tables to dynamic hash
24497         tables. Move tables and hash tables from Prj.Com (in the visible part)
24498         and Prj.Env (in the private part). Move some constants from the visible
24499         part to the private part. Make other constants deferred.
24500         (Project_Empty): Make it a variable, not a function
24501         (Empty_Project): Add parameter Tree. Returns the data with the default
24502         naming data of the project tree Tree.
24503         (Initialize): After updating Std_Naming_Data, copy its value to the
24504         component Naming of Project Empty.
24505         (Register_Default_Naming_Scheme): Use and update the default naming
24506         component of the project tree, instead of the global variable
24507         Std_Naming_Data.
24508         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
24509         Tree is not defaulted, return the default naming data of the Tree.
24510         (Initial_Buffer_Size): Constant moved from private part
24511         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
24512         variables initialized in procedure Initialize.
24513         (Add_To_Buffer): Add two in out parameters to replace global variables
24514         Buffer and Buffer_Last.
24515         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
24516         functions.
24517         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
24518         hash tables.
24519         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24520         for the project tree.
24521         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
24522         constant at the beginning of the package spec, so that they cane be used
24523         in subprograms before their full declarations.
24524         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
24525         (Empty_Project): Add parameter of type Project_Node_Ref
24526         (Private_Project_Tree_Data): Add component Default_Naming of type
24527         Naming_Data.
24528         (Buffer, Buffer_Last): remove global variables
24529         (Add_To_Buffer): Add two in out parameters to replace global variables
24530         Buffer and Buffer_Last.
24531         (Current_Packages_To_Check): Remove global variable
24532         (Empty_Name): Move to private part
24533         (No-Symbols): Make it a constant
24534         (Private_Project_Tree_Data): New type for the private part of the
24535         project tree data.
24536         (Project_Tree_Data): New type for the data of a project tree
24537         (Project_Tree_Ref): New type to designate a project tree
24538         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24539         for the project tree.
24541         * prj-attr.ads: Add with Table; needed, as package Prj no longer
24542         imports package Table.
24544         * prj-com.adb: Remove empty, no longer needed body
24546         * prj-com.ads: Move most of the content of this package to package Prj.
24548         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
24549         designate the project node tree and Packages_To_Check to replace
24550         global variable Current_Packages_To_Check.
24551         Add new parameters In_Tree and Packages_To_Check to local subprograms,
24552         when needed. Adapt to changes in project manager with project node tree
24553         In_Tree.
24555         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
24556         project tree to most subprograms. Move tables and hash tables to
24557         private part of package Prj.
24558         Adapt to changes in project manager using project tree In_Tree.
24560         * prj-makr.adb (Tree): New constant to designate the project node tree
24561         Adapt to change in project manager using project node tree Tree
24563         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
24564         display the Library_Src_Dir and the Library_Dir.
24565         Add new parameter In_Tree to designate the project node tree to most
24566         subprograms. Adapt to changes in the project manager, using project tree
24567         In_Tree.
24568         (Check_Naming_Scheme): Do not alter the casing on platforms where
24569         the casing of file names is not significant.
24570         (Check): Add new parameter In_Tree to designate the
24572         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
24573         designate the project tree.
24574         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
24576         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
24577         to replace those that were in the private part of package Prj.
24578         Add new parameter In__Tree to designate the project node tree to most
24579         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24580         (Post_Parse_Context_Clause): When specifying the project node of a with
24581         clause, indicate that it is a limited with only if there is "limited"
24582         in the with clause, not necessarily when In_Limited is True.
24583         (Parse): Add new parameter In_Tree to designate the project node tree
24585         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
24586         designate the project node tree. Adapt to change in Prj.Tree with
24587         project node tree In_Tree.
24589         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
24590         tree In_Tree in the call to function Empty_Process to give its initial
24591         value to the project data Processed_Data.
24592         Add new parameters In_Tree to designate the project tree and
24593         From_Project_Node_Tree to designate the project node tree to several
24594         subprograms. Adapt to change in project manager with project tree
24595         In_Tree and project node tree From_Project_Node_Tree.
24597         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
24598         to replace those that were in the private part of package Prj.
24599         Add new parameter In_Tree to designate the project node tree to most
24600         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24602         * prj-tree.ads, prj-tree.adb: Add new parameter of type
24603         Project_Node_Tree_Ref to most subprograms.
24604         Use this new parameter to store project nodes in the designated project
24605         node tree.
24606         (Project_Node_Tree_Ref): New type to designate a project node tree
24607         (Tree_Private_Part): Change table to dynamic table and hash tables to
24608         dynamic hash tables.
24610         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
24611         the project tree to most subprograms. Adapt to changes in project
24612         manager using project tree In_Tree.
24614         * makegpr.adb (Project_Tree): New constant needed to use project
24615         manager.
24617 2005-03-15  Olivier Hainque  <hainque@adacore.com>
24619         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
24620         for sigactions with SA_SIGINFO set. Call
24621         __gnat_adjust_context_for_raise before raising, to perform the
24622         potentially required adjustments to the machine context for the GCC
24623         unwinder.
24625         * raise.h (__gnat_adjust_context_for_raise): New prototype.
24627         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
24628         Adjust PC by one in the provided machine context.
24629         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
24630         so that the handler is passed the context structure to adjust prior to
24631         the raise.
24632         (__gnat_error_handler) HPUX: Adjust the signature to match what an
24633         SA_SIGINFO sigaction should look like. Call
24634         __gnat_adjust_context_for_raise before actually raising.
24635         (__gnat_adjust_context_for_raise): Default noop to help PC
24636         adjustments before raise from signal handlers.
24637         (__gnat_error_handler): Indirectly call a predicate function to
24638         determine if a condition should be resignaled or not.
24639         (__gnat_set_resignal_predicate): User interface to modify the predicate.
24640         (__gnat_default_resignal_p): Default GNAT predicate.
24642 2005-03-15  Doug Rupp  <rupp@adacore.com>
24644         * adaint.c: Prefix #include of VMS system header files with vms/
24645         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
24646         Do not define a dummy function "convert_addresses" under Darwin,
24647         not needed.
24649         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
24650         with vms/
24652 2005-03-15  Nicolas Setton  <setton@adacore.com>
24654         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
24655         PPC/AIX.
24657 2005-03-15  Robert Dewar  <dewar@adacore.com>
24659         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
24660         AI-386.
24662         * a-retide.ads: Minor comment changes
24664 2005-03-15  Robert Dewar  <dewar@adacore.com>
24666         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
24667         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
24668         Realloc_For_Chunk to private part of package.
24669         New subprograms for AI-301
24671         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
24672         Get_Line procedure.
24673         Avoid unnecessary use of Get/Set_Wide_String
24675 2005-03-15  Robert Dewar  <dewar@adacore.com>
24677         PR ada/13470
24678         * a-stunau.ads, a-stunau.adb:
24679         Change interface to allow efficient (and correct) implementation
24680         The previous changes to allow extra space in unbounded strings had
24681         left this interface a bit broken.
24683         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
24685         * g-spipat.ads, g-spipat.adb: New interface for Get_String
24686         Minor reformatting (function specs)
24688         * g-spitbo.adb: New interface for Get_String
24690         * g-spitbo.ads: Minor reformatting
24692         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
24694         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
24696 2005-03-15  Javier Miranda  <miranda@adacore.com>
24697             Robert Dewar  <dewar@adacore.com>
24698             Thomas Quinot  <quinot@adacore.com>
24699             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24701         * atree.ads, atree.adb: Add support for Elist24 field
24703         * atree.h: Fix wrong definition of Field27
24704         Add support for Elist16 field
24705         Add support for Elist24 field
24707         * einfo.ads, einfo.adb (Abstract_Interfaces,
24708         Set_Abstract_Interfaces): New subprograms.
24709         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
24710         subprograms.
24711         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
24712         entities rather than a single node.
24713         (Is_Interface, Set_Is_Interface): New subprogram
24714         (First_Tag_Component): New syntesized attribute
24715         (Next_Tag_Component): New synthesized attribute
24716         (Write_Entity_Flags): Upgraded to write Is_Interface
24717         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
24718         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
24719         (Task_Body_Procedure): New subprogram to read this attribute.
24720         (Set_Task_Body_Procedure): New subprogram to set this attribute.
24721         (Has_Controlled_Component): Now applies to all entities.
24722         This is only a documentation change, since it always worked to apply
24723         this to other than composite types (yielding false), but now this is
24724         official.
24725         Update documentation on Must_Be_Byte_Aligned for new spec
24727         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
24728         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
24729         uses of the Access_Disp_Table attribute to reference the first dispatch
24730         table associated with a tagged type. As
24731         part of the implementation of abstract interface types,
24732         Access_Disp_Table has been redefined to contain a list of dispatch
24733         tables (rather than a single dispatch table).
24734         Similarly, upgrade all the references to Tag_Component by the
24735         new attribute First_Tag_Component.
24736         (Find_Inherited_TSS): Moved to exp_tss.
24737         Clean up test in Expand_N_Object_Declaration for cases
24738         where we need to do a separate assignment of the initial value.
24739         (Expand_N_Object_Declaration): If the expression in the
24740         declaration of a tagged type is an aggregate, no need to generate an
24741         additional tag assignment.
24742         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
24743         is to be deleted.
24744         Bit packed array ops are only called if operands are known to be
24745         aligned.
24746         (Component_Equality): When returning an N_Raise_Program_Error statement,
24747         ensure that its Etype is set to Empty to avoid confusing GIGI (which
24748         expects that only expressions have a bona fide type).
24749         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
24750         determine the amount of data to be copied.
24752         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
24753         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
24754             INTERFACE_TYPE_DEFINITION ::=
24755               [limited | task | protected | synchronized] interface
24756                 [AND interface_list]
24758         * par-ch3.adb (P_Type_Declaration): Modified to give support to
24759         interfaces.
24760         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
24761         interfaces.
24762         (P_Interface_Type_Definition): New subprogram that parses the new
24763         syntax rule of Ada 2005 interfaces
24764         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
24765         messages by the correct RENAMES (quotes removed).
24767         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
24768         attribute First_Tag_Component.
24770         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
24771         (Interface_List, Set_Interface_List): New subprograms.
24772         (Interface_Present, Set_Interface_Present): New subprograms.
24773         (Limited_Present, Set_Limited_Present): Available also in derived
24774         type definition nodes.
24775         (Protected_Present, Set_Protected_Present): Available also in
24776         record type definition and
24777         derived type definition nodes.
24778         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
24779         (Task_Present, Set_Task_Present): New subprogram.
24780         (Task_Body_Procedure): Removed.
24781         (Set_Task_Body_Procedure): Removed.
24782         These subprogram have been removed because the attribute
24783         Task_Body_Procedure has been moved to the corresponding task type
24784         or task subtype entity to leave a field free to store the list
24785         of interfaces implemented by a task (for AI-345)
24786         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
24787         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
24788         expression flag Do_Range_Check
24789         (Exception_Junk): Change to Flag7 to accomodate above change
24790         (Box_Present, Default_Name, Specification, Set_Box_Present,
24791         Set_Default_Name, Set_Specification): Expand the expression
24792         "X in N_Formal_Subprogram_Declaration" into the corresponding
24793         two comparisons. Required to use the csinfo tool.
24795         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
24796         "with string" given.
24798         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
24799         expression given.
24801         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
24802         in 2005 mode
24804         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
24805         attribute Task_Body_Procedure rather than the old semantic field that
24806         was available in the task_type_declaration node.
24808         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
24809         interface type definitions.
24810         (P_Formal_Derived_Type_Definition): Modified to handle the list of
24811         interfaces.
24813         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
24814         task type declaration.
24815         (P_Protected): Modified to handle the list of interfaces in a
24816         protected type declaration.
24818 2005-03-15  Doug Rupp  <rupp@adacore.com>
24819             Vincent Celier  <celier@adacore.com>
24821         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
24822         (Gen_Output_File_C): Likewise.
24823         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
24825 2005-03-15  Thomas Quinot  <quinot@adacore.com>
24827         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
24828         is an N_Raise_Constraint_Error node, create a new copy of it without
24829         going through a call to Duplicate_Subexpr.
24831 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
24832             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24833             Nicolas Setton  <setton@adacore.com>
24834             Ed Schonberg  <schonberg@adacore.com>
24836         PR ada/19900
24837         PR ada/19408
24838         PR ada/19140
24839         PR ada/20255
24840         * decl.c (gnat_to_gnu_field): Reject aliased components with a
24841         representation clause that prescribes a size not equal to the rounded
24842         size of their types.
24843         (gnat_to_gnu_entity, case E_Component): Always look at
24844         Original_Record_Component if Present and not the entity.
24845         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
24846         of tagged extension types by not making field for components that are
24847         inside the parent.
24848         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
24849         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
24850         expression to the type of the object when the object is constant.
24851         Reverse defer_debug_incomplete_list before traversing it, so that trees
24852         are processed in the order at which they were added to the list. This
24853         order is important when using the stabs debug format.
24854         If we are deferring the output of debug information, also defer this
24855         output for a function return type.
24856         When adding fields to a record, prevent emitting debug information
24857         for incomplete records, emit the information only when the record is
24858         complete.
24859         (components_to_record): New parameter defer_debug.
24860         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
24861         (gnat_to_gnu_field_decl): New function.
24862         (substitution_list, annotate_rep): Call it.
24863         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
24864         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
24865         No longer update discriminants to not be a COMPONENT_REF.
24866         (copy_alias_set): Strip padding from input type; also handle
24867         unconstrained arrays properly.
24869         * gigi.h (write_record_type_debug_info): New function.
24870         Convert to use ANSI-style prototypes. Remove unused
24871         declarations for emit_stack_check, elab_all_gnat and
24872         set_second_error_entity.
24873         (gnat_to_gnu_field_decl): New decl.
24875         * utils.c (write_record_type_debug_info): New function.
24876         (finish_record_type): Delegate generation of debug information to
24877         write_record_type_debug_info.
24878         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
24879         (update_pointer_to): Fix pasto.
24880         (convert) <UNION_TYPE>: Accept slight type variations when
24881         converting to an unchecked union type.
24883         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
24884         replace the N_Freeze_Entity with a null statement.
24886         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
24887         within a constrained subcomponent of an enclosing record, place the
24888         freeze nodes in the scope stack entry for the enclosing record.
24889         (Undelay_Type): New Subprogram.
24890         (Set_Small_Size): Pass T, the type to modify; all callers changed.
24891         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
24892         within records; allow them to have freeze nodes if their base types
24893         aren't frozen yet.
24895         * exp_util.adb (Remove_Side_Effects): Properly test for
24896         Expansion_Delayed and handle case when it's inside an
24897         N_Qualified_Expression.
24899         * sem_ch3.adb (Derived_Type_Declaration): New predicate
24900         Comes_From_Generic, to recognize accurately that the parent type in a
24901         derived type declaration can be traced back to a formal type, because
24902         it is one or is derived from one, or because its completion is derived
24903         from one.
24904         (Constrain_Component_Type): If component comes from source and has no
24905         explicit constraint, no need to constrain in in a subtype of the
24906         enclosing record.
24907         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
24908         Minor change to propagate Is_Ada_2005 flag
24910         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
24911         Expansion_Delayed is False.
24912         (assoc_to_constructor): Ignore fields that have a
24913         Corresponding_Discriminant.
24914         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
24915         function returns "by target", dereference the target pointer using the
24916         type of the actual return value.
24917         <all>: Be prepared for a null gnu_result.
24918         (processed_inline_subprograms): Check flag_really_no_inline
24919         instead of flag_no_inline.
24920         (set_second_error_entity): Remove unused function.
24921         (gnat_to_gnu, case N_Selected_Component): Call
24922         gnat_to_gnu_field_decl.
24923         (assoc_to_constructor): Likewise.
24925 2005-03-15  Robert Dewar  <dewar@adacore.com>
24926             Ed Schonberg  <schonberg@adacore.com>
24927             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24929         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
24930         Must_Be_Byte_Aligned for cases where we do not need to use a
24931         System.Pack_nn unit.
24933         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
24934         as procedures.
24935         Needed now that we do some processing for IN parameters as well. This
24936         may well fix some unrelated errors.
24937         (Expand_Call): Handle case of unaligned objects (in particular those
24938         that come from packed arrays).
24939         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
24940         renamed entity is an inherited operation, re-expand the call using the
24941         original operation, which is the one to call.
24942         Detect attempt to inline parameterless recursive subprogram.
24943         (Represented_As_Scalar): Fix to work properly with private types
24944         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
24945         accurate estimate. Yields True in far fewer cases than before,
24946         improving the quality of code that depends on this test.
24948         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
24949         over both visible and private declarations to remove them from tree,
24950         and mark subprograms declared in package as eliminated, to prevent
24951         spurious use in subsequent compilation of generic units in the context.
24953         * exp_util.ads: Minor cleanup in variable names
24955         * sem_eval.ads, sem_eval.adb: Minor reformatting
24956         (Compile_Time_Known_Bounds): New function
24958 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
24960         * exp_ch7.adb (Convert_View): Use base types of underlying types when
24961         determining whether an unchecked conversion is needed for the argument
24962         of an initialization call.
24964 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
24966         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
24967         that appears in the instantiation rather than the internal subtype
24968         generated in the wrapper package, to avoid anomalies in gigi when the
24969         target is derived from a private type whose full view is an access type.
24971 2005-03-15  Robert Dewar  <dewar@adacore.com>
24973         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
24974         not needed.
24975         Add documentation to replace the use of this flag
24976         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
24977         the x86_64.
24979 2005-03-15  Thomas Quinot  <quinot@adacore.com>
24981         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
24982         here from exp_attr so it can be shared between exp_attr and exp_dist.
24983         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
24984         all TSS names, not a subset thereof, and the previous name introduced
24985         an unnecessarily confusion that a distinction might exist between
24986         "OK" TSS names and some "not OK" TSS names.
24988 2005-03-15  Doug Rupp  <rupp@adacore.com>
24990         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
24991         Command_Name.
24993 2005-03-15  Pascal Obry  <obry@adacore.com>
24994             Eric Botcazou  <ebotcazou@adacore.com>
24996         PR ada/20226
24997         PR ada/20344
24998         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
24999         when IN_RTS. This is to work around a bootstrap path problem.
25001         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
25002         table and pass it to __gnat_install_SEH_handler().
25003         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
25005         * lang.opt: Fix specification of -fRTS=.
25007 2005-03-15  Doug Rupp  <rupp@adacore.com>
25008             Bernard Banner  <banner@adacore.com>
25009             Vincent Celier  <celier@adacore.com>
25010             Arnaud Charlet  <charlet@adacore.com>
25012         PR ada/6852
25013         This change works fine when gnatlib is built from the gcc directory,
25014         but does not work when using the libada Makefile, since GCC_FOR_TARGET
25015         is not passed to ada/Makefile.in, so more work is needed by a
25016         Makefile/configure expert.
25018         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
25019         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
25020         Setup gnatlink switch -M for x86_64 linux, as it is already setup
25021         for Linux x86.
25022         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
25023         Run ranlib on libgccprefix.a
25024         Define PREFIX_OBJS for Darwin, to build libgccprefix.
25025         (ADA_INCLUDE_SRCS): Split Ada packages.
25027 2005-03-15  Robert Dewar  <dewar@adacore.com>
25029         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
25031         * impunit.adb: Add GNAT.UTF_32
25033         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
25035         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
25036         now uses GNAT.UTF_32).
25038         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
25039         capabilities for categorizing characters using Unicode categories
25041 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
25043         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
25044         instantiation that has been rewritten as a package body, retrieve spec
25045         to generate proper name for implicit_with_clause.
25046         (Install_Parents): Recognize a parent that is an instantiation but has
25047         been rewritten as a package declaration during analysis.
25049 2005-03-15  Javier Miranda  <miranda@adacore.com>
25050             Ed Schonberg  <schonberg@adacore.com>
25052         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
25053         parameter reported some error we immediately return. This improves the
25054         behaviour of the frontend in case of errors.
25055         (Install_Parent, Remove_Parent): Introduce new flag
25056         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
25057         ancestor of a generic child unit, when the child is being instantiated.
25058         (Inline_Instance_Body): If we are compiling the private
25059         part or the body of a child unit, restore the proper visibility of the
25060         parents after compiling the instance body.
25062 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
25063             Javier Miranda  <miranda@adacore.com>
25065         PR ada/15608
25066         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
25067         of a private type, in which case it is underlying_type that denotes
25068         the proper task. Also modified to use the new entity attribute
25069         that is directly available in the task type and task subtype entities
25070         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
25071         arrays when other dimensions than the first are constrained by
25072         discriminants of an enclosing record.
25073         (Insert_Explicit_Dereference): If the prefix is an indexed component or
25074         a combination of indexed and selected components, find ultimate entity
25075         and generate the appropriate reference for it, to suppress spurious
25076         warnings.
25077         (Note_Possible_Modification): If an entity name has no entity, return.
25078         (Is_Variable): A function call never denotes a variable.
25079         (Requires_Transient_Scope): For record types, recurse only on
25080         components, not on internal subtypes that may have been generated for
25081         constrained components.
25083 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
25085         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
25086         Eliminated as candidates for resolution. Both efficient, and avoids
25087         anomalies with operators declared in deleted code.
25088         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
25089         expansion is disabled (as when compiling a generic) to prevent spurious
25090         warnings on prefixes of selected components.
25092 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
25094         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
25095         attached to a list before checking whether it appears in the private
25096         declarations of the current package.
25097         (Make_Inequality_Operator): Insert declaration in proper declarative
25098         list rather than just setting the Parent field, so that
25099         Is_Private_Declaration can handle it properly.
25101 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
25103         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
25104         a renaming a body, check that the renamed subprogram in not intrinsic.
25105         (Find_Direct_Name): If several use_visible entities hide
25106         each other, and the context is a predefined file compiled through
25107         rtsfind, keep only the entity that comes from a predefined file.
25109 2005-03-15  Geert Bosch  <bosch@adacore.com>
25111         * s-fatgen.adb (Valid): Extend special exceptions to account for long
25112         long float padding to also cover AMD64 and IA64.
25114 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
25116         * s-imgwch.adb: Add with and use of Interfaces.
25117         (Img_Wide_Character): Change type of Val to Unsigned_16.
25118         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
25120 2005-03-15  Matthew Gingell  <gingell@adacore.com>
25122         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
25124 2005-03-15  Robert Dewar  <dewar@adacore.com>
25126         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
25128         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
25130         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
25132 2005-03-15  Robert Dewar  <dewar@adacore.com>
25134         * s-bitops.adb, s-bitops.ads,
25135         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
25136         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
25137         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
25138         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
25139         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
25140         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
25141         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
25142         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
25143         reformatting.
25145 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
25147         * utils2.c (build_binary_op): Fix typo.
25149 2005-03-15  Doug Rupp  <rupp@adacore.com>
25151         * s-crtl.ads (popen,pclose): New imports.
25153 2005-03-15  Cyrille Comar  <comar@adacore.com>
25155         * comperr.adb (Compiler_Abort): remove references to obsolete
25156         procedures in the bug boxes for various GNAT builds.
25158 2005-03-15  Vincent Celier  <celier@adacore.com>
25160         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
25162 2005-03-15  Geert Bosch  <bosch@adacore.com>
25163             Arnaud Charlet  <charlet@adacore.com>
25164             Robert Dewar  <dewar@adacore.com>
25165             Cyrille Comar  <comar@adacore.com>
25166             Sergey Rybin  <rybin@adacore.com>
25168         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
25169         too specific and long-winded to be appropriate for the GNAT User's
25170         Guide.
25171         Warn about use of GCC switches not documented in the GNAT User's Guide,
25172         as these may cause generated code to not conform to Ada semantics.
25173         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
25174         Add documentation for -gnat95 and -gnat05 switches
25175         Remove paragraph documenting obsolete way to refer to third party
25176         libraries.
25177         Add a few references to Ada_05 that were missing.
25178         Update documentation on -gnatZ/-gnatL.
25179         Document limitation when using -m64 under Solaris.
25180         Change the "Name Casing" subsection of the pretty-printer section
25181         according to the changes in the dictionary processing.
25183         * gnat_rm.texi: Document the Ada_05 pragma.
25184         Section on record representation clauses describes the new more
25185         relaxed rules about placement of large packed bit array components.
25186         Add documentation of GNAT.UTF_32
25188 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
25190         * misc.c (gnat_post_options): Turn off structural
25191         aliasing for now.
25193 2005-03-08  Laurent Guerby  <laurent@guerby.net>
25195         * system-linux-sparc.ads: Fix typo in previous commit.
25197 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
25198             Laurent Guerby  <laurent@guerby.net>
25200         PR ada/20035
25201         * system-linux-sparc.ads: New.
25202         * Makefile.in: Add sparc linux entry.
25204 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
25206         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
25207         parameters as unused.
25209 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
25210         Partial merge from libada-gnattools-branch:
25212         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
25213         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
25214         into code in gnattools/Makefile.in.  Remove direct dependencies on
25215         stamp-tools by tools clauses.
25216         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
25217         * config-lang.in: Add gnattools to $lang_dirs.
25219 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
25221         PR ada/19942
25222         * utils.c (gnat_type_for_mode): Return null instead of ICE because
25223         we asked for an unknown mode.
25225 2005-02-12  Richard Henderson  <rth@redhat.com>
25227         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
25228         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
25230 2005-02-10  Andreas Jaeger  <aj@suse.de>
25232         * init.c (__gnat_initialize): Mark parameter as unused.
25234 2005-02-09  Doug Rupp  <rupp@adacore.com>
25236         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
25237         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
25239 2005-02-09  Doug Rupp  <rupp@adacore.com>
25241         * gnatchop.adb (dup, dup2),
25242         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
25244         * gnatlbr.adb (mkdir),
25245         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
25247         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
25249 2005-02-09  Doug Rupp  <rupp@adacore.com>
25251         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
25253 2005-02-09  Robert Dewar  <dewar@adacore.com>
25254             Thomas Quinot  <quinot@adacore.com>
25255             Javier Miranda  <miranda@adacore.com>
25256             Pascal Obry  <obry@adacore.com>
25257             Ed Schonberg  <schonberg@adacore.com>
25258             Doug Rupp  <rupp@adacore.com>
25259             Gary Dismukes  <dismukes@adacore.com>
25260             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25262         * g-zstspl.ads: New file.
25264         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
25266         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
25267         Ada 95 mode
25268         Add definition of Wide_Wide_Space for AI-285
25270         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
25271         interface (to support Ada 95 and Ada 2005 units).
25272         Add Unbounded_IO files
25273         Add entries for Wide_Wide packages for AI-285
25274         Add list of containers packages to Ada 2005 unit list
25276         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
25277         support new Unbounded_IO package cleanly.
25279         * g-utf_32.ads, g-utf_32.adb: New files.
25281         * Makefile.rtl: Add entry for g-utf_32
25282         Add new files for Unbounded_IO
25283         Adjust make file for new AI-285 wide wide packages
25284         Add AI-302 containers to the run time.
25286         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
25287         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
25288         subprograms for AI-301.
25290         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
25292         * a-stunau.ads: Minor comment correction
25294         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
25295         etc.
25296         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
25297         (Check_RPC): Update to match changes in expanded code.
25298         Clean up unused entity.
25300         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
25301         was not taken into account.
25302         This includes proper initialization with Normalize_Scalars.
25303         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
25304         normalize scalars cases (particularly the latter) to do a better job
25305         of finding invalid representations.
25307         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
25309         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
25310         used
25312         * exp_dist.adb: Add support for wide wide character type
25313         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
25314         private part, generate stub bodies at the end of the private part,
25315         not the visible part.
25316         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
25317         PolyORB support.
25318         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
25319         generic wrapper to execute final processing after completing the
25320         expansion of the RPC receiver for an RACW.
25322         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
25323         packages and attributes.
25324         (Preset_Names): Addition of the new reserved words of Ada 2005,
25325         that is interface, overriding and synchronized.
25326         (Get_Pragma_Id): Give support to the use of the new reserved word
25327         "interface" as a pragma name.
25328         (Is_Pragma_Name): Give support to the use of the new reserved word
25329         "interface" as a pragma name.
25330         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
25331         attribute implementation.
25333         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
25334         checks to entities that are output parameters of Asm operations.
25335         Handle the Stream_Size attribute.
25336         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
25338         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
25340         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
25341         for second parameter being 0.0.
25342         Add support for wide wide character type.
25343         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
25345         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
25346         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
25347         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
25348         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
25349         for wide wide character cases.
25351         * cstand.adb: Create entities for Wide_Wide_Character and
25352         Wide_Wide_String.
25354         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
25355         accordance with AI-258.
25356         Add new declarations for 16/32 bit C character types (Part of AI285)
25358         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
25359         (Obsolescent_Warning): New field
25360         (Rep_Clause): New local subprogram used to share code. Returns the rep
25361         clause for which the name is given in parameter.
25362         (Has_Stream_Size_Clause): New routine.
25363         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
25364         (Address_Clause): Implementation is now using Rep_Clause.
25365         (Alignment_Clause): Idem.
25366         (Size_Clause): Idem.
25368         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
25369         entity in non-Ada 2005 mode and generate warning.
25371         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
25372         (Prag): Code cleanup. Remove old gnat pragma "overriding"
25374         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
25375         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
25376         on the named unit if the pragma is not in the current compilation unit,
25377         so that elaboration calls in the current unit can set up an elaboration
25378         dependency on the named unit, as needed.
25379         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
25380         subprogram as well as for subprograms declared within a package.
25381         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
25382         pragma overriding.
25384         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
25385         to z) to avoid some instances of duplication for Wide_Wide packages.
25387         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
25388         characters.
25390         * scn.adb: Char_Literal_Value field is now a Uint
25392         * scng.adb: Significant rewrite to handle new Ada 2005 features
25393         allowing wide and wide wide characters in program text, e.g. for
25394         identifiers, as described in AI-285.
25395         (Set_Reserved): New procedure, makes setting up keywords cleaner.
25396         (Initialize_Scanner): Register the new reserved words of Ada 2005.
25397         (Scan): Give support to the new reserved words.
25399         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
25400         warning notifying that interface, overriding, and synchronized are
25401         new reserved words.
25402         (P_Pragma): Allow the use of the new reserved word "interface" as
25403         a pragma name.
25405         * gnatls.adb, gnatbind.adb,
25406         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
25407         identifiers named "interface" to "SAL_Interface".
25409         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
25410         (Structured Exception handling).
25411         (Gen_Main_C): Idem.
25413         * bindgen.adb:
25414         (Gen_Main_Ada): Set the default exit code if specified.
25415         (Gen_Main_C): Likewise.
25416         Part of *DC20-006.
25417         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
25418         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
25420         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
25421         new -Xnnn switch.
25423         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
25424         has a collision with the new Ada 2005 "interface" reserved word.
25426         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
25427         generate a warning notifying that interface, overriding, and
25428         synchronized are new reserved words.
25430         * scans.ads (Token_Type): Addition of the tokens corresponding to the
25431         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
25432         and Tok_Synchronized.
25434         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
25435         "dispatching" rather than "primitive" operations, since dispatching
25436         calls are now allowed to abstract formal subprograms (which are not
25437         primitive).
25438         Char_Literal_Value field is now a Uint
25439         (Resolve_Slice): If the prefix is an access to an unconstrained array,
25440         compute the actual subtype of the designated object to impose the proper
25441         index constraints.
25442         (Resolve_Selected_Component): Do not insert an access check if the
25443         prefix is an access type: such a node is expanded into an explicit
25444         dereference, on which the access check is performed anyway. Removes
25445         expensive duplicate checks.
25446         (Resolve_Call): Use new flag Is_Obsolescent and field
25447         Obsolescent_Warning so that pragma Obsolescent works on library
25448         subprograms.
25449         Add support for wide wide character type
25450         (Resolve_Allocator): Replace the error message on wrong null-exclusion
25451         value by a warning message.
25452         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
25453         as fixed-point, and one of the operands is non-static and universal, it
25454         can only be an illegal exponentiation operation, in which case there is
25455         no real value to retrieve.
25457         * exp_strm.adb: Add support for wide wide character type
25458         (Build_Elementary_Input_Call): Compute the size of the stream element by
25459         querying the rep chain to find the Stream_Attribute attribute value.
25460         (Build_Elementary_Write_Call): Ditto.
25462         * sem_aggr.adb: Char_Literal_Value field is now a Uint
25463         Add support for wide wide character type
25464         Replace the error messages on wrong null-exclusion value by warnings
25465         as described in Ada 2005.
25466         (Resolve_Extension_Aggregate): Document the fact that the error
25467         message on class-wide expressions in extensions aggregates.
25469         * sem_case.adb: Add support for wide wide character type
25471         * sem_ch13.adb: Add support for wide wide character type
25472         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
25474         * sem_ch3.adb: Add support for wide wide character type
25475         (Process_Subtype): If constraint is illegal for the type, set Ekind of
25476         now-useless Itype, to prevent cascaded errors on a compiler built
25477         without -gnatp.
25479         * sem_ch8.adb: Add with and use of Sem_Disp.
25480         (Analyze_Subprogram_Renaming): Replace unclean uses of
25481         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
25482         of Corresponding_Spec to Empty).
25483         (Attribute_Renaming): Replace use of Corresponding_Spec with
25484         Corresponding_ Formal_Spec and simplify condition.
25485         (Use_One_Package): Check that scope of homonym of identifier is defined,
25486         before checking whether it is a wrapper package.
25487         Add support for wide wide character type
25489         * sem_eval.adb: Add support for wide wide character type.
25490         (Eval_Arithmetic_Op): Check for compile time known signed integer
25491         overflow in the non-static case.
25492         (Subtypes_Statically_Match): A formal scalar type and its base type do
25493         not statically match.
25495         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
25496         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
25497         subtype).
25498         (Unit_Declaration_Node): Ditto.
25499         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
25500         has a packed array type, the prefix has been rewritten into a type
25501         conversion. Determine variable-ness from the converted expression.
25502         Handle wide wide character cases.
25504         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
25506         * stringt.ads, stringt.adb: Handle full UTF-32 range.
25507         Remove ["0A"] from comment, since it can look like a line terminator.
25508         Currently we don't permit this, but this is under discussion by the
25509         ARG, and it is easy enough to use a different example.
25511         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
25512         handling UTF-32 encoding for wide wide character.
25513         Implement new brackets coding ["hhhhhhhh"]
25514         Add UTF-8 encodings for full UTF-32 range
25516         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
25518         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
25519         bit range Add full UTF-32 support.
25520         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
25521         notify that constraint error will be raised at run-time
25522         because a null value is assigned to a null-excluding object.
25523         Remove some obsolete declarations and make Char_Code
25524         unsigned.
25526         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
25527         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
25528         Rcheck subprograms.
25530         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
25531         wrong null-exclusion value by a warning message.
25532         (Enable_Range_Check): Do range check if the prefix is an
25533         explicit dereference whose designated object is an unconstrained array.
25534         Current algorithm for removing duplicate checks is over-eager in this
25535         case.
25537         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
25538         null-exclusion value by a warning message
25540         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
25541         completely. Add support for Uint2 field
25543         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
25544         exp_prag.adb: Char_Literal_Value field is now a Uint.
25546         * exp_util.adb (Insert_Actions): Replace
25547         N_Formal_Subprogram_Declaration by
25548         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
25549         Char_Literal_Value field is now a Uint.
25551         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
25552         defined for subprogram renaming declarations. When set, the field
25553         indicates the defining entity of a corresponding formal subprogram
25554         when the renaming corresponds to a formal subprogram association in an
25555         instantiation.
25556         (Set_Corresponding_Formal_Spec): New procedure to return
25557         Corresponding_Formal_Spec field.
25558         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
25559         (which is now a subtype).
25560         Char_Literal_Value field is now a Uint
25562         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
25563         pointer to the base of the dispatch table.
25564         Minor changes to comments.
25565         (Controlling_Type): New function for determining the tagged type
25566         associated with a tagged primitive subprogram.
25567         (Expand_Dispatching_Call): Add support for a controlling actual that is
25568         directly a value of type Ada.Tag rather than a tagged object.
25570         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
25571         describing the new layout.
25572         (Dispatch_Table): The expander computes the actual array size, allocates
25573         the Dispatch_Table record accordingly, and generates code that displaces
25574         the base of the record after the Typeinfo_Ptr component. The access to
25575         these components is done by means of local functions.
25576         (Offset_To_Top): New function.
25577         (Typeinfo_Ptr): New function.
25578         (Get_TSD): Modified to access the new position of the TSD.
25579         (Set_TSD): Modified to save the TSD in its new position.
25581         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
25582         case of formal abstract subprograms. Add check and message for -gnat05.
25583         Update comments.
25585         * sem_ch12.adb: Add with and use for Sem_Disp.
25586         (Analyze_Associations): Minor change from "=" to "in" for use of
25587         N_Formal_Subtype_Declaration (which is now a subtype).
25588         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
25589         N_Formal_Subtype_Declaration (which is now a subtype).
25590         (Analyze_Formal_Subprogram): Add handling for
25591         N_Formal_Abstract_Subprogram, marking the formal as abstract and
25592         dispatching, setting the controlling status of the formal parameters
25593         and result, and issuing an error if there is no controlling type for
25594         the formal subprogram.
25595         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
25596         which is an unclean use of that field, we set the new field
25597         Corresponding_Formal_Spec to make the formal subprogram available to
25598         processing in Analyze_Subprogram_Declaration.
25599         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
25600         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
25601         Constrained, so that it is is does not statically match its anonymous
25602         base type.
25604         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
25605         abstract formal subprograms in error check for functions returning
25606         abstract types. Set scope of new designator for
25607         a parameterless subprogram, so that it is available when checking the
25608         body for nested subprograms, before full analysis of said body.
25609         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
25610         subprogram only if inner one comes from source.
25611         (Analyze_Function_Call): If the call is given in object notation, the
25612         analysis of the name rewrites the node and analyzes it with the proper
25613         argument list. After analyzing the name, if the call has been rewritten
25614         and the result type is set, no further analysis is needed.
25615         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
25616         mark in function specification, in a context where the formals are
25617         visible and hide outer homographs.
25619         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
25620         as the tagged type for the cases of abstract formal subprograms and
25621         renamings of those.  Clean up spec comments.
25622         (Check_Dispatching_Context): Add error message to indicate "abstract
25623         procedure", covering the case of a call to a formal abstract procedure
25624         that has statically tagged operands.
25625         (Check_Dispatching_Call): Check for the case of an actual given by
25626         a tag-indeterminate function call whose type is an ancestor of the
25627         containing call's associated tagged type. This situation can occur
25628         for inherited primitives with function defaults. In this case we
25629         use the tagged type's tag directly as the controlling argument for
25630         the calls.
25631         (Expand_Call): Name change on call to Expand_Dispatch_Call.
25633         * sprint.adb (Sprint_Node_Actual): Split
25634         N_Formal_Subprogram_Declaration into two alternatives for the new
25635         cases N_Formal_Abstract_Subprogram_Declaration and
25636         N_Formal_Concrete_Subprogram_Declaration.
25637         Char_Literal_Value field is now a Uint.
25639         * trans.c: Get rid of junk Uint2 reference.
25640         Char_Literal_Value field is now a Uint.
25641         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
25642         (gigi): Correct third arg to gimplify_body.
25644         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
25645         (TYPE_LANG_FLAG_0): Check for record or union.
25647         * treepr.adb: Char_Literal_Value field is now a Uint
25649         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
25650         UI_From_CC.
25652         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
25653         Add full UTF-32 support
25654         Char_Code is now 32 bits
25656         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
25657         wide character UTF_32 line terminators.
25658         Initialize Main_Source_File to avoid error when no main
25659         source is loaded.
25661         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
25662         (Main_Source_File) when no main source has been loaded, to avoid
25663         potential crash.
25665 2005-02-09  Robert Dewar  <dewar@adacore.com>
25667         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
25668         Fix name of Set routine
25670         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
25671         fixed packages.
25673         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
25674         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
25675         fixed packages
25677         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
25678         forms of Get_Line subprograms for AI-301.
25680         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25681         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
25682         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
25683         a-stwima.ads: Minor reformatting.
25685 2005-02-09  Doug Rupp  <rupp@adacore.com>
25686             Thomas Quinot  <quinot@adacore.com>
25688         * adaint.c, adaint.h
25689         [VMS] (to_ptr32): New function.
25690         (MAYBE_TO_PTR32): New macro.
25691         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
25692         for pointer size.
25693         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
25694         [VMS] (#define fork()): Remove since unneccessary.
25695         (__gnat_set_close_on_exec): New routine to support
25696         GNAT.OS_Lib.Set_Close_On_Exec.
25698         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
25699         the parent side as close-on-exec so that they are not inherited by the
25700         child.
25702         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
25703         set or clear the FD_CLOEXEC flag on a file descriptor.
25705 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
25706             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25708         PR ada/19386
25709         * decl.c:
25710         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
25711         on the field if Pragma Component_Alignment (Storage_Unit).
25712         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
25713         side-effects as if it were a constant; also make SAVE_EXPR to protect
25714         side-effects.
25715         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
25716         UNION_TYPE.
25717         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
25718         (components_to_record): Test it.
25719         Fix improper usage of REFERENCE_CLASS_P.
25721         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
25722         RECORD_TYPE.
25724         * utils2.c: Minor reformatting.
25726         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
25727         handle other cases like RECORD_TYPE.
25729         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
25731 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
25733         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
25734         component of an array of arrays in an assignment context, and the
25735         aggregate has component associations that require sliding on
25736         assignment, force reanalysis of the aggregate to generate a temporary
25737         before the assignment.
25738         (Must_Slide): Make global to the package, for use in Gen_Assign.
25740 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
25742         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
25743         unchecked union with no inferable discriminants, return a
25744         Raise_Program_Error node, rather than inserting it at the point the
25745         type is frozen.
25746         (Expand_Record_Equality, Component_Equality): Handle properly the case
25747         where some subcomponent is an unchecked union whose generated equality
25748         code raises program error.
25750 2005-02-09  Doug Rupp  <rupp@adacore.com>
25752         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
25753         [VMS] (#define exit hack): Remove.
25755 2005-02-09  Pascal Obry  <obry@adacore.com>
25756             Arnaud Charlet  <charlet@adacore.com>
25758         * init.c (__gnat_initialize): Add a new parameter eh which contains the
25759         address of the exception registration. The Win32 version of this
25760         routine calls __gnat_install_SEH_handler() to initialize the SEH
25761         (Structured Exception Handling) handler.
25762         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
25763         SEH (Structured Exception Handling) now.
25764         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
25765         (__gnat_initialize for ppc-vxworks): Adjust comments and the
25766         preprocessor condition protecting the call to the extra eh setup
25767         subprogram, which is only available for the ppc target.
25768         (__gnat_clear_exception_count): replaced reference to
25769         variable taskIdCurrent by call to taskIdSelf(), cleaner.
25771         * seh_init.c: New file.
25773         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
25774         (GNATBIND_OBJS): Idem.
25776         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
25777         routine takes a new parameter (a pointer to the exception registration
25778         for the SEH (Structured Exception Handling) support.
25780         * raise.h: (__gnat_install_SEH_handler): New prototype.
25781         Update copyright notice.
25783         * s-tassta.adb (Task_Wrapper): Declare the exception registration
25784         record and initialize it by calling __gnat_install_SEH_handler.
25786 2005-02-09  Vincent Celier  <celier@adacore.com>
25788         * make.adb (Gnatmake): Do not fail when the main project has no object
25789         directory.
25791 2005-02-09  Doug Rupp  <rupp@adacore.com>
25793         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
25794         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
25795         [VMS]: Add translations for g-enblsp.adb.
25797         * s-asthan-vms.adb: Removed.
25798         * s-asthan-vms-alpha.adb: Added.
25800 2005-02-09  Pascal Obry  <obry@adacore.com>
25802         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
25803         (LIBGNAT_OBJS): Add seh_init.o.
25805 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
25807         PR ada/16592
25808         * Makefile.in: Link all gnat tools with -static-libgcc, since
25809         -shared-libgcc is now used by default on some systems (e.g. linux with
25810         recent binutils).
25811         Remove references to Makefile.prolog/generic, no longer used.
25813 2005-02-09  Vincent Celier  <celier@adacore.com>
25815         * prj-makr.adb (Process_Directory): Put file name in canonical case
25816         before matching against the patterns.
25817         If gnatname has been invoked as <prefix>-gnatname
25818         then invoke the compiler as <prefix>-gcc, not just "gcc".
25820 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
25822         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
25823         with expansion disabled. The actual subtype is needed among other
25824         places when the selected component appears in the context of a loop
25825         bound, and denotes a packed array.
25826         (Operator_Check): Always use the first subtype in the
25827         error message, to avoid the appearance of internal base types.
25828         (Transform_Object_Operation): Copy each actual in full
25829         to the parameter associations of the constructed call, rather than
25830         using the shallow copy mechanism of New_Copy_List. This ensures that
25831         the chaining of named associations is done properly.
25832         (Complete_Object_Operation): Rewrite node, rather than
25833         replacing it, so that we can trace back to the original selected
25834         component.
25836         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
25837         and calls that use object notation, if the called function is not
25838         declared  in a withed unit, place the elaboration constraint on the
25839         unit in the context that makes the function accessible.
25840         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
25841         imposes an elaboration constraint between two packages.
25843 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
25845         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
25846         views of a private type after handling its private dependents, to
25847         maintain proper stack discipline between entry and exit from the
25848         package.
25850 2005-02-09  Cyrille Comar  <comar@adacore.com>
25852         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
25853         Minor reformatting.
25855 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
25857         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
25858         fields for foreign threads.
25860 2005-02-09  Doug Rupp  <rupp@adacore.com>
25862         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
25863         recursion warnings when compiled with -gnatdm.
25865 2005-02-09  Robert Dewar  <dewar@adacore.com>
25867         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
25868         Slight fix to documentation of -gnaty with no parameters
25870         * xr_tabls.ads: Add ??? comment for missing overall comment
25872         * xsinfo.adb: Make default file name be sinfo.h, since this is what
25873         we now use by default.
25875         * xsnames.adb: Adjust end of file test to look for five space followed
25876         by '#' instead of six spaces. The format of xsnames.adb was modified
25877         in the last update.
25879         * a-numeri.ads: Add reference to AI-388 for greek letter pi
25880         identifier.
25882         * clean.adb: Minor reformatting.
25884         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
25885         gnatname.adb: Minor reformatting
25886         Add 2005 to copyright output when utility is run
25888         * csets.adb: Eliminate obsolete comment
25890         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
25891         Update comments.
25893         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
25895 2005-02-09  Sergey Rybin  <rybin@adacore.com>
25897         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
25898         the difference between compact and incompact layout and add the record
25899         representation clause to the example illustrating different layouts.
25900         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
25901         component clauses").
25903 2005-02-09  Florian Villoing  <villoing@adacore.com>
25905         * gnat_ugn.texi: Fix typos.
25906         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
25907         @file.
25908         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
25909         in the generated documentation.
25911 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
25913         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
25914         longer supported.
25915         Update linker wrapper when linking with non GNU C++.
25917 2005-02-09  Pascal Obry  <obry@adacore.com>
25919         * gnat_ugn.texi:
25920         Document the procedure to debug the DllMain routine on Windows.
25921         Add note about -funwind-tables and mixed Ada and C/C++ programming in
25922         ZCX mode.
25923         Document new BIND qualifer /RETURN_CODES=VMS.
25925 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
25927         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
25928         Edited gnatmetric chapter
25930 2005-02-09  Robert Dewar  <dewar@adacore.com>
25932         * gnat_rm.texi:
25933         Changes to document new wide wide character support
25934         For AI-285
25935         Update documentation on Normalize_Scalars and Initialize_Scalars
25937 2005-02-09  Pascal Obry  <obry@adacore.com>
25939         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
25941 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
25943         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
25944         from the VxWorks kernel) that is needed for getting the active
25945         priority of the different tasks.
25947         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
25948         Use a pragma Elaborate_Body in the spec file instead.
25949         Noticed by code reading.
25951 2005-02-09  Thomas Quinot  <quinot@adacore.com>
25953         * exp_util.ads: Minor correction in comment.
25955 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
25957         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
25958         since this procedure is now too complex to be worth inlining.
25960 2005-02-09  Richard Henderson  <rth@redhat.com>
25962         * utils.c (gnat_define_builtin): Remove.
25963         (gnat_install_builtins): Use build_common_builtin_nodes.
25965 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
25967         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
25968         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
25969         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
25970         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
25971         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
25972         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
25973         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
25974         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
25975         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
25976         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
25977         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
25978         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
25979         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
25980         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
25981         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
25982         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
25983         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
25984         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
25985         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
25986         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
25987         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
25988         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
25989         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
25990         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
25991         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
25992         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
25993         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
25994         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
25995         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
25996         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
25997         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
25998         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
25999         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
26000         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
26001         library.
26003 2005-01-27  Laurent Guerby  <laurent@guerby.net>
26005         * Makefile.in: Fix a-intnam.ads from previous commit,
26006         add 2005 to copyright.
26007         * a-intman-rtems.ads: Renamed to...
26008         * a-intnam-rtems.ads:
26010 2005-01-27  Laurent Guerby  <laurent@guerby.net>
26012         * Makefile.in: Rename GNAT RTEMS specific files.
26013         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
26014         5rosinte.ads, 5rparame.adb: Replaced by files below.
26015         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
26016         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
26018 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
26019             Laurent Guerby  <laurent@guerby.net>
26021         PR ada/19488
26022         * 5rosinte.ads: Add No_Key constant.
26023         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
26024         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
26026 2005-01-26  Laurent Guerby  <laurent@guerby.net>
26028         PR ada/19414
26029         * i-cobol.adb (Valid_Numeric): Handle zero length case.
26031 2005-01-20  Richard Henderson  <rth@redhat.com>
26033         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
26034         a-intnam-linux.ads and system-linux-alpha.ads.
26035         * a-intnam-linux-alpha.ads: Remove file.
26036         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
26037         * system-linux-alpha.ads: New file.
26039 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
26041         PR ada/13470
26042         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
26043         set to the new string.
26045 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
26047         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
26048         to True.
26050 2005-01-18  Richard Henderson  <rth@redhat.com>
26052         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
26053         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
26054         for alpha-linux.
26055         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
26057 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
26059         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
26060         (GCC_ZCX_Support): Likewise.
26062 2005-01-11  Bastian Blank  <waldi@debian.org>
26064         * system-linux-s390.ads: Define Preallocated_Stacks.
26065         * system-linux-s390x.ads: Likewise.
26067 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
26069         * gnat_ugn.texi: Fix texi errors with null variables.
26071 2005-01-03  Thomas Quinot  <quinot@adacore.com>
26073         * gen-soccon.c: New utility program to generate g-soccon.ads
26074         automatically.
26076         * socket.c, gsocket.h: Split inclusion of system header files into a
26077         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
26079         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
26080         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
26081         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
26082         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
26083         should not be edited by hand anymore, but should be regenerated using
26084         gen-soccon.
26086 2005-01-03  Robert Dewar  <dewar@adacore.com>
26087             Ed Schonberg  <schonberg@adacore.com>
26088             Vincent Celier  <celier@adacore.com>
26090         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
26091         on/off, since this is an obsolescent feature, for which we now generate
26092         a warning.
26094         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
26095         warning mode is set and obsolescent usage of this attribute occurs.
26096         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
26097         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
26098         predates, and partly motivates, the adoption of the AI.
26099         Implement new Ada 2005 attribute Mod
26101         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
26102         attribute Mod.
26104         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
26106         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
26107         pragma restrictions.
26108         New entry for Ada 2005 attribute Mod.
26110         * par-prag.adb:
26111         Add recognition of new pragma Restrictions No_Dependence
26112         Recognize restriction No_Obsolescent_Features at parse time
26114         * bcheck.adb: Add circuitry for checking for consistency of
26115         No_Dependence restrictions.
26117         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
26118         restrictions.
26120         * restrict.ads, restrict.adb: Add subprograms to deal with
26121         No_Dependence restrictions.
26123         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
26124         restrictions.
26126         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
26127         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
26129         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
26130         dummy parameter to scng instantiation.
26131         Needed for new restriction No_Obsolescent_Features
26133         * scn.adb: (Obsolescent_Check): New procedure
26134         Needed for new restriction No_Obsolescent_Features
26136         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
26137         specified by AI-285, needed for implementation of AI-388 (adding greek
26138         pi to Ada.Numerics).
26139         Add new generic formal to scng, needed for new restriction
26140         No_Obsolescent_Features.
26142         * s-rident.ads: Add new restriction No_Obsolescent_Features.
26144         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
26145         restrictions lines.
26146         (Scan_ALI): When finding an unexpected character on an R line, raise
26147         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
26148         Ignore_Errors is True, default restrictions are set and scanning of the
26149         ALI file continues with the next line. Also, when Bad_R_Line is raised
26150         and Ignore_Errors is True, skip to the end of le line.
26152         * sem_ch10.adb: Check that explicit with's do not violate
26153         No_Dependence restrictions.
26154         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
26155         illegal context clauses containing child units of instance.
26157         * sem_prag.adb: Processing and checking for new No_Dependence
26158         restrictions.
26159         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
26160         analyze and check the External argument.
26162         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
26164 2005-01-03  Robert Dewar  <dewar@adacore.com>
26166         * atree.adb: Add a fifth component to entities
26167         This allows us to add 32 flags and four new fields
26169         * atree.ads: Add a fifth component to entities
26170         This allows us to add 32 flags and four new fields
26172         * einfo.ads, einfo.adb: Document new fields and new flags now available
26173         Add routines for printing new fields
26175         * treepr.adb: Call routines to print out additional fields if present
26177 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
26179         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
26180         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
26182         * Makefile.in: Add support to build shared Ada libraries on solaris x86
26183         Remove gpr2make, replaced by gprmake.
26184         Remove references to gnatmem and libaddr2line.
26185         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
26186         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
26187         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
26188         a-numaux-darwin.ads and a-numaux-darwin.adb
26189         Enable mlib-tgt-lynxos.adb on lynxos.
26191         * Make-lang.in: Remove rules for gpr2make.
26192         When generating sdefault.adb, do not call Relocate_Path
26193         on S3 for function Target_Name, as it is not a path.
26194         Remove references to gnatmem and libaddr2line.
26196         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
26197         files.
26199 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
26201         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
26202         address is incompatible with its base type alignment constraints when
26203         this can be decided statically.
26205 2005-01-03  Olivier Hainque  <hainque@adacore.com>
26207         * decl.c (compatible_signatures_p): New function. The intended purpose
26208         is to check if two function signatures for a call-site and a callee are
26209         compatible enough for the call to be valid. The underlying purpose is
26210         to check if a call to a mapped builtin is using the right interface.
26211         The current code actually does not check antyhing - this a placeholder
26212         for future refinements.
26213         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
26214         builtin calls for convention Intrinsic.
26216         * gigi.h (builtin_decl_for): Declare (new function).
26218         * utils.c (gnat_install_builtins): Install the target specific builtins.
26219         (builtin_decl_for): New function, provide a dummy body for now.
26221 2005-01-03  Geert Bosch  <bosch@adacore.com>
26223         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
26224         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
26225         (Pred): Implement in terms of Succ.
26227         * trans.c (convert_with_check): Reimplement conversion of float to
26228         integer.
26230 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
26231             Vincent Celier  <celier@adacore.com>
26233         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
26234         bounds can be negative, and must be declared Int, not Nat.
26236         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
26237         array is checked after using the index in the array.
26239         * makegpr.adb (Add_Switches): Check if there is a package for the
26240         processor. If there is no package, do not look for switches.
26242 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
26244         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
26245         generation of predefined stream operations (specs and bodies) should
26246         proceed. Under various restrictions these subprograms must not be
26247         generated.
26249 2005-01-03  Thomas Quinot  <quinot@adacore.com>
26251         * exp_dist.adb:
26252         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
26253         amount of PCS-specific code in RACW stubs generation.
26254         (Copy_Specification): Set Etype on copied formal parameter entities, as
26255         this information is needed for PolyORB stubs generation.
26256         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
26257         variable Dynamic_Async.
26258         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
26259         (Build_RPC_Receiver_Specification): Make generic again, as recent
26260         changes have allowed RPC receivers to have the same profile for both
26261         variants of the PCS.
26262         Reorganise RPC receiver generation to reduce differences between the
26263         structure of GARLIC and PolyORB RPC receivers.
26264         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
26265         PCS-specific.
26266         Simplify elaboration code for RCI packages.
26268         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
26269         generation to reduce differences between the structure of GARLIC and
26270         PolyORB RPC receivers.
26272         * s-stratt.adb: Fix typo in comment.
26274 2005-01-03  Thomas Quinot  <quinot@adacore.com>
26276         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
26277         copied from Make_Init_Call).
26279         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
26280         reads and assignments on a temporary variable declared with appropriate
26281         discriminants.
26283 2005-01-03  Robert Dewar  <dewar@adacore.com>
26285         * i-c.adb (To_C): Raise CE if string is null and Append_Null
26287 2005-01-03  Robert Dewar  <dewar@adacore.com>
26289         * i-cstrin.adb (Update): Do not append a null in form called with a
26290         String. This avoids unintended behavior.
26292 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
26294         PR ada/17527
26295         * init.c: Fix warnings on Free BSD section.
26297 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
26299         PR ada/16949
26300         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
26301         xsinfo.adb).
26303 2005-01-03  Vincent Celier  <celier@adacore.com>
26305         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
26306         libraries when Unique_Compile is True (-u switch).
26307         (Gnatmake): ditto.
26309 2005-01-03  Robert Dewar  <dewar@adacore.com>
26311         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
26312         upper case letter or underscore after W, as allowed by spec.
26314 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
26316         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
26317         darwin port by using proper type definitions from header files.
26318         Use SIGTERM instead of SIGABRT for SIGADAABORT.
26320 2005-01-03  Robert Dewar  <dewar@adacore.com>
26322         * par.adb: Enhance error message handling for configuration file
26323         pragmas.
26325 2005-01-03  Robert Dewar  <dewar@adacore.com>
26327         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
26328         removed during the previous update (test properly for case of dividing
26329         largest negative number by -1, which generates overflow).
26331 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
26332             Sergey Rybin  <rybin@adacore.com>
26334         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
26335         to use as the defining identifier for a formal package.
26336         (Remove_Parent): If the instance takes place within (an instance of)
26337         a sibling, preserve private declarations of common parent.
26339 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
26341         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
26342         to determine whether one of the operands is a fixed-point type for
26343         which a user-defined multiplication or division operation might be
26344         defined.
26346         * sem_res.adb (Valid_Conversion): The legality rules for conversions
26347         of access types are symmetric in Ada 2005: either designated type can
26348         be unconstrained.
26350 2005-01-03  Vincent Celier  <celier@adacore.com>
26352         * s-fileio.adb (Temp_File_Record): Change length of string component
26353         Name from L_tmpnam + 1 to max_path_len + 1.
26355 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
26357         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
26358         Self_Id.Deferral_Level = 0.
26359         (Do_Pending_Action): Move this function to the spec.
26361         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
26362         Do_Pending_Action explicitely when needed, in case we're using
26363         No_Abort restrictions.
26365         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
26366         deferral level since it will not get changed by the generated code.
26367         Keeping a default value of 1 would prevent some operations (e.g.
26368         select or delay) to proceed successfully.
26370 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
26371             Robert Dewar  <dewar@adacore.com>
26372             Cyrille Comar  <comar@adacore.com>
26374         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
26375         porting guide chapter (vms version).
26376         Revised doc title (removed "for native platforms") and subtitle.
26377         Add discussion on warning flag for obsolescent features. First we
26378         note that it applies to obsolete GNAT features, which was previously
26379         omitted. Second we contrast the behavior with that of the new
26380         Ada 2005 AI-368 restriction No_Obsolescent_Features.
26381         Preliminary rewriting of GNAT & libraries chapter in order to take
26382         into account default project locations & new project manager
26383         capabilities.
26385 2005-01-03  Robert Dewar  <dewar@adacore.com>
26387         * cstand.adb (Create_Operators): Clean up format and documentation of
26388         unary and binary operator result tables. No change in code, just
26389         reformatting and addition of comments.
26391         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
26392         sem_ch2.adb: Minor reformatting
26394         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
26395         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
26396         comments for Tree_Read and Tree_Write.
26398 2005-01-03  Pascal Obry  <obry@adacore.com>
26400         * exp_attr.ads: Minor reformatting.
26402 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
26404         * comperr.adb (Compiler_Abort): Add specialized message for GAP
26405         versions.
26407 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
26409         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
26410         whether the ancestor type is private, as may be the case with nested
26411         instantiations.
26413 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
26415         PR ada/19128
26416         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
26418 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
26420         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
26421         * utils2.c (build_unary_op): Likewise.
26423 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26425         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
26427 2004-12-19  Richard Henderson  <rth@redhat.com>
26429         * trans.c (gigi): Update gimplify_body call.
26431 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
26433         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
26435 2004-12-07  Ed Falis  <falis@adacore.com>
26437         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
26438         current task being suspended.
26440         * init.c (__gnat_clear_exception): added to reset VxWorks exception
26441         count.
26442         (__gnat_map_signal): removed test for current task being suspended.
26444 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
26446         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
26447         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
26448         targets (such as AAMP).
26450 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
26452         * atree.adb (Visit_Itype): Create a new name for the generated itype,
26453         because the back-end may otherwise treat it as a redefinition of the
26454         old symbol.
26456 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
26458         * back_end.adb (Scan_Back_End_Switches): Accept --param.
26460         * lang-specs.h: Accept --param.
26462 2004-12-07  Vincent Celier  <celier@adacore.com>
26464         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
26465         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
26466         Current_Body_Suffix => Ada_Body_Suffix).
26467         Take into account Externally_Built attribute.
26469         * clean.adb (In_Extension_Chain): Always return False when one of the
26470         parameter is No_Project.
26471         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
26472         Ada_Language_Index).
26473         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
26474         Process_Languages for procedure Parse).
26476         * gnatcmd.adb (Carg_Switches): New table.
26477         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
26478         Adapt to name changes in package Prj (Current_Spec_Suffix =>
26479         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
26481         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
26482         Header_Num and function Hash are now declared in package Prj,
26483         not Prj.Com.
26485         * prj.adb (Suffix_Of): New function.
26486         (Set (Suffix)): New procedure.
26487         (Hash): One function moved from Prj.Com
26488         (Is_Present, Language_Processing_Data_Of): New functions
26489         (Set): Two new procedures
26490         (Add_Language_Name, Display_Language_Name): New procedures
26492         * prj.ads: (Suffix_Of): New function
26493         (Set (Suffix)): New procedure
26494         Add several types and tables for multi-language support.
26495         (Header_Num): Type moved from Prj.Com
26496         (Hash): Two functions moved from Prj.Com
26497         (Is_Present, Language_Processing_Data_Of): New functions
26498         (Set): Two new procedures
26499         (Add_Language_Name, Display_Language_Name): New procedures
26500         (Naming): Component name changes:
26501         Current_Spec_Suffix => Ada_Spec_Suffix,
26502         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
26503         Impl_Suffixes, Supp_Suffixes.
26504         (Project_Data): New components: Externally_Built, Supp_Languages,
26505         First_Language_Processing, Supp_Language_Processing, Default_Linker,
26506         Default_Linker_Path.
26508         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
26509         new package Language_Processing with its attributes (Compiler_Driver,
26510         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
26511         Binder_Driver, Default_Linker).
26513         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
26514         (Header_Num): Type moved to package Prj
26516         * prj-env.adb: Adapt to name changes in package Prj
26517         (Current_Spec_Suffix => Ada_Spec_Suffix,
26518         Current_Body_Suffix => Ada_Body_Suffix).
26520         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
26521         default to the project path, except the "-" is one of the directories
26522         in env var ADA_PROJECT_PATH.
26523         (Current_Project_Path): Global variable, replacing Project_Path
26524         that was in the body of Prj.Part.
26525         (Project_Path): New function
26526         (Set_Project_Path): New procedure
26527         Initialize Current_Project_Path during elaboration of the package
26528         Remove dependency on Prj.Com, no longer needed
26530         * prj-ext.ads (Project_Path): New function
26531         (Set_Project_Path): New procedure
26533         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
26534         suffix is defined for language <lang>.
26535         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
26536         accessing directly the components of Naming.
26537         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
26538         Reorganise of this package.
26539         Break procedure Check in several procedures.
26541         * prj-nmsc.ads: Replace all procedures (Ada_Check,
26542         Other_Languages_Check and Language_Independent_Check) with a single
26543         procedure Check.
26545         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
26546         Process_Languages, no longer needed.
26548         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
26549         Current_Project_Path.
26550         Remove elaboration code, moved to the body of Prj.Ext
26551         Use new function Prj.Ext.Project_Path instead of old variable
26552         Project_Path.
26553         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
26554         When comparing with project paths on the stack, first put the resolved
26555         path in canonical case.
26556         (Parse_Single_Project): Set the path name of the project file in the
26557         tree to the normalized path.
26559         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
26560         parameter Process_Languages, no longer needed.
26561         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
26562         Other_Languages_Check.
26564         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
26565         to store the resolved canonical path of the project file.
26566         Remove dependency to Prj.Com, no longer needed
26568         * prj-util.adb: Adapt to name changes in package Prj
26569         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
26570         Ada_Body_Suffix).
26572         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
26573         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
26574         Externally_Built, Include_Option, Language_Processing.
26576         * makegpr.adb: Numerous changes due to changes in packages
26577         Prj and Prj.Nmsc.
26579         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
26580         default to the project path, except whe "-" is one of the directories
26581         in env var ADA_PROJECT_PATH.
26582         (Gnatls): In verbose mode, add the new section "Project Search Path:"
26584 2004-12-07  Robert Dewar  <dewar@adacore.com>
26586         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
26588         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
26589         set -gnatR3m mode.
26591         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
26592         flag. No longer needed now that we handle this in gnat1drv.adb.
26594         * repinfo.ads: Minor reformatting
26596 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26597             Olivier Hainque  <hainque@adacore.com>
26598             Eric Botcazou  <ebotcazou@adacore.com>
26600         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
26601         TYPE_SIZE_UNIT of result type if SIZE is not specified.
26602         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
26603         of a bitfield, which we know is useless and causes trouble because of
26604         alignment implications.
26606         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
26607         BSS sections.
26608         (process_attributes): Clear DECL_COMMON again when a section attribute
26609         is present.
26610         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
26611         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
26612         (create_field_decl): Special case ADDRESSABLE negative to mean
26613         "no bitfield creation", to be used by make_aligning_type. Don't
26614         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
26615         fields claimed addressable still have to be bitfields. Use
26616         value_factor_p instead of a raw binop construction to check for the
26617         position's alignment.
26619 2004-12-07  Geert Bosch  <bosch@adacore.com>
26621         * eval_fat.adb: Revert previous change.
26623 2004-12-07  Thomas Quinot  <quinot@adacore.com>
26624             Ed Schonberg  <schonberg@adacore.com>
26626         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
26627         with an implicit dereference as its prefix, use
26628         Insert_Explicit_Dereference instead of merely rewriting the prefix into
26629         an explicit dereference. This ensures that a reference to the original
26630         prefix is generated, if appropriate.
26632         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
26633         dereference is rewritten to an explicit one, generate a reference to
26634         the entity denoted by its prefix using the original prefix node, so
26635         the dereference can be properly recorded as a read of the denoted
26636         access value, if appropriate.
26638         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
26639         emitting 'assigned but never read' warning on a variable on the basis
26640         that it has an access type.
26641         (Check_References): Emit unreferenced warning when the scope is a
26642         subprogram body.
26644 2004-12-07  Robert Dewar  <dewar@adacore.com>
26645             Ed Schonberg  <schonberg@adacore.com>
26647         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
26648         intrinsic
26650         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
26651         leaving call unchanged.
26652         This deals with the case where the pragma Import specified
26653         an external name, to be handled by the back end.
26655         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
26656         subprogram which is Imported with convention Intrinsic if an
26657         External_Name argument is specified.
26658         (Process_Import_Or_Interface): Properly diagnose link name argument.
26659         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
26660         with Sem_Ch6.Cannot_Inline.
26661         (Process_Inline): Provide separate warning for inapplicable inline
26662         pragma.
26663         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
26664         treatment is uniform on different targets.
26666 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
26668         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
26669         construct is rewritten, preserve end label to permit source navigation.
26671 2004-12-07  Thomas Quinot  <quinot@adacore.com>
26673         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
26674         Specific_Build_Stub_Target): New subprograms.
26675         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
26676         the PCS implementation used, using the above PCS-customized subprograms.
26677         Minor reformatting.
26678         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
26679         for generation of DSA code targeted to the PolyORB PCS.
26680         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
26681         implementation of the partition communication subsystem in ancillary
26682         subprograms.
26683         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
26684         PolyORB_Support.Build_Stub_Type): New subrograms containing the
26685         PCS-specific part of Add_Stub_Type.
26686         (Insert_Partition_Check): Use runtime library function to perform
26687         E.4(19) check.
26689         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
26690         (RE_Same_Partition): New entity, from s-parint.
26692         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
26694 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
26696         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
26697         Output the copyright message on a separate line from the version
26698         message.
26700 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
26702         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
26703         compile-time warning.
26705 2004-12-07  Robert Dewar  <dewar@adacore.com>
26707         * g-regpat.adb: (Match): Change a misuse of or to or else
26709 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
26711         * lib-xref.adb:
26712         (Generate_Reference): Handle properly a reference to an entry formal,
26713          when an accept statement has a pragma Unreferenced for it.
26715         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
26716         and the Has_Pragma_Unreferenced flag for each formal before analyzing
26717         the body, to ensure that warnings are properly emitted for each accept
26718         statement of a given task entry.
26720 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
26722         * Makefile.in: Add support for foreign threads on VMS.
26724 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26726         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
26727         Remove.
26728         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
26730         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
26732         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
26733         exception.
26734         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
26736 2004-12-07  Robert Dewar  <dewar@adacore.com>
26738         * nlists.adb (Prepend_Debug): Remove parameters and nest within
26739         Prepend.
26740         (Remove_Next_Debug): Same fix
26742         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
26743         maintain back pointers now, though we did not used to, and comments
26744         were out of date).
26745         (Prepend): Remove pragma Inline.
26746         (Remove_Next): Same cleanup
26748 2004-12-07  Thomas Quinot  <quinot@adacore.com>
26750         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
26751         used to record an implicit dereference as a read operation on its
26752         prefix when operating under -gnatc. Necessary to avoid spurious
26753         'variable assigned but never read' warnings in that mode.
26754         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
26755         is a non-overloaded implicit dereference, call the above subprogram to
26756         ensure proper recording of references.
26758 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
26760         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
26761         to be resolved later as part of Analyze_Iteration_Scheme's call to
26762         Make_Index.
26764 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
26766         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
26767         prefix is not a scalar type, place error message on prefix, not on
26768         type entity.
26770 2004-12-07  Bernard Banner  <banner@adacore.com>
26772         * vxaddr2line.adb: Add support for x86 vxworks
26774 2004-12-07  Thomas Quinot  <quinot@adacore.com>
26776         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
26777         documentation of the behaviour of these functions when passed an IP
26778         address that has no record in the system hosts database and no reverse
26779         record in the DNS.
26781         * cstand.adb, a-tags.ads: Fix typos in comment.
26783 2004-12-07  Robert Dewar  <dewar@adacore.com>
26785         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
26786         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
26787         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
26788         s-poosiz.ads: Minor reformatting
26790         * make.adb: Minor reformatting
26791         Add some ??? comments asking for more comments
26793         * s-poosiz.adb: Minor reformatting
26794         Add comments on alignment requirement
26796         * sinfo.ads: Remove obsolete comment and fix typo.
26798 2004-12-07  Vincent Celier  <celier@adacore.com>
26799             Sergey Rybin  <rybin@adacore.com>
26801         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
26802         Files" with the new tool and package names.
26803         Reformatting to suppress most of the warnings for line too long
26804         Document the new section "Project Search Path:" in the output of
26805         gnatls -v.
26806         Add gnatmetric section
26808 2004-12-07  Vincent Celier  <celier@adacore.com>
26810         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
26811         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
26812         and -eit to -ept. Added qualifier
26813         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
26815 2004-11-27  Andreas Schwab  <schwab@suse.de>
26817         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
26819 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
26821         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
26822         internal implementation unit GNAT.Sockets.Thin,
26823         as their usage for sockets is non-portable (using the read and write
26824         functions from the system runtime library is fine on UNIX but won't
26825         work under Windows).
26827         * mingw32.h: Update copyright notice.
26829 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
26831         * ada-tree.h: Minor reformatting of previous change to avoid lines
26832         longer than 79 characters.
26834 2004-11-25  Olivier Hainque  <hainque@adacore.com>
26836         * tb-gcc.c: GCC infrastructure based implementation of
26837         __gnat_backtrace.
26839 2004-11-24  Steven Bosscher  <stevenb@suse.de>
26841         * misc.c (gnat_post_options): Don't clear
26842         flag_inline_functions.
26844 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
26846         PR ada/17986
26847         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
26848         tree.
26850 2004-11-21  Andreas Jaeger  <aj@suse.de>
26852         * stylesw.adb: Change Style_Check_Subprogram_Order to
26853         Style_Check_Order_Subprograms.
26855 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
26857         * adaint.h, adaint.c
26858         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
26859         to avoid warnings.
26860         Add also a cast to kill another warning.
26861         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
26862         parameter with the priority class of the parent process instead of
26863         always using the NORMAL_PRIORITY_CLASS.
26864         (__gnat_dup): New function.
26865         (__gnat_dup2): New function.
26866         (__gnat_is_symbolic_link): Enable the effective body of this
26867         function when __APPLE__ is defined.
26869         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
26870         Update comments.
26872 2004-11-18  Olivier Hainque  <hainque@adacore.com>
26874         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
26875         address of which may be used to represent "others" and "all others"
26876         choices in exception tables, instead of the current harcoded
26877         (void *)0 and (void *)1.
26878         (Setup_Exception): Do nothing in the GNAT SJLJ case.
26880         * gigi.h (others_decl, all_others_decl): New decls representing the
26881         new Others_Value and All_Others_Value objects.
26882         (struct attrib): Rename "arg" component as "args", since GCC expects a
26883         list of arguments in there.
26885         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
26886         corresponding objects exported by a-exexpr, instead of hardcoded dummy
26887         addresses.
26889         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
26890         others_decl and all_others_decl instead of hardcoded dummy addresses
26891         to represent "others" and "all others" choices, which is cleaner and
26892         more flexible with respect to the possible eh pointer encoding policies.
26894         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
26895         (process_attributes): Account for the naming change of the "args"
26896         attribute list entry component.
26898         * decl.c (build_attr_list): Rename into prepend_attributes to allow
26899         cumulating attributes for different entities into a single list.
26900         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
26901         attributes for the current entity and propagate first subtype
26902         attributes to other subtypes.
26903         <E_Procedure>: Attribute arguments are attr->args and not
26904         attr->arg any more.
26905         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
26906         argument provided, as this is what GCC expects. Use NULL_TREE instead
26907         of 0 for trees.
26909 2004-11-18  Robert Dewar  <dewar@adacore.com>
26911         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
26912         Minor reformatting througout (including new function specs)
26913         Add ??? comments asking for clarification.
26915 2004-11-18  Thomas Quinot  <quinot@adacore.com>
26917         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
26918         incomplete duplicate implementation of this subprogram from butil.
26920 2004-11-18  Thomas Quinot  <quinot@adacore.com>
26922         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
26923         procedures factors the common processing for building an RPC receiver
26924         for an RCI package or an RACW type.
26925         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
26926         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
26927         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
26928         in use.
26929         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
26930         Add_RACW_Features.
26931         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
26932         Add_RAST_Features.
26933         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
26934         distribution subprogram identifiers that are either subprogram numbers
26935         or strings.
26936         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
26937         string distribution identifiers assigned to a given subprogram.
26938         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
26939         (Add_RAS_Dereference_TSS): Add comments.
26940         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
26941         is not referenced yet because it will be used by the PolyORB DSA
26942         implementation.
26943         (Insert_Partition_Check): Remove fossile code.
26944         (First_RCI_Subprogram_Id): Document this constant.
26945         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
26946         RAS_Access TSS.
26947         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
26948         replaced with calls to Get_Library_Unit_Name_String. Previously there
26949         were several instances of the same code in different locations in the
26950         compiler; this checkin completes the replacement of all of these
26951         instances with calls to a common subprogram.
26952         Minor reformatting.
26954         * sem_dist.adb: Remove comment noting that RPC receiver generation
26955         should be disabled for RACWs that implement RASs.
26956         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
26958         * sem_util.ads, sem_util.adb (Has_Stream): New function
26959         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
26960         qualified name of a library unit into the name buffer.
26961         (Note_Possible_Modification): Generate a reference only
26962         if the context comes from source.
26964         * snames.ads (PCS_Names): New subtype corresponding to names of
26965         supported implementations of the Partition Communication Subsystem
26966         (PCS) (i.e. the runtime library support modules for the distributed
26967         systems annex).
26969 2004-11-18  Robert Dewar  <dewar@adacore.com>
26970             Ed Schonberg  <schonberg@adacore.com>
26972         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
26973         (Has_Rep_Pragma): New function
26974         (Has_Attribute_Definition_Clause): New function
26975         (Record_Rep_Pragma): Moved here from sem_ch13.adb
26976         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
26978         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
26980         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
26981         (Expand_Pragma_Psect_Object): New procedure
26982         These procedures contain the revised and cleaned up processing for
26983         these two pragmas. This processing was formerly in Sem_Prag, but
26984         is more appropriately moved here. The cleanup involves making sure
26985         that the pragmas are properly attached to the tree, and that no
26986         nodes are improperly shared.
26988         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
26989         pragmas to Exp_Prag, which is more appropriate.
26990         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
26991         check for duplicates Remove use of Is_Psected flag, no longer needed.
26992         Use new Make_String_Literal function with string.
26994         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
26995         that are functions return universal values, that have to be converted
26996         to the context type.
26997         Use new Make_String_Literal function with string.
26998         (Get_Stream_Convert_Pragma): New function, replaces the use of
26999         Get_Rep_Pragma, which had to be kludged to work in this case.
27001         * freeze.adb: Use new Has_Rep_Pragma function
27003         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
27004         function with string.
27005         Use new Has_Rep_Pragma function.
27007         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
27008         string argument.
27010 2004-11-18  Robert Dewar  <dewar@adacore.com>
27012         * errout.ads, errout.adb: (First_Sloc): New function
27014         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
27015         check (-gnatyx) instead of being included as a redundant construct
27016         warning.
27018         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
27019         Style_Check_Order_Subprograms.
27021         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
27022         stylesw.adb: Add Style_Check_Xtra_Parens
27024         * usage.adb: Add line for -gnatyx (check extra parens)
27026         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
27028 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
27029             Robert Dewar  <dewar@adacore.com>
27031         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
27032         discriminant of a constrained subtype, analyze the copy of the
27033         corresponding constraint, because in some cases it may be only
27034         partially analyzed.
27035         Removes long-lived ??? comments.
27037         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
27038         handled controlled or secondary-stack expressions within the
27039         iteration_scheme of a loop.
27041         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
27042         bounds that may contain functions calls, to prevent memory leaks when
27043         the bound contains a call to a function that uses the secondary stack.
27044         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
27045         generate temporaries for loop bounds that might contain function calls
27046         that require secondary stack and/or finalization actions.
27048         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
27049         selected component and the selector is overloadable (not just a
27050         function) treat as function call, Analyze_Call will disambiguate if
27051         necessary.
27052         (Analyze_Selected_Component): Do not generate an actual subtype for the
27053         selected component if expansion is disabled. The actual subtype is only
27054         needed for constraint checks.
27055         (Analyze_Allocator): If restriction No_Streams is set, then do
27056         not permit objects to be declared of a stream type, or of a
27057         composite type containing a stream.
27059         * restrict.ads: Remove the a-stream entry from Unit_Array, since
27060         No_Streams no longer prohibits with'ing this package.
27062         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
27063         discriminants, but the parent base has unknown discriminants, there is
27064         no discriminant constraint to inherit. Such a discrepancy can arise
27065         when the actual for a formal type with unknown discriminants is a
27066         similar private type whose full view has discriminants.
27067         (Analyze_Object_Declaration): If restriction No_Streams is set, then
27068         do not permit objects to be declared of a stream type, or of a
27069         composite type containing a stream.
27071 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
27073         * exp_dbug.ads: Update documentation to reflect simpler encoding for
27074         protected operations.
27076         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
27077         generated name, it complicates decoding in gdb and hinders debugging
27078         of protected operations.
27079         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
27080         flag for the protected entry barrier function.
27081         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
27082         flag for the protected entry function.
27084 2004-11-18  Nicolas Setton  <setton@adacore.com>
27086         * expect.c: Define __unix__ when __APPLE__ is defined.
27088         * Makefile.in: Inform the value of the variable GMEM_LIB in the
27089         Darwin-specific section.
27091         * lang-specs.h: Change the placement of the %1 marker.
27092         Works around the fact that gcc adds -fPIC by default under Darwin.
27094 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
27096         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
27097         type of the object with the packed array type, set the Analyzed flag
27098         on the object if it is an entity or simple indexed component, to avoid
27099         spurious type errors.
27101 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
27103         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
27104         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
27105         separate line from the version message.
27107 2004-11-18  Ed Falis  <falis@adacore.com>
27109         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
27110         vthreads.
27111         (init_float): Eliminate initialization of floating point status for
27112         AE653. The instructions have no effect for vThreads.
27114 2004-11-18  Vincent Celier  <celier@adacore.com>
27116         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
27117         gnatbind is invoked with -shared.
27119 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
27121         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
27122         for Detect_Blocking which is redundant with the check done within the
27123         procedure Protected_Single_Entry_Call.
27124         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
27125         Detect_Blocking which is redundant with the check done within the
27126         procedure Protected_Single_Entry_Call.
27128 2004-11-18  Vincent Celier  <celier@adacore.com>
27130         * makegpr.adb (Compile): Put the compiling switches (in package
27131         Compiler and on the command line) immediately after "-c", instead of
27132         at the end of the command line invocation of the compiler, when
27133         compiling a non-Ada file.
27134         (Build_Global_Archive): When there is no need to rebuild the archive,
27135         set Global_Archive_Exists, so that the archive is passed to the linker
27136         if one is needed.
27138 2004-11-18  Robert Dewar  <dewar@adacore.com>
27139             Sergey Rybin  <rybin@adacore.com>
27141         * gnat_ugn.texi:
27142         Remove extra paren check from list of checks for redundant constructs
27143         Add documentation of new -gnatyx style check (check extra parens)
27144         Remove paragraph about gnatelim debug options.
27146         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
27147         objects rather than forbidding dependencies on the package Ada.Streams.
27149         * sinfo.ads: Add ??? note that we should document pragmas passed to
27150         back end.
27152         * g-expect.ads: Fix a few typos in the comments.
27154 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
27156         * misc.c (gnat_handle_option): Use %< and %> for quoting in
27157         warning message.
27159 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
27161         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
27163 2004-11-07  Andreas Schwab  <schwab@suse.de>
27165         * Makefile.in (install-gnatlib): Remove spurious hyphen.
27167 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
27169         PR ada/18228
27170         * Makefile.in (darwin): Set soext to .dylib.
27172 2004-10-26  Vincent Celier  <celier@gnat.com>
27173             Thomas Quinot   <quinot@act-europe.fr>
27175         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
27176         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
27177         there is no use of GNAT.Sockets.Constants.
27178         Remove remaining pragma Import for C_Write
27179         Remove C_Read and C_Write from internal implementation unit
27180         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
27181         the read and write functions from the system runtime library is fine
27182         on UNIX but won't work under Windows).
27184         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
27185         (Check_Selector): Use C_Recv instead of C_Read.
27186         Selectors are the GNAT.Sockets abstraction to perform a select()
27187         call on a set of descriptors. To allow abortion of an ongoing
27188         select operation, some data is written to a dedicated socket that
27189         is always monitored.
27190         Under Windows, the write and read library functions cannot operate
27191         on sockets, so we need to use send and recv instead, which is portable
27192         across all supported platforms.
27194         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
27195         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
27196         (using the read and write functions from the system runtime library is
27197         fine on UNIX but won't work under Windows).
27199 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
27201         * mlib-tgt-darwin.adb: New file.
27203         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27204         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27205         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27206         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
27207         subprogram body.
27209         * Makefile.in: Add support for building shared libraries under Darwin.
27210         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
27211         the low level EH init subprogram to be called from __gnat_initialize.
27213         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
27214         indicates which options to pass to the archive indexer.
27216         * mlib-utl.adb: Add support for calling ranlib with additional
27217         options. This is needed for instance under Mac OS X.
27218         (Ranlib_Options): New global variable, used to store the potential
27219         options to pass to ranlib.
27220         (Ar): Use Ranlib_Options when spawning ranlib.
27221         (Initialize): Set the value of ranlib option.
27223 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
27225         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
27226         instead of 8K, to reflect the real potential needs for stack-checking
27227         in the ZCX case.
27229 2004-10-26  Pascal Obry  <obry@gnat.com>
27231         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
27233         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
27234         Windows only the initial thread stack size can be set so it is good to
27235         start we a low stack size.
27236         The OS will adjust the size as needed.
27238 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
27239             Nicolas Setton  <setton@act-europe.fr>
27241         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
27242         "__unix__" instead of "unix".
27243         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
27244         sections were just mistakenly ignored. The former is
27245         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
27246         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
27247         of hpux. This prevents an unwanted definition of the symbol
27248         convert_addresses in adaint.o.
27250 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
27252         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
27253         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
27255 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
27257         * a-filico.ads, a-filico.adb: fix incorrect header.
27259 2004-10-26  Javier Miranda  <miranda@gnat.com>
27261         * a-ststio.ads: Fix typo in identifier
27263 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
27265         * sem_ch4.adb: Minor reformatting.
27267 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27269         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
27270         enabled, check the result of unary and binary operations when the
27271         expression is the right-hand side of an assignment.
27273 2004-10-26  Vincent Celier  <celier@gnat.com>
27275         * clean.adb (Delete): Do not output warnings when in quiet output and
27276         not in verbose mode.
27277         (Force_Deletions): New Boolean flag, defaulted to False
27278         (Delete): Only delete a file if it is writable, and when
27279         Force_Deletions is True.
27280         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
27281         (Usage): Line for new switch -f
27282         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
27283         own.
27285 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
27287         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
27288         JM type only if its size matches that of the wrapper.  When a size is
27289         prescribed and the field is not aliased, remove the wrapper of a JM
27290         type only if the size is not greater than that of the packed array.
27291         (gnat_to_gnu_entity): Change the extension of packed array wrappers
27292         from LJM to JM.
27294 2004-10-26  Geert Bosch  <bosch@gnat.com>
27296         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
27297         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
27298         (Pred): Implement in terms of Succ.
27300 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27302         * exp_aggr.adb (Safe_Component): An aggregate component that is an
27303         unchecked conversion is safe for in-place use if the expression of the
27304         conversion is safe.
27305         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
27306         be expandable in place even if the aggregate does not come from source.
27307         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
27308         designated object of an allocator in place, rather than building it
27309         first on the stack. The previous scheme forces a full copy of the array,
27310         and may be altogether unsusable if the size of the array is too large
27311         for stack allocation.
27313 2004-10-26  Robert Dewar  <dewar@gnat.com>
27315         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
27316         compares if the component is atomic.
27318         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
27319         array assignment if the component type is atomic.
27321 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27322             Eric Botcazou  <ebotcazou@act-europe.fr>
27324         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
27325         is aliased and is a by_reference type, do not pass by copy.
27326         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
27327         detect whether the call is in the right side of an assignment or
27328         the expression of an object declaration.  Recurse on component
27329         association within aggregates.
27330         Call it in the condition that determines whether the temporary is
27331         necessary for correct stack-checking.
27333 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
27335         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
27336         RACW_Type, used in the PolyORB version.
27337         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
27338         version and the GARLIC version.
27340         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
27341         Rename RCI_Info to RCI_Locator for better consistency between the
27342         GARLIC and PolyORB versions of the distributed systems annex.
27343         (DSA_Implementation_Name): This enumeration lists the possible
27344         implementations of the Partition Communication Subsystem for the
27345         Distributed Systems Annex (DSA). The three available implementations
27346         are the dummy stub implementation (No_DSA), and two versions based on
27347         two different distribution runtime libraries: GARLIC and PolyORB. Both
27348         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
27349         technology.
27350         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
27351         that organization.
27353         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
27354         between the GARLIC and PolyORB versions of the distributed systems
27355         annex.
27356         Remove RE_Unbounded_Reclaim_Pool since it is unused.
27358 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
27360         * gnat1drv.adb: Suppress calling the back end when
27361         Frontend_Layout_On_Target is true.
27363 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
27365         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
27366         Set_Read_Only): New subprograms.
27367         These new routines allow the user to set or unset the Owner execute
27368         and Owner write permission flags on a file.
27370         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
27371         GNAT.OS_Lib.Set_Executable instead of rolling our own.
27373 2004-10-26  Matthew Gingell  <gingell@gnat.com>
27375         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
27377 2004-10-26  Pascal Obry  <obry@gnat.com>
27379         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
27380         memory before the faulting page we properly test the process read
27381         access for this address using appropriate Win32 routine.
27382         (HPUX sections): guard with "__hpux__" instead of "hpux".
27384 2004-10-26  Robert Dewar  <dewar@gnat.com>
27386         * lib-xref.adb (Generate_Reference): Don't complain about reference to
27387         entry parameter if pragma Unreferenced set, since we do not properly
27388         handle the case of multiple parameters.
27390 2004-10-26  Vincent Celier  <celier@gnat.com>
27392         * prj-env.adb: (Contains_ALI_Files): New Boolean function
27393         (Ada_Objects_Path.Add): For a library project, add to the object path
27394         the library directory only if there is no object directory or if the
27395         library directory contains ALI files.
27396         (Set_Ada_Paths.Add.Recursive_Add): Ditto
27398 2004-10-26  Vincent Celier  <celier@gnat.com>
27400         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
27401         extension of library projects.
27403         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
27404         path defaults to ".:<prefix>/lib/gnat".
27405         (Parse): For an extending all project, allow direct import of a project
27406         that is virtually extended.
27408         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
27409         the specified name is directly imported, return its ID. Otherwise, if
27410         an extension of this project is imported, return the ID of the
27411         extension.
27413 2004-10-26  Robert Dewar  <dewar@gnat.com>
27415         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
27416         (Sub3): New procedure, used by Scaled_Divide
27417         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
27418         correct more than one instance of failure to propagate carries
27419         correctly.
27420         (Double_Divide): Handle overflow case of largest negative number
27421         divided by minus one.
27423         * s-arit64.ads (Double_Divide): Document that overflow can occur in
27424         the case of a quotient value out of range.
27425         Fix comments.
27427 2004-10-26  Robert Dewar  <dewar@gnat.com>
27429         * s-bitops.adb (Bit_Eq): Remove redundant check.
27431         * s-bitops.ads: Minor comment updates
27432         Change some occurrences of Address to System.Address
27434         * s-carsi8.ads: Fix minor cut-and-paste error in comments
27436 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27438         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
27439         accessibility check to prefix that is a protected operation.
27441 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27443         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
27444         empty, post message on stub.
27446 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27447             Javier Miranda  <miranda@gnat.com>
27449         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
27450         current instance appears within a unit that is directly in the context
27451         of the main unit.
27452         Used to determine whether the body of the instance should be analyzed
27453         immediately after its spec, to make its subprogram bodies available
27454         for front-end inlining.
27455         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
27456         constraint is not allowed on the component type (AARM 12.5.3(3))
27458 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
27460         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
27461         'Storage_Pool): enhance, document & limit detection of non-sharable
27462         internal pools.
27464         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
27466         * s-pooglo.ads: Add more documentation now that this pool is properly
27467         documented.
27469 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27471         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
27472         or protected type with discriminants, do not constrain the
27473         corresponding record type if the subtype declaration has no
27474         discriminant constraints. This can be the case in source code, or in
27475         the subtype declaration created to rename an actual type within an
27476         instantiation.
27478 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27480         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
27481         different kind of stub (possibly wrong name for file), do not check
27482         for conformance.
27483         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
27484         includes call to some function that returns an unconstrained type, do
27485         not inline.
27487 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27489         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
27490         appear in the code for the main unit. Dependencies among units in the
27491         context of the main unit are established when those other units are
27492         compiled. Otherwise spurious elaboration constraints can generate
27493         incorrect elaboration circularities.
27495 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
27496             Ed Schonberg   <schonberg@gnat.com>
27498         * sem_util.adb (Is_Aliased_View): Defend against the case where this
27499         subprogram is called with a parameter that is not an object name. This
27500         situation arises for some cases of illegal code, which is diagnosed
27501         later, and in this case it is wrong to call Is_Aliased, as that might
27502         cause a compiler crash.
27503         (Explain_Limited_Type): Refine previous fix to include
27504         inherited components of derived types, to provide complete information.
27506         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
27507         is the prival for a protected object.
27508         It is necessary to mark this entity as a variable, in addition to
27509         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
27510         modified to avoid checking the Aliased flag on entities that are not
27511         objects. (Checking that flag for non-objects is erroneous and could
27512         lead to a compiler crash).
27514 2004-10-26  Robert Dewar  <dewar@gnat.com>
27516         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
27517         X_Frac = 0.5, then we know that the number X must be positive.
27518         (Succ): Remove the same redundant test, and also fix the primary test
27519         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
27520         Minor reformatting
27521         (Decompose): Add fuller comments to spec
27523 2004-10-26  Pascal Obry  <obry@gnat.com>
27525         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
27526         validity (process must have read access). Set to 0 in all other cases.
27527         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
27528         violation on Win32.
27529         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
27530         segmentation violation.
27532 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
27534         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
27535         whose type is a constructed subtype of an aliased object with an
27536         unconstrained nominal subtype, convert the actual to the constructed
27537         subtype before taking its address.
27539 2004-10-26  Vincent Celier  <celier@gnat.com>
27541         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
27542         (Is_Path_Name_Case_Sensitive): New function
27544         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
27545         (Base_Name, Simple_Name, Current_Directory, Compose,
27546         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
27547         the result.
27549 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
27550             Vasiliy Fofanov  <fofanov@act-europe.fr>
27551             Vincent Celier   <celier@gnat.com>
27553         * gnat_ugn.texi: Generalize "finding memory problems" section into a
27554         "memory management issues" section and document some of the useful
27555         memory pools provided as part of the GNAT library.
27556         Remove "virtual" from declaration of A::method2 in
27557         the simple example of Ada/C++ mixed system.
27558         Library Projects may be virtually extended: their virtual extensions
27559         are not Library Projects.
27560         Added section on extending project hierarchies.
27562 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
27564         * adaint.c (__gnat_get_libraries_from_registry): Cast value
27565         to LPBYTE.
27566         (__gnat_portable_spawn): Remove const.
27568         * mingw32.h (MAXPATHLEN): Check for previous definition.
27570 2004-10-17  Matthias Klose  <doko@debian.org>
27572         * gnatvsn.ads: Set gnat library version to 4.0.
27574 2004-10-05  Vincent Celier  <celier@gnat.com>
27576         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
27578 2004-10-04  Laurent Guerby  <laurent@guerby.net>
27580         PR ada/15156
27581         * Makefile.in: Define and use RANLIB_FLAGS.
27583 2004-10-04  Pascal Obry  <obry@gnat.com>
27585         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
27586         other x86 platforms).
27588 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
27590         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
27591         in general and triggers stack alignment adjustment for thread entry
27592         points on targets where this is necessary.
27594 2004-10-04  Bernard Banner  <banner@gnat.com>
27596         PR ada/13897
27597         * Makefile.in: Add section for powerpc linux
27598         Add variant i-vxwork-x86.ads
27600         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
27602 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
27604         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
27605         table registration calls when need be. Ensures no reference to the crt
27606         ctors symbol are issued in the SJLJ case, which avoids possible
27607         undefined symbol errors in the case of modules to be statically linked
27608         with the kernel.
27610 2004-10-04  Javier Miranda  <miranda@gnat.com>
27612         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
27613         in-line the code corresponding to subprogram Analyze_Actuals. In
27614         addition, analyze the actuals only in case of subprogram call.
27616 2004-10-04  Ed Falis  <falis@gnat.com>
27618         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
27620 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
27622         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
27623         in the documentation.
27625 2004-10-04  Robert Dewar  <dewar@gnat.com>
27627         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
27628         IF and CASE.
27629         (Analyze_Block_Statement): Add circuitry to detect following dead code
27630         (Check_Unreachable_Code): Handle case of block exit
27632 2004-10-04  Robert Dewar  <dewar@gnat.com>
27634         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
27635         (XMatchD): Avoid warning for Logic_Error call
27637 2004-10-04  Robert Dewar  <dewar@gnat.com>
27639         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
27640         consider expressions buried within a procedure actual to be an actual.
27641         This caused some blowups with uses of packed slices within a procedure
27642         actual.
27644 2004-10-04  Robert Dewar  <dewar@gnat.com>
27646         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
27647         longer need to be initialized to zero.
27648         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
27649         initialized to zero.
27651         * checks.adb (Expr_Known_Valid): Packed arrays are now always
27652         considered valid, even if the representation is modular. That's correct
27653         now that we no longer initialize packed modular arrays to zero.
27655         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
27656         suffixes. These are now documented as the only cases in which the
27657         debugger ignores outer records.
27658         Previously, the spec allowed arbitrary suffixes for this purpose.
27659         Change name of LJM to JM for packed array pad records
27660         Create separate section on packed array handling, and add a whole new
27661         set of comments to this section describing the situation with packed
27662         modular types and justification requirements depending on endianness.
27664 2004-10-04  Robert Dewar  <dewar@gnat.com>
27666         * a-except.adb: Add a comment for last change
27668         * einfo.ads: Minor spelling correction in comment
27670         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
27672         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
27673         messages.
27675         * sem_util.ads: Minor comment update
27677 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
27679         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
27680         Inline_Always when in Configurable_Run_Time mode.
27682         * sem_prag.adb (Process_Convention): If entity is an inherited
27683         subprogram, apply convention to parent subprogram if in same scope.
27684         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
27685         when in Configurable_Run_Time mode.
27687 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
27689         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
27690         class_wide type after component list has been inherited.
27692 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
27694         * sem_ch12.adb (Check_Generic_Actuals): New predicate
27695         Denotes_Previous_Actual, to handle properly the case of a private
27696         actual that is also the component type of a subsequent array actual.
27697         The visibility status of the first actual is not affected when the
27698         second is installed.
27699         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
27700         make fully recursive the treatment of formals of packages declared
27701         with a box.
27702         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
27703         the above on exit from an instantiation.
27704         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
27705         current instantiation which is now complete.
27706         (Analyze_Package_Instantiation): No instantiated body is needed if the
27707         main unit is generic. Efficient, and avoid anomalies when a instance
27708         appears in a package accessed through rtsfind.
27710 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
27712         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
27713         do not generate a declaration for a temporary if the call is part of a
27714         library-level instantiation.
27716 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
27718         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
27719         searching for a limited component to flag.
27721         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
27722         expansion of Input, to account for the fact that the implicit call
27723         generated by the attribute reference must freeze the user-defined
27724         stream subprogram. This is only relevant to 'Input, because it can
27725         appear in an object declaration, prior to the body of the subprogram.
27727         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
27728         expansion can proceed and further errors uncovered.
27729         (Minor clean up): Fix cases of using | instead of \ for continuation
27730         messages.
27732 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27734         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
27736         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
27737         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
27738         Use gcc_assert and gcc_unreachable.
27740         * decl.c (gnat_to_gnu_entity, case object): Check and process a
27741         specified alignment before validating size.
27742         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
27743         stripped-down declaration for the type of the inner field when making
27744         a JM type.
27746         * utils.c (finish_record_type): Do not compute the size in units
27747         incrementally. Instead compute it once for the rep clause case.
27748         Use gcc_assert and gcc_unreachable.
27750 2004-10-04  Vincent Celier  <celier@gnat.com>
27752         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
27753         in file name.
27754         (Is_Valid_Path_Name): Take '/' as a directory separator.
27756 2004-10-04  Vincent Celier  <celier@gnat.com>
27758         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
27759         (Extended_Project) only if Extended_Project is defined, to avoid
27760         assertion error.
27761         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
27762         resolved path.
27763         (Parse_Single_Project): Ditto.
27765         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
27766         Add_To_Project_Path for virtual projects.
27768 2004-10-04  Vincent Celier  <celier@gnat.com>
27770         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27771         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27772         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27773         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
27774         parameter Options_2.
27776         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
27777         Build_Dynamic_Library with an empty Options_2.
27779         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
27780         default anymore.
27782         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
27783         directory separator, if any.
27784         (Gprmake): Do not allow mains on the command line for library projects.
27785         Do not attempt to link when the project is a library project.
27786         (Library_Opts): New table to store Library_Options.
27787         (Build_Library): If Library_Options is specified, pass these options
27788         when building a shared library.
27790 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
27792         * s-tposen.adb (Service_Entry): The object must be always unlocked at
27793         the end of this procedure now that the unlock operation was inserted
27794         by the expander.
27796 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
27798         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
27799         corresponding to the Preallocated_Stacks flags in System.
27800         (Get_Target_Parameters): Including the processing for
27801         Preallocated_Stacks.
27803         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
27804         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
27805         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
27806         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
27807         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
27808         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
27809         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
27810         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
27811         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
27812         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
27813         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
27814         used to signal whether the compiler creates the required stacks and
27815         descriptors for the different tasks (when True) or it is done by the
27816         underlying operating system at run time (when False).
27817         It is initially set to False in all targets.
27819         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
27820         if it is supported by the target.
27821         (Make_Task_Create_Call): Pass the stack address if it has been
27822         previously created. Otherwise pass a Null_Address.
27824         * snames.adb: Add _stack.
27826         * snames.ads: Add Name_uStack. Required to allow the expander to
27827         statically allocated task stacks.
27829         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
27830         Stack_Address argument.
27831         Check that its value is equal to Null_Address because this target does
27832         not support the static stack allocation.
27834 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
27836         * usage.adb: Change "pragma inline" to "pragma Inline" in information
27837         and error messages
27839 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
27841         * exp_dist.adb: Split declaration of asynchronous flag out of
27842         Add_RACW_Read_Attribute.
27843         Minor reformatting for better alignment with PolyORB version.
27844         Store the entity for the asynchronous flag of an RACW, rather than the
27845         expression, in the asynchronous flags table. This will allow this flag
27846         to be used in other subprograms beside Add_RACW_Read_Attribute.
27848 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
27850         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
27851         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27852         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
27853         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
27854         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
27855         sockets constant MSG_NOSIGNAL (Linux-specific).
27856         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
27857         all Send operations.
27858         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
27859         from trigerring SIGPIPE.
27860         Rename components to avoid clash with Ada 2005 possible reserved
27861         word 'interface'.
27862         (Check_Selector): When the select system call returns with an error
27863         condition, propagate Socket_Error to the caller.
27865 2004-10-01  Jan Hubicka  <jh@suse.cz>
27867         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
27869 2004-09-23  Robert Dewar  <dewar@gnat.com>
27871         PR ada/17540
27872         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
27873         instead do this at freeze time (we won't do it if there is an address
27874         clause).
27875         Change "pragma inline" to "pragma Inline" in information and error
27876         messages.
27877         Minor reformatting.
27879         * freeze.adb (Check_Address_Clause): Remove previous change, not the
27880         right way of doing things after all.
27881         (Freeze_Entity): For object, set Is_Public for imported entities
27882         unless there is an address clause present.
27884 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
27886         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
27887         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
27888         ensures proper handling of types with rep clauses, which might have
27889         their TYPE_SIZE set already.
27891 2004-09-21  Robert Dewar  <dewar@gnat.com>
27893         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
27894         packed array types in both little- and big-endian cases. This change
27895         ensures that we no longer count on the unused bits being initialized
27896         for such types (and in particular ensures that equality testing will
27897         only read the relevant bits).
27898         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
27899         These changes mean that we no longer need to initialize small packed
27900         arrays.
27901         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
27902         optimization to an LJM field as to its parent field.
27904         * ada-tree.h, trans.c, utils.c, utils2.c:
27905         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
27907 2004-09-20  Jan Hubicka  <jh@suse.cz>
27909         * utils.c (gnat_finalize): Remove.
27910         (end_subprog_body): Directly call cgraph_finalize_function;
27911         do not lower the nested functions.
27913 2004-09-20  Robert Dewar  <dewar@gnat.com>
27915         PR ada/17540
27916         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
27917         if an address clause is present, since that means that the Import
27918         should be ignored.
27920 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
27922         * 5tsystem.ads: Removed, no longer used.
27924 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
27925             Zack Weinberg  <zack@codesourcery.com>
27927         * ada-tree.def: Use tree_code_class enumeration constants
27928         instead of code letters.
27929         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
27930         Update for new tree-class enumeration constants.
27932 2004-09-17  Vincent Celier  <celier@gnat.com>
27934         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
27935         capabilities of the general project manager.
27937 2004-09-09  Vincent Celier  <celier@gnat.com>
27939         * a-direct.ads: Add pragma Ada_05
27940         (Directory_Entry_Type): Give default value to component Kind to avoid
27941         not initialized warnings.
27943         * a-direct.adb (Current_Directory): Remove directory separator at the
27944         end.
27945         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
27946         an existing directory.
27947         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
27948         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
27949         Convert the result to File_Size.
27951         * prj.ads: (Project_Error): New exception
27953         * prj-attr.adb: Except in procedure Initialize, Fail comes from
27954         Prj.Com, not from Osint.
27955         (Attrs, Package_Attributes): Tables moved to private part of spec
27956         (Add_Attribute, Add_Unknown_Package): Moved to new child package
27957         Prj.Attr.PM.
27958         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
27959         Prj.Project_Error after call to Fail.
27960         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
27961         Fail. Check that package name is not already in use.
27963         * prj-attr.ads: Comment updates to indicate that all subprograms may be
27964         used by tools, not only by the project manager, and to indicate that
27965         exception Prj.Prj_Error may be raised in case of problem.
27966         (Add_Unknown_Package, Add_Attribute): Moved to new child package
27967         Prj.Attr.PM.
27968         (Attrs, Package_Attributes): Table instantiations moved from the body to
27969         the private part to be accessible from Prj.Attr.PM body.
27971         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
27972         from new package Prj.Attr.PM.
27973         (Parse_Attribute_Declaration): Call Add_Attribute from new package
27974         Prj.Attr.PM.
27976         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
27978         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
27979         instead of Elaboration_Checks).
27981         * a-calend.adb: Minor reformatting
27983 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27985         * gigi.h (maybe_pad_type): New declaration.
27986         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
27988         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
27990         * cuintp.c: Convert to use buildN.
27992         * decl.c (maybe_pad_type): No longer static.
27993         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
27994         target pointer.
27995         Convert to use buildN.
27997         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
27998         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
27999         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
28000         RHS.
28001         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
28002         (gnat_gimplify_expr, case ADDR_EXPR): New case.
28003         Convert to use buildN.
28005         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
28006         TREE_READONLY for const.
28007         Convert to use buildN.
28009         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
28010         (create_var_decl): Refine when TREE_STATIC is set.
28011         Convert to use buildN.
28013 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
28015         * gnat_ugn.texi: Delete text relating to checking of ali and object
28016         consistency.
28018         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
28019         routines.
28021 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
28023         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
28024         pragmas recognized by GNAT.
28026         * gnat_rm.texi: Document pragma Detect_Blocking.
28028         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
28029         raise Program_Error if called from a protected operation.
28031         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
28032         the protected action nesting level.
28033         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
28034         protected action nesting level.
28035         (Unlock): When pragma Detect_Blocking is active decrease the protected
28036         action nesting level.
28038         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
28039         Protected_Action_Nesting.
28041         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
28042         Common_ATCB record. It contains the dynamic level of protected action
28043         nesting for each task. It is needed for checking whether potentially
28044         blocking operations are called from protected operations.
28045         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
28046         Detect_Blocking is active or not in the partition.
28048         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
28049         raise Program_Error if called from a protected operation.
28050         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
28051         Program_Error if called from a protected operation.
28052         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
28053         Program_Error if called from a protected operation.
28055         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
28056         raise Program_Error if called from a protected operation.
28058         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
28059         raise Program_Error if called from a protected operation, and increase
28060         the protected action nesting level.
28061         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
28062         Program_Error if called from a protected operation, and increase the
28063         protected action nesting level.
28064         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
28065         protected action nesting level.
28067         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
28068         raise Program_Error if called from a protected operation, and increase
28069         the protected action nesting level.
28070         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
28071         Program_Error if called from a protected operation, and increase the
28072         protected action nesting level.
28073         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
28074         raise Program_Error if called from a protected operation.
28075         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
28076         active, raise Program_Error if called from a protected operation.
28077         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
28078         protected action nesting level.
28080         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
28081         insertion of the statement raising Program_Error. The run time
28082         contains the required machinery for handling that.
28084         * sem_util.ads: Change comment associated to procedure
28085         Check_Potentially_Blocking_Operation.
28086         This procedure does not insert a call for raising the exception because
28087         that is currently done by the run time.
28089         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
28091         * init.c: Add the global variable __gl_detect_blocking that indicates
28092         whether pragma Detect_Blocking is active (1) or not (0). Needed for
28093         making the pragma available at run time.
28094         (__gnat_set_globals): Pass and update the detect_blocking parameter.
28096         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
28097         pragma Detect_Blocking is active.
28099         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
28101         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
28102         DB is found in the ali file. Any unit compiled with pragma
28103         Detect_Blocking active forces its effect in the whole partition.
28105         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
28106         Detect_Blocking is active and delay is called from a protected
28107         operation.
28109         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
28110         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
28111         Detect_Blocking is active (0 otherwise).
28112         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
28113         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
28114         otherwise).
28116 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
28118         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
28119         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
28120         package.
28122         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
28123         (Register_Receiving_Stub): Add Subp_Info formal parameter.
28124         Update API in placeholder implemetation of s-parint to reflect changes
28125         in distribution runtime library.
28127         * sem_ch3.adb (Expand_Derived_Record): Rename to
28128         Expand_Record_Extension.
28130         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
28131         primitive operations of potentially distributed object types that have
28132         non-controlling anonymous access formals.
28134         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
28135         subprogram.
28136         New implementation of expansion for remote access-to-subprogram types,
28137         based on the RACW infrastructure.
28138         This version of sem_dist is compatible with PolyORB/DSA as well as
28139         GLADE.
28141         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
28142         Asynchrronous that applies to a remote access-to-subprogram type, mark
28143         the underlying RACW type as asynchronous.
28145         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
28146          __gnat_using_gnu_linker to 1.
28148         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
28149         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
28150         GNAT.Perfect_Hash_Generators, and remove the empty
28151         GNAT.Perfect_Hash package.
28153         * atree.adb: Minor reformatting
28155         * exp_ch3.adb (Expand_Derived_Record): Rename to
28156         Expand_Record_Extension.
28157         (Build_Record_Init_Proc.Build_Assignment): The default expression in
28158         a component declaration must remain attached at that point in the
28159         tree so New_Copy_Tree copies it if the enclosing record type is derived.
28160         It is therefore necessary to take a copy of the expression when building
28161         the corresponding assignment statement in the init proc.
28162         As a side effect, in the case of a derived record type, we now see the
28163         original expression, without any rewriting that could have occurred
28164         during expansion of the ancestor type's init proc, and we do not need
28165         to go back to Original_Node.
28167         * exp_ch3.ads (Expand_Derived_Record): Rename to
28168         Expand_Record_Extension.
28170         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
28171         Returns the RACW type used to implement a remote access-to-subprogram
28172         type.
28173         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
28174         New subprograms. Used to create a proxy tagged object for a remote
28175         subprogram. The proxy object is used as the designated object
28176         for RAS values on the same partition (unless All_Calls_Remote applies).
28177         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
28178         System.Partition_Interface.Get_Unique_Remote_Pointer.
28179         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
28180         Renamed from Add_RAS_*_Attribute.
28181         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
28182         subprograms.
28183         New implementation of expansion for remote access-to-subprogram types,
28184         based on the RACW infrastructure.
28186         * exp_dist.ads (Copy_Specification): Update comment to note that this
28187         function can copy the specification from either a subprogram
28188         specification or an access-to-subprogram type definition.
28190 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
28192         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
28193         in an instance, between an explicit subprogram an one inherited from a
28194         type derived from an actual.
28196         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
28197         add a polling call if the subprogram is to be inlined by the back-end,
28198         to avoid repeated calls with multiple inlinings.
28200         * checks.adb (Apply_Alignment_Check): If the expression in the address
28201         clause is a call whose name is not a static entity (e.g. a dispatching
28202         call), treat as dynamic.
28204 2004-09-09  Robert Dewar  <dewar@gnat.com>
28206         * g-trasym.ads: Minor reformatting
28208         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
28209         packed arrays, since unused bits are expected to be zero for a
28210         comparison.
28212 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
28214         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
28215         comment.
28217 2004-09-09  Pascal Obry  <obry@gnat.com>
28219         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
28220         enable map file generation. Add the right option to generate the map
28221         file if Map_File is set to True.
28223         * gnatdll.adb (Gen_Map_File): New variable.
28224         (Syntax): Add info about new -m (Map_File) option.
28225         (Parse_Command_Line): Add support for -m option.
28226         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
28227         Minor reformatting.
28229 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
28231         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
28232         new gnatdist implementation.
28233         Define a subpackage isolating the output routines specific to this
28234         verbose mode.
28236 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
28238         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
28240         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
28242 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
28244         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
28245         internal unit.
28247         * opt.ads: Add Ada_Version_Runtime constant used to decide which
28248         version of the language is used to compile the run time.
28250 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
28252         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
28253         of variable length temporaries for function return now that the
28254         back-end and gigi support it.
28256 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28258         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
28260         * trans.c (struct stmt_group): Delete field GLOBAL.
28261         (gnat_init_stmt_group): Do not initialize it.
28262         (call_to_gnu): Use save_expr, not protect_multiple_eval.
28263         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
28264         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
28265         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
28266         (start_stmt_group): Likewise.
28267         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
28269         * utils2.c (ggc.h): Include.
28270         (build_call_raise): Call build_int_cst, not build_int_2.
28272         * utils.c (gnat_init_decl_processing): Fix arg to
28273         build_common_tree_nodes.
28274         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
28275         (gnat_define_builtin): Set built_in_decls.
28276         (init_gigi_decls): Call build_int_cst, not build_int_2.
28278         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
28279         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
28280         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
28281         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
28282         SET_TYPE_MODULE): Use them.
28283         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
28284         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
28285         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
28286         SET_TYPE_ADA_SIZE): Likewise.
28287         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
28288         (DECL_CONST_CORRESPONDING_VAR,
28289         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
28290         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
28291         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
28292         (TYPE_RM_SIZE_NUM): New macro.
28293         (TYPE_RM_SIZE): Modified to use above.
28295         * cuintp.c: (build_cst_from_int): New function.
28296         (UI_To_gnu): Use it.
28298         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
28299         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
28300         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
28301         MIN_EXPR for the size, copy it into new.
28303 2004-09-01  Robert Dewar  <dewar@gnat.com>
28305         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
28306         packed indexed component where array is an IN OUT formal. This
28307         generated garbage code previously.
28309         * gnat_ugn.texi: Document -fverbose-asm
28311         * gnat-style.texi: Minor updates (note that boolean constants and
28312         variables are joined with AND/OR rather than short circuit forms).
28314 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
28316         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
28317         it is an upward conversion of an untagged type with no representation
28318         change.
28320 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
28322         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
28323         System.Partition_Interface.
28325         * checks.adb (Apply_Access_Checks): Do not generate checks when
28326         expander is not active (but check for unset reference to prefix of
28327         dereference).
28329         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
28330         pragma Debug as an if statement with a constant condition, for
28331         consistent treatment of entity references contained within the
28332         enclosed procedure call.
28334 2004-09-01  Vincent Celier  <celier@gnat.com>
28336         * bindgen.adb: (Set_EA_Last): New procedure
28337         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
28338         Set_EA_Last.
28339         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
28340         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
28341         linked without errors.
28342         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
28343         ST and EA.
28344         (Gen_Exception_Table_C): Correct same bugs
28346         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
28348         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
28349         on Windows, make sure that the drive letter is in upper case.
28351         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
28352         Windows, when the drive letter is added and Case_Sensitive is True, the
28353         drive letter is forced to upper case.
28355         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
28356         to Options_2 for the call to MLib.Utl.Gcc.
28358         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
28359         directory separator when defining BASE_DIR.
28361 2004-09-01  Pascal Obry  <obry@gnat.com>
28363         * gprcmd.adb (Extend): Do not output trailing directory separator. This
28364         is not needed and it confuses Windows GNU/make which does not report
28365         directory terminated by a slash as a directory.
28366         (gprcmd): Idem for "pwd" internal command.
28368         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
28369         target names rewrite to fix regressions with recent version of
28370         GNU/make. Starting with GNU/make 3.80 the pipe character was not
28371         handled properly anymore.
28373 2004-09-01  Andreas Schwab  <schwab@suse.de>
28375         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
28376         * raise.c [!IN_RTS]: Undef abort.
28378 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
28380         * utils2.c (build_allocator): Use ssize_int.
28382         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
28384 2004-08-27  Andreas Schwab  <schwab@suse.de>
28386         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
28388 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
28389             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28391         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
28393 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
28395         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
28396         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28397         * utils.c (init_gigi_decls): Likewise.
28398         * utils2.c (build_call_raise, build_allocator): Likewise.
28400 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
28402         * utils.c (gnat_init_decl_processing): Adjust
28403         build_common_tree_nodes call.
28405 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
28407         * utils2.c (build_allocator): Use build_int_cst for negative
28408         size types.
28410 2004-08-18  Richard Henderson  <rth@redhat.com>
28412         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
28414 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
28416         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
28417         call.s
28418         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
28419         (gnat_to_gnu): Likewise.
28421 2004-08-16  Pascal Obry  <obry@gnat.com>
28423         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
28424         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
28425         option and not mdll anymore. Update comment.
28427 2004-08-16  Pascal Obry  <obry@gnat.com>
28429         * bld.adb (Put_Include_Project): Properly handle directory separators
28430         on Windows.
28432 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
28434         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
28435         decreasing the number of allocated junk nodes while searching for the
28436         appropriate subprogram.
28438 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
28440         * cuintp.c (UI_To_gnu): Use build_int_cst..
28441         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28442         * utils.c (init_gigi_decls): Likewise.
28443         * utils2.c (build_call_raise): Likewise.
28445 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
28447         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
28448         for a global aliased object with a variable size and an unconstrained
28449         nominal subtype, pretend there is no initializer if the one we have is
28450         incomplete, and avoid referencing an inexistant component in there. The
28451         part we have will be rebuilt anyway and the reference may confuse
28452         further operations.
28454 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
28456         * einfo.ads: Minor reformatting
28458         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
28459         restrictions in the ALI if we only want to warn about violations.
28461 2004-08-13  Vincent Celier  <celier@gnat.com>
28463         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
28464         when creating a new Unit_Record in table Units.
28466         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
28467         that are violated, if any.
28469         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
28470         add directory separator if path already ends with a directory separator.
28472 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
28474         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
28475         unit, this is an attempt to inline a construct that is not available in
28476         the current restricted mode, so abort rather than trying to continue.
28478         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
28479         discriminants that rename those of the parent, recover names of
28480         original discriminants for the constraint on the full view of the
28481         parent.
28482         (Complete_Private_Subtype): Do not create a subtype declaration if the
28483         subtype is an itype.
28485         * gnat_rm.texi: Added section on implementation of discriminated
28486         records with default values for discriminants.
28488 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
28490         PR ada/15601
28491         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
28492         the second operand is overloaded.
28494 2004-08-10  Richard Henderson  <rth@redhat.com>
28496         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
28497         add __builtin_alloca.
28499 2004-08-10  Richard Henderson  <rth@redhat.com>
28501         * config-lang.in (boot_language): Yes.
28503 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
28505         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
28506         from complaining on potential uninitialized reference.
28507         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
28508         new specification and test explicitly for non-zero return value.
28510         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
28511         returning C.int, to avoid using a derived boolean type.
28513         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
28514         Duplicate_Subexpr_No_Checks in preference to direct use of
28515         Remove_Side_Effects and New_Copy_Tree.
28516         Clear Comes_From_Source on prefix of 'Size attribute reference.
28518         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
28519         g-socthi-vxworks.adb: Change calls to
28520         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
28521         and test explicitly for non-zero return value.
28523         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
28524         (Is_Socket_In_Set): Declare imported function as returning C.int, to
28525         avoid using a derived boolean type.
28527 2004-08-09  Albert Lee  <lee@gnat.com>
28529         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
28531 2004-08-09  Pascal Obry  <obry@gnat.com>
28533         * gnat_ugn.texi: Document new way to build DLLs on Windows using
28534         GCC's -shared option.
28536         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
28537         Options_2 parameter (options put after object files).
28539 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
28541         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
28542         ignore overflows on low and high bounds of an index to also account for
28543         differences in signedness between sizetype and gnu_index_subtype.
28544         These are as legitimate as the ones caused by a lower TYPE_PRECISION
28545         on sizetype.
28547 2004-08-09  Robert Dewar  <dewar@gnat.com>
28549         * s-solita.ads, s-solita.adb: Minor reformatting
28551         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
28552         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
28553         obsolescent section
28554         Add note that No_Implicit_Conditionals does not suppress
28555         run time constraint checks.
28557         * vms_conv.ads: Minor reformatting
28559         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
28560         and necessary for following change).
28561         (Mark): Return new format Mark_Id containing sec stack address
28562         (Release): Use sec stack address from Mark_Id avoiding Self call
28564         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
28565         pointer (cleanup and necessary for following change).
28566         Define Mark_Id as record containing address of secondary stack, that way
28567         Release does not need to find the stack again, decreasing the number of
28568         calls to Self and improving efficiency.
28570         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
28572         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
28573         case variable into the individual case branches when possible.
28575         * sem_ch11.adb: Minor reformatting
28577         * prj.ads: Correct spelling of suffixs
28579         * prj-nmsc.adb: Minor reformatting
28580         Correct spelling suffixs throughout (also in identifiers)
28582         * freeze.adb: Minor spelling correction
28584         * exp_ch2.adb: Cleanups to handling of Current_Value
28585         (no functional effect).
28587         * bld.adb: Correct spelling of suffixs
28589         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
28591 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
28593         PR ada/15408
28594         * sem_ch7.adb (Install_Private_Declarations): In the body of the
28595         package or of a child, private entities are both immediately_visible
28596         and not hidden.
28598 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
28600         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
28601         there are no range checks on the value of the literal.
28603         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
28604         wrapped is the triggering alternative of an asynchronous select, action
28605         statements mustbe inserted before the select itself.
28607         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
28608         case where the prefix is a protected function call.
28609         (Resolve_Attribute, case 'Access): The attribute reference on a
28610         subprogram is legal in a generic body if the subprogram is declared
28611         elsewhere.
28613 2004-08-09  Vincent Celier  <celier@gnat.com>
28615         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
28616         languages, otherwise building the library may fail with unresolved
28617         symbols.
28618         (Compile_Sources): Do not build libraries if -c switch is used
28620         * gnatlink.adb (Process_Args): New switches -M and -Mmap
28621         (Write_Usage): If map file creation is supported, output new switches
28622         -M and -Mmap.
28623         (Gnatlink): When -M is specified, add the necessary switch(es) to the
28624         gcc call, when supported.
28626         * Makefile.in: Added indepsw.o to the object list for gnatlink
28627         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
28629         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
28630         indepsw.adb, indepsw.ads: New files.
28632 2004-08-09  Bernard Banner  <banner@gnat.com>
28634         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
28636         * Makefile.in: add section for vxworks x86
28638 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
28640         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
28641         per-object constrained components where the discriminant is of an
28642         Access type.
28643         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
28644         the parent initialization procedure for derived Unchecked_Unions.
28645         Instead, derived Unchecked_Unions build their own initialization
28646         procedure.
28647         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
28648         Check the body of the subprogram for details.
28649         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
28650         functions for derived Unchecked_Union types by introducing a condition.
28651         Allow the creation of TSS equality functions for Unchecked_Unions.
28652         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
28653         Add formal parameter Discr to function signature. Discr is used to
28654         control the generated case statement for Unchecked_Union types.
28655         (Make_Eq_If): Rename formal parameter Node to E in function signature.
28657         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
28658         Unchecked_Unions.
28659         Check the body of the subprogram for details.
28660         (Expand_Composite_Equality): Augment composite type equality to include
28661         correct handling of Unchecked_Union components.
28662         (Expand_N_In): Add condition to detect illegal membership tests when the
28663         subtype mark is a constrained Unchecked_Union and the expression lacks
28664         inferable discriminants, and build a Raise_Program_Error node.
28665         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
28666         to detect types that contain components of unconstrained Unchecked_Union
28667         subtype. Add condition to detect equality between types that have an
28668         unconstrained Unchecked_Union component, and build a Raise_Program_Error
28669         node. Add condition to detect equality between Unchecked_Union types
28670         that lack inferable discriminants, and build a Raise_Program_Error node.
28671         Otherwise build a TSS equality function call.
28672         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
28673         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
28674         with the operand lacking inferable discriminants, and build a Raise_
28675         Program_Error node.
28676         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
28677         composite equality.
28678         (Has_Inferable_Discriminants): Implement new predicate for objects and
28679         expressions of Unchecked_Union type. Check the body of subprogram for
28680         details.
28681         (Has_Unconstrained_UU_Components): Add function
28682         Component_Is_Unconstrained_UU. It is used to detect whether a single
28683         component is of an unconstrained Unchecked_Union subtype. Add function
28684         Variant_Is_Unconstrained_UU. It is used to detect whether a single
28685         component inside a variant is of an unconstrained Unchecked_Union type.
28687         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
28688         inferred discriminant values. Add condition to generate a case
28689         statement with an inferred discriminant as the switch.
28690         (Make_Component_List_Assign): Introduce a Boolean flag that determines
28691         the behaviour of the subprogram in the presence of an Unchecked_Union.
28692         Add condition to trigger the usage of the inferred discriminant value
28693         as the generated case statement switch.
28694         (Make_Field_Assign): Introduce a Boolean flag that determines the
28695         behaviour of the subprogram in the presence of an Unchecked_Union. Add
28696         condition to trigger the usage of the inferred discriminant value as
28697         the right-hand side of the generated assignment.
28699         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
28700         parameter generation when dealing with Unchecked_Unions.
28702         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
28703         checks for Unchecked_Unions.
28705         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
28707         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
28708         Raise_Program_Error nodes for the execution of Read and Write
28709         attributes of Unchecked_Union types and the execution of Input and
28710         Output attributes of Unchecked_Union types that lack default
28711         discriminant values.
28713         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
28714         Unchecked_Union. Add procedure Check_Component. It is used to inspect
28715         per-object constrained components of Unchecked_Unions for being
28716         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
28717         check individual components withing a variant.
28719         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
28720         comparison of Unchecked_Unions.
28721         (Resolve_Equality_OP): Remove guard that prevents equality between
28722         Unchecked_Unions.
28724         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
28725         of component subtypes for Unchecked_Union components.
28726         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
28727         since it is the actual subtype.
28729         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
28730         pass of Unchecked_Union subtypes as generic actuals to formal types
28731         that lack known_discriminant_parts or that are derived Unchecked_Union
28732         types, and do nothing. In any other case, produce an error message.
28734         * sem_ch3.adb (Analyze_Component_Declaration): Add function
28735         Contains_POC. It determines whether a constraint uses the discriminant
28736         of an enclosing record type.
28737         Add condition to detect per-object constrained component and set the
28738         appropriate flag.
28739         (Derived_Type_Declaration): Remove guard that prevents derivation from
28740         Unchecked_Union types.
28741         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
28742         Union subtypes.
28744         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
28745         references to Unchecked_Union discriminants.
28747         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
28748         formal generation when dealing with Unchecked_Unions.
28749         (Set_Actual_Subtypes): Add condition to prevent generation of actual
28750         subtypes for Unchecked_Unions.
28752         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
28753         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
28754         completions of discriminated partial views by Unchecked_Unions and
28755         produce an error message.
28757 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28759         * trans.c (struct stmt_group): New field, GLOBAL.
28760         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
28761         (struct elab_info): New struct.
28762         (elab_info_list, gnu_elab_proc_stack): New variables.
28763         (Compilation_Unit_to_gnu): New procedure.
28764         (gigi): Call it and also handle elaboration procs we've saved.
28765         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
28766         global field from parent.
28767         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
28768         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
28769         (start_stmt_group): Initialize global field from parent.
28770         (add_decl_expr): Set to global for current statement group.
28771         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
28772         post.
28774         * utils.c (global_bindings_p): True when no current_function_decl; no
28775         longer check current_binding_level.
28777 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
28779         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
28780         choice.
28782         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
28784 2004-08-06  Andreas Schwab  <schwab@suse.de>
28786         * utils.c (gnat_define_builtin): Remove second parameter of
28787         make_decl_rtl.
28788         (begin_subprog_body): Likewise.
28790 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
28792         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
28793         optimization, not supported by the tree-ssa back-end.
28795 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
28797         * s-mastop-irix.adb: Update comments.
28799         * a-except.adb (Exception_Information): Raise Constraint_Error if
28800         exception Id is Null_Id.
28801         This is required behavior, which is more reliably and clearly checked
28802         at the top level interface level.
28804 2004-07-26  Javier Miranda  <miranda@gnat.com>
28806         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
28807         call if a component has no default_expression and the box is used.
28809         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
28810         default_expression and you use box, it behaves as if you had declared a
28811         stand-alone object.
28812         (Resolve_Record_Aggregate): If a component has no default_expression and
28813         you use box, it behaves as if you had declared a stand-alone object.
28815         * sem_ch10.adb (Install_Siblings): Do not make visible the private
28816         entities of private-with siblings.
28818 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
28820         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
28821         for a component of an itype, set the parent pointer for analysis,
28822         there is no list in which to insert it.
28824         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
28825         bona-fide renamings, not for inherited operations.
28827         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
28828         actual for a formal that is an access parameter, create local
28829         finalization list even if the expression is not an aggregate.
28831 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
28833         PR ada/16213
28834         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
28835         Diagnose properly illegal subprogram renamings that are library units.
28837 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
28839         PR ada/15588
28840         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
28841         conversion rewritten as an unchecked conversion, check that original
28842         expression is a variable.
28844         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
28845         unchecked_conversion, create new node rather than rewriting in place,
28846         to preserve original construct.
28848 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28850         * gigi.h (gnat_expand_body): Deleted.
28852         * Make-lang.in: (trans.o): Depends on function.h.
28854         * misc.c: (gnat_expand_body): Moved to here.
28856         * trans.c (gnat_expand_body_1): Deleted.
28857         (gnat_expand_body): Moved from here.
28858         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
28859         (add_stmt): Check for marked visited with global_bindings_p.
28860         (gnat_gimplify_expr, case COMPONENT_REF): New case.
28861         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
28863         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
28864         VIEW_CONVERT_EXPR if not operation type.
28866         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
28867         fat pointer.
28869         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
28870         changes: reformatting of negation operators, removing unneeded
28871         inequality comparison with zero, converting equality comparisons with
28872         zero to negations, changing int/0/1 to bool/false/true, replace calls
28873         to gigi_abort with abort, and various other similar changes.
28875 2004-07-26  Vincent Celier  <celier@gnat.com>
28877         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
28878         "setup".
28880         * make.adb (Gnatmake): Fail when a library is not present and there is
28881         no object directory.
28883         * mlib-prj.adb (Check_Library): No need to check if the library needs
28884         to be rebuilt if there is no object directory, hence no object files
28885         to build the library.
28887         * opt.ads (Setup_Projects): New Boolean flag.
28889         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
28890         Location.
28891         Create directory when Kind /= "" and in "gnat setup". Report error if
28892         directory cannot be created.
28893         (Ada_Check): Create library interface copy dir if it does not exist
28894         and we are in "gnat setup".
28895         (Find_Sources): No error if in "gnat setup" and no Ada sources were
28896         found.
28897         (Language_Independent_Check): Create object directory, exec directory
28898         and/or library directory if they do not exist and we are in
28899         "gnat setup".
28901         * vms_conv.ads: (Command_Type): New command Setup.
28903         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
28905         * vms_data.ads: Add qualifiers/switches for new built-in command
28906         "setup".
28908 2004-07-25  Richard Henderson  <rth@redhat.com>
28910         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
28911         DECL_IGNORED_P on RESULT_DECL.
28913 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
28915         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
28916         allocation and potentially overflowing update with
28917         Tailored_Exception_Information. Use the sec-stack free procedural
28918         interface to output Exception_Information instead.
28920         * a-except.adb (To_Stderr): New subprogram for character, and string
28921         version moved from a-exextr to be visible from other separate units.
28922         (Tailored_Exception_Information): Remove the procedural version,
28923         previously used by the default Last_Chance_Handler and not any more.
28924         Adjust various comments.
28926         * a-exexda.adb: Generalize the exception information procedural
28927         interface, to minimize the use of secondary stack and the need for
28928         local buffers when the info is to be output to stderr:
28929         (Address_Image): Removed.
28930         (Append_Info_Character): New subprogram, checking for overflows and
28931         outputing to stderr if buffer to fill is of length 0.
28932         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
28933         (Append_Info_Address, Append_Info_Exception_Name,
28934         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
28935         Append_Info_Basic_Exception_Traceback,
28936         Append_Info_Exception_Information): New subprograms.
28937         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
28938         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
28939         Exception_Info_Maxlength, Exception_Name_Length,
28940         Exception_Message_Length): New subprograms.
28941         (Exception_Information): Use Append_Info_Exception_Information.
28942         (Tailored_Exception_Information): Use
28943         Append_Info_Basic_Exception_Information.
28944         Export services for the default Last_Chance_Handler.
28946         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
28947         other separate units.
28949 2004-07-20  Vincent Celier  <celier@gnat.com>
28951         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
28953 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
28955         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
28956         emit itype references for the designated types of component types that
28957         are declared outside of the full record declaration, and that may
28958         denote a partial view of that record type.
28960 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
28962         PR ada/15607
28963         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
28964         which is the designated type in an access component declaration, to the
28965         list of incomplete dependents of the parent type, to avoid elaboration
28966         issues with out-of-scope subtypes.
28967         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
28968         full view of the parent.
28970 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
28972         PR ada/15610
28973         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
28974         entities that are hidden, such as references to generic actuals
28975         outside an instance.
28977 2004-07-20  Javier Miranda  <miranda@gnat.com>
28979         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
28980         support to the new notation.
28981         (Analyze_Selected_Component): Add call to Try_Object_Operation.
28983 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
28985         * s-taprob.adb: Adding the elaboration code required for initializing
28986         the tasking soft links that are common to the full and the restricted
28987         run times.
28989         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
28990         restricted run time has been moved to the package
28991         System.Soft_Links.Tasking.
28993         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
28994         restricted run time has been moved to the package
28995         System.Soft_Links.Tasking.
28997         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
28999         * s-solita.ads, s-solita.adb: New files.
29001 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29003         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
29004         Case_Statement_to_gnu): Split off from gnat_to_gnu.
29005         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
29006         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
29007         Exception_Handler_to_gnu_zcx): Likewise.
29009 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
29011         * gigi.h (builtin_function): Declare.
29013 2004-07-15  Robert Dewar  <dewar@gnat.com>
29015         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
29016         reformatting
29018         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
29019         access values as an example of a warning.
29021         * gnat_rm.texi: Document new attribute Has_Access_Values
29023         * gnat-style.texi: Document that box comments belong on nested
29024         subprograms
29026         * sem_util.ads (Has_Access_Values): Improved documentation
29028         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
29030         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
29031         (Process_Interface_Name): Call to this new procedure
29032         (Set_Extended_Import_Export_External_Name): Call to this new procedure
29034         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
29036         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
29038         * einfo.ads: Minor comment typo fixed
29040 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
29042         * snames.adb: Add _atcb.
29044         * snames.ads: Add Name_uATCB.
29046         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
29047         (in the expanded code) when using the restricted run time.
29049         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
29050         a in parameter in order to allow ATCBs to be preallocated (in the
29051         expanded code).
29053         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
29054         order to allow ATCBs to be preallocated. In case of error, the ATCB is
29055         deallocated in System.Tasking.Stages.
29057         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
29058         order to allow ATCBs to be preallocated.
29060         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
29061         here. It was previously done in Initialize_ATCB.
29063         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
29065         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
29066         Restricted run time.
29068         * exp_ch3.adb: When using the Restricted run time, pass the
29069         preallocated Ada_Task_Control_Block when creating a task.
29071 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
29073         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
29074         function call that is itself an actual in an enclosing call, diagnose
29075         problem here rather than assuming that resolution will catch it.
29077         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
29078         the local copy of a generic unit for a formal package, and the generic
29079         is a child unit, install private part of ancestors before compiling
29080         private part of spec.
29082         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
29083         use scope entities rather than tree structures, to handle properly
29084         parent units that are instances rewritten as bodies for inlining
29085         purposes.
29087         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
29088         Remove_Parents): Handle properly a parent unit that is an
29089         instantiation, when the unit has been rewritten as a body for inlining
29090         purposes.
29092         * par.adb (Goto_List): Global variable to collect goto statements in a
29093         given unit, for use in detecting natural loops.
29095         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
29096         use in detecting natural loops.
29098         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
29099         backwards goto's, and rewrite as a infinite loop, to improve locality
29100         of temporaries.
29102         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
29103         subcomponent that includes an indexed reference, to prevent the
29104         generation of copies that would miscompile the desired assignment
29105         statement.
29106         (Build_Task_Image_Decls): Add a numeric suffix to
29107         generated name for string variable, to avoid spurious conflicts with
29108         the name of the type of a single protected object.
29110         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
29111         loop with an explicit exit statement, to avoid generating an
29112         out-of-range value with 'Succ leading to spurious constraint_errors
29113         when compiling with -gnatVo.
29115 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
29117         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
29118         might not be analyzed yet, even if its Etype is already set (case of an
29119         unchecked conversion built using Unchecked_Convert_To, for example).
29120         If the prefix has already been analyzed, this will be a nop anyway.
29122         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
29123         controller type, or an assignment of a record type with controlled
29124         components, copy only user data, and leave the finalization chain
29125         pointers untouched.
29127 2004-07-15  Vincent Celier  <celier@gnat.com>
29129         * make.adb (Collect_Arguments): Improve error message when attempting
29130         to compile a source not part of any project, when -x is not used.
29132         * prj.ads: (Defined_Variable_Kind): New subtype
29134         * prj-attr.adb (Register_New_Package): Two new procedures to register
29135         a package with or without its attributes.
29136         (Register_New_Attribute): Mew procedure to register a new attribute in a
29137         package.
29138         New attribute oriented subprograms: Attribute_Node_Id_Of,
29139         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29140         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29141         Next_Attribute.
29142         New package oriented subprograms: Package_Node_Id_Of,
29143         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29145         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
29146         type.
29147         (Package_Node_Id): Now a private, self initialized type
29148         (Register_New_Package): New procedure to register a package with its
29149         attributes.
29150         New attribute oriented subprograms: Attribute_Node_Id_Of,
29151         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29152         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29153         Next_Attribute.
29154         New package oriented subprograms: Package_Node_Id_Of,
29155         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29157         * prj-dect.adb (Parse_Attribute_Declaration,
29158         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
29160         * prj-makr.adb (Make): Parse existing project file before creating
29161         other files. Fail if there was an error during parsing.
29163         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
29164         new spec of Prj.Attr.
29166         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
29167         to new spec of Prj.Attr.
29169 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29171         * utils2.c: Fix typo in comment.
29173 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29175         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
29176         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
29178 2004-07-14  Andreas Schwab  <schwab@suse.de>
29180         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
29182 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29184         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
29185         object type.
29186         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
29187         TYPE_STUB_DECL.
29189         * misc.c (gnat_types_compatible_p): New function.
29190         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
29191         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
29193         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
29194         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
29195         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
29196         (mark_visited): Don't mark dummy type.
29197         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
29198         parameter, we must remove any LJM building from GNU_NAME.
29199         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
29200         (pos_to_constructor): Use int_const_binop.
29201         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
29202         PARM_DECL.
29204         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
29205         (gnat_pushlevel): Set TREE_USE on BLOCK node.
29206         (gnat_install_builtins): Add __builtin_memset.
29208 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
29210         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
29211         for a renaming, stabilize the initialization expression if we are at a
29212         local level.  At the local level, uses of the renaming may be performed
29213         by a direct dereference of the initializing expression, and we don't
29214         want possible variables there to be evaluated for every use.
29216         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
29217         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
29218         them on the way.  Account for the fact that we may introduce side
29219         effects in the process.
29221 2004-07-13  Richard Henderson  <rth@redhat.com>
29223         * misc.c (default_pass_by_ref): Use pass_by_reference.
29225 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
29227         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
29228         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
29230 2004-07-08  Richard Henderson  <rth@redhat.com>
29232         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
29233         commentary.
29235 2004-07-06  Vincent Celier  <celier@gnat.com>
29237         * vms_conv.ads: Minor reformatting.
29238         Alphabetical order for enumerated values of type Command_Type, to have
29239         the command in alphabetical order for the usage.
29241         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
29242         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
29244         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
29246         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
29247         (Add_Archive_Path): Only add the global archive if there is one.
29248         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
29249         or not any object file to put in the global archive, and don't build
29250         a global archive if there is none.
29251         (X_Switches): New table
29252         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
29253         in the X_Switches table, if any.
29254         (Initialize): Make sure the X_Switches table is empty
29255         (Scan_Arg): Record -X switches in table X_Switches
29257         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
29259         * make.adb: Minor comment fix
29261         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
29262         invoked with directory information, add the directory in front of the
29263         path.
29265         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
29266         invoked with directory information, add the directory in front of the
29267         path.
29269         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
29270         when Keep_Temporary_Files is False.
29271         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
29272         directory information, add the directory in front of the path.
29273         When not on VMS, handle new switch -dn before the command to set
29274         Keep_Temporary_Files to True.
29275         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
29276         everywhere.
29278         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
29279         invoked with directory information, add the directory in front of the
29280         path.
29282 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
29284         * snames.ads, snames.adb (Name_Stub): New name for the distributed
29285         systems annex.
29287         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
29288         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
29290         * g-socket.adb (To_Timeval): Fix incorrect conversion of
29291         Selector_Duration to Timeval for the case of 0.0.
29293         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
29294         documentation from Evolve_And_Then.
29296 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
29298         * s-taprop-tru64.adb, s-taprop-os2.adb,
29299         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
29301 2004-07-06  Robert Dewar  <dewar@gnat.com>
29303         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
29304         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
29305         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
29306         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
29307         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
29308         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
29309         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
29310         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
29311         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
29312         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
29313         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
29314         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
29315         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
29316         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
29317         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
29318         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
29319         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
29320         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
29321         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
29322         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
29323         vms_data.ads: Minor reformatting,
29324         Fix bad box comment format.
29326         * gnat_rm.texi: Fix minor grammatical error
29328         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
29330         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
29331         more cases of discriminated records to be recognized as not needing a
29332         secondary stack.
29333         (Has_Access_Values): New function.
29335         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
29337         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
29338         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
29339         with LRM terminology).
29340         Change terminology in comments primitive type => elementary type.
29342 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
29344         PR ada/15602
29345         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
29346         parameters do not impose any requirements on the presence of a body.
29348 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
29350         PR ada/15593
29351         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
29352         compilation unit and is in an open scope at the point of instantiation,
29353         assume that a body may be present later.
29355 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
29357         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
29358         Improve error message when specified size is not supported.
29360         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
29361         is never a primitive operation.
29363 2004-07-05  Andreas Schwab  <schwab@suse.de>
29365         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
29366         RECORD_OR_UNION_CHECK.
29367         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
29369 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
29371         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
29372         dependency on xgnatugn, instead build it via a submake.
29373         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
29375 2004-07-04  Richard Henderson  <rth@redhat.com>
29377         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
29379 2004-07-01  Richard Henderson  <rth@redhat.com>
29381         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
29382         * utils.c (max_size): Likewise.
29384 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29386         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
29387         and rest_of_type_compilation; add arg to create_*_decl.
29388         (annotate_decl_with_node): Deleted.
29389         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
29390         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
29391         (get_current_block_context, gnat_pushdecl): New declarations.
29392         (gnat_init_stmt_group): Likewise.
29393         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
29394         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
29395         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
29396         (gnat_init): Call gnat_init_stmt_group.
29397         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
29398         (gnu_pending_elaboration_list): Deleted.
29399         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
29400         (gigi): Rearrange initialization calls and move some to last above.
29401         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
29402         Delete calls to add_decl_expr; add arg to create_*_decl.
29403         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
29404         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
29405         begin_subprog_body and call it.
29406         Don't push and pop ggc context.
29407         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
29408         (add_stmt): Remove handling of DECL_EXPR from here.
29409         If not in function, mark visited.
29410         (add_decl_expr): Put global at top level.
29411         Check for cases of DECL_INITIAL we have to handle here.
29412         (process_type): Add extra arg to create_type_decl.
29413         (build_unit_elab): Rework to just gimplify.
29414         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
29415         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
29416         (get_pending_elaborations, pending_elaborations_p): Likewise.
29417         (push_pending_elaborations, pop_pending_elaborations): Likewise.
29418         (get_elaboration_location, insert_elaboration_list): Likewise.
29419         (gnat_binding_level): Renamed from ada_binding_level.
29420         (init_gnat_to_gnu): Don't clear pending_elaborations.
29421         (global_bindings_p): Treat as global if no current_binding_level.
29422         (set_current_block_context): New function.
29423         (gnat_pushdecl): Renamed from pushdecl; major rework.
29424         All callers changed.
29425         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
29426         (finish_record_type): Call call pushdecl for stub decl.
29427         (function_nesting_depth): Deleted.
29428         (begin_subprog_body): Delete obsolete code.
29429         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
29431 2004-06-28  Robert Dewar  <dewar@gnat.com>
29433         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29434         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
29435         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
29436         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29437         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
29439         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
29440         deal with problem of inefficient slices on machines with strict
29441         alignment, when the slice is a component of a composite.
29443         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
29444         machines, we need the check there as well.
29446 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
29448         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
29449         determine safe copying direction for overlapping slice assignments
29450         when component is controlled.
29452         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
29453         formal derived type in the actual for a formal package are visible in
29454         the enclosing instance.
29456 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
29458         PR ada/15600
29459         * sem_util.adb (Trace_Components): Diagnose properly an illegal
29460         circularity involving a private type whose completion includes a
29461         self-referential component.
29462         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
29463         renaming or an instantiation from an implicit derived operation.
29465 2004-06-28  Pascal Obry  <obry@gnat.com>
29467         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
29468         DLL.
29469         (Library_File_Name_For): Idem.
29471 2004-06-28  Matthew Gingell  <gingell@gnat.com>
29473         * g-traceb.ads: Add explanatory note on the format of addresses
29474         expected by addr2line.
29476 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
29478         * Makefile.in: Force debugging information on s-tasdeb.adb,
29479         a-except.adb and s-assert.adb needed by the debugger.
29481 2004-06-28  Vincent Celier  <celier@gnat.com>
29483         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
29484         Need_To_Build_Lib.
29485         (Gnatmake): Ditto.
29487         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
29489         * prj.adb: Minor reformatting
29490         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
29492         * prj.ads: Comment updates
29493         Minor reformatting
29494         (Project_Data): Change Flag1 to Need_To_Build_Lib.
29495         Remove Flag2: not used.
29497         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
29498         declaration.
29500         * gnat_ugn.texi: Put a "null;" declaration in one project file example
29502         * gnat_rm.texi: Document Empty declarations "null;".
29504         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
29505         front of the linker options.
29506         (Link_Foreign): Put the global archives and the libraries in front of
29507         the linker options.
29509 2004-06-28  Javier Miranda  <miranda@gnat.com>
29511         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
29512         (RTU_Loaded): Code cleanup
29513         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
29514         withed predefined units.
29516         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
29517         explicitly withed predefined units.
29518         Fix typo in comment
29520         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
29521         explicitly withed predefined units.
29523 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29525         * ada-tree.def (DECL_STMT): Deleted.
29526         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
29527         (DECL_STMT_VAR): Deleted.
29528         * decl.c: add_decl_stmt now add_decl_expr.
29529         * gigi.h: Likewise.
29530         * trans.c: Likewise.
29531         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
29532         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
29533         (add_stmt): Only handle padded type here.
29534         (add_stmt_with_node): Allow gnat_node to not be present.
29535         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
29536         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
29537         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
29538         make a SAVE_EXPR for the entire fat pointer.
29539         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
29540         (create_index_type): Make a DECL_EXPR.
29541         (end_subprog_body): Don't call allocate_struct_function here but
29542         do clear cfun.
29544 2004-06-25  Pascal Obry  <obry@gnat.com>
29546         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
29547         Relocatable from Build_Dynamic_Library call.
29549         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
29550         Relocatable are now synonym.
29552         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
29554         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
29555         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
29556         call.
29558         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
29559         Lib_Address and Relocatable.
29560         (Default_DLL_Address): Removed.
29562         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29563         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29564         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
29565         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
29566         (Default_DLL_Address): Removed.
29568         * mlib-tgt-mingw.adb: Ditto.
29569         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
29571         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
29572         the initial thread stack size.
29574         * a-strmap.ads: Move package L to private part as it is not used in
29575         the spec. Found while reading code.
29577 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
29579         * tracebak.c: Introduce support for a GCC infrastructure based
29580         implementation of __gnat_backtrace.
29582         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
29583         any more. Use accessors instead. This eases maintenance and relaxes
29584         some alignment constraints.
29585         (_GNAT_Exception structure): Remove the Ada specific fields
29586         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
29587         a-exexpr.adb.
29588         (is_handled_by, __gnat_eh_personality): Replace component references to
29589         exception structure by use of the new accessors.
29591         * init.c (__gnat_initialize): Adjust comments to match the just
29592         reverted meaning of the -static link-time option.
29594         * adaint.c (convert_addresses): Arrange not to define a stub for
29595         mips-irix any more, as we now want to rely on a real version from a
29596         recent libaddr2line.
29598         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
29599         the personality routine can use them and not have to rely on a C
29600         counterpart of the record anymore. This simplifies maintenance and
29601         relaxes the constraint of having Standard'Maximum_Alignment match
29602         BIGGEST_ALIGNMENT.
29603         Update comments, and add a section on the common header alignment issue.
29605 2004-06-25  Geert Bosch  <bosch@gnat.com>
29607         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
29608         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
29610 2004-06-25  Robert Dewar  <dewar@gnat.com>
29612         * gnat_rm.texi: Fix section on component clauses to indicate that the
29613         restriction on byte boundary placement still applies for bit packed
29614         arrays.
29615         Add comment on stack usage from Initialize_Scalars
29617         * gnat_ugn.texi: Add documentation for -gnatyLnnn
29619         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
29620         limiting nesting level.
29622         * usage.adb: Add line for -gnatyLnnn switch
29624         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
29625         sem_ch13.adb, exp_aggr.adb: Minor reformatting
29627         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
29628         type as well as on the subtype. This corrects a problem in freeze in
29629         setting alignments of atomic types.
29631         * sem_eval.ads: Minor comment typo fixed
29633         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
29634         level.  Minor reformatting.
29636         * fname.adb (Is_Predefined_File_Name): Require a letter after the
29637         minus sign. This means that file names like a--b.adb will not be
29638         considered predefined.
29640         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
29641         record Test new flag and give diagnostic for bad component clause.
29642         (Freeze_Entity): Set alignment of array from component alignment in
29643         cases where this is safe to do.
29645         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
29646         arrays.
29648         * cstand.adb: (Create_Standard): Set alignment of String to 1
29650         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
29652         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
29653         code in the common constrained array cases.
29655         * a-storio.adb: Change implementation to avoid possible alignment
29656         problems on machines requiring strict alignment (data should be moved
29657         as type Buffer, not type Elmt).
29659         * checks.adb (Apply_Array_Size_Check): Improve these checks by
29660         killing the overflow checks which we really do not need (64-bits is
29661         enough).
29663 2004-06-25  Vincent Celier  <celier@gnat.com>
29665         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
29666         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
29667         inconditionally for the main project.
29668         (Recursive_Add_Archives.Add_Archive_Path): New procedure
29669         (Link_Executables.Check_Time_Stamps): New procedure
29670         (Link_Executables.Link_Foreign): New procedure
29671         Changes made to reduce nesting level of this package
29672         (Check): New procedure
29673         (Add_Switches): When not in quiet output, check that a switch is not
29674         the concatenation of several valid switches. If it is, issue a warning.
29675         (Build_Global_Archive): If the global archive is rebuilt, linking need
29676         to be done.
29677         (Compile_Sources): Rebuilding a library archive does not imply
29678         rebuilding the global archive.
29679         (Build_Global_Archive): New procedure
29680         (Build_Library): New name for Build_Archive, now only for library
29681         project
29682         (Check_Archive_Builder): New procedure
29683         (Create_Global_Archive_Dependency_File): New procedure
29684         (Gprmake): Call Build_Global_Archive before linking
29685         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
29686         throughout.
29687         (Scan_Arg): Display the Copyright notice when -v is used
29689         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
29690         for gnatls.
29692         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
29693         COMPILE.
29694         Add new GNAT LIST qualifier /FILES=
29695         Added qualifier /DIRECTORY= to GNAT METRIC
29696         Added qualifier /FILES= to GNAT METRIC
29697         Added qualifier /FILES to GNAT PRETTY
29699         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
29700         to take into account both versions of the switch.
29702         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
29703         always be the last switch to the gcc driver. Disable switch storing so
29704         that switches automatically added by the gcc driver are not put in the
29705         ALI file.
29707         * prj.adb (Project_Empty): Take into account changes in components of
29708         Project_Data.
29710         * prj.ads (Languages_Processed): New enumaration value All_Languages.
29712         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
29713         used. Split Boolean component Ada_Sources_Present in two Boolean
29714         components Ada_Sources_Present and Other_Sources_Present.
29715         Minor reformatting
29717         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
29718         instead of Sources_Present.
29719         (Set_Ada_Paths.Add.Recursive_Add): Ditto
29721         * prj-nmsc.adb: Minor reformatting
29722         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
29723         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
29724         Check_Ada_Naming_Scheme.
29725         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
29726         throughout.
29728         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
29729         In_Limited.
29730         Make sure that all cycles where there is at least one "limited with"
29731         are detected.
29732         (Parse_Single_Project): New Boolean parameter In_Limited
29734         * prj-proc.adb (Recursive_Check): When Process_Languages is
29735         All_Languages, call first Prj.Nmsc.Ada_Check, then
29736         Prj.Nmsc.Other_Languages_Check.
29738         * prj-proc.adb (Process): Use Ada_Sources_Present or
29739         Other_Sources_Present (instead of Sources_Present) depending on
29740         Process_Languages.
29742         * lang-specs.h: Keep -g and -m switches in the same order, and as the
29743         last switches.
29745         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
29746         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
29747         False.
29748         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
29749         False.
29751         * lib.ads (Disable_Switch_Storing): New procedure.
29753         * make.adb: Modifications to reduce nesting level of this package.
29754         (Check_Standard_Library): New procedure
29755         (Gnatmake.Check_Mains): New procedure
29756         (Gnatmake.Create_Binder_Mapping_File): New procedure
29757         (Compile_Sources.Compile): Add switch -gnatez as the last option
29758         (Display): Never display -gnatez
29760         * Makefile.generic:
29761         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
29763         * gnatcmd.adb (Check_Project): New function
29764         (Process_Link): New procedure to reduce nesting depth
29765         (Check_Files): New procedure to reduce the nesting depth.
29766         For GNAT METRIC, include the inherited sources in extending projects.
29767         (GNATCmd): When GNAT LS is invoked with a project file and no files,
29768         add the list of files from the sources of the project file. If this list
29769         is too long, put it in a temp text files and use switch -files=
29770         (Delete_Temp_Config_Files): Delete the temp text file that contains
29771         a list of source for gnatpp or gnatmetric, if one has been created.
29772         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
29773         in the project file is too large, create a temporary text file that
29774         list them and pass it to the tool with "-files=<temp text file>".
29775         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
29777         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
29778         generated file is in not in Ada.
29780         * gnatls.adb: Remove all parameters And_Save that are no longer used.
29781         (Scan_Ls_Arg): Add processing for -files=
29782         (Usage): Add line for -files=
29784         * g-os_lib.adb (On_Windows): New global constant Boolean flag
29785         (Normalize_Pathname): When on Windows and the path starts with a
29786         directory separator, make sure that the resulting path will start with
29787         a drive letter.
29789         * clean.adb (Clean_Archive): New procedure
29790         (Clean_Project): When there is non-Ada code, delete the global archive,
29791         the archive dependency files, the object files and their dependency
29792         files, if they exist.
29793         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
29795 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
29797         * sinfo.ads: Fix typo in comment.
29799         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
29800         the TSS for remote access-to-subprogram types, since these TSS are
29801         always present once the type has been analyzed.
29802         (RAS_E_Dereference): Same.
29804         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
29805         reference raises Bad_Attribute, mark the reference as analyzed so the
29806         node (and any children resulting from rewrites that could have occurred
29807         during the analysis that ultimately failed) is not analyzed again.
29809         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
29811         * exp_dist.adb: Minor comment fix.
29813         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
29814         type is an anonymous access type, no unchecked deallocation of the
29815         allocated object can occur. If the object is controlled, attach it with
29816         a count of 1. This allows attachment to the Global_Final_List, if
29817         no other relevant list is available.
29818         (Get_Allocator_Final_List): For an anonymous access type that is
29819         the type of a discriminant or record component, the corresponding
29820         finalisation list is the one of the scope of the type.
29822 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
29824         * sem_ch3.adb (Replace_Type): When computing the signature of an
29825         inherited subprogram, use the first subtype if the derived type
29826         declaration has no constraint.
29828         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
29829         before applying previous optimization. Minor code cleanup.
29831         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
29832         placed at the beginning of an unpacked record without explicit
29833         alignment, a slice of it will be aligned and does not need a copy when
29834         used as an actual.
29836 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
29838         PR ada/15591
29839         PR ada/15592
29840         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
29841         reference is written with expressions mimicking parameters.
29843 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
29845         PR ada/15589
29846         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
29847         STEP 2a. The constraints of a full type declaration of a derived record
29848         type are checked for conformance with those declared in the
29849         corresponding private extension declaration. The message
29850         "not conformant with previous declaration" is emitted if an error is
29851         detected.
29853 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
29855         * g-traceb.ads: Document the need for -E binder switch in the spec.
29857         * g-trasym.ads: Document the need for -E binder switch in the spec.
29859 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
29861         * sem_prag.adb: Add handling of pragma Detect_Blocking.
29863         * snames.h, snames.ads, snames.adb: Add entry for pragma
29864         Detect_Blocking.
29866         * s-rident.ads: Change reference to pragma Detect_Blocking.
29868         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
29869         system.ads.
29871         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
29872         to indicate whether pragma Detect_Blocking is active.
29874         * par-prag.adb: Add entry for pragma Detect_Blocking.
29876         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
29877         of not handling WITH.
29878         Note that this replaces the previous update which was incorrect.
29880 2004-06-25  Javier Miranda  <miranda@gnat.com>
29882         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
29883         use-clauses to have a clean environment.
29885         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
29886         the installation of the use-clauses to stablish a clean environment in
29887         case of compilation of a separate unit; otherwise the call to
29888         use_one_package is protected by the barrier Applicable_Use.
29890         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
29891         the installation of the use-clauses to stablish a clean environment in
29892         case of compilation of a separate unit.
29893         (End_Use_Clauses): Minor comment cleanup.
29895 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
29897         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
29899 2004-06-23  Richard Henderson  <rth@redhat.com>
29901         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
29903 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29905         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
29906         now bool instead of int.
29907         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
29908         * trans.c (gnu_switch_label_stack): New function.
29909         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
29910         elaboration of renamed entity returns.
29911         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
29912         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
29913         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
29914         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
29915         DECL_SIZE_UNIT and simplify variable-sized case.
29916         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
29917         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
29918         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
29919         (build_unit_elab): Disable for now.
29920         * utils.c (mark_visited): New function.
29921         (pushdecl): Walk tree to call it for global decl.
29922         (update_pointer_to): Update all variants of pointer and ref types.
29923         Add arg to COMPONENT_REF.
29924         (convert): Likewise.
29925         Move check for converting between variants lower down.
29926         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
29927         (build_allocator): Don't force type of MODIFY_EXPR.
29928         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
29929         put_var_into_stack.
29931 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29933         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
29934         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
29935         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
29936         subprograms.
29937         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
29938         all callers changed.
29939         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
29940         the way that EXIT_STMT finds the loop label.
29941         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
29942         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
29943         (add_stmt): Use annotate_with_locus insted of setting directly.
29944         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
29945         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
29946         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
29947         (build_vms_descriptor): Add extra args to ARRAY_REF.
29948         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
29949         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
29950         New cases.
29951         (build_binary_op): Don't make explicit CONVERT_EXPR.
29952         Add extra rgs to ARRAY_REF.
29954 2004-06-14  Pascal Obry  <obry@gnat.com>
29956         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
29957         Windows.  Fix minor typo.
29959         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
29960         which is now supported on Windows. With this implementation using the
29961         Library Project feature is no different on Windows than on UNIX.
29963 2004-06-14  Vincent Celier  <celier@gnat.com>
29965         * makegpr.adb (Compile_Sources): Nothing to do when there are no
29966         non-Ada sources.
29968         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
29970         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
29971         found, show the project name and the path of the previously parsed
29972         project file.
29974 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
29976         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
29977         array, avoid copying the actual before the call.
29979 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
29981         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
29982         Instead, allocate memory on worst-case alignment assumptions, and then
29983         return an aligned address within the allocated zone.
29985 2004-06-14  Robert Dewar  <dewar@gnat.com>
29987         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
29988         elab entities in predefined units in No_Run_Time_Mode.
29989         (Gen_Adainit_C): Same fix
29990         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
29991         units in No_Run_Time_Mode
29992         (Gen_Elab_Calls_C): Same fix
29994         * symbols-vms-alpha.adb: Minor reformatting
29996         * g-debpoo.ads: Minor reformatting
29998         * lib.adb (In_Same_Extended_Unit): Version working on node id's
30000         * lib.ads (In_Same_Extended_Unit): Version working on node id's
30002         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
30003         working on nodes.
30005         * make.adb: Minor reformatting
30007         * par-ch12.adb: Minor reformatting
30009         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
30011         * prj-strt.adb: Minor reformatting
30013         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
30014         be more general.
30016         * sem_attr.adb: Minor reformatting
30018         * sem_ch7.adb: Minor reformatting
30020         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
30021         for type in the same unit as the object declaration.
30023         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
30024         static string expressions and not just string literals.
30025         Minor reformatting
30026         (Set_Warning): Reset restriction warning flag for restriction pragma
30027         Implement pragma Profile_Warnings
30028         Implement pragma Profile (Restricted)
30029         Give obolescent messages for old restrictions and pragmas
30031         * snames.h, snames.ads, snames.adb: Add new entry for pragma
30032         Profile_Warnings.
30034         * s-rident.ads: Add declarations for restrictions required by profile
30035         Restricted and profile Ravenscar.
30037         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
30039         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
30040         configuration pragmas.
30042 2004-06-11  Vincent Celier  <celier@gnat.com>
30044         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
30045         gnatsym, when symbol policy is Restricted.
30047         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
30048         gnatsym, when symbol policy is Restricted.
30050         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
30051         read the symbol file.
30052         (Finalize): Fail in symbol policy Restricted if a symbol in the original
30053         symbol file is not in the object files. Do not create a new symbol file
30054         when symbol policy is Restricted.
30056         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
30057         in Scng.
30059         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
30060         Restricted.
30061         (Usage): Line for new switch -R
30063         * make.adb (Initialize): When the platform is not VMS, add the
30064         directory where gnatmake is invoked in the front of the path, if
30065         gnatmake is invoked with directory information.  Change the Scan_Args
30066         while loop to a for loop.
30067         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
30068         if Depth is equal or greater than the proposed depth, there is nothing
30069         to do.
30070         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
30071         instead of 0.
30073         * prj.ads: Add new symbol policy Restricted.
30075         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
30076         with the new parameters Check_All_Labels and Case_Location.
30078         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
30079         (Library_Symbol_File needs to be defined).
30081         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
30082         and Case_Location If Check_All_Labels is True, check that all values of
30083         the string type are used, and output warning(s) if they are not.
30085         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
30086         and Case_Location.
30088         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
30090         * gnat_ugn.texi: Update documentation about the library directory in
30091         Library Projects.
30093         * makegpr.adb (Display_Command): In verbose mode, also display the
30094         value of the CPATH env var, when the compiler is gcc.
30095         (Initialize): Change the Scan_Args while loop to a for loop
30096         (Compile_Individual_Sources): Change directory to object directory
30097         before compilations.
30099         * symbols.ads: New symbol policy Restricted.
30101 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
30103         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
30104         is now taken care of internally in the Exception_Propagation package
30105         and does not require clients assistance any more.
30107         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
30108         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
30109         functions. Helpers to maintain a predicate required in the handling of
30110         occurrence transfer between tasks.
30111         This is now handled internally and does not require clients assistance
30112         for the setup/propagate separation anymore.
30113         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
30114         allocation strategy, handle the Setup_And_Not_Propagated predicate and
30115         document.
30117         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
30118         raise_after_setup, now that everything is handled internally within the
30119         setup/propagation engine.
30121 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
30123         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
30124         Add additional conditions for the case of an actual being a simple
30125         name or literal. Improve inlining by preventing the generation
30126         of temporaries with a short lifetime (one use).
30128 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
30130         PR ada/15587
30131         * einfo.ads: Minor comment updates for Has_Completion and
30132         E_Constant list of flags.
30134         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
30135         and constant redeclarations now set the Has_Completion flag of their
30136         defining identifiers.
30138         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
30139         Inspect_Deferred_Constant_Completion.
30140         Used to detect private deferred constants that have not been completed
30141         either by a constant redeclaration or pragma Import. Emits error message
30142         "constant declaration requires initialization expression".
30144         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
30145         completes a deferred constant.
30147 2004-06-11  Geert Bosch  <bosch@gnat.com>
30149         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
30151         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
30152         calculating exponent for scaling denormal numbers.
30153         (Leading_Part): Properly raise Constraint_Error for zero or negative
30154         Adjustment.
30155         (Remainder): Properly raise Constraint_Error for zero divisor.
30157 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
30159         * sem_util.adb: Minor reformatting.
30161         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
30162         dereference when accessing the entry parameter record.
30163         (Check_Array_Type): Always check for possible implicit dereference.
30164         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30165         Abort if a pointer is still present (denoting that an implicit
30166         dereference was left in the tree by the front-end).
30168         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
30169         dereference when accessing the entry parameter record.
30170         (Check_Array_Type): Always check for possible implicit dereference.
30171         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30172         Abort if a pointer is still present (denoting that an implicit
30173         dereference was left in the tree by the front-end).
30175 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
30177         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
30178         message, like the compiler itself does. Easier to parse the output.
30180         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
30182         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
30183         be base names, and not includes directories.
30185 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
30187         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
30188         so that dependencies are properly taken into account by make.
30190 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
30192         PR ada/15622
30193         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
30194         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
30196 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
30198         * Makefile.in (install-gnatlib): install target-specific run-time files.
30200         * Make-lang.in: Remove obsolete targets.
30202 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
30204         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
30205         specification, to catch misuses of program unit names.
30207         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
30208         superfluous conversions in an instance.
30210 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
30212         PR ada/15403
30213         * sem_ch12.adb (Save_References): If operator node has been folded to
30214         enumeration literal, associated_node must be discarded.
30216 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
30218         * s-stchop-vxworks.adb: Add required pragma Convention to
30219         Task_Descriptor because it is updated by a C function.
30221 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
30223         PR ada/15568
30224         * Makefile.in: Remove target specific SO_OPT on IRIX
30226 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30228         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
30229         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
30230         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
30231         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
30232         (STMT_STMT, USE_STMT): New statement codes.
30233         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
30234         * ada-tree.h: Reflect above changes.
30235         (struct tree_loop_id): Deleted.
30236         (union lang_tree_node, struct lang_decl, struct lang_type):
30237         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
30238         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
30239         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
30240         (IS_ADA_STMT): New macro.
30241         * decl.c (annotate_decl_with_node): New function.
30242         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
30243         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
30244         Call add_stmt_with_node to do needed assignments.
30245         Add call to update setjmp buffer directly, not via EXPR_STMT.
30246         (maybe_variable): Argment GNAT_NODE deleted.
30247         * gigi.h (maybe_variable): Likewise.
30248         (make_transform, add_stmt_with_node, set_block_for_group): New.
30249         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
30250         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
30251         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
30252         (set_lineno, set_lineno_from_sloc): Likewise.
30253         (record_code_position, insert_code_for): Likewise.
30254         (gnat_poplevel): Now returns void.
30255         (end_subprog_body): Now takes argument.
30256         * misc.c (cgraph.h, tree-inline.h): New includes.
30257         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
30258         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
30259         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
30260         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
30261         (gnat_parse_file): Don't set immediate_size_expand.
30262         Call cgraph functions.
30263         (gnat_expand_expr): Remove most cases.
30264         (record_code_position, insert_code_for): Remove from here.
30265         * trans.c (toplev.h, tree-gimple.h): Now included.
30266         (discard_file_names): Deleted.
30267         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
30268         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
30269         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
30270         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
30271         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
30272         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
30273         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
30274         (set_block_for_group, add_stmt_list): Likewise.
30275         (start_stmt_group): Renamed from start_block_stmt.
30276         (end_stmt_group): Likewise, from end_block_stmt.
30277         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
30278         (gigi): Don't set discard_file_names or call set_lineno.
30279         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
30280         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
30281         Numerous changes throughout to reflect new names and complete
30282         function-at-a-time implementation.
30283         (gnat_expand_stmt): Delete or comment out all cases.
30284         (process_inlined_subprograms): Use add_stmt.
30285         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
30286         call set_lineno; also remove unneeded block handling.
30287         (process_type): Remove unneeded block handling.
30288         (build_unit_elab): Remove calls to deleted functions.
30289         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
30290         (tree-dump.h): Likewise.
30291         (struct ada_binding_level): Add field jmpbuf_decl.
30292         (gnat_define_builtin, gnat_install_builtins): New.
30293         (gnat_gimplify_function, gnat_finalize): Likewise.
30294         (gnat_poplevel): No longer return BLOCK, set it instead.
30295         Remove code dealing with nested functions.
30296         (gnat_init_decl_processing): Also set size_type_node.
30297         Call gnat_install_builtins.
30298         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
30299         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
30300         Remove special-case for "main".
30301         (end_subprog_body): Add arg and rework for tree-ssa.
30302         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
30303         Add case for BOOLEAN_TYPE.
30304         * utils2.c (rtl.h): Now include.
30305         (build_call_raise): Test Debug_Flag_NN directly.
30306         (build_call_alloc_dealloc): Don't use local stack allocation for now.
30307         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
30308         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
30310 2004-06-07  Robert Dewar  <dewar@gnat.com>
30312         * a-direct.ads, einfo.ads: Minor comment updates
30314         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
30315         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30316         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
30317         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
30318         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
30320         * s-interr-sigaction.adb: Remove unreferenced variable
30321         (Attached_Interrupts).  Minor reformatting.
30322         Avoid use of variable I (replace by J).
30324         * par-ch10.adb: Fix text of one error message
30326         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
30327         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
30328         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
30329         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
30330         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
30331         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
30332         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
30333         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
30334         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
30335         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
30336         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
30337         2005 support.
30339 2004-06-07  Doug Rupp  <rupp@gnat.com>
30341         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
30343         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
30345         * mlib-tgt-vms-ia64.adb: New file.
30347         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
30348         Add mlib-tgt-vms-ia64.adb
30349         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
30350         Move to alpha specific ifeq section.
30351         Add VMS specific versions of symbols.adb
30352         Renaming of 5q vms files.
30354         * 5qsystem.ads renamed to system-vms_64.ads.
30356 2004-06-07  Vincent Celier  <celier@gnat.com>
30358         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
30359         explain that when a time of day corresponding to the non existing hour
30360         on the day switching to DST is specified, Split may return a different
30361         value for Seconds.
30363         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
30364         to GNAT PRETTY.
30366         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
30367         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
30369         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
30370         to False.
30371         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
30372         the linking options.
30373         (Build_Library.Check_Libs): On VMS, if there is a dependency on
30374         g-trasym.ads, set Gtrasymobj_Needed to True.
30376         * prj-attr.adb: Add new package Metrics for gnatmetric
30378         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
30379         canonical case to take into account files with upper case characters on
30380         Windows.
30381         (Ada_Check): Load the reference symbol file name in the name buffer to
30382         check it, not the symbol file name.
30384         * snames.ads, snames.adb: Add standard name Metrics (name of project
30385         file package for gnatmetric).
30387         * vms_conv.ads: Add Metric to Comment_Type
30389         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
30391         * vms_data.ads: Add qualifiers for GNAT METRIC
30393         * makegpr.adb (Link_Executables): Take into account the switches
30394         specified in package Linker of the main project.
30396 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
30398         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
30399         the index of the last element is Units.Last, not Units.Table'Last
30400         (which is usually not a valid index within the actually allocated
30401         storage for the table).
30403         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
30404         determines whether to generate a call to a checked storage pool
30405         Dereference action.
30406         Generate such a call only for a dereference that either comes from
30407         source, or is the result of rewriting a dereference that comes from
30408         source.
30410 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
30412         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
30414 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
30416         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
30417         file level, elaborate the stride for inner dimensions in alignment
30418         units, not bytes.
30420         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
30421         in a comment.
30423 2004-06-07  Javier Miranda  <miranda@gnat.com>
30425         * exp_ch6.adb: Correct wrong modification in previous patch
30427 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
30429         * g-trasym.ads: Corrected comment to properly reflect level of support
30430         on VMS.
30432 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
30434         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
30435         includes case of a variable referenced on the left hand side of an
30436         assignment, therefore remove redundant code. Variables and prefixes of
30437         indexed or selected components are now marked as referenced on left
30438         hand side. Warnings are now properly emitted when variables or prefixes
30439         are assigned but not read.
30441         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
30442         left hand side referenced variables. Private access types do not
30443         produce the warning "variable ... is assigned but never read".
30444         Add also additional checks to left hand side referenced variables.
30445         Aliased, renamed objects and access types do not produce the warning
30446         "variable ... is assigned but never read" since other entities may read
30447         the memory location.
30449 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
30451         * Makefile.in: In the powerpc/vxworks-specific section, restore
30452         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
30453         by mistake).
30455 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
30457         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
30458         predefined operators.
30459         Removes spurious type errors from g-trasym-vms.adb.
30461         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
30462         distinct from the operator appearing in the source, call appropriate
30463         routine to insert conversions when needed, and complete resolution of
30464         node.
30465         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
30466         interpretations for rewritten right operand.
30467         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
30468         the other operand is overloaded and the context is a type conversion.
30470 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30472         * ada-tree.def (BLOCK_STMT): Now has two operands.
30473         (BREAK_STMT): New.
30475         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
30477         * gigi.h: (gnat_poplevel): Now returns a tree.
30479         * trans.c (end_block_stmt): Add arg; all callers changed.
30480         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
30481         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
30482         (add_stmt): Set TREE_TYPE.
30483         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
30484         (gnat_expand_stmt, case BREAK_STMT): New case.
30486         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
30488 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
30490         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
30491         procedure Set_Stack_Size that is not needed.
30493 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
30495         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
30496         used for gnatpp input file and for the files upon which it depends
30498 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
30500         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
30502 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
30504         * gnatvsn.ads: Bump version numbers appropriately.
30505         Add new build type.
30507 2004-06-07  Pascal Obry  <obry@gnat.com>
30509         * gnat_ugn.texi: Improve comments about imported names and link names
30510         on Windows. Add a note about the requirement to use -k gnatdll's option
30511         when working with a DLL which has stripped stdcall symbols (no @nn
30512         suffix).
30514 2004-05-27  Vincent Celier  <celier@gnat.com>
30516         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
30517         COMMENTS_LAYOUT=UNTOUCHED
30519         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
30520         symbols-vms-alpha.adb
30522 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
30524         * sem.ads: Clarify documentation on checks suppression.
30526         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
30528 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
30530         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
30531         the case of multiple derivations.
30532         (Is_Object_Reference): For a selected component, verify that the prefix
30533         is itself an object and not a value.
30535         * sem_ch12.adb (Same_Instantiated_Constant): New name for
30536         Same_Instantiated_Entity.
30537         (Same_Instantiated_Variable): Subsidiary to
30538         Check_Formal_Package_Instance, to recognize actuals for in-out generic
30539         formals that are obtained from a previous formal package.
30540         (Instantiate_Subprogram_Body): Emit proper error when
30541         generating code and the proper body of a stub is missing.
30543         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
30544         has a universal interpretation, do the disambiguation here.
30546         * exp_ch4.adb (Expand_N_Type_Conversion,
30547         Expand_N_Unchecked_Type_Conversion): Special handling when target type
30548         is Address, to avoid typing anomalies when Address is a visible integer
30549         type.
30551         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
30552         to determine whether a subprogram should not be marked Pure, even when
30553         declared in a pure package.
30555 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
30557         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
30559         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
30560         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
30561         Update the documentation about the Ravenscar profile, following the
30562         definition found in AI-249.
30564         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
30565         setting the Profile (Ravenscar). This must be done in addition to
30566         setting the required restrictions.
30568         * rtsfind.ads: Add the set of operations defined in package
30569         Ada.Interrupts.
30571         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
30572         restriction.
30574 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
30576         lang-specs.h: Always require -c or -S and always redirect to /dev/null
30577         if -gnatc or -gnats is passed.
30579 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
30581         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
30582         a significant reference. Warnings are now properly emitted when a
30583         discriminated type is not referenced.
30585         * lib-xref.adb (Generate_Reference): A deferred constant completion,
30586         record representation clause or record type discriminant does not
30587         produce a reference to its corresponding entity. Warnings are now
30588         properly emitted when deferred constants and record types are not
30589         referenced.
30591 2004-05-27  Geert Bosch  <bosch@gnat.com>
30593         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
30594         Fixes ACATS Annex G tests.
30596 2004-05-27  Robert Dewar  <dewar@gnat.com>
30598         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
30599         handling WITH
30601 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
30603         * s-interr.adb (Server_Task): Take into account case of early return
30604         from sigwait under e.g. linux.
30606 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
30608         * gnat_ugn.texi: Add description for the new gnatpp options:
30609          -rnb - replace the original source without creating its backup copy
30610          -c0 - do not format comments
30612 2004-05-24  Geert Bosch  <bosch@gnat.com>
30614         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
30615         with 192 bits of precision, sufficient to reduce a double-extended
30616         arguments X with a maximum relative error of T'Machine_Epsilon, for X
30617         in -2.0**32 .. 2.0**32.
30618         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
30619         reduction by the processor, which only uses a 68-bit approximation of
30620         Pi.
30621         (Tan): Always reduce arguments and compute function either using
30622         the processor's fptan instruction, or by dividing sin and cos as needed.
30624 2004-05-24  Doug Rupp  <rupp@gnat.com>
30626         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
30627         gcc error on 32/64 bit VMS.
30629 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
30631         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
30632         since this is what we get for stack overflows although not documented
30633         as such.
30634         Document the issues which may require adjustments to our signal
30635         handlers.
30637 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
30639         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
30640         enclosing dynamic scope if the instantiation is within a generic unit.
30642 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
30644         * exp_dbug.ads: Fix typo.
30646         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
30647         Rename it to its proper name: system-linux-ia64.ads
30648         (stamp-gnatlib1): Remove extra target specific run time files when
30649         setting up the rts directory.
30651 2004-05-24  Javier Miranda  <miranda@gnat.com>
30653         * einfo.ads, einfo.adb (Limited_Views): Removed.
30654         (Limited_View): New attribute that replaces the previous one. It is
30655         now a bona fide package with the limited-view list through the
30656         first_entity and first_private attributes.
30658         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
30659         limited-private-with clause.
30660         (Install_Limited_Withed_Unit): Install the private declarations of a
30661         limited-private-withed package. Update the installation of the shadow
30662         entities according to the new structure (see Build_Limited_Views)
30663         (Build_Limited_Views): Replace the previous implementation of the
30664         limited view by a package entity that references the first shadow
30665         entity plus the first shadow private entity (required for limited-
30666         private-with clause)
30667         (New_Internal_Shadow_Entity): Code cleanup.
30668         (Remove_Limited_With_Clause): Update the implementation to undo the
30669         new work carried out by Build_Limited_Views.
30670         (Build_Chain): Complete documentation.
30671         Replace Ada0Y by Ada 0Y in comments
30672         Minor reformating
30674         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
30675         types the level of accessibility depends on the enclosing type
30676         declaration.
30678         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
30679         entities. Complete documentation of previous change.
30681 2004-05-24  Robert Dewar  <dewar@gnat.com>
30683         * namet.adb: Minor reformatting
30684         Avoid use of name I (replace by J)
30685         Minor code restructuring
30687         * sem_ch6.adb: Minor reformatting
30689         * lib-writ.adb: Do not set restriction as active if this is a
30690         Restriction_Warning case.
30692         * sem_prag.adb: Reset restriction warning flag if real pragma
30693         restriction encountered.
30695         * s-htable.adb: Minor reformatting
30696         Change rotate count to 3 in Hash (improves hash for small strings)
30698         * 5qsystem.ads: Add comments for type Address (no literals allowed).
30700         * gnat_ugn.texi: Add new section of documentation "Code Generation
30701         Control", which describes the use of -m switches.
30703 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
30705         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
30706         through the DECL_INITIAL for renamed variables.
30708 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
30710         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
30712 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
30714         * exp_dbug.ads: Correct comments concerning handling of overloading,
30715         since we no longer use $ anymore.
30717 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
30719         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
30720         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
30721         with illegal subunits.
30723 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
30725         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
30726         body with front-end inlining enabled, check whether an inline pragma
30727         appears immediately after the body and applies to it.
30729         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
30730         enabled and the pragma appears after the body of the subprogram.
30732 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30734         Part of function-at-a-time conversion
30736         * misc.c (adjust_decl_rtl): Deleted.
30737         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
30738         Define.
30740         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
30741         (add_decl_stmt, add_stmt, block_has_vars): New functions.
30742         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
30744         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
30745         when making a decl.
30746         (gnat_to_gnu_entity): Likewise.
30747         Use add_stmt to update setjmp buffer.
30748         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
30749         flush_addressof.
30750         No longer call adjust_decl_rtl.
30751         (DECL_INIT_BY_ASSIGN_P): New macro.
30752         (DECL_STMT_VAR): Likewise.
30754         * trans.c (gigi): Call start_block_stmt to make the outermost
30755         BLOCK_STMT.
30756         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
30757         Call start_block_stmt and end_block_stmt temporarily.
30758         Use gnat_expand_stmt instead of expand_expr_stmt.
30759         (add_decl_stmt): New function.
30760         (tree_transform): Call it.
30761         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
30762         (end_block_stmt): Set type and NULL_STMT.
30763         (gnat_expand_stmt): Make recursize call instead of calling
30764         expand_expr_stmt.
30765         (gnat_expand_stmt, case DECL_STMT): New case.
30766         (set_lineno_from_sloc): Do nothing if global.
30767         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
30768         (start_block_stmt, add_stmt, end_block_stmt): New functions.
30769         (build_block_stmt): Call them.
30770         (gnat_to_code): Don't expand NULL_STMT.
30771         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
30772         args.
30773         (tree_transform): Likewise.
30774         (tree_transform, case N_Null_Statement): Return NULL_STMT.
30775         (gnat_expand_stmt, case NULL_STMT): New case.
30776         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
30777         IF_STMT_TRUE.
30779         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
30780         TREE_ADDRESSABLE.
30782         * utils.c (create_var_decl): Do not call expand_decl or
30783         expand_decl_init.
30784         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
30785         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
30786         here.
30787         (struct e_stack): Add chain_next to GTY.
30788         (struct binding_level): Deleted.
30789         (struct ada_binding_level): New struct.
30790         (free_block_chain): New.
30791         (global_binding_level, clear_binding_level): Deleted.
30792         (global_bindings_p): Rework to see if no chain.
30793         (kept_level_p, set_block): Deleted.
30794         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
30795         new data structure and work directly on BLOCK node.
30796         (gnat_poplevel): Similarly.
30797         (get_decls): Look at BLOCK_VARS.
30798         (insert_block): Work directly on BLOCK node.
30799         (block_has_var): New function.
30800         (pushdecl): Rework for new binding structures.
30801         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
30802         poplevel.
30803         (build_subprog_body): Likewise.
30804         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
30806         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
30808         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
30809         (DECL_STMT_VAR): Likewise.
30811 2004-05-17  Robert Dewar  <dewar@gnat.com>
30813         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
30814         procedure
30816         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
30817         of restriction synonyums by using
30818         Restrict.Process_Restriction_Synonyms.
30820         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
30822         * s-restri.ads (Tasking_Allowed): Correct missing comment
30824         * s-rident.ads: Add entries for restriction synonyms
30826         * ali.adb: Fix some problems with badly formatted ALI files that can
30827         result in infinite loops.
30829         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
30830         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
30831         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30832         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
30833         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
30834         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
30835         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
30836         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
30837         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
30838         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
30839         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
30840         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
30841         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
30842         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
30843         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
30844         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
30845         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
30846         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
30847         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
30848         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
30849         to Task_Id (minor cleanup).
30851 2004-05-17  Vincent Celier  <celier@gnat.com>
30853         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
30854         directory separator.
30856         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
30857         project being extended, if Languages is not declared in extending
30858         project.
30860 2004-05-17  Javier Miranda  <miranda@gnat.com>
30862         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
30863         limited view of a visible sibling.
30865 2004-05-14  Robert Dewar  <dewar@gnat.com>
30867         * gnat_ugn.texi: Minor change to -gnatS documentation
30869         * sprint.adb: Remove some instances of Assert (False) and for this
30870         purpose replace them by output of a ??? string.
30872         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
30873         Assert (False).
30875         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
30876         flag processing. This was suppressing required dependencies in
30877         No_Run_Time mode and is not needed since the binder does not generate
30878         references for things in libgnat anyway.
30880         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
30881         warning.
30883 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
30885         * gnat_ugn.texi: Document AIX-specific issue with initialization of
30886         resolver library.
30888         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
30889         action for the case of an actual parameter in an init proc call.
30891 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
30893         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
30894         subtype, check visible entities in base type.
30896         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
30897         actions if the object is a renaming.
30899         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
30900         Check_Formal_Package_Instance, to determine more precisely when the
30901         formal and the actual denote the same entity.
30903 2004-05-14  Javier Miranda  <miranda@gnat.com>
30905         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
30907         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
30908         corresponding to a private_with must be removed from visibility; it
30909         will be made visible later, just before we analyze the private part of
30910         the package.
30911         (Check_Private_Child_Unit): Allow private_with clauses in public
30912         siblings.
30913         (Install_Siblings): Make visible the private entities of private-withed
30914         siblings.
30915         (Install_Withed_Unit): Do not install the private withed unit if we
30916         are compiling a package declaration and the Private_With_OK flag was
30917         not set by the caller. These declarations will be installed later,
30918         just before we analyze the private part of the package.
30920         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
30921         during the evaluation of the expression that initializes the object,
30922         decorate it with the expected type to avoid cascade errors.
30923         Code cleanup.
30925         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
30926         subprogram we have to install the private_with clauses after its
30927         specification has been analyzed (as documented in AI-262.TXT).
30929         * sem_ch8.adb (Has_Private_With): New function. Determines if the
30930         current compilation unit has a private with on a given entity.
30931         (Find_Direct_Name): Detect the Beaujolais problem described in
30932         AI-262.TXT
30934         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
30935         provides the functionality of the function Is_Ancestor that was
30936         previously available in sem_ch10. It has been renamed to avoid
30937         overloading.
30939         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
30941 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30943         * utils.c (build_vms_descriptor): Use SImode pointers.
30945 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
30947         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
30949 2004-05-14  GNAT Script  <nobody@gnat.com>
30951         * Make-lang.in: Makefile automatically updated
30953 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
30955         Renaming of target specific files for clarity
30957         * Makefile.in: Rename GNAT target specific files.
30959         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
30960         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
30961         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
30962         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
30963         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
30964         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
30965         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
30966         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
30967         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
30968         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
30969         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
30970         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
30971         51osinte.adb, 51osinte.ads, 51system.ads,
30972         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
30973         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
30974         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
30975         56tpopsp.adb, 57system.ads, 58system.ads,
30976         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
30977         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
30978         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
30979         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
30980         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
30981         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
30982         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
30983         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
30984         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
30985         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
30986         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
30987         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
30988         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
30989         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
30990         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
30991         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
30992         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
30993         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
30994         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
30995         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
30996         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
30997         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
30998         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
30999         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
31000         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
31001         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
31002         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
31003         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
31004         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
31005         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
31006         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
31007         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
31008         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
31009         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
31010         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
31011         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
31012         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
31013         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
31014         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
31015         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
31017         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
31018         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
31019         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
31020         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
31021         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
31022         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
31023         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
31024         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
31025         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
31026         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
31027         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
31028         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
31029         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
31030         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
31031         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
31032         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
31033         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
31034         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
31035         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
31036         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
31037         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
31038         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
31039         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
31040         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
31041         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
31042         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
31043         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
31044         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
31045         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
31046         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
31047         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
31048         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
31049         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
31050         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
31051         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
31052         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
31053         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
31054         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
31055         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
31056         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
31057         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
31058         s-osinte-vms.ads, s-osinte-vxworks.adb,
31059         s-osinte-vxworks.ads, s-osprim-mingw.adb,
31060         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
31061         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
31062         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
31063         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
31064         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
31065         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
31066         s-stchop-vxworks.adb, s-taprop-dummy.adb,
31067         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
31068         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
31069         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
31070         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
31071         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
31072         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
31073         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
31074         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
31075         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
31076         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
31077         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
31078         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
31079         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
31080         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
31081         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
31082         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
31083         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
31084         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
31085         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
31086         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
31087         system-irix-o32.ads, system-linux-x86_64.ads,
31088         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
31089         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
31090         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
31091         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
31092         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
31093         system-vxworks-mips.ads, system-vxworks-ppc.ads,
31094         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
31095         above.
31097 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
31099         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
31101 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
31103         Merge from tree-ssa-20020619-branch.
31105         * config-lang.in (boot_language, build_by_default): Set
31106         to no.
31107         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
31108         (max_size): Add static chain op for call_expr.
31110 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
31112         PR target/15331
31113         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
31115 2004-05-11  Roger Sayle  <roger@eyesopen.com>
31117         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
31118         COND_EXPR.
31120 2004-05-10  Doug Rupp  <rupp@gnat.com>
31122         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
31123         system.aux_dec.
31125         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
31127         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
31129         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
31130         Fixes undefined symbols in IA64 gnatlib.
31132         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
31134         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
31135         Short_Address). This will be moved to system.auxdec.
31137 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
31139         * sem_util.adb: Replace test for presence of a node that is always
31140         present with a call to Discard_Node.
31142         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
31143         Analyze on the library unit node after generation of distribution stub
31144         constructs.  The call was a no-op because Unit_Node has already been
31145         Analyzed, and the tree fragments for the distribution stubs are
31146         analyzed as they are inserted in Exp_Dist.
31147         Update comment regarding to distribution stubs to reflect that we
31148         do not generate stub in separate files anymore.
31150         * einfo.ads: Clarify the fact that a tagged private type has the
31151         E_Record_Type_With_Private Ekind.
31153         * erroutc.adb: Minor reformatting
31155         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
31156         values if line length is increased using -gnatyM (noticed during code
31157         reading).
31159         * eval_fat.adb: Minor reformatting
31160         Put spaces around exponentiation operator
31162 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
31164         PR ada/15005
31165         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
31166         has been rewritten as an explicit dereference, retrieve type of
31167         original node to check for possibly unconstrained record type.
31169 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
31171         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
31172         overriding, use the operation of the parent unconditionally.
31174         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
31175         operation when either operand is a literal, to avoid further
31176         ambiguities.
31178         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
31179         overridden by a previous explicit declaration, mark the previous entity
31180         as overriding.
31182         * sem_disp.adb (Check_Dispatching_Operation): New predicate
31183         Is_Visibly_Controlled, to determine whether a declaration of a
31184         primitive control operation for a derived type overrides an inherited
31185         one. Add warning if the explicit declaration does not override.
31187 2004-05-10  Vincent Celier  <celier@gnat.com>
31189         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
31190         some cases when the sources are no longer present.
31192         * make.adb (Collect_Arguments): Fail if an external source, not part
31193         of any project need to be compiled, when switch -x has not been
31194         specified.
31196         * makeusg.adb: Document new switch -x
31198         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
31199         defaulted to False.
31201         * switch-m.adb (Scan_Make_Switches): New switch -x
31203         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
31204         gnatmake switch -x.
31206         * gnat_ugn.texi: Document new gnatmake switch -x
31208 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
31210         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
31212         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
31213         (process_attributes): Likewise.
31215 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
31217         * s-inmaop.ads: Fix spelling mistake in one of the comments.
31219 2004-05-10  Robert Dewar  <dewar@gnat.com>
31221         * gnat_ugn.texi: Document that for config pragma files, the maximum
31222         line length is always 32767.
31224         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
31225         literals is now allowed.
31227         * gnat-style.texi: Remove statement about splitting long lines before
31228         an operator rather than after, since we do not follow this rule at all.
31229         Clarify rule (really lack of rule) for spaces around exponentiation
31231         * sem_elim.adb: Allow concatenation of string literals as well as a
31232         single string literal for pragma arguments.
31234         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
31236         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
31237         written for append case.
31239         * frontend.adb: Changes to avoid checking max line length in config
31240         pragma files.
31242         * g-os_lib.ads: Minor reformatting
31244         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
31245         wrong in any case. Instead use standard value. Noticed during code
31246         reading.
31248         * opt.ads (Max_Line_Length): New field, used to implement removal of
31249         limitation on length of lines when scanning config pragma files.
31251         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
31252         makeutl.ads, makeutl.adb: Minor reformatting
31254         * scn.adb: Do not check line length while scanning config pragma files
31255         Do not check line length while scanning out license information
31257         * scng.adb: Changes to avoid line length checks while parsing config
31258         pragma files.
31260 2004-05-10  GNAT Script  <nobody@gnat.com>
31262         * Make-lang.in: Makefile automatically updated
31264 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
31266         * osint.adb (Find_Program_Name): Fix handling of VMS version
31267         number.
31269 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
31271         * g-os_lib.ads (Invalid_Time): New constant
31273         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
31274         return OS_Time instead of time_t to match what is imported by Ada.
31275         Now return -1 if the file doesn't exist, instead of a random value
31277 2004-05-05  Robert Dewar  <dewar@gnat.com>
31279         * usage.adb: Add line for -gnatR?s switch
31281         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
31283         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
31284         and for Match (Data_First, Data_last)
31286         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
31287         written when we are dealing with multi-unit files.
31289 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
31291         * Makefile.in: Remove unused targets and variables.
31293 2004-05-05  Vincent Celier  <celier@gnat.com>
31295         * switch-m.adb: New gnatmake switch -eI
31297         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
31298         of new gnatmake switch -eInnn.
31300         * makegpr.adb: Take into account new parameters Index and Src_Index in
31301         Prj.Util.
31303         * clean.adb: Implement support for multi-unit sources, including new
31304         switch -i.
31306         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
31307         Src_Index.
31309         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
31310         (Extract_From_Q): New out parameter Index
31311         (Mark, Is_Marked): Subprograms moved to Makeutl
31312         (Switches_Of): New parameter Source_Index
31313         (Add_Switch): New parameter Index
31314         (Check): New parameter Source_Index
31315         (Collect_Arguments): New parameter Source_Index
31316         (Collect_Arguments_And_Compile): New parameter Source_Index
31317         (Compile): New parameter Source_Index
31318         Put subprograms in alphabetical order
31319         Add support for multi-source sources, including in project files.
31321         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
31322         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
31323         Make.
31325         * makeusg.adb: New gnatmake switch -eInnn
31327         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
31328         Prj.Util.Value_Of.
31330         * opt.ads (Main_Index): New variable, defaulted to 0.
31332         * osint.ads, osinte.adb (Add_File): New parameter Index
31333         (Current_Source_Index): New function
31335         * prj.adb: Take into account new components Index and Src_Index
31337         * prj.ads (String_Element): New component Index
31338         (Variable_Value): New component Index
31339         (Array_Element): New component Src_Index
31341         * prj-attr.adb: Indicate that optional index may be specified for
31342         attributes Main, Executable, Spec, Body and some of Switches.
31344         * prj-attr.ads (Attribute_Kind): New values for optional indexes
31345         (Attribute_Record): New component Optional_Index
31347         * prj-com.ads (File_Name_Data): New component Index
31349         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
31351         * prj-env.adb (Put): Output optional index
31353         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
31354         attributes Spec and Body.
31356         * prj-nmsc.adb: Process optional indexes
31358         * prj-pp.adb: Ouput "at" for optional indexes
31360         * prj-proc.adb: Take into account optional indexes
31362         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
31363         Optional_Index. For string literal,
31364         process optional index when Optional_Index is True.
31365         (Parse_Expresion): New Boolean parameter Optional_Index
31367         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
31368         (Set_Source_Index_Of): New procedure
31370         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
31371         index.
31373         * prj-util.ads (Executable_Of): New parameter Index
31374         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
31375         New parameter Src_Index, defaulted to 0.
31377 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
31379         PR ada/15257
31380         * sem_ch3.adb (Access_Definition): If this is an access parameter
31381         whose designated type is imported through a limited_with clause, do
31382         not add the enclosing subprogram to the list of private dependents of
31383         the type.
31385 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
31387         PR ada/15258
31388         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
31389         a limited_with clause, and the other is its non-limited view.
31391 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
31393         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
31395         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
31396         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
31397         Stand.Boolean_Literals to produce references to entities
31398         Standard_False and Standard_True from compile-time computed boolean
31399         values.
31401         * stand.ads (Boolean_Literals): New variable, provides the entity
31402         values for False and True, for use by the expander.
31404 2004-05-05  Doug Rupp  <rupp@gnat.com>
31406         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
31407         5vinmaop.adb: Unchecked convert Short_Address vice Address
31409         * adaint.c, raise.c: Caste CRTL function return value
31410         to avoid gcc error on 32/64 bit IVMS.
31412         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
31413         target = IA64/VMS.
31415         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
31417         * 5qsystem.ads (Address): Declare as Long_Integer
31418         (Short_Address): Declare as 32 bit subtype of Address
31419         Declare  abstract address operations to avoid gratuitous ambiguities.
31421 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
31423         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
31424         instead of the old Boolean_Entry_Barriers.
31425         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
31427 2004-05-05  GNAT Script  <nobody@gnat.com>
31429         * Make-lang.in: Makefile automatically updated
31431 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
31433         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
31435 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
31437         PR ada/15152
31438         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
31439         alone. Replacing object references by literals is inappropriate in a
31440         so low level context.
31442 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
31444         * a-exexpr.adb: Add comments
31446 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
31448         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
31449         declare the Ancestor_Tags array in Type_Specific_Data with a small size
31450         without risking a bounds check error when accessing one of its
31451         components.
31452         (Type_Specific_Data): Define Ancestor_Tags as a small array.
31453         This prevents us from hitting a limitation during the debug info
31454         generation when using stabs.
31456         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
31457         small array.
31458         This prevents us from hitting a limitation during the debug info
31459         generation when using stabs.
31461 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
31463         lang-specs.h: Remove -gnatz* from specs.
31465 2004-05-03  Vincent Celier  <celier@gnat.com>
31467         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
31469         * Make-lang.in, Makefile.in: Add gprmake
31471 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
31473         * sem_aggr.adb: Fix typo in comment.
31475 2004-05-03  Robert Dewar  <dewar@gnat.com>
31477         * make.adb: Minor reformatting
31479         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
31481         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
31482         so that it works when address is not a private type.
31484         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
31485         properly with rewritten unchecked conversions. This prevents
31486         order-of-elaboration issues that can otherwise arise.
31487         (Minimum_Size): Don't check size of access types under VMS
31489         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
31490         interpretations of integer literals as type System.Address.
31492         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
31493         (Is_Descendent_Of): New function
31495 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
31497         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31498         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
31499         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
31501         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
31502         of the old Max_Entry_Queue_Depth.
31504         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31505         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
31506         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
31508         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
31509         New entry for proper handling of Max_Entry_Queue_Depth.
31510         New entry for proper handling of No_Dynamic_Interrupts.
31512         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
31513         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31514         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
31515         the GNAT specific restriction Max_Entry_Queue_Depth.
31516         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
31517         the GNAT specific restriction No_Dynamic_Interrupts.
31519         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
31520         instead of the old Boolean_Entry_Barriers.
31521         Use the new restriction No_Dynamic_Attachment instead of the old
31522         No_Dynamic_Interrupts.
31524         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
31525         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31527         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
31528         of the old Max_Entry_Queue_Depth.
31530 2004-05-03  GNAT Script  <nobody@gnat.com>
31532         * Make-lang.in: Makefile automatically updated
31534 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
31536         * checks.adb (Enable_Range_Check): If the prefix of an index component
31537         is an access to an unconstrained array, perform check unconditionally.
31539 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31541         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
31542         Component_Clause.
31544 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
31546         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
31547         alternate stack setting. There was no support for the tasking cases
31548         and the changes eventually caused a number of side-effect failures in
31549         the non-tasking case too.
31551 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
31553         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
31554         -gnats is passed.
31556 2004-04-29  Vincent Celier  <celier@gnat.com>
31558         * make.adb (Gnatmake): Increase max size of argument array for
31559         gnatbind for the potential addition of -F.
31560         If there are Stand-Alone Library projects, invoke gnatbind with -F to
31561         be sure that elaboration flags will be checked.
31563         * switch-c.adb: Correct call to Scan_Pos for -gnateI
31565 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
31567         * sem_warn.adb (Check_References): Move '<access-variable> may be
31568         null' warning out of under Warn_On_No_Value_Assigned.
31570 2004-04-29  Ed Falis  <falis@gnat.com>
31572         * gnat_ugn.texi: Fixed texi error
31574 2004-04-29  Robert Dewar  <dewar@gnat.com>
31576         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
31577         abstract operations if they come from predefined files.
31579         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
31580         Dynamic, not RM).
31582         * s-addope.adb: Correct obvious error in mod function
31584 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
31586         * Makefile.in: Add target pairs for powerpc darwin*
31587         tasking support.
31589         * a-intnam-darwin.ads, s-osinte-darwin.adb,
31590         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
31592 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
31594         * Makefile.in: Add target macro definitions for s390*-linux*.
31595         * system-linux-s390.ads: New file.
31596         * system-linux-s390x.ads: New file.
31598 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
31600         * gnat_ugn.texi: Correct argument to @setfilename.
31602 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
31604         * a-exexpr.adb (Unwind_Word): New data type.
31605         (Unwind_Exception): Use it as type of Private1 and Private2.
31607         * raise.c (db_action_for): Fix debug printf.
31609 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
31611         * a-wtmoio.ads: Formal type must be a modular type, not a signed
31612         integer type.
31614 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31616         * decl.c (gnat_to_gnu_entity, case object): Call
31617         __builtin_update_setjmp_buf.
31619         * gigi.h (update_setjmp_buf): Deleted.
31620         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
31622         * misc.c: (update_setjmp_buf): Deleted.
31624         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
31625         around block of RTL.
31627         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
31629 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
31631         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
31632         subprogram for which no pragma All_Calls_Remote applies, store the
31633         address of the real subprogram in the underlying record type, so local
31634         dereferences do not go through the PCS.
31636 2004-04-26  Robert Dewar  <dewar@gnat.com>
31638         * i-c.ads: Add some type qualifications to avoid ambiguities when
31639         compiling with s-auxdec.ads and a non-private address type.
31641 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
31643         * Makefile.rtl: Fix error in previous check-in:
31644         Add s-addope.o to non tasking object list (rather than tasking object
31645         list).
31647 2004-04-26  Javier Miranda  <miranda@gnat.com>
31649         * sem_aggr.adb: Fix typo in comments
31650         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
31651         Required to check the null-exclusion attribute.
31653         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
31654         case of anonymous access types in record and array components. For a
31655         component definition the level is the same of the enclosing composite
31656         type.
31658         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
31659         that are anonymous access types the level of accessibility depends on
31660         the enclosing type declaration. In order to have this information, set
31661         the scope of the anonymous access type to the enclosing record type
31662         declaration.
31663         (Array_Type_Declaration): In case of components that are anonymous
31664         access types the level of accessibility depends on the enclosing type
31665         declaration. In order to have this information, set the scope of the
31666         anonymous access type to the enclosing array type declaration.
31668         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
31669         access type.
31671         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
31672         renaming of anonymous access-to-constant types allowed if and only if
31673         the renamed object is access-to-constant.
31675         * sem_util.adb (Type_Access_Level): In case of anonymous access types
31676         that are component_definition or discriminants of a nonlimited type,
31677         the level is the same as that of the enclosing component type.
31679 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
31681         * sem_elim.adb: Some minor code reorganization from code reading. Fix
31682         misprint in the function name (File_Name_Match).
31684 2004-04-23  Laurent Guerby  <laurent@guerby.net>
31686         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
31687         install.
31689 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31691         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
31693 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
31695         * adaint.c (__gnat_try_lock): No longer requires that the parent
31696         directory be writable, the directory itself is enough.
31697         (gnat_is_absolute_path): Change profile, so that the call from
31698         GNAT.OS_Lib can be made more efficient.
31700         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
31701         from GNAT.OS_Lib can be made more efficient.
31703         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
31704         one copy of the file name. Found by code reading.
31706 2004-04-23  Vincent Celier  <celier@gnat.com>
31708         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
31709         Correct documentation on gnatmake switches transmitted to the compiler
31711         * ali.ads: Minor comment fix
31713 2004-04-23  Javier Miranda  <miranda@gnat.com>
31715         * sem_ch6.adb: (Confirming Types): Code cleanup
31717         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
31718         subprogram types: E_Anonymous_Access_Subprogram_Type and
31719         E_Anonymous_Access_Protected_Subprogram_Type.
31721 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
31723         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31724         whether a pragma All_Calls_Remote applies to the subprogram on which
31725         'Access is taken.
31726         No functional change is introduced by this revision; the new parameter
31727         will be used to allow calls to local RCI subprograms to be optimized
31728         to not use the PCS in the case where no pragma All_Calls_Remote applies,
31729         as is already done in the PolyORB implementation of the DSA.
31731         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31732         whether a pragma All_Calls_Remote applies to the subprogram on which
31733         'Access is taken.
31734         No functional change is introduced by this revision; the new parameter
31735         will be used to allow calls to local RCI subprograms to be optimized
31736         to not use the PCS in the case where no pragma All_Calls_Remote applies,
31737         as is already done in the PolyORB implementation of the DSA.
31739 2004-04-23  Robert Dewar  <dewar@gnat.com>
31741         * Makefile.rtl: Add entry for s-addope.o in run time library list
31742         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
31743         * s-addope.ads, s-addope.adb: New files.
31745         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
31746         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
31747         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
31748         System.Address to be non-private and signed.
31750         * sem_elim.adb: Minor reformatting (fairly extensive)
31751         Some minor code reorganization from code reading
31752         Add a couple of ??? comments
31754 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31756         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
31757         (tree_transform, case N_If_Statement): Remove non-determinism.
31759         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
31761 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
31763         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
31764         Eliminate' section.
31766         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
31767         no longer used as a parameter name for Eliminate pragma).
31769 2004-04-22  Laurent Guerby  <laurent@guerby.net>
31771         PR optimization/14984
31772         PR optimization/14985
31773         * trans.c (gigi): Fix non determinism leading to bootstrap
31774         comparison failures.
31776 2004-04-21  Pascal Obry  <obry@gnat.com>
31778         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
31779         passed to spawnvp() to properly handle program pathname with spaces on
31780         Win32.
31782 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
31784         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
31785         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
31786         unlocked in case of exceptions.
31788 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
31790         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
31791         This function does not exist anymore.
31793 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
31795         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
31797         * link.c: Move variables to the __gnat name space.
31799         * Makefile.in: list link.o explicitly when needed.
31801         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
31803 2004-04-21  Javier Miranda  <miranda@gnat.com>
31805         * einfo.adb (Original_Access_Type): New subprogram
31806         (Set_Original_Access_Type): New subprogram
31807         (Write_Field21_Name): Write the name of the new field
31809         * einfo.ads (Original_Access_Type): New field present in access to
31810         subprogram types.
31811         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
31812         E_Anonymous_Access_Protected_Subprogram_Type.
31814         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
31815         subprogram types.
31817         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
31818         to anonymous access to subprogram types.
31820         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
31821         to subprogram types.
31823         * sem_ch3.adb (Access_Definition): Complete decoration of entities
31824         corresponding to anonymous access to subprogram types.
31825         (Analyze_Component_Declaration): Add new actual to the call to
31826         subprogram replace_anonymous_access_to_protected_subprogram.
31827         (Array_Type_Declaration): Add new actual to the call to subprogram
31828         replace_anonymous_access_to_protected_subprogram.
31829         (Process_Discriminants): Add new actual to the call to subprogram
31830         replace_anonymous_access_to_protected_subprogram.
31831         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
31833         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
31834         formal.
31836         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
31837         access to subprogram types.
31839         * sem_util.adb (Has_Declarations): Addition of package_specification
31840         nodes.
31842 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
31844         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
31845         inlined flags to renamed entity only if in current unit.
31847 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
31849         * s-parint.ads: Add DSA implementation marker.
31851         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
31852         value of System.Partition_Interface.DSA_Implementation to determine
31853         what version of the distributed systems annex is available (no
31854         implementation, GLADE, or PolyORB).
31856 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
31858         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
31860 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31862         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
31863         with new type if alias sets differ.
31864         Fixes ACATS c41103b.
31866 2004-04-21  Vincent Celier  <celier@gnat.com>
31868         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
31869         Add array Lang_Args for the language specific compiling argument
31870         switches.
31872         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
31874 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
31876         * gnat_rm.texi: Update the descripton of the Eliminate pragma
31877         according to the recent changes in the format of the parameters of the
31878         pragma (replacing Homonym_Number with Source_Location).
31880 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
31882         * 5isystem.ads: Removed, unused.
31884         * gnat_rm.texi: Redo 1.13 change.
31886 2004-04-19  Robert Dewar  <dewar@gnat.com>
31888         * s-stoele.ads: Clean up definition of Storage_Offset (the new
31889         definition is cleaner, avoids the kludge of explicit Standard operator
31890         references, and also is consistent with a visible System.Address with
31891         no visible operations.
31893         * s-geveop.adb: Add declarations to avoid assumption of visible
31894         operations on type System.Address (since these might not be available
31895         if Address is a non-private type for which the operations
31896         are made abstract).
31898         * sem_eval.adb: Minor reformatting
31900         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
31901         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
31902         reformatting (new function spec format).
31904         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
31905         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
31906         s-caun64.adb: Add declarations to avoid assumption of visible
31907         operations on type System.Address (since these might not be available
31908         if Address is a non-private type for which the operations are made
31909         abstract).
31911         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
31913         * exp_intr.adb: Minor comment update
31915         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
31917         * 5omastop.adb: Add declarations to avoid assumption of visible
31918         operations on type System.Address (since these might not be available
31919         if Address is a non-private type for which the operations
31920         are made abstract).
31922 2004-04-19  Vincent Celier  <celier@gnat.com>
31924         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
31926         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
31927         defaulted to Ada.
31929         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
31930         defaulted to Ada.
31931         Call Check with Process_Languages.
31932         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
31933         with Process_Languages.
31934         (Recursive_Check): New Boolean parameter Process_Languages. Call
31935         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
31936         Process_Languages.
31938         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
31940         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
31941         parameter Ada_Main, defaulted to True.
31942         Check for Ada specific characteristics only when Ada_Main is True.
31944         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
31946         * prj.adb: (Project_Empty): Add new Project_Data components.
31948         * prj.ads: New types and tables for non Ada languages.
31949         (Project_Data): New components Languages, Impl_Suffixes,
31950         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
31951         Include_Path, Include_Data_Set.
31953         * prj-env.ads, prj-env.adb: Minor reformatting
31955         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
31956         Put subprograms in alphabetical order
31958         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
31959         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
31960         Opt.Follow_Links.
31962         * mlib-prj.adb: Back out modification in last version, as they are
31963         incorrect.
31964         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
31966         * make.adb: (Mains): Moved to package Makeutl
31967         (Linker_Opts): Moved to package Makeutl
31968         (Is_External_Assignment): Moved to package Makeutl
31969         (Test_If_Relative_Path): Moved to package Makeutl
31970         (Gnatmake): Move sorting of linker options to function
31971         Makeutl.Linker_Options_Switches.
31973         * makeutl.ads, makeutl.adb: New files.
31975         * Makefile.in: Add makeutl.o to the object files for gnatmake
31977         * makeusg.adb: Add line for new switch -eL.
31979         * gnatls.adb (Image): New function.
31980         (Output_Unit): If in verbose mode, output the list of restrictions
31981         specified by pragmas Restrictions.
31983         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
31984         Text_IO.
31986         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
31987         needed, to put it in the range 1970 (included) - 2026 (excluded).
31988         (Time_Of): Do not shift Unix_Min_Year (1970).
31989         Shift the date by multiple of 56 years, if needed, to put it in the
31990         range 1970 (included) - 2026 (excluded).
31992         * adaint.h, adaint.c (__gnat_set_executable): New function.
31994 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31996         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
31997         and pop GC context.
31998         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
31999         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
32000         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
32001         (tree_transform, case N_Code_Statement): Likewise.
32002         (gnat_expand_stmt, case LABEL_STMT): Don't look at
32003         LABEL_STMT_FIRST_IN_EH.
32004         (gnat_expand_stmt, case ASM_STMT): New case.
32006         * utils2.c (build_unary_op): Properly set TREE_READONLY of
32007         UNCONSTRAINED_ARRAY_REF.
32009         * utils.c (poplevel): Temporarily push/pop GC context around inline
32010         function expansion.
32012         * decl.c (maybe_variable): Properly set TREE_READONLY of
32013         UNCONSTRAINED_ARRAY_REF.
32014         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
32016         * ada-tree.def: (ASM_STMT): New.
32018         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
32019         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
32020         ASM_STMT_INPUT): New.
32021         (ASM_STMT_CLOBBER): Likewise.
32023 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
32025         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
32026         general rcheck mechanism to raise Program_Error for E.4(18), instead
32027         of a custom raiser in System.Partition_Interface.
32028         Part of general cleanup work before PolyORB integration.
32030         * snames.ads, snames.adb: Add new runtime library entities and names
32031         for PolyORB DSA.
32033         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
32034         exp_dist.
32035         (Build_Subprogram_Id): New subprogram provided by exp_dist
32036         Code reorganisation in preparation for PolyORB integration.
32038         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
32039         exp_dist.
32040         (Build_Subprogram_Id): New subprogram provided by exp_dist
32042         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
32043         actual parameter types for call to dereference of an
32044         access-to-subprogram type.
32046         * rtsfind.ads: Add new runtime library entities and names for PolyORB
32047         DSA.
32049         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
32050         instead, which has the same behaviour here since we never pass it a
32051         NULL pointer.
32053         * link.c (run_path_option, Solaris case): Use -Wl, as for other
32054         platforms.
32056         * Makefile.in: adjust object file lists for gnatlink and gnatmake
32057         to account for new dependency upon Interfaces.C.Strings + link.o
32058         For x86 FreeBSD, use 86numaux.
32060         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
32061         from Mlib.Tgt to Mlib.
32063         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
32064         target-independent.
32066         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
32067         target-specific versions of this subprogram, now implemented as a
32068         target-independent function in Mlib.
32070         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
32071         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
32072         (Linker_Library_Path_Option): Remove target-specific versions of this
32073         subprogram, now implemented as a target-independent function in Mlib.
32075         * atree.adb: (Allocate_Initialize_Node): New subprogram.
32076         Factors out node table slots allocation.
32077         (Fix_Parents): New subprogram.
32078         Encapsulate the pattern of fixing up parent pointers for syntactic
32079         children of a rewritten node.
32080         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
32081         (Rewrite): Use New_Copy when creating saved copy of original node.
32082         (Replace): Use Copy_Node to copy nodes.
32084 2004-04-19  Javier Miranda  <miranda@gnat.com>
32086         * sprint.adb (Sprint_Node_Actual): Give support to the new
32087         Access_To_Subprogram node available in Access_Definition nodes. In
32088         addition, give support to the AI-231 node fields: null-exclusion,
32089         all-present, constant-present.
32091         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
32093         * sinfo.ads, sinfo.adb:
32094         New field Access_To_Subprogram_Definition in Access_Definition nodes
32096         * sem_ch6.adb (Process_Formals): Move here the code that creates and
32097         decorates internal subtype declaration corresponding to the
32098         null-excluding formal. This code was previously in Set_Actual_Subtypes.
32099         In addition, carry out some code cleanup on this code. In case of
32100         access to protected subprogram call
32101         Replace_Anonymous_Access_To_Protected_Subprogram.
32102         (Set_Actual_Subtypes): Code cleanup.
32104         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
32105         Find_Type in case of anonymous access renamings. Add warning in case of
32106         null-excluding attribute used in anonymous access renaming.
32108         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
32109         subprogram
32111         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
32112         subprogram.
32113         (Access_Definition): In case of anonymous access to subprograms call
32114         the corresponding semantic routine to decorate the node.
32115         (Access_Subprogram_Declaration): Addition of some comments indicating
32116         some code that probably should be added here. Detected by comparison
32117         with the access_definition subprogram.
32118         (Analyze_Component_Declaration): In case of access to protected
32119         subprogram call Replace_Anonymous_Access_To_Protected.
32120         (Array_Type_Declaration): In case of access to protected subprogram call
32121         Replace_Anonymous_Access_To_Protected_Subprogram.
32122         (Process_Discriminants): In case of access to protected subprogram call
32123         Replace_Anonymous_Access_To_Protected_Subprogram.
32125         * par.adb (P_Access_Definition): New formal that indicates if the
32126         null-exclusion part was present.
32127         (P_Access_Type_Definition): New formal that indicates if the caller has
32128         already parsed the null-excluding part.
32130         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
32131         (P_Identifier_Declarations): Code cleanup and give support to renamings
32132         of anonymous access to subprogram types.
32133         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
32134         (P_Array_Type_Definition): Give support to AI-254.
32135         (P_Component_Items): Give support to AI-254.
32136         (P_Access_Definition): New formal that indicates if the header was
32137         already parsed by the caller.
32138         (P_Access_Type_Definition): New formal that indicates if the caller has
32139         already parsed the null-excluding part.
32141         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
32142         call to P_Access_Definition.
32144 2004-04-19  Geert Bosch  <bosch@gnat.com>
32146         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
32147         the delicate semantics of floating-point to integer conversion.
32148         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
32150         * eval_fat.adb (Machine_Mantissa): Moved to spec.
32151         (Machine_Radix): New function.
32153         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
32154         conversion checks.
32155         (Machine_Radix): New function also for use in conversion checks.
32157 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
32159         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
32161         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
32162         to decorate the access-to-protected subprogram and the equivalent type.
32164         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
32165         to anonymous access to subprogram types.
32167         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
32168         constant-folding, for legality checks in contexts that require an RM
32169         static expression.
32171         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
32172         temporary but stack checking is not enabled, increment serial number
32173         to so that symbol generation is consistent with and without stack
32174         checking.
32176         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
32177         independent on whether stack checking is enabled, caller must check
32178         the corresponding flag.
32180         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
32181         range checks.
32182         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
32183         parent if it has discriminants.
32184         (Build_Derived_Private_Type): Constructed full view does
32185         not come from source.
32186         (Process_Discriminants): Default discriminants on a tagged type are
32187         legal if this is the internal completion of a private untagged
32188         derivation.
32190         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
32191         no constraint checks, because it corresponds to an existing object.
32193         * sem_prag.adb (Process_Convention): Pragma applies
32194         only to subprograms in the same declarative part, i.e. the same unit,
32195         not the same scope.
32197         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
32198         ignore type mismatch on a numeric conversion if expression comes from
32199         expansion.
32201 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
32203         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
32204         Homonym_Number parameter, add processing for Source_Location parameter
32205         corresponding.
32206         (Check_Eliminated): Remove the check for homonym numbers, add the check
32207         for source location traces.
32209         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
32210         with Arg_Source_Location corresponding to the changes in the format of
32211         the pragma.
32213         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
32214         Eliminate pragma corresponding to the changes in the format of the
32215         pragma: Homonym_Number is replaced with Source_Location, two ways of
32216         distinguishing homonyms are mutially-exclusive.
32218 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
32220         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
32222         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
32223         No_Dollar_In_Label, no longer necessary, as it is always True.
32224         (Strip_Suffixes): Likewise.
32226 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
32228         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
32229         modulus for compatibility with size clause on targets with 16-bit
32230         Integer.
32232         * layout.adb (Discrimify): In the case of private types, set Vtyp to
32233         full type to fix type mismatches on calls to size functions for
32234         discriminant-dependent array components.
32236 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
32238         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
32239         lib.
32241 2004-04-19  Pascal Obry  <obry@gnat.com>
32243         * mdll-utl.adb (Locate): New version is idempotent.
32245 2004-04-17  Laurent Guerby  <laurent@guerby.net>
32247         PR ada/14988 (partial)
32248         * impunit.adb: Fix typo.
32250 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
32252         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
32253         and install-rts-cert targets.  Remove all gnatlib and gnattools
32254         targets and all other rts-* targets (moved to libada).  Remove (now)
32255         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
32256         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
32258 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32260         * trans.c (tree_transform): Shortcut returning error_mark_node for
32261         statements in annotate_only_mode.
32262         (tree_transform, case N_Label, case N_Return_Statement,
32263         N_Goto_Statement): Make statement tree instead of generating code.
32264         (tree_transform, case N_Assignment_Statement): No longer check
32265         type_annotate_only.
32266         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
32267         RETURN_STMT): New.
32268         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
32269         New fcns.
32270         (gnat_to_gnu): Collect any RTL generated and deal with it.
32271         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
32272         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
32273         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
32275         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
32277         * ada-tree.def (EXPR_STMT): Fix typo in name.
32278         (BLOCK_STMT, IF_STMT): New nodes.
32280         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
32281         LABEL_STMT_FIRST_IN_EH): New macros.
32282         (RETURN_STMT_EXPR): Likewise.
32284         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
32285         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
32287 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
32289         * atree.ads: Correct documentation on extended nodes.
32291         * link.c: Set run_path_option for FreeBSD.
32293 2004-04-08  Vincent Celier  <celier@gnat.com>
32295         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
32296         one of the ALI file, do not link with DEC lib.
32298         * par.adb Remove the last two characters ("%s" or "%b") when checking
32299         if a language defined unit may be recompiled.
32301 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
32303         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
32304         removal of abstract operation leaves no possible interpretation for
32305         expression.
32307         * sem_eval.adb (Eval_Qualified_Expression): Use
32308         Set_Raises_Constraint_Error on node when needed, so that it does not
32309         get optimized away by subsequent optimizations.
32311         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
32312         operands even when they are not wrapped in a type conversion.
32314 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
32316         * sem_prag.adb (Set_Exported): Warn about making static as result of
32317         export only when the export is coming from source. This may be not
32318         be true e.g. on VMS where we expand export pragmas for exception codes
32319         together with imported or exported exceptions, and we don't want the
32320         user to be warned about something he didn't write.
32322 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
32324         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
32325         duplication between normal entities and those declared as renamings.
32326         No functional change.
32328         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
32329         inline functions returning an unconstrained result.
32331 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
32333         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
32334         conform to what other front-ends do.
32336 2004-04-08  Doug Rupp  <rupp@gnat.com>
32338         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
32339         libraries.
32341 2004-04-06  Pascal Obry  <obry@gnat.com>
32343         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
32345         * osint.adb (Program_Name): Do not look past a directory separator.
32347 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
32349         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
32351         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
32352         requirement for preserving a copy of the original assignment node.
32354         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
32356 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
32358         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
32359         when supported.
32361 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
32363         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
32364         operator calls in functional notation, and apply
32365         Universal_Interpretation to operands, not to their type.
32367 2004-04-06  Robert Dewar  <dewar@gnat.com>
32369         * 5wdirval.adb: Minor reformatting
32371 2004-04-06  Ed Falis  <falis@gnat.com>
32373         * gnat_rm.texi: Improve a reference to the GCC manual
32375 2004-04-05  Vincent Celier  <celier@gnat.com>
32377         * adaint.h, adaint.c: Add function __gnat_named_file_length
32379         * impunit.adb: Add Ada.Directories to the list
32381         * Makefile.in: Add VMS and Windows versions of
32382         Ada.Directories.Validity package body.
32384         * Makefile.rtl: Add a-direct and a-dirval
32386         * mlib-tgt.ads: Minor comment update.
32388         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
32389         a-direct.ads, a-direct.adb: New files.
32391 2004-04-05  Vincent Celier  <celier@gnat.com>
32393         PR ada/13620
32394         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
32395         just to the compiler.
32397 2004-04-05  Robert Dewar  <dewar@gnat.com>
32399         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
32400         returned string is 1.
32402         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
32404         * eval_fat.ads: Minor reformatting
32406         * g-curexc.ads: Document that lower bound of returned string values
32407         is always one.
32409         * gnatlink.adb: Add ??? comment for previous change
32410         (need to document why this is VMS specific)
32412         * s-stoele.ads: Minor reformatting
32414         * tbuild.ads: Minor reformatting throughout (new function specs)
32416         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
32417         after WITH.
32419         * scng.adb: Minor reformatting
32421 2004-04-05  Geert Bosch  <bosch@gnat.com>
32423         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
32424         (Leading_Part): Still perform truncation to machine number if the
32425         specified radix_digits is greater or equal to machine_mantissa.
32427 2004-04-05  Javier Miranda  <miranda@gnat.com>
32429         * par-ch3.adb: Complete documentation of previous change
32430         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
32431         (aliased must appear before constant).
32433         * par-ch4.adb: Complete documentation of previous change.
32435         * par-ch6.adb: Complete documentation of previous change.
32437         * sinfo.ads: Fix typo in commment.
32439 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
32441         * sem_ch3.adb (Inherit_Components): If derived type is private and has
32442         stored discriminants, use its discriminants to constrain parent type,
32443         as is done for non-private derived record types.
32445         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
32446         Ada 2005 AI-310: an abstract non-dispatching operation is not a
32447         candidate interpretation in an overloaded call.
32449         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
32450         expression is Null and target type is not an access type (e.g. a
32451         non-private address type).
32453 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
32455         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
32456         statement whose right-hand side is an inlined call, save a copy of the
32457         original assignment subtree to preserve enough consistency for
32458         Analyze_Assignment to proceed.
32460         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
32461         complete assignment subtree which is now unnecessary, as the expansion
32462         of inlined call has been improved to preserve a consistent assignment
32463         tree.  Note_Possible_Modification must be called only
32464         after checks have been applied, or else unnecessary checks will
32465         be generated.
32467         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
32468         of explicit dereferences that do not Come_From_Source:
32469          - be selective on cases where we must go back to the dereferenced
32470            pointer (an assignment to an implicit dereference must not be
32471            recorded as modifying the pointer);
32472          - do not rely on Original_Node being present (Analyze_Assignment
32473            calls Note_Possible_Modification on a copied tree).
32475         * sem_warn.adb (Check_References): When an unset reference to a pointer
32476         that is never assigned is encountered, prefer '<pointer> may be null'
32477         warning over '<pointer> is never assigned a value'.
32479 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
32481         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
32482         the ABI.
32484 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
32486         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
32487         libexc. We currently don't reference anything in this library and
32488         linking it in triggers linker warnings we don't want to see.
32490         * init.c: Update comments.
32492 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32494         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
32495         * utils.c (create_field_decl): Likewise.
32496         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
32498 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
32500         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
32501         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
32502         Add info directory entry and category.
32504 2004-04-02  Jan Hubicka  <jh@suse.cz>
32506         * utils.c: Include function.h
32507         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
32509 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
32511         PR ada/14150
32512         * Make-lang.in: Clean up generation of documentation
32514         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
32516         * xgnatug.adb: Removed, replaced by xgnatugn.adb
32518         * xgnatugn.adb: Replaces xgnatug.adb
32520         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
32522         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
32524         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32525         gnat_ug_wnt.texi: Removed.
32527 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
32529         * utils2.c: Update copyright notice.
32531 2004-04-01  Robert Dewar  <dewar@gnat.com>
32533         * checks.adb: Minor reformatting throughout
32534         Note that prev checkin added RM reference to alignment warning
32536 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
32538         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
32539         non-static when building aggregate for bit-packed array.
32541         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
32542         function call that is itself the actual in a procedure call, build
32543         temporary for it.
32545         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
32546         a string literal, create a temporary for it, constant folding only
32547         handles scalars here.
32549 2004-04-01  Vincent Celier  <celier@gnat.com>
32551         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
32552         Error_Msg_SP): New empty procedures to instantiate the Scanner.
32553         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
32554         tokens.
32555         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
32556         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
32557         and get the checksum.
32559         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
32560         already in the Q.
32561         Increase the Marking_Label at the end of the Multiple_Main_Loop,
32562         instead of at the beginning.
32564         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
32565         directly.
32566         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
32567         on VMS.
32569         * osint.ads (Multi_Unit_Index_Character): New Character global variable
32571         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
32572         not '~' directly.
32574         * par.adb: Remove test on file name to detect language defined units.
32575         Add test on unit name, after parsing, to detect language defined units
32576         that are not compiled with -gnatg (except System.RPC and its children)
32578         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
32579         following units without style checking.
32581         * switch-c.adb: Change -gnatC to -gnateI
32583         * usage.adb: Document new switch -gnateInnn
32585         * scng.adb (Accumulate_Token_Checksum): New procedure
32586         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
32587         word or literal number.
32588         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
32589         numbers.
32591 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
32593         * a-tasatt.adb,
32594         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
32595         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
32596         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
32597         5vtpopde.adb: Add missing 'constant' keywords.
32599 2004-04-01  Javier Miranda  <miranda@gnat.com>
32601         * par-ch4.adb: (P_Allocator): Code cleanup
32603         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
32604         attribute.
32606         * sinfo.ads: Complete documentation of previous change
32608 2004-04-01  Pascal Obry  <obry@gnat.com>
32610         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
32611         only on VMS.  This special handling was done because an old GNU/ld bug
32612         on Windows which has been fixed.
32614 2004-04-01  GNAT Script  <nobody@gnat.com>
32616         * Make-lang.in: Makefile automatically updated
32618 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32620         * decl.c (gnat_to_gnu_entity, make_type_from_size):
32621         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
32622         * trans.c (tree_transform, convert_with_check): Likewise.
32623         * utils.c (gnat_signed_or_unsigned_type): Likewise.
32624         (build_vms_descriptor, unchecked_convert): Likewise.
32625         * utils2.c (nonbinary_modular_operation): Likewise.
32627 2004-03-29  Javier Miranda  <miranda@gnat.com>
32629         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
32630         (Install_Null_Excluding_Check): Local subprogram that determines whether
32631         an access node requires a runtime access check and if so inserts the
32632         appropriate run-time check.
32633         (Apply_Access_Check): Call Install_Null_Excluding check if required
32634         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
32636         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
32638         * einfo.ads: Fix typo in comment
32640         * exp_ch3.adb (Build_Assignment): Generate conversion to the
32641         null-excluding type to force the corresponding run-time check.
32642         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
32643         type to force the corresponding run-time check.
32645         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
32646         the null-excluding type to force the corresponding run-time check.
32648         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
32649         case of access types unless they have the null-excluding attribute.
32651         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
32652         part.
32654         * exp_util.ads: Fix typo in comment
32656         * par.adb (P_Null_Exclusion): New subprogram
32657         (P_Subtype_Indication): New formal that indicates if the null-excluding
32658         part has been scanned-out and it was present
32660         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
32662         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
32663         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
32664         type to force the corresponding run-time check
32665         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
32666         components
32667         (Resolve_Array_Aggregate): Carry out some static checks
32668         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
32670         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
32671         attribute must be set only if specified by means of the null-excluding
32672         part. In addition, we must also propagate the access-constant attribute
32673         if present.
32674         (Access_Subprogram_Declaration, Access_Type_Declaration,
32675         Analyze_Component_Declaration, Analyze_Object_Declaration,
32676         Array_Type_Declaration, Process_Discriminants,
32677         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
32678         and carry out some static checks.
32679         (Build_Derived_Access_Type): Set the null-excluding attribute
32680         (Derived_Type_Declaration, Process_Subtype): Carry out some static
32681         checks.
32683         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
32685         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
32687         * sem_ch6.adb (Process_Formals): Carry out some static checks.
32688         (Set_Actual_Subtypes): Generate null-excluding subtype if the
32689         null-excluding part was present; it is not required to be done here in
32690         case of anonymous access types.
32691         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
32692         value.
32694         * sem_res.adb (Resolve_Actuals): Carry out some static check
32695         (Resolve_Null): Allow null in anonymous access
32697         * sinfo.adb: New subprogram Null_Exclusion_Present
32698         All_Present and Constant_Present available on access_definition nodes
32700         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
32701         object_declaration, derived_type_definition, component_definition,
32702         discriminant_specification, access_to_object_definition,
32703         access_function_definition, allocator, access_procedure_definition,
32704         access_definition, parameter_specification, All_Present and
32705         Constant_Present flags available on access_definition nodes.
32707 2004-03-29  Robert Dewar  <dewar@gnat.com>
32709         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
32710         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
32711         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
32712         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
32713         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
32714         sem_prag.adb: Updates to handle multiple units/file
32716         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
32718         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
32719         sem_util.adb: Minor reformatting
32721         * sem_ch12.adb: Add comment for previous change
32723 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
32725         * osint.adb (Executable_Prefix): Set Exec_Name to the current
32726         executable name when not initialized. Otherwise, use its current value.
32728         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
32729         initialize it to another executable name than the current one. This
32730         allows to configure paths for an executable name (gnatmake) different
32731         from the current one (gnatdist).
32733 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
32735         * exp_ch6.adb (Expand_Call): A call to a function declared in the
32736         current unit cannot be inlined if it appears in the body of a withed
32737         unit, to avoid order of elaboration problems in gigi.
32739         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
32740         information for protected (wrapper) operation as well, to simplify gdb
32741         use.
32743         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
32744         protected body, indicate that the entity for the generated spec comes
32745         from source, to ensure that references are properly generated for it.
32746         (Build_Body_To_Inline): Do not inline a function that returns a
32747         controlled type.
32749         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
32750         apply convention to homonyms that are declared explicitly.
32752         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
32753         that renames an equality operator and the operands are overloaded,
32754         resolve them with the declared formal types, before rewriting as an
32755         operator.
32757 2004-03-29  GNAT Script  <nobody@gnat.com>
32759         * Make-lang.in: Makefile automatically updated
32761 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
32763         * memtrack.adb: Log realloc calls, which are treated as free followed
32764         by alloc.
32766 2004-03-25  Vincent Celier  <celier@gnat.com>
32768         * prj-makr.adb (Process_Directories): Detect when a file contains
32769         several units. Do not include such files in the config pragmas or
32770         in the naming scheme.
32772         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
32773         Resolve links only when not in Trusted_Mode.
32774         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
32775         Do not resolve links for the display names.
32777         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
32778         resolve links when computing the display names.
32780 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
32782         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
32783         attribute reference does not denote a subtype, it can be any
32784         expression that has a classwide type, potentially after an implicit
32785         dereference.  In particular, the prefix can be a view conversion for
32786         a classwide type (for which Is_Object_Reference holds), but it can
32787         also be a value conversion for an access-to-classwide type. In the
32788         latter case, there is an implicit dereference, and the original node
32789         for the prefix does not verify Is_Object_Reference.
32791         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
32792         conversion of a discriminant-dependent component of a mutable object
32793         is one itself.
32795 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
32797         * freeze.adb (Freeze_Entity): When an inherited subprogram is
32798         inherited, has convention C, and has unconstrained array parameters,
32799         place the corresponding warning on the derived type declaration rather
32800         than the original subprogram.
32802         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
32803         indication on renaming declaration, if formal has a box and actual
32804         is absent.
32806         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
32807         determine whether to generate an implicit or explicit reference to
32808         the renamed entity.
32810         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
32811         subprogram renaming comes from a defaulted formal subprogram in an
32812         instance.
32814 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
32816         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
32817         value expressions to ensure that calls within a component definition
32818         will be checked (since those are evaluated during the record type's
32819         elaboration).
32821 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
32823         * s-tpobop.adb: Code clean up:
32824         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
32825         code.
32826         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
32828 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
32830         * Makefile.in: Clean up in the ravenscar run time.
32832 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32834         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
32835         of No_Strict_Aliasing to build_pointer_type_for_mode.
32836         * utils.c (update_pointer_to): Walk pointer and ref chains.
32838 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
32840         * ali.ads: Fix Comment about Dynamic_Elab.
32842         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
32843         Has_RACW, Is_Generic, etc.)
32844         (Output_Object, Gnatls): Take into account ALI files not attached to
32845         an object.
32847 2004-03-22  Vincent Celier  <celier@gnat.com>
32849         * gprep.adb: Change all String_Access to Name_Id
32850         (Is_ASCII_Letter): new function
32851         (Double_File_Name_Buffer): New procedure
32852         (Preprocess_Infile_Name): New procedure
32853         (Process_Files): New procedure
32854         (Gnatprep): Check if output and input are existing directories.
32855         Call Process_Files to do the real job.
32857 2004-03-22  Robert Dewar  <dewar@gnat.com>
32859         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
32860         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
32862 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
32864         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
32865         case when the source contains only comments.
32867 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
32869         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
32870         declaration for a child subprogram body that acts as a spec, indicate
32871         that the entity in the declaration needs debugging information.
32873         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
32874         full view if the subtype is created for a constrained record component;
32875         gigi has enough information to construct the record, and there is no
32876         place in the tree for the declaration.
32878         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
32879         serial number for the dummy body that is built for analysis, to avoid
32880         inconsistencies in the generation of internal names when compiling
32881         with -gnatN.
32883 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
32885         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
32886         object.
32888 2004-03-22  GNAT Script  <nobody@gnat.com>
32890         * Make-lang.in: Makefile automatically updated
32892 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32894         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
32895         * trans.c (tree_transform, emit_index_check): Likewise.
32896         * utils.c (build_template): Likewise.
32897         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
32898         (maybe_unconstrained_array, unchecked_convert): Likewise.
32899         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
32900         (build_unary_op): Likewise.
32901         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
32902         (fill_vms_descriptor): Likewise.
32903         (build_call_alloc_dealloc): Likewise.
32904         ALIGN is unsigned.
32905         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
32907 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
32909         PR other/14630
32910         * gnat_ug.texi: Add info directory category and entry.
32911         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32912         gnat_ug_wnt.texi: Regenerate.
32914 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
32916         * ada-tree.h: Update copyright notice.
32917         Minor reformatting.
32919 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
32921         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
32922         as regular exception objects and not as mere integers representing the
32923         condition code.  The latter approach required some dynamics to mask off
32924         severity bits, which did not fit well into the GCC table based model.
32925         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
32926         exception data objects. We don't it and it would conflict with the other
32927         external symbol we have to generate for such exceptions.
32929         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
32930         the special code for VMS exceptions, since these are now represented
32931         as regular exceptions objects.
32933 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32935         * decl.c (debug_no_type_hash): Remove.
32936         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
32937         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
32939 2004-03-19  Laurent Guerby  <laurent@guerby.net>
32941         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
32942         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
32944 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32946         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
32947         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
32948         (TYPE_RM_SIZE_INT): Directly use type.values.
32949         (TREE_LOOP_ID): Clean up check.
32950         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
32951         TYPE_VALUES, not TYPE_FIELDS.
32952         * trans.c (convert_with_check): Delay access of bounds of basetype
32953         until sure is numeric.
32955 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
32957         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
32959         Code clean up:
32960         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
32961         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
32962         Specific.Set instead of direct call to e.g pthread_setspecific.
32964 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
32966         * adaint.c: Update comments.
32968         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
32969         GNATLIB_SHARED for FreeBSD.
32971 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
32973         * init.c [VxWorks]: Do not fix the stack size for the environment task.
32974         When needed (stack checking) the stack size is retrieved
32975         from the VxWorks kernel.
32977         * Makefile.in: Flag -nostdinc is required when building the run time
32978         for avoiding looking for files in the base compiler.
32979         Add the VxWorks specific version of the package body for
32980         System.Stack_checking.Operations (5zstchop.adb).
32982         * Make-lang.in: Add the object file for
32983         System.Stack_Checking.Operations.
32985         * Makefile.rtl: Add object file for the package
32986         System.Stack_Checking.Operations.
32988         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
32990         * s-stache.ads, s-stache.adb: Move the operations related to stack
32991         checking from this package to package System.Stack_Checking.Operations.
32992         This way, stack checking operations are only linked in the final
32993         executable when using the -fstack-check flag.
32995 2004-03-18  Doug Rupp  <rupp@gnat.com>
32997         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
32998         Reorganize ifeq's.
33000         * 5qsystem.ads, 5xcrtl.ads: New files.
33002 2004-03-18  Vincent Celier  <celier@gnat.com>
33004         * prj.adb (Reset): Reset hash table Files_Htable
33006         * prj-env.adb (Source_Paths, Object_Paths): New tables.
33007         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
33008         the procedures Add_To_Path_File.
33009         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
33010         making sure that each directory is present only once and, for object
33011         dirs, when a directory already present is added, the duplicate is
33012         removed and the directory is always put as the last in the table.
33013         Write the path files at the end of these accumulations.
33015         * prj-nmsc.adb (Record_Source): Add source file name in hash table
33016         Files_Htable for all sources.
33018         * prj-proc.adb (Process): Remove restrictions between not directly
33019         related extending projects.
33021 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
33023         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
33024         (Find_Sources): Minor speed optimization.
33026         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
33027         parameter Trusted_Mode.
33029 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
33031         * scn.adb (Determine_License): Take into account a degenerated case
33032         when the source contains only comments.
33034 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
33036         * sem_warn.adb (Check_References): For a warning on a selected
33037         component that does not come from source, locate an uninitialized
33038         component of the record type to produce a more precise error message.
33040 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
33042         * 3zsoccon.ads: Fix multicast options.
33044         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
33045         in the spec.
33047 2004-03-15  Robert Dewar  <dewar@gnat.com>
33049         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
33050         pragma used for a private type.
33052         * lib-xref.adb (Generate_Reference): Do not generate warning if
33053         reference is in a different unit from the pragma Unreferenced.
33055         * 5vtpopde.adb: Minor reformatting
33056         Fix casing of To_Task_ID
33058         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
33059         flag if we have an unchecked conversion to an access type in the same
33060         unit.
33062 2004-03-15  Geert Bosch  <bosch@gnat.com>
33064         * a-ngcoty.adb (Modulus): In alternate formula for large real or
33065         imaginary parts, use Double precision throughout.
33067         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
33068         we want to be able to compile run-time with -gnata for testing, but
33069         this may also be instantiated in user code that is compiled with -gnata.
33071 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
33073         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
33074         codes. Having a separate type for this is useful to enforce consistency
33075         throughout the various run-time units.
33076         (Exception_Data): Use Exception_Code for Import_Code.
33078         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
33079         Natural and Integer in various places.
33080         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
33081         with the severity bits masked off.
33082         (Register_VMS_Exception): Handle the additional exception data pointer
33083         argument.
33085         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
33086         component, now reflected by an exported accessor.
33087         (is_handled_by): New routine to compute whether the propagated
33088         occurrence matches some handler choice specification. Extracted out of
33089         get_action_description_for, and expanded to take care of the VMS
33090         specifities.
33091         (get_action_description_for): Use is_handled_by instead of an explicit
33092         complex condition to decide if the current choice at hand catches the
33093         propagated occurrence.
33095         * raise.h (Exception_Code): New type for C.
33097         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
33098         System.Standard_Library.Exception_Code, to allow references from the
33099         pragma import/export expander.
33101         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
33102         New accessors to allow easy access to GNAT exception data
33103         characteristics.
33104         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
33105         redundant Handled_By_Others component, helper for the personality
33106         routine which will now be able to call the appropriate exception data
33107         accessor instead.
33109         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
33110         component of Standard_Exception_Type to be the closest possible to
33111         Exception_Code in System.Standard_Library, that we cannot get at this
33112         point. Expand a ??? comment to notify that this type node should
33113         probably be rewritten later on.
33115         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
33116         registration call to include a pointer to the exception object in the
33117         arguments.
33119         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
33120         instead of int and explicit bitmasks.
33122 2004-03-15  Vincent Celier  <celier@gnat.com>
33124         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
33125         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
33127         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
33128         longer needed now that it is in the spec of
33129         System.Tasking.Task_Attributes.
33131         * adaint.h, adaint.c: (__gnat_create_output_file): New function
33133         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
33135         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
33137         * make.adb (Gnatmake): Do not check the executable suffix; it is being
33138         taken care of in Scan_Make_Arg.
33139         (Scan_Make_Arg): Add the executable suffix only if the argument
33140         following -o, in canonical case, does not end with the executable
33141         suffix.  When in verbose mode and executable file name does not end
33142         with executable suffix, output the executable name, in canonical case.
33144         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
33145         to avoid warnings when instantiating Ada.Task_Attributes.
33146         Minor reformating.
33148         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
33149         in the correct order.
33151         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
33152         redirect standard output and error to a file for the invocation of the
33153         compiler, then read the file.
33155         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
33156         directory, instead of the Value.
33157         (Find_Source_Dirs): Remove useless code & comments.
33159 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
33161         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
33162         tagged type is inherited, and the parent operation is not frozen yet,
33163         force generation of a freeze node for the inherited operation, so the
33164         corresponding dispatch entry is properly initialized.
33165         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
33166         when looking for user-defined equality operation.
33168         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
33169         boolean when locating primitive equality of tagged component.
33171         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
33172         bit-aligned field and the right-hand side a string literal, introduce
33173         a temporary before expanding assignment into a loop.
33175         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
33176         priority in full, to ensure that any expanded subepxressions of it are
33177         elaborated in the scope of the init_proc.
33179         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
33180         after object declaration, skipping over code that may have been
33181         generated for validity checks.
33183         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
33184         discriminants, ignore the known discriminants of its full view, if
33185         any, to check legality.
33187         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
33188         component if type has unknown discriminants.
33189         (Analyze_Private_Extension_Declaration): Discriminant constraint is
33190         null if type has unknown discriminants.
33192         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
33193         for end label when present.
33195         * s-fileio.adb (Open): When called with a C_Stream, use given name for
33196         temporary file, rather than an empty string.
33198 2004-03-15  Ed Falis  <falis@gnat.com>
33200         * s-thread.adb: Removed, no longer used.
33202 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33204         * decl.c (target.h): Now include.
33205         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
33206         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
33207         (validate_size): For POINTER_TYPE, get smallest size permitted on
33208         machine.
33210         * fe.h: Sort Einfo decls and add Set_Mechanism.
33212         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
33213         (ada/decl.o): Depends on target.h.
33215         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
33216         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
33218 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
33220         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
33222         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
33223         Insert_Dereference_Action when rewriting an implicit dereference into
33224         an explicit one, this will be taken care of during expansion of the
33225         explicit dereference.
33226         (Expand_N_Slice): Same. Always do the rewriting, even for the case
33227         of non-packed slices, since the dereference action generated by
33228         expansion of the explicit dereference is needed in any case.
33229         (Expand_N_Selected_Component): When rewriting an implicit dereference,
33230         analyze and resolve the rewritten explicit dereference so it is seen
33231         by the expander.
33232         (Insert_Dereference_Action): This procedure is now called only for the
33233         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
33234         dereferences that do not come from source (including explicit
33235         dereferences resulting from rewriting implicit ones), but do not
33236         recursively insert a check for the dereference nodes contained within
33237         the check.
33238         (Insert_Dereference_Action): Clarify and correct comment.
33240 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
33242         PR ada/14131
33243         Move language detection to the top level.
33244         * config-lang.in: Build by default.
33246 2004-03-05  Robert Dewar  <dewar@gnat.com>
33248         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
33250         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
33251         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
33252         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
33253         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
33254         unchecked conversion to spec to avoid warnings.
33256         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
33257         to Task_ID
33259         * 7stpopsp.adb: Correct casing in To_Task_ID call
33261         * a-strsea.ads, a-strsea.adb: Minor reformatting
33263         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
33265         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
33266         Adjust Max_Msg_Length to be clearly large enough.
33268         * fe.h: Define In_Same_Source_Unit
33270         * osint.adb: Add pragma Warnings Off to suppress warnings
33271         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
33272         aliasing warnings.
33274         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
33276         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
33278         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
33280         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
33282         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
33284         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
33285         node. We now do generate them for gcc back end.
33287         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
33288         warning.
33290         * sinput-c.adb: Fix bad name in header.
33291         Add pragma Warnings Off to suppress aliasing warning.
33293         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
33295         * snames.h, snames.ads, snames.adb: Add entry for pragma
33296         No_Strict_Aliasing.
33298 2004-03-05  Vincent Celier  <celier@gnat.com>
33300         * prj-com.ads: Add hash table Files_Htable to check when a file name
33301         is already a source of another project.
33303         * prj-nmsc.adb (Record_Source): Before recording a new source, check
33304         if its file name is not already a source of another project. Report an
33305         error if it is.
33307         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
33308         source file name, call gnatpp with all the sources of the main project.
33310         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
33311         of file names.
33313         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
33314         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
33315         /RUNTIME_SYSTEM=, converted to --RTS=
33316         /NOTABS, converted to -notabs
33318 2004-03-05  Pascal Obry  <obry@gnat.com>
33320         * make.adb: Minor reformatting.
33322 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
33324         Part of implemention of AI-262.
33325         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
33327         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
33328         procedure.
33330         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
33331         when component type is a partially constrained class-wide subtype.
33332         (Constrain_Discriminated_Type): If parent type has unknown
33333         discriminants, a constraint is illegal, even if full view has
33334         discriminants.
33335         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
33336         with unknown discriminants whose full view is a discriminated record.
33338         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
33339         flag, to handle properly derivations of tagged types with unknown
33340         discriminants.
33341         (Analyze_Package_Spec, Analyze_Package_Body): Install
33342         Private_With_Clauses before analyzing private part or body.
33344         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
33345         Has_Discriminants can be true for a given type (documentation).
33347 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
33349         * s-restri.ads: Fix license (GPL->GMGPL).
33351         * s-tassta.adb: Minor reformatting.
33353         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33354         by calls to Exit_One_ATC_Level, since additional clean up is performed
33355         by this function.
33357         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33358         by calls to Exit_One_ATC_Level, since additional clean up is performed
33359         by this function.
33361 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33363         * trans.c: Reflect GCC changes to fix bootstrap problem.
33364         Add warning for suspicious aliasing unchecked conversion.
33366 2004-03-05  GNAT Script  <nobody@gnat.com>
33368         * Make-lang.in: Makefile automatically updated
33370 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
33372         * ali.adb (Read_Instantiation_Instance): Do not modify the
33373         current_file_num when reading information about instantiations, since
33374         this corrupts files in later references.
33376 2004-03-02  Vincent Celier  <celier@gnat.com>
33378         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
33379         before checking if it is read-only.
33381         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
33382         of SRC_DIRS and eliminate duplicates.
33384         * gprcmd.adb: Replace command "path" with command "path_sep" to return
33385         the path separator.
33386         (Usage): Document path_sep
33388         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
33389         C++ compiler. No need for a script.
33390         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
33391         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
33392         subst.
33394         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
33395         where there are Ada sources.
33396         (Set_Ada_Paths): Only add to the include path the source dirs of project
33397         with Ada sources.
33398         (Add_To_Path): Add the Display_Values of the directories, not their
33399         Values.
33401         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
33402         data.
33404         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
33405         is not No_Name.
33406         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
33407         Value is canonicalized.
33408         (Language_Independent_Check): Do not copy Value to Display_Value when
33409         canonicalizing Value.
33411         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
33412         path to find limited with cycles.
33413         (Parse_Single_Project): Use canonical cased path to find the end of a
33414         with cycle.
33416 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
33418         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
33419         and not a child unit.
33421         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
33422         appear in a with_clause.
33424         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
33425         only happen in type_annotate mode, do not try to elaborate it.
33427         * exp_util.adb (Force_Evaluation): If expression is a selected
33428         component on the left of an assignment, use a renaming rather than a
33429         temporary to remove side effects.
33431         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
33432         inlined instance body, which is analyzed before the end of the
33433         enclosing scope.
33435 2004-03-02  Robert Dewar  <dewar@gnat.com>
33437         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
33438         sem_ch4.adb: Use new feature for substitution of keywords in VMS
33440         * errout.ads, errout.adb: Implement new circuit for substitution of
33441         keywords in VMS.
33443         * sem_case.adb (Analyze_Choices): Place message properly when case is
33444         a subtype reference rather than an explicit range.
33446         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
33448 2004-03-02  Doug Rupp  <rupp@gnat.com>
33450         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
33452 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
33454         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
33456 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33458         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
33459         BLKmode bitfield.
33461 2004-02-25  Robert Dewar  <dewar@gnat.com>
33463         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33464         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
33465         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
33466         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
33467         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
33468         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
33469         the defining instance of the type to avoid aliasing problems.
33470         Fix copyright header.  Fix bad comments in package header.
33472         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
33474 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
33476         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
33477         rewritten as references when aliased through an address clause.
33479         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
33480         whether call can be interpreted as an indirect call to the result of a
33481         parameterless function call returning an access subprogram.
33483 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
33485         Code clean up:
33486         * exp_ch7.adb (Make_Clean): Remove generation of calls to
33487         Unlock[_Entries], since this is now done by Service_Entries directly.
33489         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
33491         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
33492         Requeue_Call for better code readability. Change spec and update calls:
33493         PO_Service_Entries now unlock the PO on exit.
33494         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
33495         PO_Service_Entries.
33497         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
33499         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
33501 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
33503         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
33504         protected subprogram call and analyzing the result of such expanding
33505         in case when the called protected subprogram is eliminated.
33507         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
33508         names.
33510 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
33512         * Makefile.in: Clean ups.
33514 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
33516         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
33517         protected operations if original subprogram is flagged as eliminated.
33518         (Expand_N_Subprogram_Body): For a protected operation, create
33519         discriminals for next operation before checking whether the operation
33520         is eliminated.
33522         * exp_ch9.adb (Expand_N_Protected_Body,
33523         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
33524         for internal protected operations if the original subprogram is
33525         eliminated.
33527         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
33528         declared in a single protected object.
33530 2004-02-23  Vincent Celier  <celier@gnat.com>
33532         * prj-attr.adb: Make attribute Builder'Executable an associative array,
33533         case insensitive if file names are case insensitive, instead of a
33534         standard associative array.
33536         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
33537         them as case insensitive on platforms where the file names are case
33538         sensitive.
33540         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
33541         project file has already been parsed that canonical path are compared.
33543 2004-02-23  Robert Dewar  <dewar@gnat.com>
33545         * sinput-c.ads: Correct bad unit title in header
33547         * freeze.adb: Minor reformatting
33549 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33551         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
33552         nonaddressable COMPONENT_REF that is removing padding that we are
33553         taking the address of, take the address of the padded record instead
33554         if item is variable size.
33556 2004-02-20  Robert Dewar  <dewar@gnat.com>
33558         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
33560 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
33562         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
33563         itype references for the constrained designated type of a component
33564         whose base type is already frozen.
33566 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
33568         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
33569         avoid GCC warnings.
33571 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
33573         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
33574         identifier for a phantom package that rewrites the formal package
33575         declaration with a box. The Add semantic decorations for the defining
33576         identifier from the original node (that represents the formal package).
33578 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
33580         * Make-lang.in (ada/stamp-sdefault): Use the top level
33581         move-if-change.
33583 2004-02-19  Richard Henderson  <rth@redhat.com>
33585         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
33587 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
33589         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
33590         Scan_ALI can be used for multiple ALI files without reinitializing
33591         between calls.
33593 2004-02-18  Robert Dewar  <dewar@gnat.com>
33595         * debug.adb: Minor reformatting.
33597 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33599         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
33600         to zero if there is an address clause.
33602 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
33604         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
33606 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
33608         * layout.adb (Layout_Component_List): Revise generation of call to
33609         discriminant-checking function to pass selections of all of the type's
33610         discriminants rather than just the variant-controlling discriminant.
33612 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
33614         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
33615         fail in the current setup and triggers spurious system error messages.
33616         Pretend it occurred and failed instead.
33618 2004-02-18  Vincent Celier  <celier@gnat.com>
33620         * bld.adb: Mark FLDFLAGS as saved
33621         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
33622         it is not the root project.  Put each directory to be
33623         extended between double quotes to prevent it to be expanded on Windows.
33624         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
33625         the project file. Set them back to their initial values if they have not
33626         been set in the project file.
33628         * gprcmd.adb: (Gprdebug, Debug): New global variables
33629         (Display_Command): New procedure
33630         (Usage): Document new command "linkopts"
33631         Call Display_Command when env var GPRDEBUG has the value "TRUE"
33632         Implement new command "linkopts"
33633         Remove quotes that may be around arguments for "extend"
33634         Always call Normalize_Pathname with arguments formatted for the platform
33636         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
33637         Change @echo to @$(display) in target clean to be able to clean silently
33639         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
33641         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
33642         canonical case.
33644         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
33645         = Extending_All when current project is an extending all project.
33647         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
33648         set to True only for LINK command, after Unix switch -o.
33649         (Process_Arguments): Set Output_File_Expected to True for LINK command
33650         after Unix switch -o. When Output_File_Expected is True, never add an
33651         extension to a file name.
33653         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
33654         option file name, only to the --for-linker= switch.
33655         (Option_File_Name): If option file name do not end with ".opt", append
33656         "/OPTIONS".
33658 2004-02-18  GNAT Script  <nobody@gnat.com>
33660         * Make-lang.in: Makefile automatically updated
33662 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
33664         * Make-lang.in (stamp-sdefault): Do not depend on
33665         move-if-change.
33667 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
33669         * config-lang.in: Disable Ada by default until probe logic for
33670         a bootstrap Ada compiler can be moved to the top level configure
33671         script.
33673 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
33675         * decl.c (components_to_record): Don't claim that the internal fields
33676         we make to hold the variant parts are semantically addressable, because
33677         they are not.
33679         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
33680         adjust the comment describing the modular type form when we can use it.
33681         (Install_PAT): Account for the Esiz renaming.
33683         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
33684         sc_onstack context indication before raising the exception to which
33685         the signal is mapped. Allows better handling of later signals possibly
33686         triggered by the resumed user code if the exception is handled.
33688 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
33690         * 5zinit.adb: Removed, no longer used.
33692 2004-02-12  Robert Dewar  <dewar@gnat.com>
33694         * ali.adb: Remove separating space between parameters on R line. Makes
33695         format consistent with format used by the binder for Set_Globals call.
33697         * atree.ads, atree.adb: Minor reformatting (new function header format)
33699         * bindgen.adb: Add Run-Time Globals documentation section containing
33700         detailed documentation of the globals passed from the binder file to
33701         the run time.
33703         * gnatls.adb: Minor reformatting
33705         * init.c (__gnat_set_globals): Add note pointing to documentation in
33706         bindgen.
33708         * lib-writ.ads, lib-writ.adb: Remove separating space between
33709         parameters on R line.
33710         Makes format consistent with format used by the binder for Set_Globals
33711         call.
33713         * osint.ads: Add 2004 to copyright notice
33714         Minor reformatting
33716         * snames.ads: Correct capitalization of FIFO_Within_Priorities
33717         Noticed during code reading, documentation issue only
33719         * usage.adb: Remove junk line for obsolete C switch
33720         Noticed during code reading
33722 2004-02-12  Vincent Celier  <celier@gnat.com>
33724         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
33725         extend for each directory, so that multiple /** directories are
33726         extended individually.
33727         (Recursive_Process): Set the default for LANGUAGES to ada
33729         * gprcmd.adb: Define new command "ignore", to do nothing.
33730         Implement new comment "path".
33732         * Makefile.generic: Suppress output when SILENT is set
33733         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
33734         used, so that the correct compiler is invoked.
33735         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
33736         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
33738 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
33740         * Makefile.in: Clean ups and remove obsolete targets.
33742 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
33744         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
33745         predicate declared in exp_util.
33747         * exp_util.adb: Add comments.
33749         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
33750         visibility before compiling context of the subunit.
33752         * sem_res.adb (Check_Parameterless_Call): If the context expects a
33753         value but the name is a procedure, do not attempt to analyze as a call,
33754         in order to obtain more telling diagnostics.
33756         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
33757         'Access on parameterless function calls.
33758         (Normalize_Actuals): For a parameterless function call with missing
33759         actuals, defer diagnostic until resolution of enclosing call.
33761         * sem_util.adb (Wrong_Type): If the context type is an access to
33762         subprogram and the expression is a procedure name, suggest a missing
33763         'attribute.
33765 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
33766             Nathanael Nerode  <neroden@gcc.gnu.org>
33768         PR ada/6637
33769         PR ada/5911
33770         Merge with libada-branch:
33771         * config-lang.in: Build libada only when ada is built.
33773 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
33775         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
33776         for a tagged type, verify that both formals have the same type.
33778         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
33779         temporary when the formal is an in-parameter and the actual a possibly
33780         unaligned slice.
33782         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
33783         when expansion is disabled, to ensure proper name capture with
33784         overloaded literals.  Condition can be of any boolean type, resolve
33785         accordingly.
33787         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
33788         renaming is for a formal subprogram with a default operator name, and
33789         there is a usable operator that is visible at the point of
33790         instantiation.
33792 2004-02-09  Robert Dewar  <dewar@gnat.com>
33794         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
33795         rewrite to ignore errors in ali files, intended to allow tools downward
33796         compatibility with new versions of ali files.
33798         * ali.ads: Add new parameter Ignore_Errors
33800         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
33801         duplicating the error message giving the file with restrictions.
33803         * debug.adb: Add debug flag I for gnatbind
33805         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
33806         operators for the case where the operator is a defining operator.
33808         * exp_ch3.adb: Minor reformatting (new function spec format).
33810         * exp_ch4.adb: Add comment for previous change, and make minor
33811         adjustment to loop to always check for improper loop termination.
33812         Minor reformatting throughout (new function spec format).
33814         * gnatbind.adb: Implement -di debug flag for gnatbind
33816         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
33818         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
33820         * lib-load.adb: Fix bad assertion.
33821         Found by testing and code reading.
33822         Minor reformatting.
33824         * lib-load.ads: Minor reformatting.
33826         * lib-writ.adb: There is only one R line now.
33828         * lib-writ.ads: Add documentation on making downward compatible changes
33829         to ali files so old tools work with new ali files.
33830         There is only one R line now.
33831         Add documentation on format incompatibilities (with special GPS note)
33833         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
33835         * par-load.adb: Minor reformatting
33837         * sem_ch8.adb: Fix to error message from last update
33838         Minor reformatting and restructuring of code from last update
33840         * par-prag.adb, snames.adb, snames.ads, snames.h,
33841         sem_prag.adb: Implement pragma Profile.
33843         * stylesw.adb: Implement -gnatyN switch to turn off all style check
33844         options.
33846         * usage.adb: Add line for -gnatyN switch
33848         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
33850 2004-02-09  Albert Lee  <lee@gnat.com>
33852         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
33854 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
33856         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
33857         slices.
33859         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
33860         is nested in an instance that is not frozen yet, to avoid
33861         order-of-elaboration problems in gigi.
33863         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
33864         body the attribute is legal.
33866 2004-02-09  Robert Dewar  <dewar@gnat.com>
33868         * s-rident.ads: Minor comment correction
33870         * targparm.adb: Remove dependence on uintp completely. There was
33871         always a bug in Make in that it called Targparm before initializing
33872         the Uint package. The old code appeared to get away with this, but
33873         the new code did not! This caused an assertion error in gnatmake.
33875         * targparm.ads: Fix bad comment, restriction pragmas with parameters
33876         are indeed fully supported.
33878 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
33880         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
33882 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
33884         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
33885         with targetm.calls.promote_prototypes.
33887 2004-02-04  Robert Dewar  <dewar@gnat.com>
33889         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
33890         ali.ads, gprcmd.adb: Minor reformatting
33892         * bindgen.adb: Output restrictions string for new style restrictions
33893         handling
33895         * impunit.adb: Add s-rident.ads (System.Rident) and
33896         s-restri (System.Restrictions)
33898         * lib-writ.adb: Fix bug in writing restrictions string (last few
33899         entries wrong)
33901         * s-restri.ads, s-restri.adb: Change name Restrictions to
33902         Run_Time_Restrictions to avoid conflict with package name.
33903         Add circuit to read and acquire run time restrictions.
33905 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
33907         * restrict.ads, restrict.adb: Use the new restriction
33908         No_Task_Attributes_Package instead of the old No_Task_Attributes.
33910         * sem_prag.adb: No_Task_Attributes is a synonym of
33911         No_Task_Attributes_Package.
33913         * snames.ads, snames.adb: New entry for proper handling of
33914         No_Task_Attributes.
33916         * s-rident.ads: Adding restriction No_Task_Attributes_Package
33917         (AI-00249) that supersedes the GNAT specific restriction
33918         No_Task_Attributes.
33920 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
33922         * sem_prag.adb:
33923         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
33924          body, an identifier may be wrapped in an unchecked conversion.
33926 2004-02-04  Vincent Celier  <celier@gnat.com>
33928         * lib-writ.ads: Comment update for the W lines
33930         * bld.adb: (Expression): An empty string list is static
33932         * fname-uf.adb: Minor comment update
33934         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
33936         * gnatbind.adb: Initialize Cumulative_Restrictions with the
33937         restrictions on the target.
33939 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
33941         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
33942         gen_rtx.
33944 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
33946         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
33948 2004-02-02  Vincent Celier  <celier@gnat.com>
33950         * gprcmd.adb (Check_Args): If condition is false, print the invoked
33951         comment before the usage.
33952         Gprcmd: Fail when command is not recognized.
33953         (Usage): Document command "prefix"
33955         * g-md5.adb (Digest): Process last block.
33956         (Update): Do not process last block. Store remaining characters and
33957         length in Context.
33959         * g-md5.ads (Update): Document that several call to update are
33960         equivalent to one call with the concatenated string.
33961         (Context): Add fields to allow new Update behaviour.
33963         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
33964         defaulted to False.
33965         When May_Fail is True and no existing file can be found, return No_File.
33967         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
33968         functions.
33970         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
33971         spec file name instead on the W line.
33973 2004-02-02  Robert Dewar  <dewar@gnat.com>
33975         * ali.adb: Read and acquire info from new format restrictions lines
33977         * bcheck.adb: Add circuits for checking restrictions with parameters
33979         * bindgen.adb: Output dummy restrictions data
33980         To be changed later
33982         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
33983         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
33984         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
33985         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
33986         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
33988         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
33989         the warning message on access to possibly uninitialized variable S)
33990         Minor changes for new restrictions handling.
33992         * gnatbind.adb: Minor reformatting
33993         Minor changes for new restrictions handling
33994         Move circuit for -r processing here from bcheck (cleaner)
33996         * gnatcmd.adb, gnatlink.adb: Minor reformatting
33998         * lib-writ.adb: Output new format restrictions lines
34000         * lib-writ.ads: Document new R format lines for new restrictions
34001         handling.
34003         * s-restri.ads/adb: New files
34005         * Makefile.rtl: Add entry for s-restri.ads/adb
34007         * par-ch3.adb: Fix bad error messages starting with upper case letter
34008         Minor reformatting
34010         * restrict.adb: Major rewrite throughout for new restrictions handling
34011         Major point is to handle restrictions with parameters
34013         * restrict.ads: Major changes in interface to handle restrictions with
34014         parameters. Also generally simplifies setting of restrictions.
34016         * snames.ads/adb: New entry for proper handling of No_Requeue
34018         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
34019         restriction counting.
34020         Other minor changes for new restrictions handling
34022         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
34023         Restriction_Warnings now allows full parameter notation
34024         Major rewrite of Restrictions for new restrictions handling
34026 2004-02-02  Javier Miranda  <miranda@gnat.com>
34028         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
34029         syntax rule for object renaming declarations.
34030         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
34031         component definitions.
34033         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
34034         components.
34035         (Array_Type_Declaration): Give support to access components. In addition
34036         it was also modified to reflect the name of the object in anonymous
34037         array types. The old code did not take into account that it is possible
34038         to have an unconstrained anonymous array with an initial value.
34039         (Check_Or_Process_Discriminants): Allow access discriminant in
34040         non-limited types.
34041         (Process_Discriminants): Allow access discriminant in non-limited types
34042         Initialize the new Access_Definition field in N_Object_Renaming_Decl
34043         node.  Change Ada0Y to Ada 0Y in comments
34045         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
34046         equality operators.
34047         Change Ada0Y to Ada 0Y in comments
34049         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
34050         renamings Change Ada0Y to Ada 0Y in comments
34052         * sem_type.adb (Find_Unique_Type): Give support to the equality
34053         operators for universal access types
34054         Change Ada0Y to Ada 0Y in comments
34056         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
34058         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
34059         field.
34060         (N_Object_Renaming_Declaration): Addition of Access_Definition field
34061         Change Ada0Y to Ada 0Y in comments
34063         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
34064         component definition and object renaming nodes
34065         Change Ada0Y to Ada 0Y in comments
34067 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
34069         * restrict.adb: Use the new restriction identifier
34070         No_Requeue_Statements instead of the old No_Requeue for defining the
34071         restricted profile.
34073         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
34074         No_Requeue_Statements.
34076         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
34077         that supersedes the GNAT specific restriction No_Requeue. The later is
34078         kept for backward compatibility.
34080 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
34082         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
34083         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
34084         pragma and fix incorrect ones.
34086         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
34087         warning if the pragma is redundant.
34089 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
34091         * 5staprop.adb: Add missing 'constant' keywords.
34093         * Makefile.in: use consistent value for SYMLIB on
34094         platforms where libaddr2line is supported.
34096 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34098         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
34099         annotating types.
34101 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
34103         * init.c (__gnat_install_handler): Setup an alternate stack for signal
34104         handlers in the environment thread. This allows proper propagation of
34105         an exception on stack overflows in this thread even when the builtin
34106         ABI stack-checking scheme is used without support for a stack reserve
34107         region.
34109         * utils.c (create_field_decl): Augment the head comment about bitfield
34110         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
34111         here, because the former is not accurate enough at this point.
34112         Let finish_record_type decide instead.
34113         Don't make a bitfield if the field is to be addressable.
34114         Always set a size for the field if the record is packed, to ensure the
34115         checks for bitfield creation are triggered.
34116         (finish_record_type): During last pass over the fields, clear
34117         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
34118         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
34119         from DECL_BIT_FIELD.
34121 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
34123         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
34124         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
34125         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
34127 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34129         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
34131         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
34132         (ZCX_By_Default): Likewise.
34133         (Front_End_ZCX_Support): Likewise.
34135         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
34136         (Initialize_Lock): Mark Level unreferenced.
34137         (Sleep): Mark Reason unreferenced.
34138         (Timed_Sleep): Likewise.
34139         (Wakeup): Likewise.
34140         (Exit_Task): Use Result.
34141         (Check_No_Locks): Mark Self_ID unreferenced.
34143         * 5gtasinf.adb (New_Sproc): Make Attr constant.
34144         (Bound_Thread_Attributes): Make Sproc constant.
34145         (New_Bound_Thread_Attributes): Likewise.
34147 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
34149         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
34150         one-dimensional array an slice assignments, when component type is
34151         controlled.
34153         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
34154         component type is controlled, and control_actions are in effect, use
34155         TSS procedure rather than generating inline code.
34157         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
34158         arrays with controlled components.
34160 2004-01-26  Vincent Celier  <celier@gnat.com>
34162         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
34163         command line for the non VMS case.
34165         * gnatlink.adb (Process_Binder_File): When building object file, if
34166         GNU linker is used, put all object paths between quotes, to prevent ld
34167         error when there are unusual characters (such as '!') in the paths.
34169         * Makefile.generic: When there are sources in Ada and the main is in
34170         C/C++, invoke gnatmake with -B, instead of -z.
34172         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
34173         from VMS_Conversion.
34174         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
34175         specification of argument file on the command line.
34177 2004-01-26  Bernard Banner  <banner@gnat.com>
34179         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
34181 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
34183         * snames.adb: Update copyright notice.
34184         Add info on slice assignment for controlled arrays.
34186 2004-01-23  Robert Dewar  <dewar@gnat.com>
34188         * exp_aggr.adb: Minor reformatting
34190         * exp_ch9.adb: Minor code clean up
34191         Minor reformatting
34192         Fix bad character in comment
34194         PR ada/13471
34195         * targparm.adb (Get_Target_Parameters): Give clean abort error on
34196         unexpected end of file, along with more detailed message.
34198 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34200         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
34201         PAT.
34203         * decl.c (copy_alias_set): New function.
34204         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
34206 2004-01-23  Doug Rupp  <rupp@gnat.com>
34208         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
34209         lib$${file} in case subsequent character is not a separator.
34211 2004-01-23  Vincent Celier  <celier@gnat.com>
34213         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
34214         when the GCC version is at least 3.
34216         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
34217         Remove all "Opt.", to prepare for opt split
34219         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
34220         Extends_All. Set to True when the project parsed is an extending all
34221         project. Fails for importing an extending all project only when the
34222         imported project is an extending all project.
34223         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
34224         depending on the value of Extends_All returned.
34226         * prj-proc.adb (Process): Check that no project shares its object
34227         directory with a project that extends it, directly or indirectly,
34228         including a virtual project.
34229         Check that no project extended by another project shares its object
34230         directory with another also extended project.
34232         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
34233         Kind = N_With_Clause
34235         * prj-tree.ads: Minor reformatting
34236         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
34238 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
34240         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
34241         applies to a type with an incomplete view, use full view in Name of
34242         clause, for consistency with uses of Get_Attribute_Definition_Clause.
34244 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
34246         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
34247         SCHED_RR, since other values are not supported by this policy.
34248         (Initialize): Move initialization of mutex attribute to package
34249         elaboration, to prevent early access to this variable.
34251         * Makefile.in: Remove mention of Makefile.adalib, unused.
34253         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
34254         1ssecsta.ads: Removed, unused.
34256 2004-01-21  Javier Miranda  <miranda@gnat.com>
34258         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
34259         entity if already built in the current scope.
34261         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
34262         reminder in internal scopes. Required for nested limited aggregates.
34264 2004-01-21  Doug Rupp  <rupp@gnat.com>
34266         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
34267         VMS. Replace all occurences of libgnat- and libgnarl- with
34268         libgnat$(hyphen) and libgnarl$(hyphen).
34269         Fixed shared library build problem on VMS.
34271 2004-01-21  Robert Dewar  <dewar@gnat.com>
34273         * mlib-prj.adb: Minor reformatting
34275 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
34277         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
34278         'constant' keywords for declaration of pointers that are not modified.
34280         * exp_pakd.adb: Fix English in comment.
34282 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
34284         PR ada/10889
34285         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
34286         copy all attributes of the parent, including the foreign language
34287         convention.
34289 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
34291         PR ada/10565
34292         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
34293         for 'delay until' statement.
34295 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
34297         * Make-lang.in: Replace $(docdir) with doc.
34298         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
34299         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
34300         to use consistent MAKEINFO rule.
34301         (ada.man, ada.srcman): Dummy entry.
34302         (ADA_INFOFILES): Define.
34303         (ada.info, ada.srcinfo): New rules.
34305 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
34307         * utils.c: Update copyright notice, missed in previous change.
34309 2004-01-19  Vincent Celier  <celier@gnat.com>
34311         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
34312         args if Bind is True. Set First_ALI, if not already done.
34313         (Build_Library): For Stand Alone Libraries, extract from one ALI file
34314         an eventual --RTS switch, for gnatbind, and all backend switches +
34315         --RTS, for linking.
34317 2004-01-19  Robert Dewar  <dewar@gnat.com>
34319         * sem_attr.adb, memtrack.adb: Minor reformatting
34321 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
34323         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
34324         that rename enumeration literals. This is properly done in sem_eval.
34326         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
34327         to functions that rename enumeration literals.
34329         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
34330         functions that rename enumeration literals.
34332 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
34334         * Make-lang.in (utils.o): Depend on target.h.
34335         * utils.c: Include target.h.
34336         (process_attributes): Use targetm.have_named_sections instead
34337         of ASM_OUTPUT_SECTION_NAME.
34339 2004-01-16  Andreas Jaeger  <aj@suse.de>
34341         * Makefile.in: Add $(DESTDIR).
34343 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
34345         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
34346         also when not defining if a Size clause applies. That information is
34347         not to be ignored.
34349 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
34351         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
34352         symbolic links for the shared gnat run time when needed.
34354 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
34356         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
34357         for writing, and terminate with an error message if not.
34359 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
34361         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
34362         warning on an access to subprogram in an instance, when the target
34363         type is declared in the same generic unit.
34364         (Eval_Attribute): If 'access is known to fail accessibility check,
34365         rewrite as a raise statement.
34367 2004-01-15  GNAT Script  <nobody@gnat.com>
34369         * Make-lang.in: Makefile automatically updated
34371 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
34373         * Make-lang.in (ada.srcextra): Dummy entry.
34375 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
34377         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
34379 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
34381         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
34382         components that are initialized with aggregates.
34384 2004-01-13  Vincent Celier  <celier@gnat.com>
34386         * gnatlink.adb (Process_Binder_File): To find directory of shared
34387         libgcc, if "gcc-lib" is not a subdirectory, look for the last
34388         subdirectory "lib" in the path of the shared libgnat or libgnarl.
34390         * make.adb (Gnatmake): If GCC version is at least 3, link with
34391         -shared-libgcc, when there is at least one shared library project.
34393         * opt.ads (GCC_Version): New integer constant.
34395         * adaint.c (get_gcc_version): New function.
34397 2004-01-13  Robert Dewar  <dewar@gnat.com>
34399         * sem_dist.adb, sem_res.adb, sem_util.adb,
34400         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
34401         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
34403 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
34405         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
34406         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
34407         declarations.
34409 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
34411         * misc.c: Remove trailing spaces.
34412         Update copyright notice missed in previous change.
34414         PR ada/13572
34415         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
34416         prefix/share/make
34418         * Makefile.generic: Update copyright.
34419         Add license notice.
34421         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
34422         of prefix/share/make.
34424         * Makefile.prolog: Update copyright.
34425         Add license notice.
34427 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
34429         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
34430         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
34431         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
34432         instead of String.
34434         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
34435         signature.
34437 2004-01-12  Javier Miranda  <miranda@gnat.com>
34439         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
34440         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
34441         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
34442         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
34443         Component_Definition node.
34445 2004-01-12  Ed Falis  <falis@gnat.com>
34447         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
34449 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
34451         * link.c: Change default libgnat kind to STATIC for FreeBSD.
34453 2004-01-12  Bernard Banner  <banner@gnat.com>
34455         * Makefile.in: map 86numaux to a-numaux for x86_64
34457 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
34459         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
34460         generated to rename a generic actual, go to the actual itself, the
34461         subtype is not a user-visible entity.
34463         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
34464         part is a private subtype, reset the visibility of its full view, if
34465         any, to be consistent.
34467         PR ada/13417
34468         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
34469         to use a generic package G as a formal package for another generic
34470         declared within G.
34472 2004-01-12  Robert Dewar  <dewar@gnat.com>
34474         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
34476         * usage.adb: Remove mention of obsolete -gnatwb switch
34477         Noticed during code reading
34479 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
34481         * 1ssecsta.adb: Minor changes for -gnatwa warnings
34483 2004-01-12  GNAT Script  <nobody@gnat.com>
34485         * Make-lang.in: Makefile automatically updated
34487 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
34489         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
34491 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34493         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
34495 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
34497         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
34498         Update comment and copyright date.
34499         * stamp-xgnatug: Delete.
34501 2004-01-05  Robert Dewar  <dewar@gnat.com>
34503         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
34504         be modified by the binder generated main program if the -D switch is
34505         used.
34507         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
34508         imported functions (since now we expect this to be done for imported
34509         functions)
34511         * 5vtaprop.adb: Add several ??? for sections requiring more comments
34512         Minor reformatting throughout
34514         * 5zinit.adb: Minor reformatting
34515         Add 2004 to copyright date
34516         Minor changes to avoid -gnatwa warnings
34517         Correct some instances of using OR instead of OR ELSE (noted while
34518         doing reformatting)
34520         * sprint.adb: Minor updates to avoid -gnatwa warnings
34522         * s-secsta.ads, s-secsta.adb:
34523         (SS_Get_Max): New function to obtain high water mark for ss stack
34524         Default_Secondary_Stack is not a constant since it may be modified by
34525         the binder generated main program if the -D switch is used.
34527         * switch-b.adb: New -Dnnn switch for binder
34529         * switch-c.adb:
34530         Make -gnatg imply all warnings currently in -gnatwa
34532         * vms_conv.adb: Minor reformatting
34533         Add 2004 to copyright notice
34534         Add 2004 to printed copyright notice
34536         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
34537         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
34538         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
34539         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
34540         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
34541         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
34542         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
34543         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
34544         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
34545         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
34546         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
34547         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
34548         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
34549         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
34550         checks.adb, clean.adb, cstand.adb, einfo.ads,
34551         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
34552         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
34553         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
34554         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
34555         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
34556         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
34557         Minor reformatting and code clean ups.
34558         Minor changes to prevent -gnatwa warnings
34560         * ali.adb: Minor reformatting and cleanup of code
34561         Acquire new SS indication of secondary stack use from ali files
34563         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
34564         (since now we expect this to be done for imported functions)
34566         * bindgen.adb: Generate call to modify default secondary stack size if
34567         -Dnnn switch given
34569         * bindusg.adb: Add line for new -D switch
34571         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
34572         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
34573         Add circuitry for both records and arrays to avoid gigi
34574         processing if the type involved has non-bit-aligned components
34576         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
34577         N_String_Literal node always references an E_String_Literal_Subtype
34578         entity. This may not be true in the future.
34579         (Possible_Bit_Aligned_Component): Move processing of
34580         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
34582         * exp_ch6.adb (Expand_Thread_Body): Pick up
34583         Default_Secondary_Stack_Size as variable so that we get value modified
34584         by possible -Dnnn binder parameter.
34586         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
34587         (Type_May_Have_Bit_Aligned_Components): New function.
34589         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
34590         (Type_May_Have_Bit_Aligned_Components): New function.
34592         * fe.h: (Set_Identifier_Casing): Fix prototype.
34593         Add declaration for Sem_Elim.Eliminate_Error_Msg.
34594         Minor reformatting.
34596         * freeze.adb (Freeze_Entity): Add RM reference to error message about
34597         importing constant atomic/volatile objects.
34598         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
34599         unless explicit Pure_Function pragma given, to avoid insidious bug of
34600         call to non-pure imported function getting eliminated.
34602         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
34603         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
34604         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
34605         Add 2004 to printed copyright notice
34607         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
34608         stack used.
34610         * Makefile.rtl: Add entry for g-sestin.o
34611         g-sestin.ads: New file.
34613         * mdll.adb: Minor changes to avoid -gnatwa warnings
34615         * mlib-tgt.adb: Minor reformatting
34617         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
34618         New switch Sec_Stack_Used (GNAT, GNATBIND)
34619         Make Default_Secondary_Stack_Size a variable instead of a constant,
34620         so that it can be modified by the new -Dnnn bind switch.
34622         * rtsfind.adb (Load_Fail): Give full error message in configurable
34623         run-time mode if all_errors mode is set. This was not done in the case
34624         of a file not found, which was an oversight.
34625         Note if secondary stack unit is used by compiler.
34627         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
34628         ineffective elaborate all pragmas on non-visible packages (this
34629         happened when a renamed subprogram was called). Now the elaborate all
34630         always goes on the package containing the renaming rather than the one
34631         containing the renamed subprogram.
34633         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
34634         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
34636         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
34637         has an Etype that references an E_String_Literal.
34638         (Eval_String_Literal): Avoid assumption that N_String_Literal node
34639         always references an E_String_Literal_Subtype entity. This may not
34640         be true in the future.
34642         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
34643         pragma location.
34645         * sem_res.adb (Resolve): Specialize msg for function name used in proc
34646         call.
34648 2004-01-05  Ed Falis  <falis@gnat.com>
34650         * g-debuti.adb: Replaced direct boolean operator with short-circuit
34651         form.
34653 2004-01-05  Vincent Celier  <celier@gnat.com>
34655         * bld.adb: Minor comment updates
34656         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
34657         of Item_Name).
34659         * make.adb (Gnatmake): Special process for files to compile/check when
34660         -B is specified. Fail when there are only foreign mains in attribute
34661         Main of the project file and -B is not specified. Do not skip bind/link
34662         steps when -B is specified.
34664         * makeusg.adb: Document new switch -B
34666         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
34668         * switch-m.adb: (Scan_Make_Switches): Process -B switch
34670         * vms_data.ads: Add new GNAT PRETTY qualifier
34671         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
34673 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34675         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
34676         case.
34678         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
34679         Set_Identifier_Casing.
34681         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
34682         has size that overflows.
34684 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
34686         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
34687         -gnatwa warning on static condition.
34689 2004-01-05  Doug Rupp  <rupp@gnat.com>
34691         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
34693 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
34695         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
34696         all attributes, including read-only attribute.
34698 2004-01-05  Pascal Obry  <obry@gnat.com>
34700         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
34701         library naming scheme.
34703         * mlib-prj.adb (Build_Library): Generate different names for the static
34704         or dynamic version of the GNAT runtime. This is needed to support the
34705         new shared library naming scheme.
34706         (Process_Binder_File): Add detection of shared library in binder file
34707         based on the new naming scheme.
34709         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
34710         scheme for the shared runtime libraries.
34712         * Makefile.in:
34713         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
34714         scheme.
34715         (install-gnatlib): Do not create symlinks for shared libraries.
34716         (gnatlib-shared-default): Idem.
34717         (gnatlib-shared-dual-win32): New target. Not used for now as the
34718         auto-import feature does not support arrays/records.
34719         (gnatlib-shared-win32): Do not create copy for the shared libraries.
34720         (gnatlib-shared-vms): Fix shared runtime libraries names.
34722         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
34723         dependent runtime shared library name.
34725 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
34727         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
34728         than the object.
34730 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
34732         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
34733         protected objects when allocator has a subtype indication, not a
34734         qualified expression. Note that qualified expressions may have to be
34735         checked when limited aggregates are implemented.
34737         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
34738         pure, emit warning.
34739         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
34740         subprogram is imported, remove warning.
34742 2004-01-05  Geert Bosch  <bosch@gnat.com>
34744         * s-poosiz.adb: Update copyright notice.
34745         (Allocate): Use Task_Lock to protect against concurrent access.
34746         (Deallocate): Likewise.
34748 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
34750         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
34751         comment.
34753 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
34755         * gnat_ug.texi: Force a CVS commit by updating copyright.
34756         * gnat_ug_vxw.texi: Regenerate.
34757         * gnat_ug_wnt.texi: Regenerate.
34758         * gnat_ug_vms.texi: Regenerate.
34759         * gnat_ug_unx.texi: Regenerate.
34761 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
34763         * trans.c: Remove uses of "register" specifier in
34764         declarations of local variables.
34766 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
34768         * stamp-xgnatug: New stamp file.
34769         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
34770         (ada/doctools/xgnatug): Add $(build_exeext).
34771         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
34772         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
34774 2003-12-17  Ed Falis  <falis@gnat.com>
34776         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
34777         eliminate warning.
34779         * a-exextr.adb: Add context clause for
34780         Ada.Exceptions.Last_Chance_Handler.
34782 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
34784         * cstand.adb (Create_Standard): Change the way how the declaration of
34785         the Duration type is created (making it the same way as it is for all
34786         the other standard types).
34788 2003-12-17  Robert Dewar  <dewar@gnat.com>
34790         * s-crtl.ads: Fix header format
34791         Change Pure to Preelaborate
34793 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
34795         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
34796         the expression type only if it is declared in the current unit.
34798         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
34799         are universal and already analyzed, as can occur in constrained
34800         subcomponents that depend on discriminants, when one constraint is a
34801         subtype mark.
34803         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
34804         type Any_Fixed is legal as the argument of a conversion, if only one
34805         fixed-point type is in context.
34807 2003-12-17  GNAT Script  <nobody@gnat.com>
34809         * Make-lang.in: Makefile automatically updated
34811 2003-12-15  Robert Dewar  <dewar@gnat.com>
34813         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
34814         sec stack size.
34816 2003-12-15  Vincent Celier  <celier@gnat.com>
34818         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
34819         (Gnatchop): Do not set failure status when reporting the number of
34820         warnings.
34822 2003-12-15  Doug Rupp  <rupp@gnat.com>
34824         * s-ctrl.ads: New file.
34826         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
34828         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
34829         (GNATBIND_OBJS): Add ada/s-crtl.o.
34831         * Makefile.in [VMS]: Clean up ifeq rules.
34833         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
34834         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
34835         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
34836         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
34837         s-tasdeb.adb: Update copyright.
34838         Import System.CRTL.
34839         Make minor modifications to use System.CRTL declared functions instead
34840         of importing locally.
34842 2003-12-15  GNAT Script  <nobody@gnat.com>
34844         * Make-lang.in: Makefile automatically updated
34846 2003-12-11  Ed Falis  <falis@gnat.com>
34848         * 5zinit.adb: Clean up.
34850         * 5zintman.adb (Notify_Exception): replaced case statement with a call
34851         to __gnat_map_signal, imported from init.c to support
34852         signal -> exception mappings that depend on the vxWorks version.
34854         * init.c:
34855         Created and exported __gnat_map_signal to support signal -> exception
34856         mapping that is dependent on the VxWorks version.
34857         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
34859 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
34861         * 5wosinte.ads: Link with -mthreads switch.
34863 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
34865         * init.c (__gnat_install_handler [NetBSD]): Set
34866         __gnat_handler_installed, as done on all other platforms.
34867         Remove duplicated code.
34869 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
34871         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
34873 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
34875         * sinfo.ads: Fix inconsistent example code in comment.
34877 2003-12-11  Robert Dewar  <dewar@gnat.com>
34879         * a-tiinau.adb: Add a couple of comments
34881         * sem_ch3.adb: Minor reformatting
34883         * sem_prag.adb:
34884         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
34885         Minor reformatting throughout
34887 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
34889         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
34890         bounds of a loop, create a separate block in order to generate proper
34891         cleanup actions to prevent memory leaks.
34893         * sem_res.adb (Resolve_Call): After a call to
34894         Establish_Transient_Scope, the call may be rewritten and relocated, in
34895         which case no further processing is needed.
34897         * sem_util.adb: (Wrong_Type): Refine previous fix.
34898          Fixes ACATS regressions.
34900         PR ada/13353
34901         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
34902         be inlined.
34904 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
34906         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
34907         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
34908         obsolete files.
34910         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
34911         (rts-zfp): Ditto.
34913 2003-12-08  Robert Dewar  <dewar@gnat.com>
34915         * 7sintman.adb: Minor reformatting
34917         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
34918         standard linker options to get standard libraries linked. We now plan
34919         to provide dummy versions of these libraries to match the appropriate
34920         configurable run-time (e.g. if a library is not needed at all, provide
34921         a dummy empty library).
34923         * targparm.ads: Configurable_Run_Time mode no longer affects linker
34924         options (-L parameters and standard libraries). What we plan to do is
34925         to provide dummy libraries where the libraries are not required.
34927         * gnatbind.adb: Minor comment improvement
34929 2003-12-08  Javier Miranda  <miranda@gnat.com>
34931         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
34932         aggregate in the parent. Otherwise constants with limited aggregates
34933         are not supported. Add new formal to pass the component type (Ctype).
34934         It is required to call the corresponding IP subprogram in case of
34935         default initialized components.
34936         (Gen_Assign): In case of default-initialized component, generate a
34937         call to the IP subprogram associated with the component.
34938         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
34939         of aggregate with default initialized components.
34940         (Has_Default_Init_Comps): Improve implementation to recursively check
34941         all the present expressions.
34943         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
34944         to indicate that the initialization call corresponds to a
34945         default-initialized component of an aggregate.
34946         In case of default initialized aggregate with tasks this parameter is
34947         used to generate a null string (this is just a workaround that must be
34948         improved later). In case of discriminants, this parameter is used to
34949         generate a selected component node that gives access to the discriminant
34950         value.
34952         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
34953         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
34954         allocated aggregates with default-initialized components.
34956         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
34957         the box notation is used in positional aggregates.
34959 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
34961         * lib.ads: Fix typo in comment
34963 2003-12-08  Vincent Celier  <celier@gnat.com>
34965         * prj.adb (Project_Empty): New component Unkept_Comments
34966         (Scan): Remove procedure; moved to Prj.Err.
34968         * prj.ads (Project_Data): New Boolean component Unkept_Comments
34969         (Scan): Remove procedure; moved to Prj.Err.
34971         * prj-dect.adb: Manage comments for the different declarations.
34973         * prj-part.adb (With_Record): New component Node
34974         (Parse): New Boolean parameter Store_Comments, defaulted to False.
34975         Set the scanner to return ends of line and comments as tokens, if
34976         Store_Comments is True.
34977         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
34978         comments are associated with these nodes. Store the node IDs in the
34979         With_Records.
34980         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
34981         With_Records.
34982         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
34983         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
34984         current project. Call Tree.Restore afterwards. Set the various nodes
34985         for comment storage (Next_End, End_Of_Line, Previous_Line,
34986         Previous_End).
34988         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
34989         defaulted to False.
34991         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
34992         to False. When Truncated is True, truncate the string, never go to the
34993         next line.
34994         (Write_End_Of_Line_Comment): New procedure
34995         (Print): Process comments for nodes N_With_Clause,
34996         N_Package_Declaration, N_String_Type_Declaration,
34997         N_Attribute_Declaration, N_Typed_Variable_Declaration,
34998         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
34999         Process nodes N_Comment.
35001         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
35002         without comments and there are some comments, set the flag
35003         Unkept_Comments to True.
35004         (Scan): If there are comments, set the flag Unkept_Comments to True and
35005         clear the comments.
35006         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
35007         (Next_End_Nodes: New table
35008         (Comment_Zones_Of): New function
35009         (Scan): New procedure; moved from Prj. Accumulate comments in the
35010         Comments table and set end of line comments, comments after, after end
35011         and before end.
35012         (Add_Comments): New procedure
35013         (Save, Restore, Seset_State): New procedures
35014         (There_Are_Unkept_Comments): New function
35015         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
35016         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
35017         procedures.
35018         (First_Comment_After, First_Comment_After_End): New functions
35019         (First_Comment_Before, First_Comment_Before_End): New functions
35020         (Next_Comment): New function
35021         (End_Of_Line_Comment, Follows_Empty_Line,
35022         Is_Followed_By_Empty_Line): New functions
35023         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
35024         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
35025         (Set_Next_Comment): New procedure
35026         (Default_Project_Node): Associate comment before if the node can store
35027         comments.
35029         * scans.ads (Token_Type): New enumeration value Tok_Comment
35030         (Comment_Id): New global variable
35032         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
35033         defaulted to False.
35034         (Scan): Store position of start of comment. If comments are tokens, set
35035         Comment_Id and set Token to Tok_Comment when scanning a comment.
35036         (Set_Comment_As_Token): New procedure
35038         * sinput-p.adb: Update Copyright notice
35039         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
35040         that no longer exists.
35042 2003-12-08  Javier Miranda  <miranda@gnat.com>
35044         * sem_aggr.adb: Add dependence on Exp_Tss package
35045         Correct typo in comment
35046         (Resolve_Aggregate): In case of array aggregates set the estimated
35047         type of the aggregate before calling resolve. This is needed to know
35048         the name of the corresponding IP in case of limited array aggregates.
35049         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
35050         in case of default initialized array components.
35052         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
35053         types. Required to give support to limited aggregates in generic
35054         formals.
35056 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
35058         * sem_ch3.adb (Check_Initialization): For legality purposes, an
35059         inlined body functions like an instantiation.
35060         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
35061         until bounds are analyzed, to diagnose premature use of type.
35063         * sem_util.adb (Wrong_Type): Improve error message when the type of
35064         the expression is used prematurely.
35066 2003-12-08  GNAT Script  <nobody@gnat.com>
35068         * Make-lang.in: Makefile automatically updated
35070 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
35072         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
35073         they are automatically generated by Make-lang.in and cause nothing but
35074         maintenance troubles.
35076 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
35078         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
35079         version of this unit).
35081 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
35083         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
35084         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
35085         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
35086         the body of System.Interrupt_Management common to several targets.
35087         Update copyright notice when appropriate.
35089         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
35090         constant.
35092         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
35093         to ensure that the kernel fills in the interrupted context structure
35094         before calling a signal handler, which is necessary to be able to
35095         unwind past it. Update the copyright notice.
35097 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
35099         * a-elchha.ads: New file.
35101         * a-elchha.adb: New default last chance handler. Contents taken from
35102         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
35104         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
35105         is moved to a-elchha.adb to provide a target-independent default last
35106         chance handler.
35108         * Makefile.rtl: Add a-elchha.o
35110         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
35112 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
35114         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
35115         declared in an instance, do not inline the call if the instance is not
35116         frozen yet, to prevent order of elaboration problems.
35118         * sem_prag.adb: Add comments for previous fix.
35120 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
35122         * g-table.adb: Use the right variable in Set_Item.
35123         Update copyright notice.
35125 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
35127         * Makefile.in: Remove unused rules.
35129 2003-12-05  Vincent Celier  <celier@gnat.com>
35131         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
35132         -nostdlib. Not needed here after all.
35134 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
35136         PR ada/11724
35137         * adaint.h, adaint.c, g-os_lib.ads:
35138         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
35139         on some platforms (including FreeBSD), it is a 64 bit value.
35140         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
35142 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
35144         * gnatvsn.ads (Library_Version): Now contain only the relevant
35145         version info.
35146         (Verbose_Library_Version): New constant.
35148         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
35149         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
35150         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
35152         * gnatlbr.adb: Clean up: replace Library_Version by
35153         Verbose_Library_Version.
35155         * make.adb, lib-writ.adb, exp_attr.adb:
35156         Clean up: replace Library_Version by Verbose_Library_Version.
35158         * 5lintman.adb: Removed.
35160         * Makefile.in:
35161         Update and simplify computation of LIBRARY_VERSION.
35162         Fix computation of GSMATCH_VERSION.
35163         5lintman.adb is no longer used: replaced by 7sintman.adb.
35165 2003-12-03  Robert Dewar  <dewar@gnat.com>
35167         * exp_ch5.adb:
35168         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
35169         name. Modified to consider small non-bit-packed arrays as troublesome
35170         and in need of component-by-component assigment expansion.
35172 2003-12-03  Vincent Celier  <celier@gnat.com>
35174         * lang-specs.h: Process nostdlib as nostdinc
35176         * back_end.adb: Update Copyright notice
35177         (Scan_Compiler_Arguments): Process -nostdlib directly.
35179 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
35181         * Makefile.in:
35182         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
35183         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
35184         included in HIE_NONE_TARGET_PAIRS.
35186 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
35188         * sem_attr.adb:
35189         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
35190         is legal in an instance, because legality is cheched in the template.
35192         * sem_prag.adb:
35193         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
35194         appplied to an unchecked conversion of a formal parameter.
35196         * sem_warn.adb:
35197         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
35198         variables.
35200 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
35202         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
35203         routines. The second one is new functionality to deal with backtracing
35204         through signal handlers.
35205         (unwind): Split into the two separate subroutines above.
35206         Update the documentation, and deal properly with sizeof (REG) different
35207         from sizeof (void*).
35209 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
35211         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
35212         so that the debugger can reliably access the value of the parameter,
35213         and therefore is able to display the exception name when an exception
35214         breakpoint is reached.
35216 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
35218         * fmap.adb: Fix typo in warning message.
35220         * g-socket.ads, g-socket.adb: Make Free a visible instance of
35221         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
35223 2003-12-01  Vincent Celier  <celier@gnat.com>
35225         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
35226         ther is no Afile.
35227         (Build_Library): Get the switches only if Default_Switches is declared
35228         in package Binder.
35230 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
35232         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
35233         actuals that are indexed components, reanalyze actual to ensure that
35234         packed array references are properly expanded.
35236         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
35237         attempted assignment to a discriminant.
35239 2003-12-01  Robert Dewar  <dewar@gnat.com>
35241         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
35242         reformatting.
35244         * switch-c.adb: Minor reformatting of comments
35246 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
35248         * Makefile.in: Clean ups.
35250 2003-12-01  GNAT Script  <nobody@gnat.com>
35252         * Make-lang.in: Makefile automatically updated
35254 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
35256         * 5wsystem.ads: Disable zero cost exception, not ready yet.
35258 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
35260         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
35261         to force serialization.
35263 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
35265         * g-socket.ads, g-socket.adb:
35266         Clarify documentation of function Stream. Introduce a Free procedure
35267         to release the returned Stream once it becomes unused.
35269         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
35271 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
35273         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
35274         since NT 4 cannot handle timeout values that are too large,
35275         e.g. DWORD'Last - 1.
35277 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
35279         * exp_ch4.adb:
35280         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
35281         in procedure calls and whose expansion must be deferred.
35283         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
35284         is in exp_ch4.
35286         * sem_ch3.adb:
35287         (Build_Derived_Array_Type): Create operator for unconstrained type
35288         if ancestor is unconstrained.
35290 2003-11-26  Vincent Celier  <celier@gnat.com>
35292         * make.adb (Project_Object_Directory): New global variable
35293         (Change_To_Object_Directory): New procedure
35294         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
35295         of Change_Dir directly. Do not change working directory to object
35296         directory of main project after each compilation.
35297         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
35298         directly.
35299         Change to object directory of main project before binding step.
35300         (Initialize): Initialize Project_Object_Directory to No_Project
35302         * mlib-prj.adb:
35303         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
35304         binding a Stand-Alone Library.
35306         * output.adb: Update Copyright notice
35307         (Write_Char): Output buffer when full
35309 2003-11-26  Robert Dewar  <dewar@gnat.com>
35311         * sem_ch13.adb: (Check_Size): Reset size if size is too small
35313         * sem_ch13.ads:
35314         (Check_Size): Fix documentation to include bit-packed array case
35316         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
35318         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
35320         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
35322 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
35324         PR ada/13142
35325         * utils.c (init_gigi_decls): Change name of built-in setjmp to
35326         __builtin_setjmp, since this is apparently needed by recent
35327         non Ada changes.
35329 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35331         * adadecode.c: Only include ctype.h if not IN_GCC.
35332         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
35334 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
35336         * Makefile.in:
35337         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
35338         signals and interrupts.
35340         * 5zintman.ads: New File.
35342         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
35343         add exception signals to the set of unmasked signals.
35345         * 5ztaprop.adb:
35346         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
35347         between signals and interrupts.
35348         Add to Unblocked_Signal_Mask the set of signals that are in
35349         Keep_Unmasked.
35351         * 7sinmaop.adb:
35352         Adding a check to see whether the Interrupt_ID we want to unmask is in
35353         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
35354         reason is that the index type of the Keep_Unmasked array is not always
35355         Interrupt_ID; it may be a subtype of Interrupt_ID.
35357 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
35359         * exp_util.adb:
35360         (Remove_Side_Effects): Condition constantness of object created for a
35361          an unchecked type conversion on the constantness of the expression
35362          to ensure the correct value for 'Constrained when passing components
35363          of view-converted class-wide objects.
35365 2003-11-24  Robert Dewar  <dewar@gnat.com>
35367         * par-load.adb (Load): Improve handling of misspelled and missing units
35368         Removes several cases of compilation abandoned messages
35370         * lib.adb: (Remove_Unit): New procedure
35372         * lib.ads: (Remove_Unit): New procedure
35374         * lib-load.adb: Minor reformatting
35376 2003-11-24  Vincent Celier  <celier@gnat.com>
35378         * make.adb:
35379         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
35380         (Marking_Label): Label to mark processed source files. Incremented for
35381         each executable.
35382         (Gnatmake): Increase Marking_Labet for each executable
35383         (Is_Marked): Compare against marking label
35384         (Mark): Mark with marking label
35386 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
35388         * s-thread.ads:
35389         Move the declaration of the TSD for System.Threads to System.Soft_Links.
35390         Add some comments.
35392         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
35393         (rts-cert): build a single relocatable object for the run-time lib.
35394         Fix perms.
35396 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
35398         * Make-lang.in:
35399         Use gnatls rather than gcc to obtain the location of GNAT RTL for
35400         crosstools build.
35402 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
35404         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
35405         can not use it as before (that is, as a variable) when dumping it into
35406         the tree file. Add a local variable to store the result of this
35407         function and to be used as the string to be written into the tree.
35409         * scn.adb (Initialize_Scanner): Add comments explaining the recent
35410         changes.
35412         * sinput.adb (Source_First, Source_Last): In case of
35413         Internal_Source_File, replace returning attributes of
35414         Internal_Source_Ptr (which is wrong) with returning attributes of
35415         Internal_Source.
35417 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
35419         * sem_ch3.adb:
35420         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
35421         used for implicit concatenation operators.
35422         Code cleanup.
35424         * sem_elab.adb:
35425         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
35426         task bodies that are in the scope of a Suppress pragma.
35427         (Check_A Call): Use the flag to prevent spurious elaboration checks.
35429         * sinfo.ads, sinfo.adb:
35430         New flag No_Elaboration_Check on function/procedure calls, to properly
35431         suppress checks on calls in task bodies that are within a local suppress
35432         pragma.
35434         * exp_ch4.adb:
35435         (Expand_Concatenate_Other): Use the proper integer type for the
35436         expression for the upper bound, to avoid universal_integer computations
35437         when possible.
35439 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
35441         * .cvsignore: Delete.
35443 2003-11-21  Andreas Schwab  <schwab@suse.de>
35445         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
35447 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
35449         * 5wsystem.ads: Enable zero cost exception.
35451 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
35453         * 5ztiitho.adb: Remove an unreferenced variable.
35455 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
35457         * adaint.c: For FreeBSD, use mkstemp.
35459 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
35461         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
35463 2003-11-21  Robert Dewar  <dewar@gnat.com>
35465         * bld.adb: Remove useless USE of gnatvsn
35467         * gnatchop.adb: Minor reformatting
35468         Clean up version handling to be more consistent
35470         * gnatxref.adb: Minor reformatting
35472         * gprcmd.adb: Minor reformatting
35473         Fix output of copyright to be more consistent with other tools
35475 2003-11-21  Vincent Celier  <celier@gnat.com>
35477         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
35479 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
35481         * atree.adb (Initialize): Add initializations for global variables
35482         used in New_Copy_Tree.
35484         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
35485         Internal_Source_File as the actual).
35486         Put the set of statements creating Any_Character before the set of
35487         statements creating Any_Array to have Any_Character fully initialized
35488         when it is used in creating Any_Array.
35490         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
35491         not call Scan in case if the actual is Internal_Source_File
35492         Add 2003 to copyright note.
35494         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
35495         processing Internal_Source_File.
35497         * types.ads: Add the constant Internal_Source_File representing the
35498         source buffer for artificial source-code-like strings created within
35499         the compiler (the definition of Source_File_Index is changed).
35501 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
35503         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
35504         56system.ads: New file, FreeBSD version.
35506 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
35508         * Make-lang.in (ada.extraclean): Delete.
35510 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
35512         * gnatmem.adb: Clean up verbose output.
35514         * gprcmd.adb: Change copyright to FSF.
35516 2003-11-19  Vincent Celier  <celier@gnat.com>
35518         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
35519         and Version (ignored).
35521         * symbols.ads: (Policy): New type
35522         (Initialize): New parameter Reference, Symbol_Policy and
35523         Library_Version.
35524         Remove parameter Force.
35525         Minor reformatting.
35527         * snames.ads, snames.adbadb: New standard names
35528         Library_Reference_Symbol_File and Library_Symbol_Policy
35530         * mlib-prj.adb:
35531         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
35532         project.
35534         * mlib-tgt.adb:
35535         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
35537         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
35539         * prj.adb: (Project_Empty): New component Symbol_Data
35541         * prj.ads: (Policy, Symbol_Record): New types
35542         (Project_Data): New component Symbol_Data
35544         * prj-attr.adb:
35545         New attributes Library_Symbol_File, Library_Symbol_Policy and
35546         Library_Reference_Symbol_File.
35548         * prj-nmsc.adb:
35549         (Ada_Check): When project is a Stand-Alone library project, process
35550         attribute Library_Symbol_File, Library_Symbol_Policy and
35551         Library_Reference_Symbol_File.
35553         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
35554         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
35555         5sml-tgt.adb (Build_Dynamic_Library): New parameter
35556         Symbol_Data (ignored).
35558         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
35559         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
35560         functions Option_File_Name and Version_String. Set new options of
35561         gnatsym related to symbol file, symbol policy and reference symbol
35562         file.
35564         * 5vsymbol.adb:
35565         Extensive modifications to take into account the reference symbol file,
35566         the symbol policy, the library version and to put in the symbol file the
35567         minor and major IDs.
35569         * bld.adb (Process_Declarative_Items): Put second argument of
35570         gprcmd to_absolute between single quotes, to avoid problems with
35571         Windows.
35573         * bld-io.adb: Update Copyright notice.
35574         (Flush): Remove last character of a line, if it is a back slash, to
35575         avoid make problems.
35577         * gnatsym.adb:
35578         Implement new scheme with reference symbol file and symbol policy.
35580         * g-os_lib.ads: (Is_Directory): Clarify comment
35582 2003-11-19  Robert Dewar  <dewar@gnat.com>
35584         * atree.adb: Move New_Copy_Tree global variables to head of package
35586         * errout.adb: Minor reformatting
35588 2003-11-19  Javier Miranda  <miranda@gnat.com>
35590         * sem_ch4.adb: (Diagnose_Call): Improve error message.
35591         Add reference to Ada0Y (AI-50217)
35593         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
35594         sem_util.adb: Add reference to AI-50217
35596         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
35598         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
35600         * sem_aggr.adb: Complete documentation of AI-287 changes
35602         * par-ch4.adb: Document previous changes.
35604         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
35605         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
35606         Ada0Y (AI-50217)
35608         * exp_aggr.adb: Add references to AI-287 in previous changes
35610 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
35612         * exp_ch6.adb:
35613         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
35614         in the rewriting is the result of an inlined call.
35616         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
35617         parameter is a type conversion, use original node to construct the
35618         post-call assignment, because expression may have been rewritten, e.g.
35619         if it is a packed array.
35621         * sem_attr.adb:
35622         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
35623         body, just as it is in an instance.
35624         Categorization routines
35626         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
35627         Instantiate_Object): Set proper sloc reference for message on missing
35628         actual.
35630 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
35632         * Makefile.in: Add FreeBSD libgnat pairs.
35634         * usage.adb: Fix typo in usage message.
35636 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
35638         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
35639         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
35640         pragma Thread_Body.
35641         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
35643         * s-thread.adb: This file is now a dummy implementation of
35644         System.Thread.
35646 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
35648         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
35650 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
35652         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35653         instanciation references in the parent type description.
35655 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35657         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
35659         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
35660         TYPE_PRECISION directly from esize.
35662 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
35664         * cstreams.c:
35665         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
35667         * init.c: Initialization routines for FreeBSD
35669         * link.c: Link info for FreeBSD
35671         * sysdep.c: Add the case of FreeBSD
35673 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
35675         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
35676         already called in System.Threads.
35678         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
35679         environment task, as it has been moved to System.Threads.Initialization.
35681 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
35683         * adaint.c (__gnatlib_install_locks): Only reference
35684         __gnat_install_locks on VMS, since other platforms can avoid using
35685         --enable-threads=gnat
35687 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35689         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
35691         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
35692         TYPE_PACKED_ARRAY_TYPE_P.
35693         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
35695         Part of PR ada/12806
35696         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
35697         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
35699 2003-11-17  Vincent Celier  <celier@gnat.com>
35701         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
35702         to False.
35703         Do not set exit status to Failure when Warning is True.
35704         (Gnatchop): Make errors "no compilation units found" and
35705         "no source files written" warnings only.
35707         * make.adb (Gnatmake): When using a project file, set
35708         Look_In_Primary_Dir to False.
35709         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
35710         and Local_Configuration_Pragmas in the project where they are declared
35711         not an extending project which might have inherited them.
35713         * osint.adb (Locate_File): If Name is already an absolute path, do not
35714         look for a directory.
35716         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
35717         -gnats (Check_Syntax) is used, issue only a warning, not an error.
35719         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
35720         in objects of type Variable_Value.
35722         * prj.ads: (Variable_Value): New component Project
35724         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
35725         is in a project extended by Project.
35727         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
35728         Project of Variable_Values to this new parameter value.
35729         (Expression): Set component Project of Variable_Values.
35730         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
35731         Set the component Project in array elements.
35733 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
35735         * errout.adb: (Initialize): Add initialization for error nodes.
35737         * sem_ch12.adb (Initialize): Add missing initializations for
35738         Exchanged_Views and Hidden_Entities.
35740 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
35742         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
35743         already instantiated tree for use in subsequent inlining.
35744         (Analyze_Associations, Instantiate_Formal_Subprogram,
35745         Instantiate_Object): improve error message for mismatch in
35746         instantiations.
35748         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
35749         instantiations of subprograms declared in instances.
35751 2003-11-17  Javier Miranda  <miranda@gnat.com>
35753         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
35754         executed only under the Extensions_Allowed flag.
35756 2003-11-17  Robert Dewar  <dewar@gnat.com>
35758         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
35759         zeroes suppressed.
35760         (Address_Image): Fix bug of returning 0x instead of 0x0
35761         Minor reformatting (function specs).
35763         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
35764         (missed case of 33-63)
35766         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
35768         * s-thread.adb: Add comments for pragma Restriction
35770         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
35771         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
35773 2003-11-17  Ed Falis  <falis@gnat.com>
35775         * s-thread.adb: Added No_Tasking restriction for this implementation.
35777 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
35779         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35780         instanciation references in the parent type description.
35782 2003-11-17  GNAT Script  <nobody@gnat.com>
35784         * Make-lang.in: Makefile automatically updated
35786 2003-11-16  Jason Merrill  <jason@redhat.com>
35788         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
35789         and TAGS files that include them for each front end.
35791 2003-11-14  Andreas Jaeger  <aj@suse.de>
35793         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
35794         is the canonical version.
35795         * misc.c (gnat_handle_option): Likewise.
35797         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
35799         * 5nsystem.ads: New file for x86_64-linux-gnu.
35801 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
35803         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
35805         * comperr.adb: Fix logic in previous change.
35807 2003-11-13  Vincent Celier  <celier@gnat.com>
35809         * 5bml-tgt.adb (Build_Dynamic_Library): Use
35810         Osint.Include_Dir_Default_Prefix instead of
35811         Sdefault.Include_Dir_Default_Name.
35813         * gnatlbr.adb: Update Copyright notice
35814         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
35815         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
35816         instead of Sdefault.Object_Dir_Default_Name
35818         * gnatlink.adb:
35819         (Process_Binder_File): Never suppress the option following -Xlinker
35821         * mdll-utl.adb:
35822         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
35823         Sdefault.Object_Dir_Default_Name.
35825         * osint.ads, osint.adb:
35826         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
35827         Minor reformatting.
35829         * vms_conv.ads: Minor reformating
35830         Remove GNAT STANDARD and GNAT PSTA
35832         * vms_conv.adb:
35833         Allow GNAT MAKE to have several files on the command line.
35834         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
35835         Sdefault.Object_Dir_Default_Name.
35836         Minor Reformating
35837         Remove data for GNAT STANDARD
35839         * vms_data.ads:
35840         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
35841         Remove data for GNAT STANDARD
35842         Remove options and documentation for -gnatwb/-gnatwB: these warning
35843         options no longer exist.
35845 2003-11-13  Ed Falis  <falis@gnat.com>
35847         * 5zthrini.adb: (Init_RTS): Made visible
35849         * 5zthrini.adb:
35850         (Register): Removed unnecessary call to taskVarGet that checked whether
35851          an ATSD was already set as a task var for the argument thread.
35853         * s-thread.adb:
35854         Updated comment to reflect that this is a VxWorks version
35855         Added context clause for System.Threads.Initialization
35856         Added call to System.Threads.Initialization.Init_RTS
35858 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
35860         * 5zthrini.adb:
35861         (Init_RTS): New procedure, for the initialization of the run-time lib.
35863         * s-thread.adb:
35864         Remove dependancy on System.Init, so that this file can be used in the
35865         AE653 sequential run-time lib.
35867 2003-11-13  Robert Dewar  <dewar@gnat.com>
35869         * bindgen.adb: Minor reformatting
35871 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
35873         * checks.adb:
35874         (Apply_Discriminant_Check): Do no apply check if target type is derived
35875         from source type with no applicable constraint.
35877         * lib-writ.adb:
35878         (Ensure_System_Dependency): Do not apply the style checks that may have
35879         been specified for the main unit.
35881         * sem_ch8.adb:
35882         (Find_Selected_Component): Further improvement in error message, with
35883         RM reference.
35885         * sem_res.adb:
35886         (Resolve): Handle properly the case of an illegal overloaded protected
35887         procedure.
35889 2003-11-13  Javier Miranda  <miranda@gnat.com>
35891         * exp_aggr.adb:
35892         (Has_Default_Init_Comps): New function to check the presence of
35893         default initialization in an aggregate.
35894         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
35895         extension aggregate of a limited record. In addition, a new formal
35896         was added to do not initialize the record controller (if any) during
35897         this recursive expansion of ancestors.
35898         (Init_Controller): Add support for limited record components.
35899         (Expand_Record_Aggregate): In case of default initialized components
35900         convert the aggregate into a set of assignments.
35902         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
35903         describing the new syntax.
35904         Nothing else needed to be done because this subprogram delegates part of
35905         its work to P_Precord_Or_Array_Component_Association.
35906         (P_Record_Or_Array_Component_Association): Give support to the new
35907         syntax for default initialization of components.
35909         * sem_aggr.adb:
35910         (Resolve_Aggregate): Relax the strictness of the frontend in case of
35911         limited aggregates.
35912         (Resolve_Record_Aggregate): Give support to default initialized
35913         components.
35914         (Get_Value): In case of default initialized components, duplicate
35915         the corresponding default expression (from the record type
35916         declaration). In case of default initialization in the *others*
35917         choice, do not check that all components have the same type.
35918         (Resolve_Extension_Aggregate): Give support to limited extension
35919         aggregates.
35921         * sem_ch3.adb:
35922         (Check_Initialization): Relax the strictness of the front-end in case
35923         of aggregate and extension aggregates. This test is now done in
35924         Get_Value in a per-component manner.
35926         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
35927         expression corresponds to a limited aggregate. This test is now done
35928         in Get_Value.
35930         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
35931         Box_Present flag.
35933         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
35934         present in an N_Component_Association node
35936 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
35938         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
35939         type-conformant entry only if they are homographs.
35941 2003-11-13  GNAT Script  <nobody@gnat.com>
35943         * Make-lang.in: Makefile automatically updated
35945 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35947         * adadecode.c: Use <> form of include for ctype.h.
35948         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
35950 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35952         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
35953         Works around PR middle-end/6552.
35955 2003-11-10  Ed Falis  <falis@gnat.com>
35957         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
35959         * 5zinit.adb: (Install_Handler): Moved back to spec
35960         (Install_Signal_Handlers): Deleted
35962         * 5zthrini.adb: Added context clause for System.Storage_Elements
35963         (Register): Only handles creation of taskVar; initialization moved to
35964         Thread_Body_Enter.
35965         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
35966         Added declaration of environment task secondary stack and
35967         initialization.
35969         * s-thread.adb: Implement bodies for thread body processing
35971         * s-thread.ads:
35972         Added comment identifying supported targets for pragma Thread_Body.
35974 2003-11-10  Pascal Obry  <obry@gnat.com>
35976         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
35977         GNAT_MAX_PATH_LEN.
35979         * s-fileio.adb:
35980         (Open): Properly check for string length before copying into the buffer.
35981         Raises Name_Error if buffer is too small. Note that this was a potential
35982         buffer overflow.
35984 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
35986         * bindgen.adb, comperr.adb: Code clean ups.
35987         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
35989 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
35991         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
35993 2003-11-10  Vincent Celier  <celier@gnat.com>
35995         * gprcmd.adb:
35996         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
35997         installation.
35999         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
36001         * prj.adb: (Project_Empty): Add new boolean component Virtual
36003         * prj.ads: (Virtual_Prefix): New constant string
36004         (Project_Data): New boolean component Virtual
36006         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
36007         a library project is extended by a virtual extending project.
36009         * prj-part.adb:
36010         Modifications throughout to implement extending-all project, including:
36011         (Virtual_Hash, Processed_Hash): New hash tables
36012         (Create_Virtual_Extending_Project): New procedure
36013         (Look_For_Virtual_Projects_For): New procedure
36015         * prj-proc.adb:
36016         (Process): After checking the projects, if main project is an
36017         extending-all project, set the object directory of all virtual extending
36018         project to the object directory of the main project.
36019         Adjust error message when a virtual extending project has the same
36020         object directory as an project being extended.
36021         (Recursive_Process): If name starts with the virtual prefix, set Virtual
36022         to True in the project data.
36024         * prj-tree.adb:
36025         (Default_Project_Node): Add new boolean component Extending_All
36026         (Is_Extending_All): New function
36027         (Set_Is_Extending_All): New procedure
36029         * prj-tree.ads: (Is_Extending_All): New function
36030         (Set_Is_Extending_All): New procedure
36031         (Project_Node_Record): New boolean component Extending_All
36033         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
36035         * vms_data.ads:
36036         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
36038         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
36039         "gprcmd prefix" to define it.
36041 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
36043         * einfo.ads: Fix a typo and remove an extraneous word in comments.
36045         * lib-load.adb:
36046         (Create_Dummy_Package_Unit): Set the scope of the entity for the
36047         created dummy package to Standard_Standard, not to itself, to
36048         defend other parts of the front-end against encoutering a cycle in
36049         the scope chain.
36051         * sem_ch10.adb:
36052         (Analyze_With_Clause): When setting the entities for the successive
36053         N_Expanded_Names that constitute the name of a child unit, do not
36054         attempt to go further than Standard_Standard in the chain of scopes.
36055         This case arises from the placeholder units created by
36056         Create_Dummy_Package_Unit in the case of a with_clause for a
36057         nonexistent child unit.
36059 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
36061         * exp_ch6.adb:
36062         (Expand_Thread_Body): Place subprogram on scope stack, so that new
36063         declarations are given the proper scope.
36065         * sem_ch13.adb:
36066         (Check_Expr_Constants): Reject an expression that contains a constant
36067         created during expansion, and that appears after the object to which
36068         the address clause applies.
36070         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
36071         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
36072         that uses 'Range of a function call with controlled components, so
36073         that the function result can be finalized before starting the loop.
36075         * sem_ch8.adb:
36076         (Find_Selected_Component): Improve error message when prefix is
36077         an implicit dereference of an incomplete type.
36079 2003-11-10  Robert Dewar  <dewar@gnat.com>
36081         * opt.ads: New Print_Standard flag for -gnatS switch
36083         * sem_ch13.adb: Remove some additional checks for unaligned arrays
36085         * cstand.adb (Create_Standard): Print out package standard if -gnatS
36086         switch set
36088         * debug.adb: Update doc for -gnatds to discuss relationship with new
36089         -gnatS flag
36091         * sinfo.adb: Add new field Entity_Or_Associated_Node
36093         * sinfo.ads: Add new field Entity_Or_Associated_Node
36094         Update documentation for Associated_Node and Entity fields to clarify
36095         relationship and usage.
36097         * sprint.adb:
36098         (Write_Id): Properly process Associated_Node field in generic template
36100         * switch-c.adb:
36101         Recognize new -gnatS switch for printing package Standard
36102         This replaces gnatpsta
36104         * usage.adb:
36105         Add line for  new -gnatS switch for printing package Standard
36106         This replaces gnatpsta
36108 2003-11-10  Andreas Jaeger  <aj@suse.de>
36110         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
36111         integer.
36113 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
36115         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
36116         by gnat1.
36118 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
36120         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
36121         no longer needed.
36123         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
36125         * sysdep.c: Add handling of cygwin.
36127 2003-11-10  GNAT Script  <nobody@gnat.com>
36129         * Make-lang.in: Makefile automatically updated
36131 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
36133         PR 12950
36134         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
36135         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
36136         Replace GNAT_ROOT by GCC_ROOT.
36138         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
36140 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
36142         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
36143         and update for changed meaning of GET_MODE_BITSIZE.
36145 2003-11-04  Doug Rupp  <rupp@gnat.com>
36147         * sysdep.c: Problem discovered during IA64 VMS port.
36148         [VMS] #include <unixio.h> to get proper prototypes.
36150         * adaint.c:
36151         Issues discovered/problems fixed during IA64 VMS port.
36152         [VMS] #define _POSIX_EXIT for proper semantics.
36153         [VMS] #include <unixio.h> for proper prototypes.
36154         [VMS] (fork): #define IA64 version.
36155         (__gnat_os_exit): Remove unnecessary VMS specific code.
36157 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36159         Part of PR ada/12806
36160         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
36161         tree, not integer.
36163         * decl.c:
36164         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
36165         not integer.
36167         * targtyps.c, decl.c, misc.c,
36168         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
36169         routines to work around change in FP sizing semantics in GCC.
36171         * utils.c:
36172         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
36174         * gigi.h: (enumerate_modes): New function.
36176         * Make-lang.in: (ada/misc.o): Add real.h.
36178         * misc.c: (enumerate_modes): New function.
36180 2003-11-04  Robert Dewar  <dewar@gnat.com>
36182         * 3vtrasym.adb: Minor reformatting
36183         Use terminology encoded/decoded name, rather than C++ specific notion
36184         of mangling (this is the terminology used throughout GNAT).
36186         * einfo.h: Regenerated
36188         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
36190         * exp_ch6.adb:
36191         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
36193         * par-prag.adb: Add dummy entry for Thread_Body pragma
36195         * rtsfind.ads:
36196         Add entries for System.Threads entities for thread body processing
36198         * sem_attr.adb:
36199         (Analyze_Pragma, Access attributes): Check these are not applied to a
36200         thread body, since this is not permitted
36202         * sem_prag.adb: Add processing for Thread_Body pragma.
36203         Minor comment fix.
36205         * sem_res.adb:
36206         (Resolve_Call): Check for incorrect attempt to call a thread body
36207          procedure with a direct call.
36209         * snames.ads, snames.adb: Add entry for Thread_Body pragma
36210         Add names associated with thread body expansion
36212         * snames.h: Add entry for Thread_Body pragma
36214         * s-thread.adb: Add entries for thread body processing
36215         These are dummy bodies so far
36217         * s-thread.ads: Add documentation on thread body handling.
36218         Add entries for thread body processing.
36220 2003-11-04  Javier Miranda  <miranda@gnat.com>
36222         * sem_ch10.adb:
36223         (Build_Limited_Views): Return after posting an error in case of limited
36224         with_clause on subprograms, generics, instances or generic renamings
36225         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
36226         on subprograms, generics, instances or generic renamings
36228 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
36230         * raise.c (setup_to_install): Correct mistake in last revision; two
36231         arguments out of order.
36233         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
36234         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
36235         notice, missed in previous change.
36236         Remove trailing blanks and other style errors introduced in previous
36237         change.
36239 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
36241         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
36242         rid of the wrapper for a LJM type, ensuring we don't do that if the
36243         field is addressable.  This avoids potential low level type view
36244         mismatches later on, for instance in a by-reference argument passing
36245         process.
36247 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36249         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
36250         aligned at byte boundary.
36252 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
36254         * decl.c (components_to_record): Do not delete the empty variants from
36255         the end of the union type.
36257 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
36259         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
36260         operation for a derived type, an explicit declaration may use a local
36261         subtype of Boolean.
36263 2003-11-04  Vincent Celier  <celier@gnat.com>
36265         * make.adb (Gnatmake): Allow main sources on the command line with a
36266         library project when it is only for compilation (no binding or
36267         linking).
36269 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36271         * Makefile.in: Remove many duplicate variables.
36273 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
36275         * Make-lang.in (dvi): Move targets to $(docobjdir).
36276         (gnat_ug_vms.dvi): Simplify rule and adjust target.
36277         (gnat_ug_wnt.dvi): Likewise.
36278         (gnat_ug_unx.dvi): Likewise.
36279         (gnat_ug_vxw.dvi): Likewise.
36280         (gnat_rm.dvi): Likewise.
36281         (gnat-style.dvi): Likewise.
36283 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
36285         * gigi.h: Missed commit from update for C90.
36287 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
36289         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
36291 2003-10-31  Andreas Schwab  <schwab@suse.de>
36293         * raise.c (get_action_description_for): Fix typo in last change.
36295 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
36297         PR ada/12761
36298         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
36299         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
36301 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
36303         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
36304         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
36305         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
36306         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
36307         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
36309 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
36311         * 3vtrasym.adb:
36312         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
36313         numbers when symbol name is too long.
36315 2003-10-30  Ed Falis  <falis@gnat.com>
36317         * g-signal.ads, g-signal.adb: New files
36319         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
36321         * Makefile.rtl: Introduce GNAT.Signals
36323 2003-10-30  Robert Dewar  <dewar@gnat.com>
36325         * freeze.adb: Minor reformatting
36327         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
36329         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
36330         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
36331         New handling of Id_Check parameter to improve recognition of keywords
36332         used as identifiers.
36333         Update copyright notice to include 2003
36335 2003-10-29  Robert Dewar  <dewar@gnat.com>
36337         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
36338         sem_ch10.adb: Minor reformatting
36340         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
36341         (Expand_Assign_Record): Test right hand side for bit unaligned as well
36343 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
36345         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
36346         Support for TBK$SYMBOLIZE-based symbolic traceback.
36348 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
36350         * exp_disp.adb:
36351         Revert previous change, that did not work well when pragma No_Run_Time
36352         was used in conjunction with a run-time other than ZFP.
36354 2003-10-29  Vincent Celier  <celier@gnat.com>
36356         * make.adb:
36357         (Gnatmake): When there are no Ada mains in attribute Main, disable the
36358          bind and link steps only is switch -z is not used.
36360 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
36362         * Makefile.generic: Remove duplicated setting of CC.
36364         * Makefile.prolog: Set CC to gcc by default, to override make's
36365         default (cc).
36367         * einfo.h: Regenerated.
36369 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
36371         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
36372         current body, after compiling subunit.
36374         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
36375         when in deleted code, because gigi needs properly ordered freeze
36376         actions to annotate types.
36378         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
36379         prevent the premature freezing of record type that contains
36380         subcomponents with a private type that does not yet have a completion.
36382 2003-10-29  Javier Miranda  <miranda@gnat.com>
36384         * sem_ch12.adb:
36385         (Analyze_Package_Instantiation): Check that instances can not be used in
36386         limited with_clauses.
36388         * sem_ch8.adb:
36389         (Analyze_Package_Renaming): Check that limited withed packages cannot
36390         be renamed. Improve text on error messages related to limited
36391         with_clauses.
36393         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
36395         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
36396         Update copyright notice.
36398         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
36399         (Install_Limited_Context_Clauses): New subprogram that isolates all the
36400         checks required for limited context_clauses and installs the limited
36401         view.
36402         (Install_Limited_Withed_Unit): Complete its documentation.
36403         (Analyze_Context): Check that limited with_clauses are only allowed in
36404         package specs.
36405         (Install_Context): Call Install_Limited_Context_Clauses after the
36406         parents have been installed.
36407         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
36408         package as 'From_With_Type'; this mark indicates that the limited view
36409         is installed. Used to check bad usages of limited with_clauses.
36410         (Build_Limited_Views): Do not add shadow entities to the scope's list
36411         of entities. Do not add real entities to the Non_Limited_Views chain.
36412         Improve error notification.
36413         (Remove_Context_Clauses): Remove context clauses in two phases:
36414         limited views first and regular views later (to maintain the
36415         stack model).
36416         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
36417         its visible entities.
36419 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
36421         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
36422         with any type that Is_Fixed_Point_Type.
36424         * sinfo.ads: Fix documentation for Associated_Node attribute.
36426 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
36428         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
36429         both '-gnatc' and '-gnatt' are specified.
36431         * atree.adb (Initialize): Add initialization for Node_Count (set to
36432         zero).
36434 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36436         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
36437         do not consider as Pure.
36439         Part of implementation of function-at-a-time:
36441         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
36442         (tree_transform): Add new argument to build_component_ref.
36443         (tree_transform, case N_Assignment_Statement): Make and return an
36444         EXPR_STMT.
36445         (tree_transform): If result IS_STMT, set flags and return it.
36446         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36448         * utils2.c (build_simple_component_ref, build_component_ref): Add new
36449         arg, NO_FOLD_P.
36450         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
36451         (build_allocator): Likewise.
36453         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
36454         Add new arg to build_component_ref.
36455         (maybe_unconstrained_array, unchecked_convert): Likewise.
36457         * ada-tree.def (EXPR_STMT): New code.
36459         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
36461         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
36462         build_component_ref calls.
36464         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
36466         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36467         (build_component_ref): Add new argument, NO_FOLD_P.
36469 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
36471         * Makefile.generic: Add missing substitution on object_deps handling.
36473         PR ada/5909
36474         * Make-lang.in (check-ada): Enable ACATS test suite.
36476 2003-10-27  Robert Dewar  <dewar@gnat.com>
36478         * exp_ch3.adb:
36479         (Freeze_Array_Type): We do not need an initialization routine for types
36480         derived from String or Wide_String. They should be treated the same
36481         as String and Wide_String themselves. This caused problems with the
36482         use of Initialize_Scalars.
36484         * exp_ch5.adb:
36485         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
36486         composites. This allows use of component clauses that are not byte
36487         aligned.
36489         * sem_prag.adb:
36490         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
36491         is an attempt to pack an array of atomic objects.
36493         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
36495 2003-10-27  Pascal Obry  <obry@gnat.com>
36497         * g-dirope.adb:
36498         (Basename): Check for drive letters in a pathname only on DOS based OS.
36500 2003-10-27  Vincent Celier  <celier@gnat.com>
36502         * make.adb:
36503         (Gnatmake): When unable to change dir to the object dir, display the
36504         content of the parent dir of the obj dir, to try to understand why this
36505         happens.
36507 2003-10-27  GNAT Script  <nobody@gnat.com>
36509         * Make-lang.in: Makefile automatically updated
36511 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
36513         * sem_ch12.adb:
36514         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
36515         should not be done in Save/Restore_Scope_Stack, because it is performed
36516         locally.
36518         * sem_ch8.adb:
36519         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36520         whether use clauses should be removed/restored.
36522         * sem_ch8.ads:
36523         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36524         whether use clauses should be removed/restored.
36526 2003-10-26  Andreas Jaeger  <aj@suse.de>
36528         * Makefile.in: Remove duplicated lines.
36530 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
36532         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
36533         minimize the differences with ACT tree.
36535         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
36536         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
36537         Gnatvsn.Gnat_Static_Version_String to reduce differences between
36538         ACT and FSF trees.
36540 2003-10-24  Pascal Obry  <obry@gnat.com>
36542         PR ada/12014
36543         * adadecode.c (ostrcpy): New function.
36544         (__gnat_decode): Use ostrcpy of strcpy.
36545         (has_prefix): Set first parameter a const.
36546         (has_suffix): Set first parameter a const.
36547         Update copyright notice. Fix source name in header.
36548         Removes a trailing space.
36550 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
36552         * exp_disp.adb:
36553         Remove the test against being in No_Run_Time_Mode before generating a
36554         call to Register_Tag. It is redundant with the test against the
36555         availability of the function Register_Tag.
36557 2003-10-24  Vincent Celier  <celier@gnat.com>
36559         * g-catiio.adb: (Month_Name): Correct spelling of February
36561         * make.adb: (Mains): New package
36562         (Initialize): Call Mains.Delete
36563         (Gnatmake): Check that each main on the command line is a source of a
36564         project file and, if there are several mains, each of them is a source
36565         of the same project file.
36566         (Gnatmake): When a foreign language is specified in attribute Languages,
36567         no main is specified on the command line and attribute Mains is not
36568         empty, only build the Ada main. If there is no Ada main, just compile
36569         the Ada sources and their closure.
36570         (Gnatmake): If a main is specified on the command line with directory
36571         information, check that the source exists and, if it does, that the path
36572         is the actual path of a source of a project.
36574         * prj-env.adb:
36575         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
36576         Full_Path is True, return the full path instead of the simple file name.
36577         (Project_Of): New function
36579         * prj-env.ads:
36580         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
36581         defaulted to False.
36582         (Project_Of): New function
36584 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
36586         * Makefile.generic:
36587         Ensure objects of main project are always checked and rebuilt if needed.
36588         Set CC to gcc by default.
36589         Prepare new handling of link by creating a global archive (not activated
36590         yet).
36592         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36593         stringt.h: Update copyright notice. Remove trailing blanks.
36594         Fix source name in header.
36596 2003-10-24  Robert Dewar  <dewar@gnat.com>
36598         * sem_ch12.adb: Minor reformatting
36600         * sem_ch3.adb:
36601         Minor reformatting (including new function return style throughout)
36603         * sem_ch3.ads:
36604         Minor reformatting (including new function return style throughout)
36606 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
36608         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36609         stringt.h: Update copyright notice. Remove trailing blanks.
36610         Fix source name in header.
36612 2003-10-24  GNAT Script  <nobody@gnat.com>
36614         * Make-lang.in: Makefile automatically updated
36616 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
36618         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
36619         stringt.h: Convert to ISO C90 declarations and definitions.
36621 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
36623         PR ada/11978
36624         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
36625         External_Tag attribute definition clauses.
36627 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
36629         PR ada/7613
36630         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
36631         child unit, generate a fully qualified name to avoid spurious errors
36632         when the context contains renamings of different child units with
36633         the same simple name.
36635         * exp_dbug.ads: Add documentation on name qualification for renamings
36636         of child units.
36638 2003-10-23  Robert Dewar  <dewar@gnat.com>
36640         * g-regpat.ads, g-regpat.adb: Minor reformatting
36642 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
36644         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
36646 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36648         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
36649         Machine call.
36651         * urealp.h: (Machine): Update to proper definition.
36653 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
36655         * init.c, adaint.c: Minor reformatting.
36657 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
36659         * adaint.c (w32_epoch_offset): Define static const at file level.
36660         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
36661         rather than t_create, t_access in call to GetFileTime. Use union
36662         to convert between FILETIME and  unsigned long long.
36663         (__gnat_file_time_name): Test for invalid file handle.
36664         (__gnat_set_filetime_name): Support win32 targets using
36665         w32api SetFileTime.
36667 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
36669         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
36671         * ctrl_c.c (__gnat_int_handler): Remove declaration.
36673         * decl.c (creat_concat_name):  Const-ify prefix.
36675         * adaint.c: Include ctype.h if __MINGW32__.
36676         (__gnat_readlink): Mark arguments as possibly unused.
36677         (__gnat_symlink): Likewise.
36678         (__gnat_is_symbolic_link): Likewise.
36679         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
36680         declaration
36681         (__gnat_file_time_name): Don't declare struct stat statbuf when
36682         not needed.
36683         (__gnat_is_absolute_path): Add parenthesis around condition of
36684         'if' statement to avoid warning.
36685         (__gnat_plist_init): Specify void as parameter.
36686         (plist_enter): Likewise.
36687         (plist_leave): Likewise.
36688         (remove_handle): Make static. Initialize prev.
36690 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
36692         PR ada/10110
36693         * Makefile.in: Disable build of gnatpsta.
36694         * cstreams.c (__gnat_full_name): Minor improvements and clean up
36695         of previous change.
36697 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36699         * tracebak.c (MAX): Avoid redefinition warning.
36701         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
36702         Change msg to const char *.
36703         (__gnat_install_handler): Remove ss, unused.
36704         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
36705         to const char *.
36706         * cstreams.c (__gnat_full_name): Declare p only when used.
36707         (__gnat_full_name) [sgi] Return buffer.
36709 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
36711         * mingw32.h: New file.
36712         * gnat_wrapper.adb: New file.
36714 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
36716         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
36717         string match a pre compiled regular expression (the corresponding
36718         version of the function working on a raw regular expression)
36719         Fix typos in various comments
36720         Update copyright notice in spec
36722 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
36724         * exp_ch3.adb:
36725         (Component_Needs_Simple_Initialization): Return False when the type is a
36726         packed bit array. Revise spec comments to document this case.
36728         * exp_prag.adb:
36729         (Expand_Pragma_Import): Set any expression on the imported object to
36730         empty to avoid initializing imported objects (in particular this
36731         covers the case of zero-initialization of bit arrays).
36732         Update copyright notice.
36734 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
36736         * sem_ch12.adb:
36737         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
36738         a subunit is missing.
36739         (Instantiate_Subprogram_Body): If body of function is missing, set type
36740         of return expression explicitly in dummy body, to prevent cascaded
36741         errors when a subunit is missing.
36742         Fixes PR 5677.
36744         * sem_ch3.adb:
36745         (Access_Subprogram_Declaration): Verify that return type is valid.
36746         Fixes PR 8693.
36748         * sem_elab.adb:
36749         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
36750         generic.
36751         Fixes PR 12318.
36753         * sem_util.adb:
36754         (Corresponding_Discriminant): If the scope of the discriminant is a
36755         private type without discriminant, use its full view.
36756         Fixes PR 8247.
36758 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
36760         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
36761         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
36762         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
36763         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
36764         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
36765         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
36766         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
36767         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
36768         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
36769         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
36770         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
36771         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
36772         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
36773         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
36774         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
36775         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
36776         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
36777         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
36778         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
36779         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
36780         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
36781         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
36782         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
36783         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
36784         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
36785         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
36786         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
36787         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
36788         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
36789         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
36790         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
36791         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
36792         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
36793         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
36794         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
36795         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
36796         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
36797         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
36798         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
36799         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
36800         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
36801         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
36802         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
36803         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
36804         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
36805         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
36806         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
36807         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
36808         vms_conv.ads, vms_conv.adb, vms_data.ads,
36809         vxaddr2line.adb: Files added. Merge with ACT tree.
36811         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
36812         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
36813         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
36814         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
36815         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
36816         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
36817         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
36818         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
36819         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
36820         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
36822         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
36823         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
36824         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
36825         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
36826         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
36827         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
36828         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
36829         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
36830         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
36831         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
36832         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
36833         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
36834         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
36835         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
36836         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
36837         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
36838         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
36839         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
36840         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
36841         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
36842         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
36843         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
36844         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
36845         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
36846         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
36847         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
36848         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
36849         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
36850         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
36851         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
36852         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
36853         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
36854         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
36855         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
36856         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
36857         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
36858         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
36859         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
36860         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
36861         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
36862         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
36863         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
36864         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
36865         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
36866         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
36867         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
36868         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
36869         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
36870         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
36871         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
36872         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
36873         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
36874         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
36875         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
36876         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
36877         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
36878         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
36879         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
36880         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
36881         checks.adb, checks.ads, cio.c, comperr.adb,
36882         comperr.ads, csets.adb, cstand.adb, cstreams.c,
36883         debug_a.adb, debug_a.ads, debug.adb, decl.c,
36884         einfo.adb, einfo.ads, errout.adb, errout.ads,
36885         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
36886         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
36887         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
36888         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
36889         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
36890         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
36891         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
36892         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
36893         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
36894         fe.h, fmap.adb, fmap.ads, fname.adb,
36895         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
36896         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
36897         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
36898         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
36899         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
36900         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
36901         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
36902         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
36903         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
36904         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
36905         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
36906         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
36907         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
36908         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
36909         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
36910         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
36911         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
36912         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
36913         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
36914         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
36915         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
36916         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
36917         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
36918         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
36919         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
36920         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
36921         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
36922         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
36923         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
36924         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
36925         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
36926         layout.adb, lib.adb, lib.ads, lib-list.adb,
36927         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
36928         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
36929         link.c, live.adb, make.adb, make.ads,
36930         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
36931         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
36932         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
36933         misc.c, mkdir.c, mlib.adb, mlib.ads,
36934         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
36935         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
36936         namet.adb, namet.ads, namet.h, nlists.ads,
36937         nlists.h, nmake.adt, opt.adb, opt.ads,
36938         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
36939         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
36940         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
36941         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
36942         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
36943         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
36944         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
36945         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
36946         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
36947         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
36948         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
36949         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
36950         prj-util.adb, prj-util.ads, raise.c, raise.h,
36951         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
36952         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
36953         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
36954         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
36955         scans.ads, scn.adb, scn.ads, s-crc32.adb,
36956         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
36957         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
36958         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
36959         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
36960         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
36961         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
36962         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
36963         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
36964         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
36965         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
36966         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
36967         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
36968         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
36969         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
36970         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
36971         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
36972         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
36973         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
36974         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
36975         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
36976         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
36977         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
36978         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
36979         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
36980         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
36981         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
36982         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
36983         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
36984         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
36985         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
36986         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
36987         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
36988         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
36989         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
36990         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
36991         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
36992         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
36993         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
36994         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
36995         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
36996         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
36997         stringt.adb, stringt.ads, stringt.h, style.ads,
36998         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
36999         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
37000         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
37001         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
37002         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
37003         table.adb, table.ads, targparm.adb, targparm.ads,
37004         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
37005         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
37006         ttypes.ads, types.ads, types.h, uintp.adb,
37007         uintp.ads, uintp.h, uname.adb, urealp.adb,
37008         urealp.ads, urealp.h, usage.adb, utils2.c,
37009         utils.c, validsw.adb, validsw.ads, widechar.adb,
37010         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
37011         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
37012         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
37013         gnatvsn.ads: Merge with ACT tree.
37015         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
37017 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
37019         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
37020         (gnat_ug_vmx.info): Likewise.
37021         (gnat_ug_vxw.info): Likewise.
37022         (gnat_ug_wnt.info): Likewise.
37023         (gnat_rm.info): Likewise.
37024         (gnat-style.info): Likewise.
37026         * Make-lang.in (ada.install-info): Remove target.
37027         (info): New target.
37028         (install-info): Likewise.
37029         (gnat_ug_unx.info): Simplify rule.
37030         (gnat_ug_vmx.info): Likewise.
37031         (gnat_ug_vxw.info): Likewise.
37032         (gnat_ug_wnt.info): Likewise.
37033         (gnat_rm.info): Likewise.
37034         (gnat-style.info): Likewise.
37036 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
37038         * Make-lang.in: Replace uses of $(target_alias) with
37039         $(target_noncanonical).
37040         * ada/Makefile.in: Remove unused mention of $(target_alias).
37042 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
37044         * Make-lang.in (ada.info): Replace with ...
37045         (info): ... this.
37046         (ada.dvi): Replace with ...
37047         (dvi): ... this.
37049 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
37051         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
37052         initialize dconstp5 and dconstmp5.
37054 2003-09-28  Richard Henderson  <rth@redhat.com>
37056         * trans.c (tree_transform): Update call to expand_asm_operands.
37058 2003-09-21  Richard Henderson  <rth@redhat.com>
37060         * trans.c, utils.c: Revert.
37062 2003-09-21  Richard Henderson  <rth@redhat.com>
37064         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
37065         change to const.
37067 2003-09-04  Michael Matz  <matz@suse.de>
37069         * misc.c: Include "target.h".
37070         * Make-lang.in (misc.o): Add dependency on target.h.
37072 2003-09-03  DJ Delorie  <dj@redhat.com>
37074         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
37075         hook.
37077 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
37079         * Makefile.in: Update substitutions to match changes to
37080         configure.  Use include directives instead of @-insertions
37081         to read in host and target fragments.  Add a rule to
37082         regenerate ada/Makefile.
37084 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
37086         * lang-options.h: Remove.
37087         * lang.opt: Add help text.
37089 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
37091         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
37092         calls.
37094 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
37096         * misc.c (gnat_handle_option): Don't handle filenames.
37098 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
37100         * Make-lang.in: Replace PWD with PWD_COMMAND.
37101         * Makefile.adalib: Likewise.
37102         * Makefile.in: Likewise.
37104 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
37106         * misc.c (gnat_argv): Revert last change.
37107         (gnat_handle_option, gnat_init_options): Copy arguments.
37109 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
37111         * misc.c (gnat_argv): Make const.
37113 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
37115         * misc.c (save_argc, save_argv): Keep non-static!
37117 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
37119         * misc.c (save_argc, save_argv): Make static.
37120         (gnat_init_options): New prototype.
37121         (gnat_init_options): Update.
37123 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
37125         * gnat_ug.texi: Remove unlikely characters from @vars.
37126         * gnat_ug_vms.texi: Regenerate.
37128 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
37130         * misc.c (record_code_position): Adjust emit_note call.
37132 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
37134         * misc.c (gnat_handle_option): Don't check for missing arguments.
37136 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
37138         * utils.c (end_subprog_body): Adjust expand_function_end call.
37140 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
37142         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
37143         Bind_Main_Program.
37145 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
37147         * lang.opt: Declare Ada.
37148         * misc.c (gnat_init_options): Update.
37150 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
37152         * utils.c (begin_subprog_body): Adjust init_function_start call.
37154 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
37156         * Make-lang.in: Update to use options.c and options.h.
37157         * misc.c: Include options.h not aoptions.h.
37158         (gnat_handle_option): Abort on unrecognized switch.
37159         (gnat_init_options): Request Ada switches.
37161 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
37163         * lang.opt: Add -Wall.
37164         * misc.c (gnat_handle_option): Handle it.
37166 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
37168         * misc.c (gnat_handle_option): Fix warnings.
37170 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
37172         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
37174 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
37176         * Make-lang.in: Update to handle command-line options.
37177         * lang.opt: New file.
37178         * misc.c: Include aoptions.h.
37179         (cl_options_count, cl_options): Remove.
37180         (gnat_handle_option): New.
37181         (gnat_decode_option): Remove.
37182         (LANG_HOOKS_DECODE_OPTION): Remove.
37183         (LANG_HOOKS_HANDLE_OPTION): Override.
37185 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
37187         * init.c, misc.c, trans.c, utils.c: Remove dead code.
37189 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
37191         * Makefile.in: Replace "host_canonical" with "host" for autoconf
37192         substitution.
37194 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
37196         * Make-lang.in: Update.
37197         * misc.c: Include opts.h. Define cl_options_count and cl_options.
37199 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
37201         * misc.c (gnat_init_options): Update.
37203 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
37205         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
37206         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
37207         __attribute__ ((__unused__)).
37209 2003-06-05  Jan Hubicka  <jh@suse.cz>
37211         * Make-lang.in:  Add support for stageprofile and stagefeedback
37213 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
37215         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
37216         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
37218 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
37220         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
37221         Remove non-VMS directive.
37222         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
37223         alternatives.
37224         (Examples of gnatls Usage): Remove VMS alternative.
37226 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
37228         PR ada/9953
37229         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
37230         and turn ZCX_By_Default back to False since the underlying support
37231         is not quite there yet.
37233 2003-06-01  Andreas Jaeger  <aj@suse.de>
37235         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
37236         and ROUND_TYPE_SIZE_UNIT.
37238 2003-05-22   Geert Bosch  <bosch@gnat.com>
37240         * gnat_rm.texi : Remove reference to Ada Core Technologies.
37242 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
37244         * trans.c (tree_transform): Use location_t and input_location
37245         directly.
37246         (build_unit_elab): Likewise.
37247         * utils.c (create_label_decl): Likewise.
37249 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
37251         * trans.c (tree_transform, build_unit_elab,
37252         set_lineno): Rename lineno to input_line.
37253         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
37254         end_subprog_body): Likewise.
37255         * utils2.c (build_call_raise): Likewise.
37257 2003-05-01  Laurent Guerby  <guerby@acm.org>
37259         PR ada/10546
37260         * 5iosinte.ads: Increase pthread_cond_t size to match recent
37261         LinuxThread and NPTL version, merge from ACT.
37263 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
37265         * utils.c (convert): No need to clear TREE_CST_RTL.
37267 2003-04-23   Geert Bosch  <bosch@gnat.com>
37269         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37270         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
37271         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
37272         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
37273         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
37274         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
37275         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
37276         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
37277         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
37278         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
37279         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
37280         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
37281         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
37282         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
37283         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
37284         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
37285         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
37286         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
37287         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
37288         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
37289         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
37290         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
37291         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
37292         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
37293         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
37294         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
37295         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
37296         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
37297         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
37298         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
37299         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
37300         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
37301         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
37302         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
37303         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
37304         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
37305         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
37306         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
37307         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
37308         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
37309         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
37310         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
37311         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
37312         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
37313         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
37314         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
37315         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
37316         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
37317         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
37318         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
37319         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
37320         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
37321         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
37322         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
37323         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
37324         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
37325         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
37326         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
37327         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
37328         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
37329         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
37330         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
37331         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
37332         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
37333         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
37334         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
37335         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
37336         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
37337         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
37338         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
37339         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
37340         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
37341         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
37342         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
37343         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
37344         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
37345         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
37346         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
37347         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
37348         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
37349         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
37350         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
37351         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
37352         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
37353         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
37354         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
37355         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
37356         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
37357         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
37358         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
37359         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
37360         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
37361         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
37362         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
37363         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
37364         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
37365         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
37366         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
37367         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
37368         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
37369         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
37370         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
37371         ali.adb, ali.ads, alloc.ads, argv.c,
37372         atree.adb, atree.ads, atree.h, aux-io.c,
37373         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
37374         binde.adb, binde.ads, binderr.adb, binderr.ads,
37375         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
37376         butil.adb, butil.ads, cal.c, calendar.ads,
37377         casing.adb, casing.ads, ceinfo.adb, checks.adb,
37378         checks.ads, cio.c, comperr.adb, comperr.ads,
37379         config-lang.in, csets.adb, csets.ads, csinfo.adb,
37380         cstand.adb, cstand.ads, cuintp.c, debug.adb,
37381         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
37382         dec-io.ads, dec.ads, deftarg.c, directio.ads,
37383         einfo.adb, einfo.ads, elists.adb, elists.ads,
37384         elists.h, errno.c, errout.adb, errout.ads,
37385         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
37386         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
37387         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
37388         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
37389         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
37390         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
37391         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
37392         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
37393         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
37394         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
37395         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
37396         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
37397         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
37398         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
37399         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
37400         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
37401         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
37402         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
37403         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
37404         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
37405         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
37406         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
37407         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
37408         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
37409         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
37410         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
37411         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
37412         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
37413         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
37414         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
37415         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
37416         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
37417         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
37418         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
37419         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
37420         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
37421         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
37422         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
37423         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
37424         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
37425         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
37426         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
37427         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
37428         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
37429         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
37430         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
37431         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
37432         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
37433         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
37434         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
37435         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
37436         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
37437         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
37438         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
37439         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
37440         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
37441         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
37442         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
37443         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
37444         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
37445         lib.adb, lib.ads, live.adb, live.ads,
37446         machcode.ads, make.adb, make.ads, makeusg.adb,
37447         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
37448         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
37449         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
37450         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
37451         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
37452         mlib.ads, namet.adb, namet.ads, nlists.adb,
37453         nlists.ads, opt.adb, opt.ads, osint-b.adb,
37454         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
37455         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
37456         osint.ads, output.adb, output.ads, par-ch10.adb,
37457         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
37458         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
37459         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
37460         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
37461         par-tchk.adb, par-util.adb, par.adb, par.ads,
37462         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
37463         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
37464         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
37465         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
37466         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
37467         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
37468         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
37469         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
37470         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
37471         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
37472         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
37473         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
37474         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
37475         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
37476         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
37477         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
37478         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
37479         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
37480         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
37481         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
37482         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
37483         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
37484         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
37485         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
37486         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
37487         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
37488         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
37489         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
37490         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
37491         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
37492         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
37493         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
37494         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
37495         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
37496         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
37497         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
37498         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
37499         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
37500         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
37501         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
37502         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
37503         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
37504         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
37505         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
37506         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
37507         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
37508         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
37509         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
37510         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
37511         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
37512         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
37513         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
37514         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
37515         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
37516         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
37517         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
37518         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
37519         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
37520         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
37521         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
37522         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
37523         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
37524         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
37525         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
37526         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
37527         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
37528         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
37529         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
37530         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
37531         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
37532         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
37533         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
37534         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
37535         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
37536         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
37537         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
37538         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
37539         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
37540         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
37541         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
37542         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
37543         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
37544         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
37545         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
37546         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
37547         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
37548         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
37549         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
37550         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
37551         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
37552         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
37553         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
37554         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
37555         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
37556         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
37557         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
37558         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
37559         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
37560         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
37561         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
37562         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
37563         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
37564         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
37565         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
37566         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
37567         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
37568         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
37569         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
37570         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
37571         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
37572         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
37573         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
37574         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
37575         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
37576         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
37577         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
37578         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
37579         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
37580         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
37581         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
37582         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
37583         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
37584         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
37585         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
37586         snames.ads, sprint.adb, sprint.ads, stand.adb,
37587         stand.ads, stringt.adb, stringt.ads, style.adb,
37588         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
37589         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
37590         switch-m.ads, switch.adb, switch.ads, system.ads,
37591         table.adb, table.ads, targparm.adb, targparm.ads,
37592         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
37593         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
37594         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
37595         ttypef.ads, ttypes.ads, types.adb, types.ads,
37596         uintp.adb, uintp.ads, uname.adb, uname.ads,
37597         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
37598         usage.adb, usage.ads, validsw.adb, validsw.ads,
37599         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
37600         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
37601         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
37602         formatting and other trivial changes from ACT.
37604 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
37606         * gigi.h, utils2.c (build_constructor):
37607         Rename gnat_build_constructor. Use build_constructor.
37608         * decl.c (gnat_to_gnu_entity)
37609         * trans.c (tree_transform, pos_to_constructor, extract_values)
37610         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
37611         (unchecked_convert)
37612         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
37613         (fill_vms_descriptor):
37614         Update to match.
37616 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
37618         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
37619         * misc.c (gnat_tree_size): New function.
37620         (LANG_HOOKS_TREE_SIZE): Override.
37622 2003-04-03  Jason Merrill  <jason@redhat.com>
37624         * misc.c (gnat_adjust_rli): #if 0.
37626 2003-03-31   Geert Bosch  <bosch@gnat.com>
37628         PR ada/10020
37629         * link.c : Fix misspelled "const" keyword
37631 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
37633         PR c++/7086
37634         * utils2.c: Adjust calls to put_var_into_stack.
37636 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
37638         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
37640 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
37642         * misc.c (gnat_init): Update for new prototype.
37644 2003-03-05  Olivier Hainque  <hainque@gnat.com>
37646         ada/9961
37647         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
37648         warning, and fix return type for the IN_RTS && !SJLJ case.
37650 2003-03-04  Tom Tromey  <tromey@redhat.com>
37652         * Make-lang.in (ada.tags): New target.
37654 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
37656         ada/9911
37657         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
37658         wrapper, which name remains constant whatever underlying GCC
37659         scheme.
37661         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
37662         the stable interface needed for a-except.
37664 2003-03-02  Andreas Jaeger  <aj@suse.de>
37666         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37667         gnat_ug_wnt.texi: Regenerate.
37669 2003-03-02  Laurent Guerby  <guerby@acm.org>
37671         * Makefile.in (install-gnatlib): Match previous change there
37672         so it works.
37674 2003-02-28  Andreas Schwab  <schwab@suse.de>
37676         * Make-lang.in (install-gnatlib): Change to ada directory before
37677         running make instead of using ada/Makefile directly.
37679 2003-02-18  Ben Elliston  <bje@redhat.com>
37681         Part of PR ada/9406
37682         * gnat_ug.texi (Binder output file): Grammar fix.
37684 2003-02-18  Ben Elliston  <bje@redhat.com>
37686         PR other/7350
37687         * 5qtaprop.adb (Sleep): Fix typo in comment.
37689 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
37691         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
37692         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37693         gnat_ug_wnt.texi: Regenerate.
37695 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
37697         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
37698         be created if necessary.
37699         (ada.install-common): Let $(DESTDIR)$(bindir) be created
37700         if necessary.  Remove erroneous and redundant gnatchop
37701         installation commands.  Test for gnatdll before attempting
37702         to install it.
37703         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
37704         and gnatdll from all plausible locations.
37706 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
37708         * utils2.c (build_unary_op): Don't check flag_volatile.
37709         * gnat_ug.texi: Remove -fvolatile from example.
37710         * gnat_ug_vxw.texi: Likewise.
37712 2003-01-29  Laurent Guerby  <guerby@acm.org>
37714         PR ada/8344
37715         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
37716         * Makefile.in: match previous change.
37717         * Make-lang.in: match previous change.
37719 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
37721         * 5rosinte.ads: Add SIGXCPU.
37722         * 5rtpopsp.adb: New file.
37723         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
37724         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
37725         specific file 5rtpopsp.adb.
37726         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
37727         is likely needed for all newlib targets.
37728         * init.c: Add RTEMS specific version of __gnat_initialize().
37730 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37732         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
37734 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37736         * init.c (__gnat_error_handler): Make msg const.
37738         * gmem.c (convert_addresses): Move declaration ...
37739         * adaint.h: ... here.
37740         * adaint.c (convert_addresses): Adapt addrs type to match
37741         prototype.
37743         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
37745 2003-01-24  Andreas Schwab  <schwab@suse.de>
37747         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
37748         size_t to avoid warning.
37750 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
37752         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
37754 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
37756         * gnat_rm.texi: Remove RCS version number.
37758         * ada-tree.h (union lang_tree_node): Add chain_next option.
37760 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
37762         * Make-lang.in (ada.install-info, ada.install-common,
37763         ada.uninstall): Prepend $(DESTDIR) to the destination
37764         directory in all (un)installation commands.
37765         * Makefile.in (install-gnatlib, install-rts): Ditto.
37767 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
37769         * gnat_rm.texi, gnat_ug.texi: Use @copying.
37770         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37771         gnat_ug_wnt.texi: Regenerate.
37773 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
37775         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
37776         only.
37777         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
37778         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
37779         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
37780         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
37781         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
37782         $(srcdir)/doc/include/gcc-common.texi.
37784 2002-12-15   Geert Bosch  <bosch@gnat.com>
37786         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
37788 2002-12-14   Geert Bosch  <bosch@gnat.com>
37790         PR ada/5690
37791         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
37792         case of a body created for a Renaming_As_Body, on which
37793         conformance checks are not performed.
37795 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
37797         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
37798         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
37799         not already included.
37800         * Make-lang.in: Update dependencies.
37802 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
37803         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
37804         solution to buffer overflow bug on GNU/Linux.
37806 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
37808         PR ada/5856
37809         PR ada/6919
37810         * bindgen.adb: Remove all references to Public_Version.
37811         * comperr.adb: Remove all references to Public_Version and
37812         GNATPRO_Version; correct bug reporting instructions.
37813         * comperr.ads: Change to match bug box.
37814         * gnatvsn.ads: Remove all references to Public version and
37815         GNATPRO version.
37817 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
37819         PR ada/6919
37820         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
37821         GNU/Linux.
37823         PR ada/6558
37824         * config-lang.in: Remove diff_excludes.
37826 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
37828         PR ada/8358
37829         * trans.c (gnu_pending_elaboration_lists): New GC root.
37830         (build_unit_elab): Use..
37832 2002-10-30   Geert Bosch  <bosch@gnat.com>
37834         PR ada/6558
37835         * misc.c : Include optabs.h
37837         * Make-lang.in (misc.o): Add dependency on optabs.h
37839 2002-10-29   Geert Bosch  <bosch@gnat.com>
37841         PR ada/6558
37842         * Make-lang.in (gnatbind): Depend on CONFIG_H
37844 2002-10-29  Geert bosch  <bosch@gnat.com>
37846         PR ada/6558
37847         * misc.c: Unrevert misc.c (1.13)
37849 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
37851         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
37852         maintainership comments.
37854 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
37856         PR ada/5904
37857         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
37858         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
37859         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
37860         7staprop.adb: Correct statements in comments about
37861         maintainership of GNAT.
37863         PR ada/5904
37864         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
37865         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
37866         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
37867         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
37868         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
37869         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
37870         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
37871         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
37872         comments about maintainership of GNAT.
37874         PR ada/6919 (forward port of patch for PR ada/5904)
37875         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
37876         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
37877         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
37878         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
37879         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
37880         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
37881         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
37882         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
37883         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
37884         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
37885         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
37886         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
37887         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
37888         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
37889         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
37890         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
37891         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
37892         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
37893         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
37894         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
37895         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
37896         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
37897         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
37898         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
37899         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
37900         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
37901         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
37902         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
37903         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
37904         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
37905         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
37906         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
37907         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
37908         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
37909         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
37910         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
37911         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
37912         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
37913         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
37914         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
37915         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
37916         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
37917         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
37918         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
37919         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
37920         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
37921         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
37922         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
37923         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
37924         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
37925         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
37926         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
37927         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
37928         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
37929         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
37930         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
37931         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
37932         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
37933         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
37934         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
37935         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
37936         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
37937         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
37938         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
37939         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
37940         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
37941         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
37942         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
37943         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
37944         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
37945         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
37946         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
37947         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
37948         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
37949         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
37950         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
37951         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
37952         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
37953         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
37954         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
37955         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
37956         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
37957         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
37958         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
37959         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
37960         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
37961         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
37962         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
37963         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
37964         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
37965         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
37966         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
37967         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
37968         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
37969         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
37970         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
37971         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
37972         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
37973         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
37974         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
37975         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
37976         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
37977         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
37978         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
37979         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
37980         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
37981         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
37982         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
37983         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
37984         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
37985         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
37986         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
37987         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
37988         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
37989         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
37990         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
37991         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
37992         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
37993         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
37994         par-endh.adb par-labl.adb par-load.adb par-prag.adb
37995         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
37996         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
37997         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
37998         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
37999         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
38000         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
38001         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
38002         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
38003         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
38004         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
38005         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
38006         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
38007         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
38008         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
38009         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
38010         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
38011         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
38012         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
38013         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
38014         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
38015         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
38016         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
38017         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
38018         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
38019         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
38020         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
38021         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
38022         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
38023         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
38024         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
38025         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
38026         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
38027         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
38028         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
38029         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
38030         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
38031         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
38032         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
38033         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
38034         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
38035         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
38036         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
38037         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
38038         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
38039         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
38040         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
38041         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
38042         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
38043         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
38044         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
38045         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
38046         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
38047         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
38048         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
38049         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
38050         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
38051         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
38052         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
38053         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
38054         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
38055         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
38056         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
38057         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
38058         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
38059         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
38060         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
38061         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
38062         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
38063         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
38064         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
38065         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
38066         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
38067         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
38068         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
38069         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
38070         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
38071         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
38072         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
38073         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
38074         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
38075         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
38076         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
38077         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
38078         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
38079         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
38080         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
38081         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
38082         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
38083         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
38084         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
38085         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
38086         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
38087         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
38088         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
38089         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
38090         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
38091         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
38092         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
38093         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
38094         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
38095         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
38096         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
38097         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
38098         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
38099         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
38100         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
38101         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
38102         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
38103         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
38104         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
38105         stringt.ads stringt.h style.adb style.ads stylesw.adb
38106         stylesw.ads switch.adb switch.ads sysdep.c system.ads
38107         table.adb table.ads targparm.adb targparm.ads targtyps.c
38108         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
38109         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
38110         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
38111         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
38112         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
38113         usage.ads utils.c utils2.c validsw.adb validsw.ads
38114         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
38115         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
38116         xtreeprs.adb: Correct statements in comments about maintainership
38117         of GNAT.
38119 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
38121         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
38122         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
38123         * gnatvsn.ads: Gnat_Version_String is now a function.
38124         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
38125         copy the C version_string into a String and return it.
38126         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
38127         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
38128         Remove pragma Ident (Gnat_Version_String).  If this was the
38129         sole use of package Gnatvsn, remove the with statement too.
38130         * gnat1drv.adb: Tweak -gnatv output.
38132 2002-09-17  Richard Henderson  <rth@redhat.com>
38134         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
38135         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
38136         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
38137         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
38138         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
38139         and real_2expN instead of a loop.
38140         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
38141         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
38143 2002-08-25  Andre Leis  <a.leis@gmx.net>
38144             David Billinghurst  <David.Billinghurst@riotinto.com>
38146         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
38148 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38150         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
38151         Remove $(CONFIG_H) dependency.
38153 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
38155         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
38157 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38159         * adadecode.c (ada_demangle): Use xstrdup in lieu of
38160         xmalloc/strcpy.
38161         * misc.c (gnat_decode_option): Likewise.
38163 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
38165         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
38166         function approach did not work well because of a side effect (the
38167         function call could reallocate the table which was being indexed
38168         using its result). Fixes ada/4851. [RESURRECTED]
38170 2002-07-01  Roger Sayle  <roger@eyesopen.com>
38172         * ada/utils.c (builtin_function): Accept an additional parameter.
38174 2002-06-28  Andreas Jaeger  <aj@suse.de>
38176         PR ada/7144
38177         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
38178         <adi@thur.de>.
38180 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38182         * Makefile.in (SHELL): Set to @SHELL@.
38184 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38186         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
38187         array size calculation.
38189 2002-06-04  Andreas Jaeger  <aj@suse.de>
38191         * Make-lang.in (gnatbind): Readd rule that has been lost in last
38192         patch.
38194 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
38196         Merge from pch-branch:
38198         * config-lang.in (gtfiles): Add ada-tree.h.
38199         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
38200         (SET_TYPE_MODULUS): New.
38201         (SET_TYPE_INDEX): New.
38202         (SET_TYPE_DIGITS_VALUE): New.
38203         (SET_TYPE_RM_SIZE): New.
38204         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
38205         (SET_TYPE_ADA_SIZE): New.
38206         (SET_TYPE_ACTUAL_BOUNDS): New.
38207         (SET_DECL_CONST_CORRESPONDING_VAR): New.
38208         (SET_DECL_ORIGINAL_FIELD): New.
38209         (TREE_LOOP_ID): Correct typo.
38210         * decl.c: Use new macros.
38211         * utils.c: Include debug.h, use new macros.
38212         * utils2.c: Use new macros.
38214         * ada-tree.h: Update all macros for new tree description.
38215         (struct tree_loop_id): New.
38216         (union lang_tree_node): New.
38217         (struct lang_decl): New.
38218         (struct lang_type): New.
38219         * misc.c (gnat_mark_tree): Delete.
38220         (LANG_HOOKS_MARK_TREE): Delete.
38221         * trans.c (tree_transform): No longer any need to cast
38222         for TREE_LOOP_ID.
38224         * utils.c (struct language_function): New dummy structure.
38226         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
38227         (misc.o): Likewise.
38228         (utils.o): Likewise; also gtype-ada.h.
38229         * Make-lang.in (gnat1): Add dependency on s-gtype.
38230         (gnatbind): Add dependency on $(CONFIG_H).
38231         * utils.c: Correct last #include.
38232         (stuct e_stack): Remove unnecessary 'static'.
38233         (mark_e_stack): Remove unused prototype.
38235         * scn-nlit.adb: Remove whitespace after version number to
38236         keep lines under 80 chars.
38237         * snames.adb: Likewise.
38238         * treepr.ads: Likewise.
38240         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
38241         (misc.o): Likewise.
38242         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
38243         * config-lang.in (gtfiles): New.
38244         * decl.c: Use gengtype for roots.
38245         * gigi.h: Use gengtype for roots.
38246         * trans.c: Use gengtype for roots.
38247         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
38249 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
38251         * misc.c (gnat_init): Adjust setting of internal_error_function.
38253 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
38255         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
38256         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38257         gnat_ug_wnt.texi: Regenerate.
38259 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
38261         * 5ntaprop.adb (with System.OS_Primitives): Remove.
38263         * cstreams.c (max_path_len): Move from here ...
38264         * adaint.c (__gnat_max_path_len): ... to here.
38265         * adaint.c (__gnat_max_path_len): Declare.
38266         * g-dirope.adb (Max_Path): Adjust.
38267         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
38268         * i-cstrea.ads (max_path_len): Adjust.
38269         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
38270         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
38272         * Makefile.in, Make-lang.in: Documentation is now built in
38273         Make-lang.in.  Store Info and generated Texinfo files in the
38274         source directory.
38275         * gnat_ug.texi: Remove CVS keywords, correct version number.
38276         Set file name correctly.
38278         * gnat_ug_*.texi: Add.
38279         * .cvsignore: Ignore generated Texinfo files.
38281 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
38283         * ada.h: Add MI guard macro.
38284         (SUBTYPE): Define constants with an anonymous enum, not static
38285         const variables.
38286         (IN): Cast constants to appropriate type before use.
38288 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
38290         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
38291         (experimental)".
38293 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38295         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
38296         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
38297         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
38298         (ALL_ADA_CFLAGS): Likewise.
38299         (ADA_INCLUDES): Likewise.
38300         Adapt for new working dir.
38301         (GNATBIND): Use Makefile.in version.
38302         (.SUFFIXES): Copy from Makefile.in.
38303         (ada-warn): Define.
38304         (.adb.o, .ads.o): Copy from Makefile.in.
38305         Added $(OUTPUT_OPTION).
38306         (GNAT1_C_OBJS): Moved from Makefile.in.
38307         Prefix with ada subdir.
38308         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
38309         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
38310         Adapt for new working dir.
38311         (EXTRA_GNATBIND_OBJS): Likewise.
38312         (ADA_BACKEND): Moved from Makefile.in.
38313         Renamed to avoid conflict with global BACKEND.
38314         Use that one.
38315         (TARGET_ADA_SRCS): Moved from Makefile.in.
38316         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
38317         Use ADA_BACKEND.
38318         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
38319         (ada_extra_files): Moved from Makefile.in.
38320         Prefix with ada subdir.
38321         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
38322         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
38323         (ada/nmake.ads): Likewise.
38324         (update-sources): Moved from Makefile.in.
38325         Prefix with ada subdir.
38326         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
38327         (ADA_TREE_H): Likewise.
38328         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
38329         (ada/memtrack.o): Likewise.
38330         (ada/adadecode.o): Likewise.
38331         Update dependencies.
38332         (ada/adaint.o): New.
38333         (ada/argv.o): Moved from Makefile.in.
38334         Prefix with ada subdir.
38335         Update dependencies.
38336         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
38337         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
38338         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
38339         Prefix with ada subdir.
38340         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
38341         (GNAT DEPENDENCIES): Regenerate.
38342         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
38343         toplevel Makefile.in.
38344         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
38345         (TARGET_ADA_SRCS): Removed.
38346         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
38347         (GNATBIND_OBJS): Likewise.
38348         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
38349         (BACKEND): Removed.
38350         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
38351         (TREE_H): Likewise.
38352         (ada_extra_files): Likewise.
38353         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
38354         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
38355         (update-sources): Likewise.
38356         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
38357         (ADA_TREE_H): Likewise.
38358         (adadecoce.o): Likewise.
38359         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
38360         (GNAT DEPENDENCIES): Likewise.
38362 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38364         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
38365         * Makefile.in: Likewise.
38367 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38369         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
38370         Restore $(CONFIG_H) and prefix.o dependencies.
38371         (ada.stage[1-4]): Depend on stage?-start.
38373         * Makefile.in (b_gnatb.c): Depend on interfac.o.
38375 2002-05-02  Jim Wilson  <wilson@redhat.com>
38377         * utils.c (finish_record_type): Change record_size to record_type.
38379 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
38381         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
38382         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
38383         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
38385 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
38387         * misc.c (gnat_parse_file): Update.
38389 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
38391         * misc.c (gnat_init): Don't set lang_attribute_common.
38393 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
38395         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
38397 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
38399         * gnat_ug.texi: New file.
38401         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
38402         instead of gfdl.texi
38404         * xgnatug.adb, ug_words: New files.
38406         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
38407         gnat_rm and gnat-style manuals.
38409 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
38411         * gigi.h (incomplete_type_error): Remove.
38412         * utils.c (incomplete_type_error): Remove.
38414 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
38416         * trans.c (tree_transform): Add has_scope argument to
38417         expand_start_stmt_expr.
38419 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
38421         * gigi.h (truthvalue_conversion): Rename.
38422         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
38423         * trans.c (tree_transform): Update.
38424         * utils2.c (truthvalue_conversion): Rename, update.
38425         (build_binary_op, build_unary_op): Update.
38427 2002-04-04  Laurent Guerby  <guerby@acm.org>
38429         * make.adb: Implement -margs, remove restriction about file name placement.
38430         * makeusg.adb: Documentation update.
38431         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
38432         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
38434 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
38436         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
38437         (builtin_function): Similarly.
38439 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
38441         * decl.c (gnat_to_gnu_entity): Update.
38442         * gigi.h (mark_addressable): Rename.
38443         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
38444         * trans.c (tree_transform): Update.
38445         * utils.c (create_var_decl): Update.
38446         * util2.c (build_binary_op, build_unary_op,
38447         fill_vms_descriptor): Update.
38448         (mark_addressable): Rename, update.
38450 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
38452         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
38453         Rename.
38454         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
38455         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
38456         * trans.c (tree_transform, convert_with_check): Update.
38457         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
38458         Rename.
38460 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
38462         * gigi.h (finish_incomplete_decl): Rename.
38463         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
38464         * utils.c (gnat_init_decl_processing): Don't set hook.
38465         (finish_incomplete_decl): Rename.
38467 2002-03-29  Andreas Schwab  <schwab@suse.de>
38469         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
38470         directory.
38472 2001-03-28  Robert Dewar  <dewar@gnat.com>
38474         * checks.ads:
38475         (Remove_Checks): New procedure
38477         * checks.adb:
38478         (Remove_Checks): New procedure
38480         * exp_util.adb:
38481         Use new Duplicate_Subexpr functions
38482         (Duplicate_Subexpr_No_Checks): New procedure
38483         (Duplicate_Subexpr_No_Checks_Orig): New procedure
38484         (Duplicate_Subexpr): Restore original form (checks duplicated)
38485         (Duplicate_Subexpr): Call Remove_Checks
38487         * exp_util.ads:
38488         (Duplicate_Subexpr_No_Checks): New procedure
38489         (Duplicate_Subexpr_No_Checks_Orig): New procedure
38490         Add 2002 to copyright notice
38492         * sem_util.adb: Use new Duplicate_Subexpr functions
38494         * sem_eval.adb:
38495         (Eval_Indexed_Component): This is the place to call
38496         Constant_Array_Ref and to replace the value. We simply merge
38497         the code of this function in here, since it is now no longer
38498         used elsewhere. This fixes the problem of the back end not
38499         realizing we were clever enough to see that this was
38500         constant.
38501         (Expr_Val): Remove call to Constant_Array_Ref
38502         (Expr_Rep_Val): Remove call to Constant_Array_Ref
38503         Minor reformatting
38504         (Constant_Array_Ref): Deal with string literals (patch
38505         suggested by Zack Weinberg on the gcc list)
38507 2001-03-28  Ed Schonberg  <schonber@gnat.com>
38509         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
38510         Duplicate_Subexpr_Move_Checks.
38512         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
38513         Duplicate_Subexpr_Move_Checks.
38515         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
38516         value of array exists before retrieving it (it may a private
38517         protected component in a function).
38519 2002-03-28   Geert Bosch  <bosch@gnat.com>
38521         * prj-pp.adb : New file.
38523         * prj-pp.ads : New file.
38525 2002-03-28  Andreas Jaeger  <aj@suse.de>
38527         * Makefile.in (stamp-sdefault): Fix path for Makefile.
38529 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
38531         * misc.c (gnat_expand_expr): Move prototype.
38533 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
38535         * misc.c (insert_default_attributes): Remove.
38537 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
38539         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
38540         (gnat_init): Don't set hook.
38541         (gnat_expand_expr): Fix prototype.
38543 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
38545         * misc.c (ggc_p): Remove.
38547 2002-03-27  Geert Bosch  <bosch@gnat.com>
38549         * prj-makr.ads, prj-makr.adb : New files.
38551 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
38553         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
38554         (lang_mark_tree): Make static, rename.
38556 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
38558         * misc.c (maybe_build_cleanup): Remove.
38560 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
38562         * gigi.h (yyparse): Remove.
38564 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
38566         From Ben Brosgol  <brosgol@gnat.com>
38567         * gnat_rm.texi: Sync with ACT version.
38569 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
38571         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
38572         (gnat_init): Remove old hook.
38574 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
38576         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
38577         (yyparse): Rename gnat_parse_file.
38579 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
38581         Delete all lines containing "$Revision:".
38582         * xeinfo.adb: Don't look for revision numbers.
38583         * xnmake.adb: Likewise.
38584         * xsinfo.adb: Likewise.
38585         * xsnames.adb: Likewise.
38586         * xtreeprs.adb: Likewise.
38588 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38590         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
38591         gnat_tree_code_name): Delete.
38592         (tree_code_type, tree_code_length, tree_code_name): Define.
38593         (gnat_init): Don't try to copy into the various tree_code
38594         arrays.
38596 2002-03-11  Richard Henderson  <rth@redhat.com>
38598         * Makefile.in (.NOTPARALLEL): Add fake tag.
38600 2002-03-07  Geert Bosch  <bosch@gnat.com>
38602         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
38603         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
38604         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
38605         switch-m.adb, switch-m.ads : New files.
38607 2002-03-07  Geert Bosch  <bosch@gnat.com>
38609         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
38610         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
38611         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
38612         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
38613         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
38614         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
38615         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
38616         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
38617         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
38618         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
38619         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
38620         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
38621         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
38622         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
38623         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
38624         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
38625         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
38626         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
38627         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
38628         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
38629         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
38630         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
38631         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
38632         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
38633         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
38634         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
38635         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
38636         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
38637         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
38638         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
38639         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
38640         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
38641         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
38642         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
38643         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
38644         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
38645         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
38646         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
38647         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
38648         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
38649         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
38650         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
38651         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
38652         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
38653         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
38654         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
38655         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
38656         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
38657         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
38658         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
38659         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
38660         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
38661         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
38662         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
38663         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
38664         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
38665         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
38666         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
38667         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
38668         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
38669         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
38670         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
38671         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
38672         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
38673         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
38674         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
38675         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
38676         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
38677         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
38678         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
38679         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
38680         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
38681         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
38682         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
38683         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
38684         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
38685         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
38686         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
38687         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
38688         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
38689         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
38690         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
38691         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
38692         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
38693         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
38694         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
38695         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
38696         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
38697         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
38698         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
38699         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
38700         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
38701         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
38702         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
38703         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
38704         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
38705         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
38707         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
38708         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
38709         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
38710         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
38712         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
38713         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
38715         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
38716         to mdll-fil.ad[bs] and mdll-util.ad[bs]
38718         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
38719         from mdllfile.ad[bs] and mdlltool.ad[bs]
38721 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38723         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
38724         lieu of explicit sizeof/sizeof.
38726 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
38728         * misc.c (copy_lang_decl): Remove.
38730 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
38732         * misc.c: Delete traditional-mode-related code copied from the
38733         C front end but not used, or used only to permit the compiler
38734         to link.
38736 2002-02-07  Richard Henderson  <rth@redhat.com>
38738         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
38739         * adaint.h (__gnat_to_gm_time): Update prototype.
38741 2002-01-30  Richard Henderson  <rth@redhat.com>
38743         * trans.c (tree_transform) [N_Loop_Statement]: Use
38744         expand_exit_loop_top_cond.
38746 2001-12-23  Richard Henderson  <rth@redhat.com>
38748         * utils.c (end_subprog_body): Push GC context around
38749         rest_of_compilation for nested functions.
38751 2001-12-23  Richard Henderson  <rth@redhat.com>
38753         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
38755 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
38757         * gnat-style.texi (Declarations and Types): Remove ancient style
38758         rule which was mandated by code generation issues.
38760         * gnat-style.texi (header): Add @dircategory, @direntry.
38761         (title page): Remove date.
38762         (general) Add @./@: where approriate, and two spaces after the
38763         full stop at the end of a sentence.  Use @samp markup when
38764         referring concrete lexical entities (keywords, attribute names
38765         etc.), and @syntax for ARM grammar elements. Use @r for English
38766         text in comments.  Use @emph for emphasis.  Change "if-statements"
38767         etc. to "if statements" (without @samp). Break long lines.  Make
38768         casing of section names consistent.
38769         (Identifiers): Use @samp markup for variable names.
38770         (Comments): Use @samp markup for comment characters. Line-end
38771         comments may follow any Ada code, not just statements.  Fix
38772         misspelling of "Integer" as "integer".
38773         (Loop statements): Do not use variable name "I", use "J".
38774         (Subprogram Declarations): Document alignment.
38775         (Subprogram Bodies, Block statements): Document empty line before
38776         "begin".
38778 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
38780         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
38781         function approach did not work well because of a side effect (the
38782         function call could reallocate the table which was being indexed
38783         using its result). Fixes ada/4851.
38785 2001-12-19  Robert Dewar  <dewar@gnat.com>
38787         * bindgen.adb: Minor reformatting
38789         * cstand.adb: Minor reformatting
38791         * fmap.adb: Minor reformatting
38792         Change name from Add for Add_To_File_Map (Add is much too generic)
38793         Change Path_Name_Of to Mapped_Path_Name
38794         Change File_Name_Of to Mapped_File_Name
38795         Fix copyright dates in header
38797         * fmap.ads:
38798         Change name from Add for Add_To_File_Map (Add is much too generic)
38799         Change Path_Name_Of to Mapped_Path_Name
38800         Change File_Name_Of to Mapped_File_Name
38801         Fix copyright dates in header
38803         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
38804         Add use clause for Fmap.
38806         * make.adb: Minor reformatting
38808         * osint.adb: Minor reformatting.  Change of names in Fmap.
38809         Add use clause for Fmap.
38811         * prj-env.adb: Minor reformatting
38813         * prj-env.ads: Minor reformatting
38815         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
38816         error found (there were odd exceptions to this general rule in
38817         -gnatec/-gnatem processing)
38819 2001-12-19  Olivier Hainque  <hainque@gnat.com>
38821         * raise.c (__gnat_eh_personality): Exception handling personality
38822         routine for Ada.  Still in rough state, inspired from the C++ version
38823         and still containing a bunch of debugging artifacts.
38824         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
38825         inspired from the C++ library.
38827         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
38828         exception handling integration.
38830 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
38832         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
38833         (HIE_SOURCES): Add s-secsta.ad{s,b}.
38834         (HIE_OBJS): Add s-fat*.o
38835         (RAVEN_SOURCES): Remove files that are no longer required. Add
38836         interrupt handling files.
38837         (RAVEN_MOD): Removed, no longer needed.
38839 2001-12-19  Robert Dewar  <dewar@gnat.com>
38841         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
38842         Add 2001 to copyright date
38844         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
38845         need to force universal inlining for these cases.
38847 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
38849         * s-taprob.adb: Minor clean ups so that this unit can be used in
38850         Ravenscar HI.
38852         * exp_ch7.adb: Allow use of secondary stack in HI mode.
38853         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
38855 2001-12-19  Vincent Celier  <celier@gnat.com>
38857         * prj-tree.ads (Project_Node_Record): Add comments for components
38858         Pkg_Id and Case_Insensitive.
38860 2001-12-19  Pascal Obry  <obry@gnat.com>
38862         * g-socket.adb: Minor reformatting. Found while reading code.
38864 2001-12-19  Robert Dewar  <dewar@gnat.com>
38866         * prj-tree.ads: Minor reformatting
38868 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
38870         * config-lang.in (diff_excludes): Remove.
38872 2001-12-17  Ed Schonberg  <schonber@gnat.com>
38874         * sem_res.adb (Resolve_Selected_Component): do not generate a
38875         discriminant check if the selected component is a component of
38876         the argument of an initialization procedure.
38878         * trans.c (tree_transform, case of arithmetic operators): If result
38879         type is private, the gnu_type is the base type of the full view,
38880         given that the full view itself may be a subtype.
38882 2001-12-17  Robert Dewar  <dewar@gnat.com>
38884         * sem_res.adb: Minor reformatting
38886         * trans.c (tree_transform, case N_Real_Literal): Add missing third
38887         parameter in call to Machine (unknown horrible effects from this
38888         omission).
38890         * urealp.h: Add definition of Round_Even for call to Machine
38891         Add third parameter for Machine
38893 2001-12-17  Ed Schonberg  <schonber@gnat.com>
38895         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
38896         predefined units in No_Run_Time mode.
38898 2001-12-17  Richard Kenner  <kenner@gnat.com>
38900         * misc.c (insn-codes.h): Now include.
38902 2001-12-17  Olivier Hainque  <hainque@gnat.com>
38904         * a-except.adb: Preparation work for future integration of the GCC 3
38905         exception handling mechanism
38906         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
38907         to factorize previous code sequences and make them externally callable,
38908         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
38909         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
38910         Use the new notification routines.
38912 2001-12-17  Emmanuel Briot  <briot@gnat.com>
38914         * prj-tree.ads (First_Choice_Of): Document the when others case
38916 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
38918         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
38919         HI-E mode, in order to support Ravenscar profile properly.
38921         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
38922         mode on 32 bits targets.
38924 2001-12-17  Vincent Celier  <celier@gnat.com>
38926         * fmap.adb: Initial version.
38928         * fmap.ads: Initial version.
38930         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
38931         If search is successfully done, add to mapping.
38933         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
38935         * make.adb:
38936         (Gnatmake): Add new local variable Mapping_File_Name.
38937          Create mapping file when using project file(s).
38938          Delete mapping file before exiting.
38940         * opt.ads (Mapping_File_Name): New variable
38942         * osint.adb (Find_File): Use path name found in mapping, if any.
38944         * prj-env.adb (Create_Mapping_File): New procedure
38946         * prj-env.ads (Create_Mapping_File): New procedure.
38948         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
38949         (Mapping_File)
38951         * usage.adb: Add entry for new switch -gnatem.
38953         * Makefile.in: Add dependencies for fmap.o.
38955 2001-12-17  Ed Schonberg  <schonber@gnat.com>
38957         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
38958         is a package instantiation rewritten as a package body.
38959         (Install_Withed_Unit): Undo previous change, now redundant.
38961 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
38963         * layout.adb:
38964         (Compute_Length): Move conversion to Unsigned to callers.
38965         (Get_Max_Size): Convert Len expression to Unsigned after calls to
38966         Compute_Length and Determine_Range.
38967         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
38968         Compute_Length and Determine_Range.
38969         Above changes fix problem with length computation for supernull arrays
38970         where Max (Len, 0) wasn't getting applied due to the Unsigned
38971         conversion used by Compute_Length.
38973 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
38975         * rtsfind.ads:
38976         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
38977          System.Secondary_Stack.
38978         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
38979          in HI-E mode.
38980         Remove unused entity RE_Exception_Data.
38982         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
38984         * rident.ads (No_Secondary_Stack): New restriction.
38986 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
38988         * gnat_rm.texi: Fix minor typos. Found while reading the section
38989         regarding "Bit_Order Clauses" that was sent to a customer.
38990         Very interesting documentation!
38992 2001-12-17  Robert Dewar  <dewar@gnat.com>
38994         * sem_case.adb (Choice_Image): Avoid creating improper character
38995         literal names by using the routine Set_Character_Literal_Name. This
38996         fixes bombs in certain error message cases.
38998 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
39000         * a-reatim.adb: Minor reformatting.
39002 2001-12-17  Ed Schonberg  <schonber@gnat.com>
39004         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
39005         case where the formal is an extension of another formal in the current
39006         unit or in a parent generic unit.
39008 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
39010         * s-tposen.adb: Update comments.  Minor reformatting.
39011         Minor code clean up.
39013         * s-tarest.adb: Update comments.  Minor code reorganization.
39015 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
39017         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
39018         when Java_VM.
39020 2001-12-17  Robert Dewa  <dewar@gnat.com>
39022         * exp_attr.adb: Minor reformatting
39024 2001-12-17  Ed Schonberg  <schonber@gnat.com>
39026         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
39027         derivations nested within a child unit: verify that the parent
39028         type is declared in an outer scope.
39030 2001-12-17  Robert Dewar  <dewar@gnat.com>
39032         * sem_ch12.adb: Minor reformatting
39034 2001-12-17  Ed Schonberg  <schonber@gnat.com>
39036         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
39037         warning if current unit is a predefined one, from which bodies may
39038         have been deleted.
39040 2001-12-17  Robert Dewar  <dewar@gnat.com>
39042         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
39043         Fix header format. Add 2001 to copyright date.
39045         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
39046         which caused CE during compilation if checks were enabled.
39048 2001-12-17  Vincent Celier  <celier@gnat.com>
39050         * make.adb:
39051         (Switches_Of): New function
39052         (Test_If_Relative_Path): New procedure
39053         (Add_Switches): Use new function Switches_Of
39054         (Collect_Arguments_And_Compile): Use new function Switches_Of.
39055         When using a project file, test if there are any relative
39056         search path. Fail if there are any.
39057         (Gnatmake): Only add switches for the primary directory when not using
39058         a project file. When using a project file, change directory to the
39059         object directory of the main project file. When using a project file,
39060         test if there are any relative search path. Fail if there are any.
39061         When using a project file, fail if specified executable is relative
39062         path with directory information, and prepend executable, if not
39063         specified as an absolute path, with the exec directory.  Make sure
39064         that only one -o switch is transmitted to the linker.
39066         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
39068         * prj-nmsc.adb:
39069         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
39070         when using a non standard naming scheme.
39071         (Check_Ada_Naming_Scheme): Make sure that error messages
39072         do not raise exceptions.
39073         (Is_Illegal_Append): Return True if there is no dot in the suffix.
39074         (Language_Independent_Check): Check the exec directory.
39076         * prj.adb (Project_Empty): Add new component Exec_Directory
39078         * prj.ads:
39079         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
39080         (Project_Data): Add component Exec_Directory
39082         * snames.adb: Updated to match snames.ads revision 1.215
39084         * snames.ads: Added Exec_Dir
39086 2001-12-17  Robert Dewar  <dewar@gnat.com>
39088         * make.adb: Minor reformatting
39090         * prj-nmsc.adb: Minor reformatting
39092         * snames.adb: Updated to match snames.ads
39094         * snames.ads: Alphebetize entries for project file
39096 2001-12-17  Ed Schonberg  <schonber@gnat.com>
39098         * trans.c (process_freeze_entity): Do nothing if the entity is a
39099         subprogram that was already elaborated.
39101 2001-12-17  Richard Kenner  <kenner@gnat.com>
39103         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
39104         and Esize if object is referenced via pointer.
39106 2001-12-17  Ed Schonberg  <schonber@gnat.com>
39108         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
39109         is discrete before analyzing choices.
39111 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
39113         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
39114         containing the name of the Ada Main Program. This string is mainly
39115         intended for the debugger.
39116         (Gen_Output_File_C): Do the equivalent change when generating a C file.
39118 2001-12-17  Robert Dewar  <dewar@gnat.com>
39120         * ali.adb: Set new Dummy_Entry field in dependency entry
39122         * ali.ads: Add Dummy_Entry field to source dependency table
39124         * bcheck.adb (Check_Consistency): Ignore dummy D lines
39126         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
39128         * lib-writ.ads: Document dummy D lines for missing files.
39130         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
39132 2001-12-17  Robert Dewar  <dewar@gnat.com>
39134         * ali.adb: Type reference does not reset current file.
39136         * ali.adb: Recognize and scan renaming reference
39138         * ali.ads: Add spec for storing renaming references.
39140         * lib-xref.ads: Add documentation for handling of renaming references
39142         * lib-xref.adb: Implement output of renaming reference.
39144         * checks.adb:
39145         (Determine_Range): Document local variables
39146         (Determine_Range): Make sure Hbound is initialized. It looks as though
39147          there could be a real problem here with an uninitialized reference
39148          to Hbound, but no actual example of failure has been found.
39150 2001-12-17  Laurent Pautet  <pautet@gnat.com>
39152         * g-socket.ads:
39153         Fix comment of Shutdown_Socket and Close_Socket. These functions
39154         should not fail silently because if they are called twice, this
39155         probably means that there is a race condition in the user program.
39156         Anyway, this behaviour is consistent with the rest of this unit.
39157         When an error occurs, an exception is raised with the error message
39158         as exception message.
39160 2001-12-17  Robert Dewar  <dewar@gnat.com>
39162         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
39163         that it happens before modification of Sloc values for -gnatD.
39165         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
39166         so that it happens before modification of Sloc values for -gnatD.
39168         * switch.adb: Minor reformatting
39170 2001-12-15  Richard Henderson  <rth@redhat.com>
39172         * sem_ch7.adb: Wrap comment.
39174 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
39176         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
39177         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
39178         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
39179         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
39180         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
39181         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
39182         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
39183         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
39184         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
39185         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
39186         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
39187         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
39188         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
39189         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
39190         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
39191         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
39192         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
39193         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
39194         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
39195         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
39196         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
39197         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
39198         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
39199         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
39200         spelling errors.
39202 2001-12-14  Vincent Celier  <celier@gnat.com>
39204         * osint.adb(Create_Debug_File): When an object file is specified,
39205         put the .dg file in the same directory as the object file.
39207 2001-12-14  Robert Dewar  <dewar@gnat.com>
39209         * osint.adb: Minor reformatting
39211         * lib-xref.adb (Output_Instantiation): New procedure to generate
39212         instantiation references.
39214         * lib-xref.ads: Add documentation of handling of generic references.
39216         * ali.adb (Read_Instantiation_Ref): New procedure to read
39217         instantiation references
39219         * ali.ads: Add spec for storing instantiation references
39221         * bindusg.adb: Minor reformatting
39223         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39225         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39227         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39229         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39231         * csets.ads:
39232         Fix header format
39233         Add 2001 to copyright date
39234         Add entry for Latin-5 (Cyrillic ISO-8859-5)
39236 2001-12-14  Matt Gingell  <gingell@gnat.com>
39238         * adaint.c: mktemp is a macro on Lynx and can not be used as an
39239         expression.
39241 2001-12-14  Richard Kenner  <kenner@gnat.com>
39243         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
39244         if operand is CONSTRUCTOR.
39246 2001-12-14  Ed Schonberg  <schonber@gnat.com>
39248         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
39249         before emiting check on right-hand side, so that exception information
39250         is correct.
39252 2001-12-14  Richard Kenner  <kenner@gnat.com>
39254         * utils.c (create_var_decl): Throw away initializing expression
39255         if just annotating types and non-constant.
39257 2001-12-14  Vincent Celier  <celier@gnat.com>
39259         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
39260         Default_Ada_...
39262         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39263         Remove functions.
39264         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
39266         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39267         Remove functions.
39268         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
39270 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
39272         * ChangeLog: Remove piece of diff output.
39274 2001-12-14  Geert Bosch  <bosch@gnat.com>
39276         * config-lang.in: Update copyright notice
39278         * layout.adb: Remove commented out code.
39280         * mdllfile.ads: Update copyright notice. Fix header format.
39282         * sem_case.ads: Likewise.
39284         * sem_ch3.adb: Minor reformatting.
39286 2001-12-12  Geert Bosch  <bosch@gnat.com>
39288         * freeze.ads: Update copyright date.
39290         * g-comlin.ads: Minor reformatting.
39292         * gnat-style.texi: Fix typo.
39294 2001-12-12  Geert Bosch  <bosch@gnat.com>
39296         *  einfo.h: Regenerate.
39298 2001-12-12  Ed Schonberg  <schonber@gnat.com>
39300         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
39301         on known node types, rather than untyped fields. Further cleanups.
39303 2001-12-12  Robert Dewar  <dewar@gnat.com>
39305         * sem_ch12.adb:
39306         (Save_Entity_Descendant): Minor comment update.
39307         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
39308          of an N_Attribute_Reference node. As per note below, this does not
39309         eliminate need for Associated_Node in attribute ref nodes.
39310         (Associated_Node): Documentation explicitly mentions attribute
39311         reference nodes, since this field is used in such nodes.
39313         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
39315 2001-12-12  Robert Dewar  <dewar@gnat.com>
39317         * s-stalib.adb: Add more comments on with statements being needed
39319         * par-ch12.adb: Minor reformatting
39321         * prj-dect.ads: Fix copyright header
39323         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
39324         inputs fit in 32 bits, but the result still overflows.
39326         * s-fatgen.ads: Minor comment improvement
39328 2001-12-12  Ed Schonberg  <schonber@gnat.com>
39330         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
39331         formal derived type, look for an inherited component from the full
39332         view of the parent, if any.
39334 2001-12-12  Robert Dewar  <dewar@gnat.com>
39336         * checks.ads (Apply_Alignment_Check): New procedure.
39338         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
39339         ensure that the alignment of objects with address clauses is
39340         appropriate, and raise PE if not.
39342         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
39343         Exp_Pakd.Known_Aligned_Enough
39345         * mdllfile.ads: Minor reformatting
39347         * mlib-fil.ads: Minor reformatting
39349 2001-12-12  Ed Schonberg  <schonber@gnat.com>
39351         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
39352         fix to any component reference if enclosing record has non-standard
39353         representation.
39355 2001-12-12  Vincent Celier  <celier@gnat.com>
39357         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
39358         Iteration
39360 2001-12-12  Ed Schonberg  <schonber@gnat.com>
39362         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
39363         sem_attr.
39365 2001-12-12  Robert Dewar  <dewar@gnat.com>
39367         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
39369 2001-12-12  Emmanuel Briot  <briot@gnat.com>
39371         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
39372         and it adds dependencies to system.io.
39374 2001-12-12  Pascal Obry  <obry@gnat.com>
39376         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
39377         variable name.
39379 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39381         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
39382         that is the parent of other generics, the instance body replaces the
39383         instance node.  Retrieve the instance of the spec, which is the one
39384         that is visible in clients and within the body.
39386 2001-12-11  Vincent Celier  <celier@gnat.com>
39388         * gnatmain.adb: Initial version.
39390         * gnatmain.ads: Initial version.
39392         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
39394         * snames.adb: Updated to match snames.ads.
39396         * snames.ads: Added Gnatstub.
39398 2001-12-11  Vincent Celier  <celier@gnat.com>
39400         * prj-attr.adb (Initialization_Data): Change name from
39401         Initialisation_Data.
39403 2001-12-11  Emmanuel Briot  <briot@gnat.com>
39405         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
39406         + and * applied to backslashed expressions like \r.
39408 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
39410         * g-os_lib.ads: String_List type added, Argument_List type is now
39411         subtype of String_List.
39413 2001-12-11  Robert Dewar  <dewar@gnat.com>
39415         * g-os_lib.ads: Change copyright to FSF
39416         Add comments for String_List type
39418 2001-12-11  Vincent Celier  <celier@gnat.com>
39420         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
39421         string to the buffer).
39423 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39425         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
39426         sem_attr.
39428         * sem_attr.adb: Simplify previous fix for Address.
39429         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
39430         to avoid anomalies where the bound of the type appears to raise
39431         constraint error.
39433 2001-12-11  Robert Dewar  <dewar@gnat.com>
39435         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
39436         handled.
39438 2001-12-11  Ed Schonber   <schonber@gnat.com>
39440         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
39441         renamed unit before checking for recursive instantiations.
39443 2001-12-11  Emmanuel Briot  <briot@gnat.com>
39445         * prj.ads: Add comments for some of the fields.
39447 2001-12-11  Robert Dewar  <dewar@gnat.com>
39449         * lib-xref.adb (Output_Refs): Don't output type references outside
39450         the main unit if they are not otherwise referenced.
39452 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39454         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
39455         code and diagnose additional illegal uses
39457         * sem_util.adb (Is_Object_Reference): An indexed component is an
39458         object only if the prefix is.
39460 2001-12-11  Vincent Celier  <celier@gnat.com>
39462         * g-diopit.adb: Initial version.
39464         * g-diopit.ads: Initial version.
39466         * g-dirope.adb:
39467         (Expand_Path): Avoid use of Unbounded_String
39468         (Find, Wildcard_Iterator): Moved to child package Iteration
39470         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
39472 2001-12-11  Robert Dewar  <dewar@gnat.com>
39474         * sem_attr.adb: Minor reformatting
39476 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39478         * sem_ch3.adb: Clarify some ???.
39480 2001-12-11  Robert Dewar  <dewar@gnat.com>
39482         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
39483         Exp_Pakd.Known_Aligned_Enough
39485         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
39486         version is moved to Exp_Ch13.
39488 2001-12-11  Robert Dewar  <dewar@gnat.com>
39490         * einfo.ads: Minor reformatting
39492         * exp_ch5.adb: Add comment for previous.change
39494         * ali.adb: New interface for extended typeref stuff.
39496         * ali.ads: New interface for typeref stuff.
39498         * checks.adb (Apply_Alignment_Check): New procedure.
39500         * debug.adb: Add -gnatdM for modified ALI output
39502         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
39504         * lib-xref.adb: Extend generation of <..> notation to cover
39505         subtype/object types. Note that this is a complete rewrite,
39506         getting rid of the very nasty quadratic algorithm previously
39507         used for derived type output.
39509         * lib-xref.ads: Extend description of <..> notation to cover
39510         subtype/object types. Uses {..} for these other cases.
39511         Also use (..) for pointer types.
39513         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
39515         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
39516         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
39518 2001-12-11  Vincent Celier  <celier@gnat.com>
39520         * gnatcmd.adb:
39521         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
39522         Changed /BIND_ONLY to /ACTIONS=BIND
39523         Changed /LINK_ONLY to /ACTIONS=LINK
39525 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39527         * sem_ch8.adb (Find_Selected_Component): improved search for a
39528         candidate package in case of error.
39530         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
39531         chain back on scope stack before reinstalling use clauses.
39533         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
39534         is enabled, do not kill the code for the condition, to preserve
39535         warning.
39537 2001-12-11  Robert Dewar  <dewar@gnat.com>
39539         * checks.adb (Insert_Valid_Check): Apply validity check to expression
39540         of conversion, not to result of conversion.
39542 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39544         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
39545         before freezing parent. If the declarations are mutually recursive,
39546         an access to the current record type may be frozen before the
39547         derivation is complete.
39549 2001-12-05  Vincent Celier  <celier@gnat.com>
39551         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
39552         -c /COMPILE_ONLY, -l /LINK_ONLY
39554         * opt.ads:
39555         (Bind_Only): New Flag
39556         (Link_Only): New flag
39558         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
39559         and -l (Link_Only)
39561         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
39563         * make.adb:
39564         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
39565         (Gnatmake): Set the step flags. Only perform a step if the
39566         corresponding step flag is True.
39567         (Scan_Make_Arg): Reset the bind and link step flags when -u
39568         or -gnatc has been specified.
39570 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39572         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
39573         get bounds from right operand.
39575         * sem_eval.adb: Minor reformatting
39577         * exp_util.adb (Make_Literal_Range): use bound of literal rather
39578         than Index'First, its lower bound may be different from 1.
39580         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
39581         and C48009J
39583 2001-12-05  Vincent Celier  <celier@gnat.com>
39585         * prj-nmsc.adb Minor reformatting
39587         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
39588         set and libraries are not supported.
39590 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39592         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
39593         private view explicitly, so the back-end can treat as a global
39594         when appropriate.
39596 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39598         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
39599          unit, always replace instance node with new body, for ASIS use.
39601 2001-12-05  Vincent Celier  <celier@gnat.com>
39603         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
39604         libraries are not supported and both attributes Library_Name and
39605         Library_Dir are specified.
39607         * prj-proc.adb (Expression): Set location of Result to location of
39608         first term.
39610         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
39611         (prj-nmsc is now importing MLib.Tgt)
39613         * prj-proc.adb: Put the change indicated above that was forgotten.
39615 2001-12-05  Robert Dewar  <dewar@gnat.com>
39617         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
39619 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39621         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
39622         constraint, introduce explicit subtype declaration and derive from it.
39624         * sem_ch3.adb: Minor reformatting
39626 2001-12-05  Robert Dewar  <dewar@gnat.com>
39628         * checks.adb (Determine_Range): Increase cache size for checks.
39629         Minor reformatting
39631         * exp_ch6.adb: Minor reformatting
39632         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
39633         a parameter whose root type is System.Address, since treating such
39634         subprograms as pure in the code generator is almost surely a mistake
39635         that will lead to unexpected results.
39637         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
39638         change handling of conversions.
39640         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
39642 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39644         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
39645         aggregate with static wrong size, attach generated Raise node to
39646         declaration.
39648 2001-12-05  Robert Dewar  <dewar@gnat.com>
39650         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
39651         Fixes compilation abandoned bomb in B24009B.
39653 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39655         * sem_ch12.adb:
39656         Document use of Associated_Node on Selected_Components.
39657         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
39658         to clarify use of untyped descendant fields.
39660 2001-12-05  Robert Dewar  <dewar@gnat.com>
39662         * prj-dect.ads: Add ??? comment
39663         Add 2001 to copyright notice (was not done in after all)
39665         * prj-part.adb: Minor reformatting. Reword one awkward error message.
39667         * prj.ads: Minor reformatting throughout, and add some ??? comments
39669         * snames.ads: Minor reformatting
39671 2001-12-05  Geert Bosch  <bosch@gnat.com>
39673         * snames.adb: Autoupdate
39675 2001-12-05  Vincent Celier  <celier@gnat.com>
39677         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
39679         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
39681         * prj-env.adb: Minor comment changes (modifying -> extends).
39683         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
39685         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
39686         Tok_Extends.
39688         * prj.adb (Initialize): Change Modifying to Extends.
39690         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
39692         * prj.ads: Minor comment change (Modifying -> extending).
39694         * snames.ads: Change modifying to extends.
39696 2001-12-05  Robert Dewar  <dewar@gnat.com>
39698         * sem_warn.adb: Remove stuff for conditionals, we are not going to
39699         do this after all.
39701         * sem_warn.ads: Remove stuff for conditionals, we are not going to
39702         do this after all.  Add 2001 to copyright notice
39704 2001-12-04  Geert Bosch  <bosch@gnat.com>
39706         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
39708 2001-12-04  Robert Dewar  <dewar@gnat.com>
39710         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
39711         location if we already have errors. Stops some cases of cascaded
39712         errors.
39714         * errout.adb: Improve comment.
39716 2001-12-04  Robert Dewar  <dewar@gnat.com>
39718         * sem_ch12.adb:
39719         (Analyze_Formal_Type_Definition): Defend against Error.
39720         (Analyze_Formal_Subprogram): Defend against Error.
39722         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
39723         remove following semicolon if present. Removes cascaded error.
39725 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
39727         * bindgen.adb:
39728         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
39729          exceptions equals 0.
39730         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
39731         Fixes PIWG E tests (which have to be run with -gnatL).
39733 2001-12-04  Robert Dewar  <dewar@gnat.com>
39735         * einfo.ads: Minor reformatting
39737 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39739         * einfo.ads: Block_Node points to the identifier of the block, not to
39740         the block node itself, to preserve the link when the block is
39741         rewritten, e.g. within an if-statement with a static condition.
39743         * inline.adb (Cleanup_Scopes): recover block statement from block
39744         entity using new meaning of Block_Node.
39746         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
39747         identifier of block node, rather than to node itself.
39749 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
39751         * layout.adb:
39752         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
39753         (Discrimify): Go back to setting the Etypes of the selected component
39754         because the Vname component does not exist at this point and will
39755         fail name resolution. Also set Analyzed.
39756         Remove with and use of Sem_Res.
39758 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
39760         * Makefile.in: (HIE_SOURCES): add s-fat*.
39762 2001-12-04  Robert Dewar  <dewar@gnat.com>
39764         * sem_attr.adb:
39765         (Compile_Time_Known_Attribute): New procedure.
39766         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
39767          proper range check.
39769 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39771         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
39772         processing discriminants to diagnose illegal default values.
39774 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39776         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
39777         access discriminant within a type extension that constrains its
39778         parent discriminants.
39780 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39782         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
39783         is malformed, use instance of Any_Id to allow analysis to proceed.
39785         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
39786         type definition is illegal.
39787         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
39788         misplaced.
39790 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39792         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
39793         constants.
39795 2001-12-04  Robert Dewar  <dewar@gnat.com>
39797         * errout.adb: Minor reformatting
39799 2001-12-04  Robert Dewar  <dewar@gnat.com>
39801         * exp_util.adb: Minor reformatting from last change
39803         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
39804         which is a rewriting of an expression, traverse the original
39805         expression to remove warnings that may have been posted on it.
39807 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39809         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
39810         record that has other packed components.
39812 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
39814         * adaint.c: Minor cleanups.
39816 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
39818         * adaint.c: Do not use utime.h on vxworks.
39820 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
39822         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
39823         more confusion than it solves.
39825 2001-12-04  Geert bosch  <bosch@gnat.com>
39827         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
39829 2001-12-04  Geert Bosch  <bosch@gnat.com>
39831         * Makefile.in (update-sources): New target.
39832         For use by gcc_release script.
39834 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39836         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
39837         a configuration pragma, it is now legal wherever a pragma can appear.
39839 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
39841         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
39842         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
39843         is now @CROSS@ -DIN_GCC; update comment.
39845 2001-12-04  Robert Dewar  <dewar@gnat.com>
39847         * einfo.adb (Has_Pragma_Pure_Function): New flag.
39848         Fix problem that stopped ceinfo from working
39850         * einfo.ads (Has_Pragma_Pure_Function): New flag.
39852         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
39854 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
39856         * gnatchop.adb:
39857         (File_Time_Stamp): New procedure.
39858         (Preserve_Mode): New boolean.
39859         (Write_Unit): Pass time stamp.
39860         Implement -p switch (preserve time stamps).
39862         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
39864         * gnatchop.adb: Do usage info for -p switch
39866         * adaint.h (__gnat_set_file_time_name): New function
39868         * adaint.c (__gnat_set_file_time_name): Implement
39870         * adaint.h: Fix typo
39872 2001-12-03  Robert Dewar  <dewar@gnat.com>
39874         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
39875         have Associated_Node.
39877 2001-12-03  Robert Dewar  <dewar@gnat.com>
39879         * prj-proc.adb: Minor reformatting
39881         * make.adb: Minor reformatting
39883 2001-12-03  Geert Bosch  <bosch@gnat.com>
39885         * make.adb: Minor reformatting.
39887 2001-12-03 Robert Dewar  <dewar@gnat.com>
39889         * sem_ch12.adb: Minor reformatting
39891 2001-12-03  Ed Schonberg  <schonber@gnat.com>
39893         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
39894         push Standard on the stack before analyzing the instance body,
39895         in order to have a clean visibility environment.
39897         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
39899 2001-12-03  Ed Schonberg  <schonber@gnat.com>
39901         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
39902         instantiation of a body that contains an inlined body.
39904 2001-12-03  Ed Schonberg  <schonber@gnat.com>
39906         * sem_ch12.adb:
39907         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
39908         to prevent freezing within formal packages.
39909         (Freeze_Subprogram_Body): If body comes from another instance that
39910         appeared before its own body, place freeze node at end of current
39911         declarative part, to prevent a back-end crash.
39912         (Inline_Instance_Body): Handle properly a package instance within
39913         a subprogram instance that is a child unit.
39915 2001-12-01  Graham Stott  <grahams@redhat.com>
39917         * Makefile.in (misc.o): Add missing $(srcdir) prefix
39918         and add optabs.h dependency.
39920         * misc.c: Include optabs.h
39921         (gnat_tree_code_type): Make static and const.
39922         (gnat_tree_code_length): Likewise.
39923         (gnat_tree_code_name): Likewise.
39924         (update_setjmp_buf): Obtain operands mode from insn_data.
39926 2001-11-29  Richard Henderson  <rth@redhat.com>
39928         * init.c: Remove obsolete dwarf2 frame.h section.
39930 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
39932         * Make-lang.in (ada.generated-manpages): New dummy target.
39934 2001-11-29  Ed Schonberg  <schonber@gnat.com>
39936         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
39937         into Command, an array conversion is illegal here. Uncovered by
39938         ACATS B460005.
39940 2001-11-28  Geert Bosch  <bosch@gnat.com>
39942         * init.c: Minor whitespace changes.
39944 2001-11-28  Doug Rupp  <rupp@gnat.com>
39946         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
39947         signal stack.
39949 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
39951         * misc.c (gnat_expand_constant): Move declaration above
39952         definition of lang_hooks.
39953         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
39954         (gnat_init): lang_expand_constant no longer exists.
39956         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
39957         always have vprintf.
39958         (gnat_init): Always call set_internal_error_function.
39960 2001-11-27  Andreas Jaeger  <aj@suse.de>
39962         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
39964 2001-11-27  Laurent Guerby  <guerby@acm.org>
39966         * Makefile.in: Regenerate Ada dependencies.
39968 2001-11-26  Richard Henderson  <rth@redhat.com>
39970         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
39971         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
39972         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
39974 2001-11-25  Laurent Guerby  <guerby@acm.org>
39976         * sysdep.c (rts_get_*): Fix style.
39978 2001-11-19  Laurent Guerby  <guerby@acm.org>
39980         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
39981         since it is of no apparent use and cause warnings.
39983 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
39985         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
39986         static too.
39987         (gnat_init): Don't return NULL.
39988         (finish_parse): Remove.
39990 2001-11-17  Laurent Guerby  <guerby@acm.org>
39992         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
39993         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
39994         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
39995         * lang-spec.h: Add missing struct field to silence warnings.
39996         * sysdep.c (rts_get_*): Provide K&R prototype.
39997         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
39998         * traceback.c (Unlock_Task, Lock_Task): Likewise.
39999         * tracebak.c (__gnat_backtrace): Remove unused variable.
40000         * utils.c (end_subprog_body): Move to K&R style.
40002 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
40004         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
40006 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
40008         * misc.c (gnat_init): Change prototype.  Include the
40009         functionality of the old init_parse and init_decl_processing.
40010         (gnat_init_decl_processing): New prototype.
40011         (init_parse): Remove.
40012         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
40014 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
40016         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
40017         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
40018         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
40019         set_yydebug): Remove.
40021 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
40023         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
40024         (struct lang_hooks): Constify.
40025         (language_string, lang_identify): Remove.
40026         * utils.c (init_decl_processing): Update.
40028 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
40030         * misc.c: Include langhooks-def.h.
40031         * Makefile.in: Update.
40033 2001-10-30  Robert Dewar  <dewar@gnat.com>
40035         * style.adb:
40036         (Check_Identifier): Rewrite circuit to be compatible with use of letters
40037         in the upper half of ASCII.
40038         (Check_Identifier): Minor reformatting
40040 2001-10-30  Geert Bosch  <bosch@gnat.com>
40042         * (Associated_Node, Set_Associated_Node): Do not check for
40043         Freeze_Entity.
40045 2001-10-30  Robert Dewar  <dewar@gnat.com>
40047         * a-reatim.ads: Minor reformatting
40049 2001-10-30  Robert Dewar  <dewar@gnat.com>
40051         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
40052         undocumented declarations.
40054 2001-10-30  Pascal Obry  <obry@gnat.com>
40056         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
40057         to the binder and linker.
40058         Minor style fix.
40060         * mdll.ads: Fix layout.  Update copyright notice.
40062         * mdll.adb: Fix layout.  Update copyright notice.
40064 2001-10-30  Robert Dewar  <dewar@gnat.com>
40066         * usage.adb: Minor fix to output for -gnaty.
40068 2001-10-30  Ed Schonberg  <schonber@gnat.com>
40070         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
40071         to accommodate all its possible values.
40073         * a-reatim.adb (Split): Special-case handling of Time_Span_First
40074         and of small absolute values of T.
40076 2001-10-30  Richard Kenner  <kenner@gnat.com>
40078         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
40079         set_mem_attributes since not needed and wrong if RESULT if a REG;
40080         fixes ACATS failures.
40082 2001-10-30  Geert Bosch  <bosch@gnat.com>
40084         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
40085         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
40087 2001-10-30  Robert Dewar  <dewar@gnat.com>
40089         * bindusg.adb: Undocument -f switch.
40091         * gnatcmd.adb: Remove /FULL_ELABORATION.
40093         * opt.ads (Force_RM_Elaboration_Order): Document that this is
40094         obsolescent.
40096         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
40098         * gnatbind.adb: Minor update of warning msg.
40100 2001-10-30  Vincent Celier  <celier@gnat.com>
40102         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
40103         for project file switches (-P (/PROJECT_FILE=),
40104          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
40105         or MEDIUM or HIGH)
40107 2001-10-30  Geert Bosch  <bosch@gnat.com>
40109         * decl.c: Minor whitespace fixes.
40111 2001-10-30  Richard Kenner  <kenner@gnat.com>
40113         * utils2.c (build_allocator): Test for SIZE overflow in array case too
40115 2001-10-30  Geert Bosch  <bosch@gnat.com>
40117         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
40118         Found due to GCC 3.0 warning of using uninitialized value.
40120         * layout.adb:
40121         (Get_Max_Size): Use variant record for tracking value/expression.
40122          Makes logic clearer and prevents warnings for uninitialized variables.
40123         (Layout_Array_Type): Use variant record for tracking value/expression.
40124          Makes logic clearer and prevents warnings for uninitialized variables.
40126 2001-10-30  Robert Dewar  <dewar@gnat.com>
40128         * lib.adb: Minor reformatting
40130         * s-taprop.ads: Minor reformatting
40132 2001-10-29  Laurent Guerby  <guerby@acm.org>
40134         * init.c:
40135         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
40136         const.
40137         (_gnat_error_handler): Make MSG const.
40139 2001-10-29  Richard Kenner  <kenner@gnat.com>
40141         * sysdep.c: Fix localtime_r problem on LynxOS.
40142         Also remove #elif to avoid warnings.
40144         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
40145         used by this.
40147         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
40149 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
40151         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
40152         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
40153         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
40154         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
40155         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
40156         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
40157         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
40158         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
40159         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
40160         types.ads, urealp.adb: Fix spelling errors.
40162 2001-10-27  Laurent Guerby  <guerby@acm.org>
40164         * trans.c (gigi): Fix non determinism leading to bootstrap
40165         comparison failures for debugging information.
40167 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
40169         * gnat_rm.texi: Use @./@: where appropriate.
40171 2001-10-26  Robert Dewar  <dewar@gnat.com>
40173         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
40175 2001-10-26  Richard Kenner  <kenner@gnat.com>
40177         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
40179 2001-10-26  Richard Kenner  <kenner@gnat.com>
40181         * decl.c (validate_size): Modify message for bad size to avoid
40182         implication that compiler is modifying the size.
40184 2001-10-26  Robert Dewar  <dewar@gnat.com>
40186         * prj-util.adb: Minor reformatting. Fix bad header format.
40188 2001-10-26  Robert Dewar  <dewar@gnat.com>
40190         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
40192         * sinfo.ads: Clarify use of Associated_Node (documentation only).
40194         * sem_ch12.adb: Change Node4 to Associated_Node. Change
40195         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
40196         much more narrowly in places where needed. These are cleanups.
40198 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
40200         * 5zosinte.ads (null_pthread): new constant.
40202         * 5ztaprop.adb:
40203         (Initialize_TCB): Initialize thread ID to null, to be able to verify
40204          later that this field has been set.
40205         (Finalize_TCB): ditto.
40206         (Suspend_Task): Verify that the thread ID is not null before using it.
40207         (Resume_Task): ditto.
40209         * s-tasdeb.adb:
40210         (Resume_All_Tasks): Lock the tasks list before using it.
40211         (Suspend_All_Tasks): ditto.
40213 2001-10-26  Richard Kenner  <kenner@gnat.com>
40215         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
40216         Make constant variant of designated type for Is_Access_Constant.
40217         Call update_pointer_to with main variant.
40219         * trans.c (process_freeze_entity, process_type):
40220         Call update_pointer_to on main variant.
40222         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
40223         If main variant, update all other variants.
40225         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
40226         TREE_STATIC.
40228 2001-10-26  Robert Dewar  <dewar@gnat.com>
40230         * prj-util.adb: Minor reformatting
40232 2001-10-26  Robert Dewar  <dewar@gnat.com>
40234         * prj-util.adb: Minor reformatting
40236 2001-10-26  Robert Dewar  <dewar@gnat.com>
40238         * prj-attr.adb: Minor reformatting throughout
40240 2001-10-26  Robert Dewar  <dewar@gnat.com>
40242         * prj-attr.ads: Minor reformatting
40243         Add ??? comment (this whole spec has almost no comments)
40245 2001-10-26  Vincent Celier  <celier@gnat.com>
40247         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
40248         ("//") that precede the drive letter on Interix.
40250 2001-10-26  Geert Bosch  <bosch@gnat.com>
40252         * gnat_rm.texi: Add GNAT Reference Manual.
40254 2001-10-25  Robert Dewar  <dewar@gnat.com>
40256         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
40257         is Error. Similar change for other renaming cases.
40259 2001-10-25  Robert Dewar  <dewar@gnat.com>
40261         * s-atacco.ads: Add pragma Inline_Always for functions.
40262         Fix header format. Add copyright 2001
40264 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40266         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
40267         return Error rather than Empty so that analysis can proceed.
40269 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40271         * sem_util.adb (Enter_Name): better handling of cascaded error
40272         messages when a unit appears in its own context.
40274 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40276         * sem_util.adb (Defining_Entity): in case of error, attach created
40277         entity to specification, so that semantic analysis can proceed.
40279 2001-10-25  Robert Dewar  <dewar@gnat.com>
40281         * sem_util.adb
40282         (Defining_Entity): Deal with Error.
40283         (Process_End_Label): Deal with bad end label for.
40285 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40287         * sem_elab.adb (Check_A_Call): refine message when call is in an
40288         instance but callee is not declared in the generic unit.
40290 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40292         * sem_elab.adb (Check_A_Call): check for renaming before finding the
40293         enclosing unit, which may already be different from the calling unit.
40295 2001-10-25  Geert Bosch  <bosch@gnat.com>
40297         * 4gintnam.ads: fix header format.
40299 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40301         * sem_res.adb (Resolve_Call): if the call is actually an indexing
40302         operation on the result of a parameterless call, perform elaboration
40303         check after the node has been properly rewritten.
40305         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
40306         inlined within the generic tree, the defining identifier is not a
40307         compilation_unit.
40309 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40311         * sem_res.adb (Resolve): special-case resolution of Null in an
40312          instance or an inlined body to avoid view conflicts.
40314         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
40315          compatibility by retrieving the access type of the generic copy.
40317 2001-10-25  Robert Dewar  <dewar@gnat.com>
40319         * sem_ch3.adb:
40320         (Analyze_Number_Declaration): Handle error expression.
40321         (Signed_Integer_Type_Declaration): Handle error bound.
40322         (Analyze_Subtype_Indication): Handle error range.
40324         * sem_util.adb (Get_Index_Bounds): Check for Error.
40326 2001-10-25  Robert Dewar  <dewar@gnat.com>
40328         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
40329         in no run time mode.
40331 2001-10-25  Pascal Obry  <obry@gnat.com>
40333         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
40334         mode case for ALLOC case.
40336         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
40337         all platforms. Improvement of last change.
40339 2001-10-25  Robert Dewar  <dewar@gnat.com>
40341         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
40343 2001-10-25  Geert Bosch  <bosch@gnat.com>
40345         * osint.adb (Is_Relative): Remove duplicate.
40347 2001-10-25  Pascal Obry  <obry@gnat.com>
40349         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
40350         pathnames in UNIX and DOS style with drive letter.
40351         (Is_Relative): new routine.
40353         * osint.adb: Minor reformatting
40355         * osint.adb (Is_Relative): implementation using
40356         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
40358 2001-10-25  Pascal Obry  <obry@gnat.com>
40360         * g-dirope.adb (Basename): correctly compute offset between the
40361         original Path and the translated one.
40363         * g-dirope.adb: (Base_Name): add some comments.
40365 2001-10-25  Robert Dewar  <dewar@gnat.com>
40367         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
40368         in HIE mode, avoids compilation abandoned message
40370         * exp_imgv.adb: Correct typo in previous change
40372         * exp_imgv.adb: Correct typo in previous change (not my day!)
40374 2001-10-25  Robert Dewar  <dewar@gnat.com>
40376         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
40378 2001-10-25  Pascal Obry  <obry@gnat.com>
40380         * g-awk.ads: Move all pragma inlines next to the routine
40381          declarations. This is more uniform with other GNAT spec.
40383 2001-10-22  Geert Bosch  <bosch@gnat.com>
40385         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
40387 2001-10-19  Geert Bosch  <bosch@gnat.com>
40389         * Makefile.in (tools, gnattools): Remove gnatmem.
40391 2001-10-17  Richard Henderson  <rth@redhat.com>
40393         * Makefile.in (misc.o): Depend on langhooks.h.
40394         * misc.c: Include it.
40395         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
40396         (LANG_HOOKS_DECODE_OPTION): New.
40397         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
40399 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
40401         * trans.c (tree_transform): Adjust to recent change in
40402         expand_asm_operands to implement named asm operands.
40404 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40406         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
40407         renaming of discriminant for mutable record type.
40409 2001-10-11  Robert Dewar  <dewar@gnat.com>
40411         * validsw.adb: Properly save -gnatVn status.
40413 2001-10-11  Robert Dewar  <dewar@gnat.com>
40415         * usage.adb: Add lines for V switch.
40417         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
40418         (/VALIDITY_CHECKING).
40420 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40422         * sem_type.adb (Add_One_Interp): an operator for a type declared in
40423         an extension of System is known to be visible.
40425 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40427         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
40428         properly. Fixes regression on ACATS C34005G.
40430 2001-10-11  Robert Dewar  <dewar@gnat.com>
40432         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
40433         loop in generic instance, since this is likely not very useful.
40435 2001-10-11  Robert Dewar  <dewar@gnat.com>
40437         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
40438         the error message for high integrity mode.
40440         * rtsfind.adb (RTE): Give message if we try to find an entity that
40441         is not available in high integrity mode.
40443         * rtsfind.ads:
40444         (OK_To_Use_In_HIE_Mode): New array.
40445         (RTE): May return Empty in high integrity mode.
40447         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
40448         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
40450         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
40451         unit if not inlined always and in no runtime mode. Fixes problem
40452         caused by new Rtsfind changes.
40454         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
40455         body is deleted.
40457         * rtsfind.adb (RTE): Make sure we do not try to load unit after
40458         giving message for entity not available in high integrity mode.
40460 2001-10-11  Pascal Obry  <obry@gnat.com>
40462         * impunit.adb: Add GNAT.CRC32.
40464 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40466         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
40467         properly the case where one universal operand in a non-static
40468         exponentiation of a real literal.
40470 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40472         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
40473         clause, return the gobal finalization list, for lack of anthing else.
40475 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40477         * exp_ch7.adb (Make_Transient_Block): if statement is within
40478         exception handler, always use new transient scope to place Clean
40479         procedure.
40481 2001-10-11  Pascal Obry  <obry@gnat.com>
40483         * Makefile.in:
40484         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40485         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40486         (GNATLS_RTL_OBJS): add g-crc32.o
40487         (GNATMAKE_RTL_OBJS): add g-crc32.o
40489         * ali-util.adb:
40490         (CRC_Match): new function.
40491         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
40492         instead of the previous simple checksum algorithm.
40493         (Time_Stamp_Mismatch): use CRC_Match for comparison.
40494         (Set_Source_Table): idem.
40496         * ali-util.ads:
40497         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
40498         instead of simple checksum.
40499         (CRC_Match): new function.
40500         (CRC_Error): new constant.
40502         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
40503         a CRC now and not a simple checksum. A CRC uses lower-case hex
40504         letters, fixes ambiguity in parsing.
40506         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
40507         is what this variable will store.
40509         * bcheck.adb: Change reference to chechsum in comments by CRC.
40510         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
40511         rename All_Checksum_Match to All_CRC_Match. Change due to API
40512         renaming since now GNAT does not use a simple checksum but a
40513         CRC using GNAT.CRC32.
40515         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
40516         now and not anymore a simple checksum.
40518         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
40519         places.
40521         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
40523         * scans.adb:
40524         (Restore_Scan_State): rename Checksum to CRC.
40525         (Save_Scan_State): idem.
40527         * scans.ads:
40528         With GNAT.CRC32.
40529         (Checksum): rename to CRC.
40530         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
40532         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
40533         GNAT.CRC32).  Update copyright notice.
40535         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
40536         GNAT.CRC32).  Update copyright notice.
40538         * scn.adb:
40539         (Accumulate_Checksum): removed.
40540         (Update): new procedure. Add a wide-character into the CRC.
40542         * sinput-l.adb:
40543         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
40544         (Load_File): fix initialization of S (change Source_Checksum to
40545         Source_CRC)
40547         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
40548         Source_CRC in S initialization.
40550         * sinput.adb (Source_Checksum): renamed to Source_CRC.
40552         * sinput.ads (Source_Checksum): renamed to Source_CRC.
40553         Update comments for the CRC.
40555         * types.adb (Hex): Use lowercase for the letter part.
40557         * types.ads (Get_Hex_String): Returns the hexadecimal representation
40558         for a word. This is currently used only for CRC. In previous version,
40559         the checksum was using a representation with all letter being
40560         upper-case. With the new implementation (using CRC) we do not remove
40561         the 32th bit of the CRC, so we can have an upper-case starting letter
40562         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
40563         It is ambigous since the CRC was optional and could be followed by
40564         options like EB, EE. So now this routines uses lower-case letter for
40565         the hexadecimal representation. Strange enough only lower case letters
40566         where checked in Scan_ALI (even if this was not a possible case).
40568         * gnatvsn.ads (Library_Version): changed to 3.15a.
40570         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
40571         for the compiler.
40573         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
40574         for the compiler.
40576         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
40577         Add 2001 to copyright notice
40578         (Accumulate_Checksum): Modify to use System.CRC32.
40580         * ali-util.ads: Redo changes of previous revision to continue to use
40581         the word Checksum. Add 2001 to copyright notice.
40583         * ali.adb: Undo some of previous changes, not needed.
40584         Keep the change for lower case letters in the checksum.
40586         * ali.ads: Undo previous change not needed.
40588         * bcheck.adb: Undo most of previous change, not needed.
40589         But do use Checksums_Match for checksum comparison.
40591         * gnatls.adb: Undo most of previous change, not needed.
40592         But do use Checksums_Match for comparing checksums.
40594         * lib-load.adb: Undo previous change, not needed.
40596         * lib-writ.adb: Undo previous change, not needed.
40598         * lib-writ.ads: Document that checksums use lower case,
40599         not upper case letters.
40601         * scans.adb: Undo previous change, not needed
40603         * scans.ads: Undo previous change, not needed.
40605         * scn-nlit.adb: Undo previous changes, not needed.
40607         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
40609         * scn.adb:
40610         (Accumulate_Checksum): Use System.CRC32.
40611         (Initialize_Checksum): New procedure.
40612         Remove other changes of previous revision.
40614         * sinput-p.adb: Undo previous change, not needed.
40616         * sinput.adb: Undo previous change, not needed.
40618         * sinput-l.adb: Undo previous change, not needed.
40620         * sinput.ads: Undo previous change, not needed.  Keep only comment
40621         on new checksum algorithm
40623         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
40624         Also remove a-tags and a-stream from GNAT sources.
40626         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
40628         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
40630 2001-10-11  Geert Bosch  <bosch@gnat.com>
40632         * einfo.h: Regenerate.
40634         * nmake.ads: Regenerate.
40636         * nmake.adb: Regenerate.
40638         * sinfo.h: Regenerate.
40640         * treeprs.adb: Regenerate.
40642 2001-10-10  Geert Bosch  <bosch@gnat.com>
40644         * gnat-style.texi: New file describing coding guidelines for Ada.
40646 2001-10-10  Ed Schonberg  <schonber@gnat.com>
40648         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
40649         is Flag174.
40651 2001-10-10  Geert Bosch  <bosch@gnat.com>
40653         * snames.ads: Add new names for project facility.
40655         * snames.adb: Update to reflect snames.ads changes.
40657         * snames.h: Update to reflect snames.ads changes.
40659 2001-10-10  Vincent Celier  <celier@gnat.com>
40661         * make.adb:
40662         (Add_Switches): reflect the changes for the switches attributes
40663         Default_Switches indexed by the programming language,
40664         Switches indexed by the file name.
40665         (Collect_Arguments_And_Compile): Idem.
40666         Reflect the attribute name changes.
40668         * prj-attr.adb:
40669         (Initialisation_Data): Change the names of some packages and
40670         attributes.
40671         (Initialize): process case insensitive associative arrays.
40673         * prj-attr.ads:
40674         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
40676         * prj-dect.adb:
40677         (Parse_Attribute_Declaration): For case insensitive associative
40678          arrays, set the index string to lower case.
40680         * prj-env.adb:
40681         Reflect the changes of the project attributes.
40683         * prj-nmsc.adb:
40684         Replace Check_Naming_Scheme by Ada_Check and
40685         Language_Independent_Check.
40687         * prj-nmsc.ads:
40688         Replaced Check_Naming_Scheme by 2 procedures:
40689         Ada_Check and Language_Independent_Check.
40691         * prj-proc.adb:
40692         (Process_Declarative_Items): For case-insensitive associative
40693         arrays, set the index string to lower case.
40694         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
40695         Prj.Nmsc.Check_Naming_Scheme.
40697         * prj-tree.adb:
40698         (Case_Insensitive): New function
40699         (Set_Case_Insensitive): New procedure
40701         * prj-tree.ads:
40702         (Case_Insensitive): New function
40703         (Set_Case_Insensitive): New procedure
40704         (Project_Node_Record): New flag Case_Insensitive.
40706         * prj-util.adb:
40707         (Value_Of): new function to get the string value of a single
40708         string variable or attribute.
40710         * prj-util.ads:
40711         (Value_Of): new function to get the string value of a single
40712         string variable or attribute.
40714         * prj.adb:
40715         (Ada_Default_Spec_Suffix): New function
40716         (Ada_Default_Impl_Suffix): New function
40717         Change definitions of several constants to reflect
40718         new components of record types.
40720         * prj.ads:
40721         (Naming_Data): Change several components to reflect new
40722         elements of naming schemes.
40723         (Project_Data): New flags Sources_Present and
40724         Language_Independent_Checked.
40725         (Ada_Default_Spec_Suffix): New function.
40726         (Ada_Default_Impl_Suffix): New function.
40728         * snames.ads:
40729         Modification of predefined names for project manager: added
40730         Implementation, Specification_Exceptions, Implementation_Exceptions,
40731         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
40732         Default_Switches, _Languages, Builder, Cross_Reference,
40733         Finder. Removed Body_Part, Specification_Append, Body_Append,
40734         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
40735         Gnatlink.
40737         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40738         Add comments.
40740         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
40741         not that it is Nil_Variable_Value.
40743         * prj.ads: Add ??? for uncommented declarations
40745 2001-10-10  Ed Schonberg  <schonber@gnat.com>
40747         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
40748         constant, do not indicate possible modification, so that gigi can
40749         treat it as a bona fide constant.
40751 2001-10-10  Robert Dewar  <dewar@gnat.com>
40753         * sem_prag.adb: Add processing for pragma External.
40755         * snames.ads: Add entry for pragma External.
40757         * par-prag.adb: Add pragma External.
40759         * snames.adb: Updated to match snames.ads.
40761 2001-10-10  Ed Schonberg  <schonber@gnat.com>
40763         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
40764         a dynamic task if the allocator appears in an indexed assignment
40765         or selected component assignment.
40767         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
40768         For a dynamic task in an assignment statement, use target of
40769         assignment to generate meaningful name.
40771 2001-10-10  Ed Schonberg  <schonber@gnat.com>
40773         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
40774         a generic package.
40776         * einfo.ads: Body_Entity is also defined for generic package.
40777         Documentation change only
40779         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
40780         others_choice for a discriminated component initialization,
40781         convert discriminant references into the corresponding discriminals.
40783         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
40784         only if original type is private and expression has to be wrapped
40785         in a conversion.
40787         * checks.adb:
40788         (Apply_Constraint_Check): Do not perform length check
40789         if expression is an aggregate with only an others_choice.
40790         (Length_N_Cond): two references to the same in_parameter
40791         (typically the discriminal in an init_proc) denote the same value.
40792         Two useful optimization uncovered by bugfixes above.
40794 2001-10-10  Robert Dewar  <dewar@gnat.com>
40796         * xeinfo.adb: Change int to char in translation of enumeration types.
40797         This fixes a problem in the C representation of component alignment.
40798         Add 2001 to copyright notice
40800 2001-10-10  Richard Kenner  <kenner@gnat.com>
40802         * decl.c: (validate_size): Do check size of object of integral type
40803         if it is a packed array type.
40805 2001-10-10  Richard Kenner  <kenner@gnat.com>
40807         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
40808         VAR_DECL for constant if not Is_Public but -O0.
40810 2001-10-10  Richard Kenner  <kenner@gnat.com>
40812         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
40814 2001-10-10  Geert Bosch  <bosch@gnat.com>
40816         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
40817         use '/' as switch character, allowing for absolute file names.
40819 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
40821         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
40822         FSF address.
40824 2001-10-08  Geert Bosch  <bosch@gnat.com>
40826         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
40827         Automatically build utilities when files need to be regenerated.
40829 2001-10-08  Geert Bosch  <bosch@gnat.com>
40831         * xsnames.adb: New utility for updating snames.ads and snames.adb
40833 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
40835         * Make-lang.in (ADAFLAGS): Add -W -Wall.
40836         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
40837         (gnat1): Also depend on attribs.o.
40838         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
40839         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
40840         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
40841         (ADAFLAGS): Add -W -Wall.
40842         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
40843         take out CFLAGS.
40845         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
40846         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
40847         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
40848         Use $(ADAC), not $(CC), as compilation command.
40850         (gnattools): Depend directly on tools to build, don't use
40851         recursive make.
40852         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
40854         * einfo.h, sinfo.h: New files (autogenerated).
40856 2001-10-08  Richard Henderson  <rth@redhat.com>
40858         * comperr.adb (Abort_In_Progress): New.
40859         (Compiler_Abort): Use it to prevent recursion.
40861 2001-10-08  Robert Dewar  <dewar@gnat.com>
40863         * atree.adb: Set Error_Posted in Error node, helps error recovery.
40865         * par-endh.adb (Output_End_Expected): We should also not test
40866         Error_Posted on the Error node, since now it is always set.
40868         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
40869         to help error recovery. Part of general work on 9407-004.
40871         * par.adb: Add ??? for misuse of error
40873         * sem_res.adb:
40874         (Resolve): Defend against Error, fixes 9407-003.
40875         (Resolve_Discrete_Subtype_Indication): Defend against Error.
40877         * sinfo.ads (N_Error): Now has Etype field (which will be set
40878         to Any_Type to help error recovery).
40880 2001-10-08  Richard Kenner  <kenner@gnat.com>
40882         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
40883         Consistently set MEM attributes from expression; fixes
40884         bootstrap failure on x86.
40886 2001-10-08  Geert Bosch  <bosch@gnat.com>
40888         * 5oosinte.adb: Add 2001 to copyright notice.
40890 2001-10-08  Geert Bosch  <bosch@gnat.com>
40892         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
40894         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
40896 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
40898         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
40900 2001-10-05  Geert Bosch  <bosch@gnat.com>
40902         * adaint.h: Small formatting fix.
40904 2001-10-04  Geert Bosch  <bosch@gnat.com>
40906         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
40907         Arg is int, not FILE *, in dummy version of functions.
40909         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
40910         Arg is int, not FILE *.
40912 2001-10-04  Geert Bosch  <bosch@gnat.com>
40914         * 3lsoccon.ads: Added file, missed with initial check ins.
40916         * 4lintnam.ads: Fix header format.
40917         Change Linux to GNU/Linux.
40919         * 5iosinte.adb: Change Linux to GNU/Linux.
40921         * 5iosinte.ads: Change Linux to GNU/Linux.
40923         * 5itaprop.adb: Change Linux to GNU/Linux.
40925         * 5itaspri.ads: Change Linux to GNU/Linux.
40926         Update copyright notice.
40928         * 5lintman.adb: Change Linux to GNU/Linux.
40930         * 5lml-tgt.adb: Change Linux to GNU/Linux.
40932         * 5losinte.ads: Change Linux to GNU/Linux.
40934         * 5lsystem.ads: Change Linux to GNU/Linux.
40936         * 5qosinte.adb: Change Linux to GNU/Linux.
40938         * 5qosinte.ads: Change Linux to GNU/Linux.
40940         * 5qparame.ads: Change Linux to GNU/Linux.
40942         * 5qtaprop.adb: Change Linux to GNU/Linux.
40944         * 5qtaspri.ads: Change Linux to GNU/Linux.
40945         Add 2001 to copyright notice.
40947         * 5vintman.ads: Change Linux to GNU/Linux.
40948         Fix header format.  Add 2001 to copyright notice.
40950         * g-soccon.ads: Change Linux to GNU/Linux.
40952         * g-trasym.ads: Change Linux to GNU/Linux.
40953         Add 2001 to copyright notice.
40955         * memtrack.adb: Change Linux to GNU/Linux.
40957         * s-intman.ads: Change Linux to GNU/Linux.
40958         Add 2001 to copyright notice.  Fix header format.
40960         * s-stache.adb: Change Linux to GNU/Linux.
40962         * adaint.c: Change Linux to GNU/Linux.
40964         * cio.c: Change Linux to GNU/Linux.
40966         * cstreams.c: Change Linux to GNU/Linux.
40968         * init.c: Change Linux to GNU/Linux.
40970         * gmem.c: Change Linux to GNU/Linux.
40972         * tracebak.c: Change Linux to GNU/Linux.
40975 2001-10-02  Geert Bosch  <bosch@gnat.com>
40977         * misc.c (insert_default_attributes): Add dummy version.