2008-07-28 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / ada / ChangeLog
bloba4859fd744ebd82ae815039e468542311d2e7420
1 2008-07-28  Richard Guenther  <rguenther@suse.de>
3         Merge from gimple-tuples-branch.
5         2008-07-22  Olivier Hainque  <hainque@adacore.com>
7         * gigi.h (end_subprog_body): New ELAB_P argument, saying if
8         this is called for an elab proc to be discarded if empty.
9         * utils.c (end_subprog_body): Honor ELAB_P.
10         (build_function_stub): Adjust call to end_subprog_body.
11         * trans.c (Subprogram_Body_to_gnu): Likewise.
12         (gigi): Reorganize processing of elab procs to prevent
13         gimplifying twice, using the new end_subprog_body argument.
15         2008-07-19  Richard Guenther  <rguenther@suse.de>
17         * Make-lang.in (trans.o): Add tree-iterator.h dependency.
18         (utils.o): Likewise.
19         * trans.c: Include tree-iterator.h.
20         (gnat_gimplify_expr): Adjust prototype.  Fix typo.
21         (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
22         (set_expr_location_from_node): Likewise.
23         (gigi): Tuplify.
24         * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
25         of GENERIC_NEXT.
26         * utils.c: Include tree-iterator.h.
27         * gigi.h (gnat_gimplify_expr): Adjust prototype.
29         2008-07-18  Aldy Hernandez  <aldyh@redhat.com>
31         * trans.c: Include gimple.h instead of tree-gimple.h.
32         * utils.c: Same.
34         2008-07-14  Aldy Hernandez  <aldyh@redhat.com>
36         * trans.c (gnat_gimplify_expr): Use gimplify_assign.
38 2008-07-25  Jan Hubicka  <jh@suse.cz>
40         * utils.c (end_subprog_body): Remove inline trees check.
41         * misc.c (gnat_post_options): Do not set flag_inline_trees.
43 2008-07-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
45         * raise-gcc.c: Move tsystem.h before tm.h.
47 2008-07-20  Arnaud Charlet  <charlet@adacore.com>
49         * gnathtml.pl: New file.
51 2008-07-19  Olivier Hainque  <hainque@adacore.com>
53         * targtyps.c (get_target_default_allocator_alignment): Use
54         MALLOC_ABI_ALIGNMENT.
56 2008-07-17  Olivier Hainque  <hainque@adacore.com>
58         * adaint.c (__MINGW32__ section): Include ctype.h and define
59         a fallback ISALPHA if IN_RTS.
60         (__gnat_is_absolute_path): Use ISALPHA instead of isalpha. 
62 2008-07-17  Olivier Hainque  <hainque@adacore.com>
64         * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
65         argument, to apply to references in addition to definitions.  Prevent
66         setting TREE_STATIC on externals.
67         (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
69 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71         PR documentation/15479
72         * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
73         Replace backets around optional parameters with @ovar
74         where possible, use @r{[}, @r{]} otherwise.
75         Replace some @r, @i, and @emph with @var where appropriate.
77 2008-07-02  Eric Botcazou  <ebotcazou@adacore.com>
79         * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
81 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
83         * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
84         -Wc++-compat warnings.
85         * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
86         __gnat_locate_exec_on_path): Likewise.
87         * decl.c (annotate_value): Likewise.
88         * misc.c (gnat_handle_option): Likewise.
89         * trans.c (gnat_to_gnu, extract_encoding, decode_name,
90         post_error_ne_tree): Likewise.
92 2008-06-27  Eric Botcazou  <ebotcazou@adacore.com>
94         * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
95         version of its type, attempt to first convert its elements.
97 2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>
99         * Makefile.in: Fix *86 kfreebsd target specific pairs.
101 2008-06-25  Samuel Tardieu  <sam@rfc1149.net>
103         * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
105 2008-06-24  Eric Botcazou  <ebotcazou@adacore.com>
107         * utils2.c (known_alignment): Derive the alignment from pointed-to
108         types only if it is otherwise unknown.
109         <INTEGER_CST>: Tidy.
110         <MULT_EXPR>: Likewise.
111         <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
112         that of the base.
114 2008-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
116         PR ada/36573
117         * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
119 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
121         * gnat_rm.texi (Implementation Defined Characteristics)
122         (Standard Library Routines): Use @smallexample for indented
123         text.  Drop Indentation outside examples.
124         * gnat_ugn.texi: Likewise.
126 2008-06-13  Olivier Hainque  <hainque@adacore.com>
128         * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
129         if undefined.
130         (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
131         realignment with force_align_arg_pointer attribute on foreign
132         convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
133         
134 2008-06-13  Olivier Hainque  <hainque@adacore.com>
136         * utils.c (rest_of_record_type_compilation): When computing
137         encodings for the components of a variable size type, early
138         strip conversions on the current position expression to make
139         sure it's shape is visible.  Use remove_conversions for this
140         purpose.
142 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
144         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
145         constrained subtype of a discriminated type, discard the fields that
146         are beyond its limits according to its size.
148 2008-06-10  Olivier Hainque  <hainque@adacore.com>
150         * utils.c (create_subprog_decl): If this is for the 'main' entry
151         point according to the asm name, redirect main_identifier_node.
153 2008-06-09  Eric Botcazou  <ebotcazou@adacore.com>
155         * decl.c (components_to_record): Adjust the packedness for the
156         qualified union as well.
158 2008-06-09  Arnaud Charlet  <charlet@adacore.com>
160         * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
161         checks non fatal.
163 2008-06-07  Samuel Tardieu  <sam@rfc1149.net>
165         * sem_res.adb (Large_Storage_Type): A type is large if it
166         requires as many bits as Positive to store its values and its
167         bounds are known at compile time.
168         * sem_ch13.adb (Minimum_Size): Note that this function returns
169         0 if the size is not known at compile time.
171 2008-06-06  Nicolas Setton  <setton@adacore.com>
172             Olivier Hainque  <hainque@adacore.com>
174         * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
175         attribute, parallel descriptive type attached to another
176         type for debug info generation purposes.
177         * utils.c (add_parallel_type): New function, register
178         parallel type to be attached to a type.
179         (get_parallel_type): New function, fetch a registered
180         parallel type, if any.
181         (rest_of_record_type_compilation): Register the parallel
182         type we make for variable size records.
183         * gigi.h (add_parallel_type, get_parallel_type): Declare.
184         * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
185         parallel debug types we make.
186         * trans.c (extract_encoding, decode_name): New functions.
187         (gigi): If the DWARF attribute extensions are available, setup
188         to use them.
189         * lang.opt: Register language specific processing request
190         for -gdwarf+.
191         * misc.c (gnat_dwarf_extensions): New global variable. How much
192         do we want of our DWARF extensions. 0 by default.
193         (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
194         (gnat_post_options): Map gnat_dwarf_extensions to the
195         commonuse_gnu_debug_info_extensions for later processing.
196         
197 2008-06-04  Samuel Tardieu  <sam@rfc1149.net>
199         * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
201 2008-06-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
203         * Makefile.in (common_tools): Fix typos in $(exeext) extension.
204         * gnat_ugn.texi (Style Checking)
205         (Adding the Results of Compiler Checks to gnatcheck Output)
206         (Example of Binder Output File): Fix typos.
207         * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
208         exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
209         s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
210         s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
211         sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
212         sinfo.ads, utils.c: Fix typos in comments.
213         * sem_ch6.adb, vms_data.ads: Fix typos in strings.
215 2008-05-29  Thomas Quinot  <quinot@adacore.com>
217         * sem_eval.adb: Minor reformatting
219 2008-05-29  Ed Schonberg  <schonberg@adacore.com>
221         * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
222         is abstract, do not apply abstractness check on subprogram if this is
223         a renaming declaration.
225 2008-05-29  Arnaud Charlet  <charlet@adacore.com>
227         PR ada/864
228         * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
229         allow recognition of program suffix in addition to prefix.
230         
231         * gnatchop.adb (Locate_Executable): Add support for prefix.
232         
233         * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
234         mlib-utl.adb: Adjust calls to Program_Name.
236 2008-05-29  Robert Dewar  <dewar@adacore.com>
238         * sem_ch3.adb: Minor reformatting
239         * sem_prag.adb: Minor reformatting
240         * sem_res.adb: Minor reformatting
241         * sinput-p.ads: Minor reformatting
243 2008-05-29  Javier Miranda  <miranda@adacore.com>
245         * sem_util.adb:
246         (Abstract_Interface_List): Add missing support for full type-declaration
247         associated with synchronized types.
249 2008-05-29  Robert Dewar  <dewar@adacore.com>
251         * sem_eval.adb (Is_Same_Value): Take care of several more cases
253 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
255         * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
256         access type, wrap the expression in a conversion to force an
257         accessibility check.
259         * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
260         accessibility checks even when expansion is disabled in order to
261         generate messages in the presence of previous errors or in
262         semantics-only mode.
264 2008-05-28  Eric Botcazou  <ebotcazou@adacore.com>
266         * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
267         * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
269 2008-05-28  Vincent Celier  <celier@adacore.com>
271         PR ada/34446
272         * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
273         preprocessing expressions
275 2008-05-28  Vincent Celier  <celier@adacore.com>
277         * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
278         for preprocessing
279         
280         * sinput-p.ads: Minor comment update and reformatting
282 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
284         * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
285         type has a deeper level than any master only when it is the type of an
286         access parameter.
288 2008-05-28  Javier Miranda  <miranda@adacore.com>
290         * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
292 2008-05-28  Javier Miranda  <miranda@adacore.com>
294         * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
295         * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
296         * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
297         Add code that was previously located in
298         Find_Overridden_Synchronized_Primitive because it is only used here.
300 2008-05-28  Sergey Rybin  <rybin@adacore.com>
302         * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
303         Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
305 2008-05-28  Robert Dewar  <dewar@adacore.com>
307         * restrict.ads:
308         Add missing restrictions, and properly label all GNAT defined ones
309         
310         * rtsfind.ads:
311         Add entry for Ada_Real_Time.Timing_Events.Timing_Event
312         Add entry for Ada.Task_Termination.Set_Specific_Handler
313         Add entry for Ada.Task_Termination.Specific_Handler
314         
315         * s-rident.ads:
316         Add missing restrictions and properly mark all gnat defined ones
317         
318         * sem_ch3.adb:
319         (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
320         
321         * sem_res.adb:
322         (Resolve_Call): Check violation of No_Specific_Termination_Handlers
324         * gnat_rm.texi: Add missing restrictions, and properly label all
325         GNAT defined ones
327 2008-05-28  Robert Dewar  <dewar@adacore.com>
329         * restrict.adb:
330         (Check_Restriction): violation of restriction No_Finalization is
331         treated as a serious error to stop expansion
333 2008-05-28  Robert Dewar  <dewar@adacore.com>
335         * exp_util.adb: Minor reformatting
336         * exp_util.ads: Minor reformatting.
338 2008-05-28  Arnaud Charlet  <charlet@adacore.com>
340         * Make-lang.in: Remove gprmake.
342         * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
344 2008-05-28  Ed Schonberg  <schonberg@adacore.com>
346         * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
347         improper progenitor names, and avoid cascaded errors.
349 2008-05-28  Robert Dewar  <dewar@adacore.com>
351         * gnat_rm.texi: Add note on Old giving warning when applied to constant
353         * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
354         a constant
356 2008-05-28  Robert Dewar  <dewar@adacore.com>
358         * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
359         size
361 2008-05-28  Robert Dewar  <dewar@adacore.com>
363         * exp_ch5.adb:
364         (Expand_Simple_Function_Return): Copy unaligned result into temporary
366 2008-05-28  Javier Miranda  <miranda@adacore.com>
368         * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
369         for user-defined predefined primitives.
370         
371         * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
372         (Find_Overridden_Synchronized_Primitive): Ditto.
374         * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
376 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
378         * a-ststio.adb, s-direio.adb:
379         Further code clean up of previous change.
380         Update comments.
382 2008-05-27  Vincent Celier  <celier@adacore.com>
384         * prj-nmsc.adb: Minor reformatting
386 2008-05-27  Bob Duff  <duff@adacore.com>
388         * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
389         untagged private type with a tagged full type, where the full type has
390         a self reference, create the corresponding class-wide type early, in
391         case the self reference is "access T'Class".
393 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
395         * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
396         tasks and context is an object declaration. create master entity before
397         expansion.
399 2008-05-27  Robert Dewar  <dewar@adacore.com>
401         * mlib-prj.adb: Minor reformatting
403         * prj-part.adb: Minor reformatting
405         * prj.ads: Minor reformatting
407         * exp_ch3.adb: Minor reformatting.
409         * sem_ch3.ads: Minor reformatting
411         * sem_eval.adb: Minor reformatting
413 2008-05-27  Vincent Celier  <celier@adacore.com>
415         * gnatcmd.adb:
416         <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
418 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
420         * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
421         tasks, create an activation chain now, before the expansion into
422         assignments and build-in-place calls that require the presence of an
423         activation chain.
424         (Backend_Processing_Possible): If the component type is inherently
425         limited, the aggregate must be expanded into individual built-in-place
426         assignments.
428         * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
429         determine whether an allocation extra parameter must be built, to
430         handle case of a private type whose full type is a discriminated type
431         with defaults.
433 2008-05-27  Bob Duff  <duff@adacore.com>
435         * gnat_rm.texi:
436         Document the new behavior regarding trampolines.
438 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
440         * a-direio.adb, a-sequio.adb: Replace address clause by
441         unrestricted_access, simpler and compatible with .NET.
443 2008-05-27  Vincent Celier  <celier@adacore.com>
445         * prj-part.adb:
446         (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
447         a project file, so that symbolic links are not resolved.
449 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
451         * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
452         Replace heavy address clause by 'Unrestricted_Access, cleaner and more
453         portable across GNAT targets, since this kind of address clause is not
454         supported by VM back-ends (.NET/JGNAT).
456 2008-05-27  Arnaud Charlet  <charlet@adacore.com>
458         * bindgen.adb: Update comments.
459         
460         * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
462 2008-05-27  Vincent Celier  <celier@adacore.com>
464         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
465         prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
466         mlib-tgt.adb, prj-env.adb, prj-env.ads:
467         (Path_Information): New record type
468         Use component of type Path_Information when there are two paths, one in
469         canonical format and one in display format.
470         Update the project manager to these new components.
472 2008-05-27  Robert Dewar  <dewar@adacore.com>
474         * makeutl.adb: Minor reformatting
475         * prj-nmsc.adb: Minor reformatting
476         * s-stausa.adb: Minor reformatting
477         * s-stausa.ads: Minor reformatting
478         * sem_ch6.adb: Minor reformatting
480 2008-05-27  Thomas Quinot  <quinot@adacore.com>
482         * sem_res.adb: Minor comment fixes
484 2008-05-27  Thomas Quinot  <quinot@adacore.com>
486         * makeutl.adb: Minor code reorganization
488         * exp_aggr.adb: Add ??? comment
489         Fix typo
491         * exp_ch6.adb: Minor reformatting
493 2008-05-27  Quentin Ochem  <ochem@adacore.com>
495         * s-stausa.adb (Initialize): Updated result initialization, and
496         initialization of environment stack.
497         (Fill_Stack): Improved computation of the pattern zone, taking into
498         account already filled at the calling point.
499         (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
500         Measure and Overflow_Guard.
501         (Report_Result): Fixed computation of the result using new fields of
502         Stack_Analyzer.
503         
504         * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
505         params by more explicit Stack_Size / Max_Pattern_Size params.
506         (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
507         Added Stack_Used_When_Filling field.
508         (Task_Result): Replaced Measure / Overflow_Guard by more explicit
509         Min_Measure and Max_Measure fields.
510         
511         * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
513 2008-05-27  Vincent Celier  <celier@adacore.com>
515         * prj-nmsc.adb:
516         (Check_File): Make sure that a unit that replaces the same unit in a
517          project being extended is properly processed.
519 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
521         * sem_ch3.adb:
522         (Get_Discr_Value): Remove obsolete code that failed to find the value
523         of a discriminant for an inherited task component appearing in a type
524         extension.
526 2008-05-27  Thomas Quinot  <quinot@adacore.com>
528         (System.File_IO.{Close, Delete, Reset}):
529         Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
530         
531         (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
532         Pass File parameter by reference.
534 2008-05-27  Vincent Celier  <celier@adacore.com>
536         * prj-nmsc.adb:
537         (Process_Sources_In_Multi_Language_Mode): Check that there are not two
538         sources of the same project that have the same object file name.
539         (Find_Explicit_Sources): Always remove a source exception that was not
540         found.
542 2008-05-27  Thomas Quinot  <quinot@adacore.com>
544         * sem_ch3.adb: Minor reformatting
546 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
548         * sem_ch6.adb:
549         (Is_Interface_Conformant): Handle properly a primitive operation that
550         overrides an interface function with a controlling access result.
551         (Type_Conformance): If Skip_Controlling_Formals is true, when matching
552         inherited and overriding operations, omit as well the conformance check
553         on result types, to prevent spurious errors.
555 2008-05-27  Vincent Celier  <celier@adacore.com>
557         * makeutl.ads, makeutl.adb:
558         (Set_Location): New procedure
559         (Get_Location): New function
560         (Update_Main): New procedure
562 2008-05-27  Vincent Celier  <celier@adacore.com>
564         * prj-nmsc.adb:
565         (Check_Library): Allow standard project to be extended as a static
566         library project.
567         (Get_Mains): Do not inherit attribute Main in an extending library
568         project.
570 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
572         * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
573         * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
574         * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
575         * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
576         * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
577         * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
578         * system-mingw.ads (Always_Compatible_Rep): Likewise.
579         * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
580         * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
581         * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
582         
583 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
585         * sem_attr.adb: add guard to previous patch.
587 2008-05-27  Ed Schonberg  <schonberg@adacore.com>
589         * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
590         a synchronized tagged type, do not attempt to build dispatch table for
591         full view. The table is built for the corresponding record type, which
592         has its own declaration.
594 2008-05-27  Gary Dismukes  <dismukes@adacore.com>
596         * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
597         to the known type entity E, rather than setting it to Any_Type. Fixes
598         possible blowup in function Base_Init_Proc, as called from Freeze_Entity
599         for objects whose type had an illegal constraint.
601 2008-05-27  Vincent Celier  <celier@adacore.com>
603         * gnat_ugn.texi:
604         Add succinct documentation for attribute Excluded_Source_List_File
606 2008-05-27  Vincent Celier  <celier@adacore.com>
608         * prj-attr.adb: Add new project level attribute Map_File_Option
609         
610         * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
611         
612         * prj.ads: Minor reformatting and comment update
613         (Project_Configuration): New component Map_File_Option
614         
615         * snames.adb: New standard name Map_File_Option
616         
617         * snames.ads: New standard name Map_File_Option
619 2008-05-27  Vincent Celier  <celier@adacore.com>
621         * xsnames.adb: Remove unused variable Oname
623 2008-05-27  Doug Rupp  <rupp@adacore.com>
625         * exp_ch6.adb:
626         (Expand_N_Function_Call): Fix comments. Minor reformatting.
628         * exp_vfpt.ads:
629         (Expand_Vax_Foreign_Return): Fix comments.
631 2008-05-27  Thomas Quinot  <quinot@adacore.com>
633         * exp_dist.adb: Minor reformating
635 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
637         * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
638         No_Default_Initialization, which is now delayed until the freeze point
639         of the object. Add a comment about deferral of the check.
640         
641         * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
642         on objects is moved here.
644 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
646         * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
647         (Compare_Array_S16): Adjust for above change.
648         * s-casi32.adb (Uword): Likewise.
649         (Compare_Array_S32): Likewise.
650         * s-casi64.adb (Uword): Likewise.
651         (Compare_Array_S64): Likewise.
652         * s-caun16.adb (Uhalf): Likewise.
653         (Compare_Array_U16): Likewise.
654         * s-caun32.adb (Uword): Likewise.
655         (Compare_Array_U32): Likewise.
656         * s-caun64.adb (Uword): Likewise.
657         (Compare_Array_U64): Likewise.
658         
659 2008-05-26  Robert Dewar  <dewar@adacore.com>
661         * exp_ch6.adb: Add ??? comment for previous change
663         * exp_vfpt.adb: Minor reformatting
665         * exp_vfpt.ads: Add ??? comment for last change
667         * sem_attr.adb: Add some ??? comments for previous change
669         * s-vaflop.ads: Add comments for previous change
671 2008-05-26  Doug Rupp  <rupp@adacore.com>
673         * s-vaflop-vms-alpha.adb:
674         Remove System.IO use clause, to prevent spurious ambiguities when
675         package is access through rtsfind.
677 2008-05-26  Sergey Rybin  <rybin@adacore.com>
679         * tree_io.ads (ASIS_Version_Number): Update because of the changes
680         made in front-end
682 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
684         * sem_attr.adb:
685         (Resolve_Attribute, case 'address):  S (A .. B)' address can be safely
686         converted to S (A)'address only if A .. B is known to be a non-null
687         range.
689 2008-05-26  Doug Rupp  <rupp@adacore.com>
691         * s-vaflop.adb:
692         (Return_D, Return_F, Return_G): New functions.
694         * s-vaflop.ads:
695         (Return_D, Return_F, Return_G): New functions.
697         * exp_vfpt.adb:
698         (Expand_Vax_Foreign_Return): New procedure
700         * exp_vfpt.ads:
701         (Expand_Vax_Foreign_Return): New procedure
703         * rtsfind.ads:
704         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
705         (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
707         * exp_ch6.adb:
708         Import Exp_Vfpt
709         (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
711         * s-vaflop-vms-alpha.adb:
712         (Return_D, Return_F, Return_G): New functions.
714 2008-05-26  Gary Dismukes  <dismukes@adacore.com>
716         * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
717         init proc entity when there is actual default initialization associated
718         with the component type, to avoid spurious errors on objects of scalar
719         array types that are marked Is_Public when No_Default_Initialization
720         applies.
722 2008-05-26  Thomas Quinot  <quinot@adacore.com>
724         * rtsfind.ads, rtsfind.adb:
725         (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
726         (Check_RPC): Support per-PCS-kind API versioning.
727         
728         exp_dist.ads, exp_dist.adb:
729         (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
730         (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
731          library function Get_RACW.
732         (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
733         library function Get_Reference.
734         (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
735         through an intermediate Any.
736         (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
737         going through an intermediate Any.
738         
739         * sem_dist.adb: Minor reformatting.
741 2008-05-26  Javier Miranda  <miranda@adacore.com>
743         * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
744         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
745         (Is_Internal): Adding documentation on internal entities that have
746         attribute Interface_Alias (old attribute Abstract_Interface_Alias)
748         * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
749         (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
750         Added assertion to force entities with this attribute to have
751         attribute Is_Internal set to True.
752         (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
754         * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
755         renamed as Derive_Progenitor_Subprograms. In addition, its code is
756         a new implementation.
757         (Add_Interface_Tag_Components): Remove special management of
758         synchronized interfaces.
759         (Analyze_Interface_Declaration): Minor reformating
760         (Build_Derived_Record_Type): Minor reformating
761         (Check_Abstract_Overriding): Avoid reporting error in case of abstract
762         predefined primitive inherited from interface type because the body of
763         internally generated predefined primitives of tagged types are generated
764         later by Freeze_Type
765         (Derive_Subprogram): Avoid generating an internal name if the parent
766         subprogram overrides an interface primitive.
767         (Derive_Subprograms): New implementation that keeps separate the
768         management of tagged types not implementing interfaces, from tagged
769         types that implement interfaces.
770         (Is_Progenitor): New implementation.
771         (Process_Full_View): Add documentation
772         (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
773         by call to Derive_Progenitor_Subprograms.
775         * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
776         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
777         Skip_Controlling_Formals.
779         * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
780         (Check_Conventions): New implementation. Remove local subprogram
781         Skip_Check. Remove formal Search_From of routine Check_Convention.
782         (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
783         Skip_Controlling_Formals.
784         (New_Overloaded_Entity): Enable addition of predefined dispatching
785         operations.
787         * sem_disp.ads
788         (Find_Primitive_Covering_Interface): New subprogram.
790         * sem_disp.adb (Check_Dispatching_Operation): Disable registering
791         the task body procedure as a primitive of the corresponding tagged
792         type.
793         (Check_Operation_From_Private_Type): Avoid adding twice an entity
794         to the list of primitives.
795         (Find_Primitive_Covering_Interface): New subprogram.
796         (Override_Dispatching_Operation): Add documentation.
798         * sem_type.adb (Covers): Minor reformatings
800         * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
801         Collect_Interfaces.
802         Rename formal.
803         (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
804         (Implements_Interface): New subprogram.
805         (Is_Parent): Removed.
806         (Primitive_Names_Match): New subprogram.
807         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
808         (Ultimate_Alias): New subprogram.
810         * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
811         Collect_Interfaces.
812         Remove special management for synchronized types. Rename formal. Remove
813         internal subprograms Interface_Present_In_Parent and Add_Interface.
814         (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
815         on non-record types by code to return false in such case.
816         (Implements_Interface): New subprogram.
817         (Is_Parent): Removed. No special management is now required for
818         synchronized types covering interfaces.
819         (Primitive_Names_Match): New subprogram.
820         (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
821         (Ultimate_Alias): New subprogram.
823         * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
824         Add internal entities associated with secondary dispatch tables to
825         the list of tagged type primitives that are not interfaces.
826         (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
827         (Make_Predefined_Primitive_Specs): Code reorganization to improve
828         the management of predefined equality operator. In addition, if
829         the type has an equality function corresponding with a primitive
830         defined in an interface type, the inherited equality is abstract
831         as well, and no body can be created for it.
833         * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
834         exp_util to exp_disp.
835         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
836         an entity corresponds with one of the predefined primitives required
837         to implement interfaces.
838         Update copyright notice.
840         * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
841         final check on abstract subprograms all the primitives associated with
842         interface primitives because they must be visible in the public and
843         private part.
844         (Write_DT): Use Find_Dispatching_Type to locate the name of the
845         interface type. This allows the use of this routine, for debugging
846         purposes, when the tagged type is not fully decorated.
847         (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
848         Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
849         (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
850         entity corresponds with one of the predefined primitives required to
851         implement interfaces.
853         * exp_util.adb (Find_Interface_ADT): New implementation
854         (Find_Interface): Removed.
856         * sprint.adb (Sprint_Node_Actual): Generate missing output for the
857         list of interfaces associated with nodes
858         N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
860 2008-05-26  Thomas Quinot  <quinot@adacore.com>
862         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
863         condition for assignment to temporary.
865 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
867         * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
868         checks on the upper bound if the index type is a modular type, to
869         prevent wrap-around computations when size is close to upper bound of
870         type.
872 2008-05-26  Robert Dewar  <dewar@adacore.com>
874         * sem_ch3.adb: Minor reformatting
876 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
878         * sem_ch12.adb (Remove_Parent): Use specification of instance
879         to retrieve generic parent,
880         to handle properly the case where the instance is a child unit.
881         Add guard to handle properly wrapper packages.
882         Minor reformatting
884 2008-05-26  Thomas Quinot  <quinot@adacore.com>
886         * sinfo.ads: Minor reformatting
888 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
890         * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
891         Generate a tag check when the result subtype of a function, defined by
892         an access definition, designates a specific tagged type.
893         (Make_Tag_Check): New routine.
895 2008-05-26  Arnaud Charlet  <charlet@adacore.com>
897         * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
899 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
901         * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
902         (builtin_decl_for): Likewise.
903         * trans.c (gigi): Likewise.
904         * utils.c (def_builtin_1): Fix formatting.
906 2008-05-26  Hristian Kirtchev  <kirtchev@adacore.com>
908         * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
909         Create the statements which map a string name to protected or task
910         entry indix.
912         * exp_ch9.adb: Add with and use clause for Stringt.
913         Minor code reformatting.
914         (Build_Entry_Names): New routine.
915         (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
916         for flag Build_Entry_Names which controls the allocation of the data
917         structure for the string names of entries.
919         * exp_ch9.ads (Build_Entry_Names): New subprogram.
921         * exp_util.adb (Entry_Names_OK): New function.
923         * exp_util.ads (Entry_Names_OK): New function.
925         * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
926         enumerations RE_Id and RE_Unit_Table.
928         * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
929         (Free_Entry_Names_Array): New routine.
931         * s-taskin.ads: Comment reformatting.
932         Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
933         Add component Entry_Names to record Ada_Task_Control_Block.
934         (Free_Entry_Names_Array): New routine.
936         * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
937         dynamically allocate an array
938         of string pointers. This structure holds string entry names.
939         (Free_Entry_Names): New routine.
940         (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
941         (Set_Entry_Names): New routine.
943         * s-tassta.ads:
944         (Create_Task): Add formal Build_Entry_Names. The flag is used to
945         control the allocation of the data structure which stores entry names.
946         (Set_Entry_Name): New routine.
948         * s-tpoben.adb:
949         Add with and use clause for Ada.Unchecked_Conversion.
950         (Finalize): Deallocate the entry names array.
951         (Free_Entry_Names): New routine.
952         (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
953         create an array of string pointers to hold the entry names.
954         (Set_Entry_Name): New routine.
956         * s-tpoben.ads:
957         Add field Entry_Names to record Protection_Entries.
958         (Initialize_Protection_Entries): Add formal Build_Entry_Names.
959         (Set_Entry_Name): New routine.
961 2008-05-26  Vincent Celier  <celier@adacore.com>
963         * prj-nmsc.adb:
964         (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
966         * prj.ads:
967         (Project_Configuration): New component Shared_Lib_Driver
969 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
971         * inline.adb:
972         (Cleanup_Scopes): For a protected operation, transfer finalization list
973         to protected body subprogram, to force cleanup actions when needed.
975 2008-05-26  Robert Dewar  <dewar@adacore.com>
977         * sem_cat.adb: Minor reformatting
979         * gnatname.adb: Minor reformatting
981         * osint.ads: Minor reformatting
983         * s-carun8.ads: Minor reformatting
985         * g-heasor.ads: Minor comment fix (unit is now pure)
987 2008-05-26  Robert Dewar  <dewar@adacore.com>
989         * exp_ch2.adb:
990         (Expand_Current_Value): Properly type generated integer literal
992 2008-05-26  Sergey Rybin  <rybin@adacore.com>
994         * gnat_ugn.texi: Add description for the new gnatcheck rule -
995         Separate_Numeric_Error_Handlers.
997 2008-05-26  Pascal Obry  <obry@adacore.com>
999         * sem_aggr.adb: Minor reformatting.
1001 2008-05-26  Jose Ruiz  <ruiz@adacore.com>
1003         * s-osinte-aix.adb:
1004         (To_Target_Priority): Setting the time slice value to 0 or greater sets
1005         the scheduling policy to FIFO within priorities or round-robin
1006         respectively.
1007         Hence, the priority must be set in this case to the one selected by the
1008         user.
1009         
1010 2008-05-26  Ed Schonberg  <schonberg@adacore.com>
1012         * sem_ch12.adb:
1013         (Remove_Parent): If the enclosing scope is an instance whose generic
1014         parent is declared within some parent scope of the just completed
1015         instance, make full views of the entities in that parent visible, when
1016         applicable.
1017         
1018 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
1020         * mingw32.h (STD_MINGW): Set to true for target w64.
1022 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1024         * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
1025         instead of TREE_STATIC on the ADDR_EXPR.
1027 2008-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1029         * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
1030         (Sloc_to_locus): Do not overwrite known GCC locations when translating
1031         GNAT standard locations.
1033 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
1035         * gigi.h (mark_visited): Declare.
1036         * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
1037         only the topmost node of expressions.
1038         (elaborate_expression_1): Look deeper for read-only variables.
1039         * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
1040         (mark_visited): Move logic to mark_visited_r.  Invoke walk_tree.
1041         (mark_visited_r): New function.
1043 2008-05-23  Vincent Celier  <celier@adacore.com>
1045         * snames.adb: New standard name Excluded_Source_List_File.
1047         * snames.ads: New standard name Excluded_Source_List_File.
1049         * prj-attr.adb: New project level attribute Excluded_Source_List_File.
1051         * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
1052         Get excluded sources from
1053         file indicated by attribute Excluded_Source_List_File, when present and
1054         neither Excluded_Source_Files nor Locally_Removed_Files are declared.
1056 2008-05-23  Robert Dewar  <dewar@adacore.com>
1058         * exp_dist.adb: Minor reformatting
1060 2008-05-23  Ed Schonberg  <schonberg@adacore.com>
1062         * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
1063         slice, convert it to an indexed component, which is equivalent, more
1064         efficient, and usable even if the slice itself is not addressable.
1066 2008-05-23  Olivier Hainque  <hainque@adacore.com>
1068         * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
1069         convention also allows access to named compiler built-in subprograms
1070         such as the GCC __builtin family.
1072 2008-05-23  Vincent Celier  <celier@adacore.com>
1074         * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
1075         sep. If there are several possibilities, choose the one with the
1076         longer prefix.
1078 2008-05-23  Vincent Celier  <celier@adacore.com>
1080         * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
1081         back end switches when executable specified with --GCC= is same as
1082         default, even if there are additional options.
1084         * gnat_ugn.texi:
1085         Document when the back end switches from the ALI file are taken into
1086         account when gnatlink is invoked with --GCC=
1088 2008-05-23  Thomas Quinot  <quinot@adacore.com>
1090         * s-os_lib.adb:
1091         (copy_File): Do not open destination file if source file is unreadable.
1093 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
1095         * utils.c (handle_type_generic_attribute): Adjust to accept
1096         fixed arguments before an elipsis.
1098 2008-05-21  Thomas Quinot  <quinot@adacore.com>
1100         * g-sothco.ads, g-sothco.adb: New files.
1102 2008-05-20  Thomas Quinot  <quinot@adacore.com>
1104         * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
1106         * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
1107         Add missing "with" of Ada.Unchecked_Conversion
1109         * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads, 
1110         g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads, 
1111         g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads, 
1112         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads, 
1113         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads, 
1114         g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads: 
1115         Move common code out of GNAT.Sockets.Thin implementations and into
1116         Thin_Common.
1117         New constant SIZEOF_fd_set
1118         New flag Has_Sockaddr_Len
1119         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1121         * g-stsifd-sockets.adb
1122         (Create): Remove call to Set_Length; use Set_Family to set the family
1123         and (on appropriate platforms) length fields in struct sockaddr.
1125         * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb, 
1126         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb, 
1127         g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
1128         Move common code out of GNAT.Sockets.Thin implementations and into
1129         Thin_Common.
1131         * g-socket.ads, g-socket.adb: 
1132         Move common code out of GNAT.Sockets.Thin implementations and into
1133         Thin_Common.
1134         (Connect_Socket, Accept_Socket): Provide new versions of these two
1135         routines that operate with a user specified timeout.
1136         (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
1137         this is now handled automatically by Set_Family on platforms that
1138         require it.
1140         * gen-soccon.c: 
1141         Move common code out of GNAT.Sockets.Thin implementations and into
1142         Thin_Common.
1143         (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
1144         this constant to 0 (not -1) because we use it to initialize an
1145         unsigned_char value.
1146         Align values for numeric constants only.
1147         Handle the case of systems that do not support AF_INET6.
1148         New constant SIZEOF_fd_set
1149         New flag Has_Sockaddr_Len
1150         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1152         * gsocket.h: New flag Has_Sockaddr_Len
1153         New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1155 2008-05-20  Santiago Uruena  <uruena@adacore.com>
1157         * i-cobol.ads: Interfaces.COBOL should be preelaborate.
1159 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
1161         * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
1162         the underlying issue with malloc/free has been fixed. Remove associated
1163         comments.
1164         Minor reformatting.
1165         Related to PR ada/24533
1167 2008-05-20  Robert Dewar  <dewar@adacore.com>
1169         * ali.adb: Correct casing of ASCII.NUL
1171         * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
1172         properly.
1174 2008-05-20  Robert Dewar  <dewar@adacore.com>
1175             Gary Dismukes  <dismukes@adacore.com>
1177         * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
1178         overflow if result converted to wider integer type.
1179         (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
1180         discriminated types when discriminant checks are suppressed.
1182 2008-05-20  Vincent Celier  <celier@adacore.com>
1184         * cstand.adb (Print_Standard): Issue the correct Size clause for type
1185         Wide_Wide_Character.
1187 2008-05-20  Tristan Gingold  <gingold@adacore.com>
1189         * decl.c: Do not emit a variable for a object that has an address
1190         representation clause whose value is known at compile time.
1191         When a variable has an address clause whose value is known at compile
1192         time, refer to this variable by using directly the address instead of
1193         dereferencing a pointer.
1195 2008-05-20  Robert Dewar  <dewar@adacore.com>
1197         PR ada/30740
1198         * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
1199         subtypes, always False for non-modular types.
1200         Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
1201         entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
1202         for Shared_Storage package.
1203         (Is_RACW_Stub_Type): New entity flag.
1205         * exp_ch4.adb
1206         (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
1207         case where we have a modular type with a non-binary modules.
1208         Comments reformattings.
1210         * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
1211         all types.
1213 2008-05-20  Javier Miranda  <miranda@adacore.com>
1215         * exp_aggr.adb
1216         (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
1217         tests did not covered the case in which the type of the aggregate has
1218         no progenitors but some its parents has progenitors.
1220 2008-05-20  Gary Dismukes  <dismukes@adacore.com>
1221             Hristian Kirtchev  <kirtchev@adacore.com>
1223         * exp_ch3.adb
1224         (Expand_N_Object_Declaration): Correct the condition which triggers the
1225         generation of a call to Displace when initializing a class-wide object.
1226         (Build_Dcheck_Functions): Build discriminant-checking for null variants
1227         when Frontend_Layout_On_Target is true to ensure that they're available
1228         for calling when a record variant size function is built in Layout.
1230 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1232         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1233         procedure for a derived type retrieve the discriminant values from the
1234         parent using the corresponding discriminant.
1235         (Expand_N_Assignment_Statement): Skip generation of implicit
1236         if-statement associated with controlled types if we are
1237         compiling with restriction No_Finalization.
1239 2008-05-20  Vincent Celier  <celier@adacore.com>
1241         * prj.adb (Hash (Project_Id)): New function
1242         (Project_Empty): Add new component Interfaces_Defined
1244         * prj.ads (Source_Data): New component Object_Linked
1245         (Language_Config): New components Object_Generated and Objects_Linked
1246         (Hash (Project_Id)): New function
1247         (Source_Data): New Boolean components In_Interfaces and
1248         Declared_In_Interfaces.
1249         (Project_Data): New Boolean component Interfaces_Defined
1251         * prj-attr.adb: 
1252         New project level attribute Object_Generated and Objects_Linked
1253         Add new project level attribute Interfaces
1255         * prj-dect.adb: Use functions Present and No throughout
1256         (Parse_Variable_Declaration): If a string type is specified as a simple
1257         name and is not found in the current project, look for it also in the
1258         ancestors of the project.
1260         * prj-makr.adb: 
1261         Replace procedure Make with procedures Initialize, Process and Finalize
1262         to implement H414-023: process different directories with different
1263         patterns.
1264         Use functions Present and No throughout
1266         * prj-makr.ads: 
1267         Replace procedure Make with procedures Initialize, Process and Finalize
1269         * prj-nmsc.adb
1270         (Add_Source): Set component Object_Exists and Object_Linked accordnig to
1271         the language configuration.
1272         (Process_Project_Level_Array_Attributes): Process new attributes
1273         Object_Generated and Object_Linked.
1274         (Report_No_Sources): New Boolean parameter Continuation, defaulted to
1275         False, to indicate that the erreor/warning is a continuation.
1276         (Check): Call Report_No_Sources with Contnuation = True after the first
1277         call.
1278         (Error_Msg): Process successively contnuation character and warning
1279         character.
1280         (Find_Explicit_Sources): Check that all declared sources have been found
1281         (Check_File): Indicate in hash table Source_Names when a declared source
1282         is found.
1283         (Check_File): Set Other_Part when found
1284         (Find_Explicit_Sources): In multi language mode, check if all exceptions
1285         to the naming scheme have been found. For Ada, report an error if an
1286         exception has not been found. Otherwise, disregard the exception.
1287         (Check_Interfaces): New procedure
1288         (Add_Source): When Other_Part is defined, set mutual pointers in spec
1289         and body.
1290         (Check): In multi-language mode, call Check_Interfaces
1291         (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
1292         for an excluded source.
1293         (Remove_Source): A source replacing a source in the interfaces is also
1294         in the interfaces.
1296         * prj-pars.adb: Use function Present
1298         * prj-part.adb: Use functions Present and No throughout
1299         (Parse_Single_Project): Set the parent project for child projects
1300         (Create_Virtual_Extending_Project): Register project with no qualifier
1301         (Parse_Single_Project): Allow an abstract project to be extend several
1302         times. Do not allow an abstract project to extend a non abstract
1303         project.
1305         * prj-pp.adb: Use functions Present and No throughout
1306         (Print): Take into account the full associative array attribute
1307         declarations.
1309         * prj-proc.adb: Use functions Present and No throughout
1310         (Expression): Call itself with the same From_Project_Node for the
1311         default value of an external reference.
1313         * prj-strt.adb: Use functions Present and No throughout
1314         (Parse_Variable_Reference): If a variable is specified as a simple name
1315         and is not found in the current project, look for it also in the
1316         ancestors of the project.
1318         * prj-tree.ads, prj-tree.adb (Present): New function
1319         (No): New function
1320         Use functions Present and No throughout
1321         (Parent_Project_Of): New function
1322         (Set_Parent_Project_Of): New procedure
1324         * snames.ads, snames.adb: 
1325         Add new standard names Object_Generated and Objects_Linked
1327 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
1329         * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
1330         and the derived type are of the same kind.
1331         (Expand_Call): Generate type conversions for actuals of
1332         record or array types when the parent and the derived types differ in
1333         size and/or packed status.
1335 2008-05-20  Javier Miranda  <miranda@adacore.com>
1336             Ed Schonberg  <schonberg@adacore.com>
1338         * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
1339         generating dispatch tables of locally defined tagged types statically.
1340         Remove implicit if-statement that is no longer required.
1341         (Expand_Dispatching_Call): If this is a call to an instance of the
1342         generic dispatching constructor, the type of the first argument may be
1343         a subtype of Tag, so always use the base type to recognize this case.
1345 2008-05-20  Thomas Quinot  <quinot@adacore.com>
1347         * exp_dist.adb
1348         (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
1349         and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
1350         assigning NULL into the result, to avoid a spurious warning.
1351         (Add_RACW_Features, case Same_Scope): Add assertion that designated type
1352         is not frozen.
1353         (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
1354         type.
1355         (Build_From_Any_Function, Build_To_Any_Function,
1356         Build_TypeCode_Function): For a type that has user-specified stream
1357         attributes, use an opaque sequence of octets as the representation.
1359 2008-05-20  Kevin Pouget  <pouget@adacore.com>
1361         * exp_smem.ads, exp_smem.adb: Construction of access and assign
1362         routines has been replaced by an instantiation of
1363         System.Shared_Storage.Shared_Var_Procs generic package, while expanding
1364         shared variable declaration.
1365         Calls to access and assign routines have been replaced by calls to
1366         Read/Write routines of System.Shared_Storage.Shared_Var_Procs
1367         instantiated package.
1368         
1369         * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
1370         It identifies the new generic package added in s-shasto.
1372         * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
1373         is instantiated for each shared passive variable. It provides
1374         supporting procedures called upon each read or write access by the
1375         expanded code.
1377         * sem_attr.adb:
1378         For this runtime unit (always compiled in GNAT mode), we allow
1379         stream attributes references for limited types for the case where
1380         shared passive objects are implemented using stream attributes,
1381         which is the default in GNAT's persistent storage implementation.
1383 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1385         * freeze.adb
1386         (Freeze_Enumeration_Type): For a subtype that inherits a foreign
1387         convention from its base type, do not set the type to that of integer,
1388         because it may inherit a size clause.
1389         Warn on a size clause with a size different
1390         from that of Integer, if the type has convention C.
1392 2008-05-20  Vincent Celier  <celier@adacore.com>
1394         * gnatname.adb
1395         (Scan_Args): Rewrite to take into account new switch --and to separate
1396         arguments into sections.
1397         (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
1398         section, then Finalize.
1400 2008-05-20  Tristan Gingold  <gingold@adacore.com>
1402         * init.c: Enable stack probing on ppc-linux.
1404         * tracebak.c: Add symbolic traceback for ppc-linux.
1406         * system-linux-ppc.ads: Enable stack probing on ppc-linux.
1408 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
1410         * Makefile.in
1411         (common-tools): New rule, to avoid parallel build failure on gnat tools.
1412         Reenable parallel builds on this Makefile.
1414         * Make-lang.in: Update dependencies.
1416 2008-05-20  Robert Dewar  <dewar@adacore.com>
1418         * opt.ads (Treat_Restrictions_As_Warnings): New switch
1420         * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
1421         Treat_Restrictions_As_Warnings.
1423         * switch-c.adb: Recognize new switch -gnatr
1425         * usage.adb: Add line for -gnatr
1427 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
1429         * par-ch3.adb
1430         (P_Access_Definition): Change the error message when parsing "access
1431         all" in Ada 95 mode. The message no longer forces the user to recompile
1432         in 05 mode only to discover that anonymous access types are not allowed
1433         to have "all".
1435 2008-05-20  Hristian Kirtchev  <kirtchev@adacore.com>
1437         * par-ch9.adb
1438         (P_Protected): Update the error message on missing "-gnat05" switch when
1439         using interfaces in conjunction with protected types. Remove the
1440         incorrect error message associated with the presence of "private" after
1441         a "with".
1443 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1445         * sem_aggr.adb: Update comments.
1446         Improve previous change for PR ada/17985
1448 2008-05-20  Thomas Quinot  <quinot@adacore.com>
1450         * sem_cat.adb
1451         (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
1452         the visible part of the spec of a remote types unit.
1453         (Validate_Remote_Access_Object_Type_Declaration):
1454         New local subprogram Is_Valid_Remote_Object_Type, replaces
1455         Is_Recursively_Limited_Private.
1456         (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
1457         non-controlling formals (and the return type, even though this is not
1458         explicit in the standard) must support external streaming.
1459         (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
1460         as above for of RAS types and RCI subprograms. (The return type is not
1461         checked yet).
1462         Update comments related to RACWs designating limited interfaces per
1463         ARG ruling on AI05-060.
1465         * sem_util.ads, sem_util.adb
1466         (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
1467         Is_Remote_Call_Interface to identify RACW types in a stable and
1468         consistent way. We used to rely in this predicate on the privateness of
1469         the designated type and its ancestors, but depending on the currently
1470         visible private parts, this caused false negatives. We now uniformly
1471         rely on checks made at the point where the RACW type is declared.
1472         (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
1474 2008-05-20  Javier Miranda  <miranda@adacore.com>
1475             Ed Schonberg  <schonberg@adacore.com>
1476             Hristian Kirtchev  <kirtchev@adacore.com>
1478         * sem_ch3.adb
1479         (Analyze_Object_Declaration): Fix over-conservative condition
1480         restricting use of predefined assignment with tagged types that have
1481         convention CPP.
1482         (Analyze_Object_Declaration): Relax the check regarding deferred
1483         constants declared in scopes other than packages since they can be
1484         completed with pragma Import.
1485         Add missing escaping of all-caps word 'CPP' in error messages.
1486         (Build_Discriminated_Subtype): Do not inherit representation clauses
1487         from parent type if subtype already carries them, because they are
1488         inherited earlier during derivation and already include those that may
1489         come from a partial view.
1491         * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
1492         Check the declarations of a subprogram body for proper deferred
1493         constant completion.
1495         * sem_ch7.ads, sem_ch7.adb
1496         (Inspect_Deferred_Constant_Completion): Moved to sem_util.
1498 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1499             Thomas Quinot  <quinot@adacore.com>
1501         * sem_ch4.adb
1502         (Try_Indexed_Call): Handle properly a construct of the form F(S) where
1503         F is a parameterless function that returns an array, and S is a subtype
1504         mark.
1505         (Analyze_Call): Insert dereference when the prefix is a parameterless
1506         function that returns an access to subprogram and the call has
1507         parameters.
1508         Reject a non-overloaded call whose name resolves to denote
1509         a primitive operation of the stub type generated to support a remote
1510         access-to-class-wide type.
1512 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1514         * sem_ch8.adb
1515         (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
1516         when there is a use clause for the same entity in the context.
1517         (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
1518         created for a stream attribute of an abstract type or interface type.
1520 2008-05-20  Thomas Quinot  <quinot@adacore.com>
1522         * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
1523         subprogram.
1525         * sem_type.adb
1526         (Add_One_Interp): Ignore any interpretation that is a primitive
1527         operation of an RACW stub type (these primitives are only executed
1528         through dispatching, never through static calls).
1529         (Collect_Interps): When only one interpretation has been found, set N's
1530         Entity and Etype to that interpretation, otherwise Entity and Etype may
1531         still refer to an interpretation that was ignored by Add_One_Interp,
1532         in which case would end up with being marked as not overloaded but with
1533         an Entity attribute not pointing to its (unique) correct interpretation.
1535 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1537         * sem_eval.adb
1538         (Eval_Slice): Warn when a slice whose discrete range is a subtype name
1539         denotes the whole array of its prefix.
1541 2008-05-20  Robert Dewar  <dewar@adacore.com>
1543         * sem_res.adb (Resolve_Op_Not): Warn on double negation
1545 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1547         * sprint.adb
1548         (Print_Itype): Do not modify the sloc of the component type of a
1549         (packed) array itype, because it is an unrelated type whose source
1550         location is independent of the point of creation of the itype itself.
1552 2008-05-20  Thomas Quinot  <quinot@adacore.com>
1554         * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
1555         Append.
1557 2008-05-20  Robert Dewar  <dewar@adacore.com>
1558             Vincent Celier  <celier@adacore.com>
1560         * vms_data.ads: Add entry for -gnatr
1561         Put GNAT SYNC section in proper alpha order
1562         Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
1564         * gnat_ugn.texi: Add documentation for new gnatname switch --and
1565         Update the style checks section
1566         Add documentation of -gnatr
1567         Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
1568         subsection the explanation how compiler checks should be disabled for
1569         gnatcheck.
1570         Update the list of Ada 95 reserved words used by in the project language
1571         Add documentation for project qualifiers.
1572         Document that abstract projects may be extended by different projects in
1573         the same project tree.
1574         Add documentation for gnatmake switch -d
1576         * ug_words: Add -gnatyy VMS equivalence string.
1577         Add entry for -gnatr
1579 2008-05-20  Bob Duff  <duff@adacore.com>
1581         * a-rttiev.adb
1582         (Set_Handler): Remove code from both of these that implements
1583         RM-D.15(15/2), because it causes a race condition and potential
1584         deadlock.
1585         (Process_Queued_Events): Add comment explaining "exception when others
1586         => null". Add clarifying ".all", even though implicit .all is legal
1587         here.
1589 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
1591         * s-winext.ads: Replace representation clause by pragma Pack. Gives
1592         equivalent representation, but has the advantage of allowing
1593         compilation of this file under 64 bits platforms.
1595         * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
1597         * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
1599         * adaint.c: 
1600         Don't define dummy implementation of convert_addresses on ppc-linux.
1602 2008-05-20  Ed Schonberg  <schonberg@adacore.com>
1604         * exp_ch7.adb
1605         (Expand_Ctrl_Function_Call): Do not attach result to finalization list
1606         if expression is aggregate component.
1608 2008-05-20  Robert Dewar  <dewar@adacore.com>
1610         * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
1611         sem_ch12.adb: Update comments. Minor reformatting.
1613         * exp_ch2.adb: Typo
1615         * s-unstyp.ads: Fixed some typos in comments.
1617 2008-05-20  Arnaud Charlet  <charlet@adacore.com>
1619         * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
1620         type/constant.
1622         * g-socthi-vxworks.ads: Update to latest socket changes.
1624         * a-caldel-vms.adb: Resync with a-caldel spec.
1626         * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
1627         Update comments.
1629 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
1631         * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
1632         for dummy types pointed to by the converted pointer types.
1634 2008-05-15  Eric Botcazou  <ebotcazou@adacore.com>
1636         * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
1637         of records and unions.
1638         (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
1640 2008-05-14  Samuel Tardieu  <sam@rfc1149.net>
1641             Robert Dewar <dewar@adacore.com>
1643         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
1644         restrictions to the prefix of 'Old.
1645         * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
1646         * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
1647         variables.
1649 2008-05-13  Eric Botcazou  <ebotcazou@adacore.com>
1651         PR ada/24880
1652         PR ada/26635
1653         * utils.c (convert) <INTEGER_TYPE>: When converting an additive
1654         expression to an integral type with lower precision, use NOP_EXPR
1655         directly in a couple of special cases.
1657 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
1658             Ed Schonberg <schonberg@adacore.com>
1660         * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
1661         constraint expressions.
1663 2008-05-12  Tomas Bily  <tbily@suse.cz>
1665         * utils2.c (known_alignment, contains_save_expr_p)
1666         (gnat_mark_addressable): Use CASE_CONVERT.
1667         * decl.c (annotate_value): Likewise.
1668         * trans.c (maybe_stabilize_reference): Likewise.
1669         * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
1670         * utils.c (rest_of_record_type_compilation): Likewise.
1671         * trans.c (protect_multiple_eval, Attribute_to_gnu)
1672         (protect_multiple_eval): Likewise.
1674 2008-05-08  Andreas Schwab  <schwab@suse.de>
1676         * utils.c (handle_pure_attribute, init_gigi_decls): Rename
1677         DECL_IS_PURE to DECL_PURE_P.
1679 2008-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1681         * decl.c (maybe_pad_type): Add ??? comment.
1683 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1685         * decl.c (components_to_record): Zero the alignment of the qualified
1686         union built for the variant part upon creating it.
1688 2008-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1690         * decl.c (maybe_pad_type): Try to get a form of the type with integral
1691         mode even if the alignment is not a factor of the original size.  But
1692         make sure to create the inner field with the original size.  Reorder.
1693         * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
1694         record as always addressable.
1695         * utils.c (convert): Deal specially with conversions between original
1696         and packable versions of a record type.
1697         * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
1698         recognizing an assignment between padded objects.
1700 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
1702         * decl.c (make_packable_type): Resize the last component to its RM size
1703         only if it is of an aggregate type.
1704         * trans.c (call_to_gnu): Fix nit in comment.
1705         (gnat_to_gnu): Likewise.
1707 2008-04-30  Samuel Tardieu  <sam@rfc1149.net>
1709         * Makefile.in: Adapt sh4-linux target.
1711 2008-04-29  Ed Schonberg  <schonberg@adacore.com>
1713         PR ada/35792
1714         * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
1715         tagged type by an untagged protected or task type.
1717 2008-04-28  Eric Botcazou  <ebotcazou@adacore.com>
1718             Tristan Gingold  <gingold@adacore.com>
1720         PR ada/36007
1721         * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
1722         of aliased objects with an unconstrained nominal subtype.
1723         Cap the promotion to the effective alignment of the word mode.
1725 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1727         * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
1728         (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
1729         Use '&&' instead of ';'.
1731 2008-04-24  Olivier Hainque  <hainque@adacore.com>
1733         * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
1734         doesn't require signed arithmetic anymore.
1736 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
1738         * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
1739         (call_to_gnu): Don't set TREE_INVARIANT.
1740         * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
1742 2008-04-22  Joel Sherrill <joel.sherrill@oarcorp.com>
1744         * s-osinte-rtems.adb: Add sigalstack function.
1745         * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
1746         function. Add Alternate_Stack and Alternate_Stack_Size.
1747         Add missing process_shared field to pthread_condattr_t
1748         and change ss_low_priority to int from timespec.
1750 2008-04-22  Samuel Tardieu  <sam@rfc1149.net>
1752         * i-forbla.adb: Link against -llapack and -lblas by default
1753         instead of the private -lgnalasup.
1755 2008-04-21  Olivier Hainque  <hainque@adacore.com>
1757         Access to most C builtins from Ada
1758         * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
1759         (handle_pure_attribute, handle_novops_attribute,
1760         handle_nonnull_attribute, handle_sentinel_attribute,
1761         handle_noreturn_attribute, handle_malloc_attribute,
1762         handle_type_generic_attribute): New attribute handlers, from C fe.
1763         (gnat_internal_attribute_table): Map the new handlers.
1764         (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
1765         (init_gigi_decls): ... here.
1766         (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
1767         Move to a section dedicated to builtins processing.
1768         (build_void_list_node, builtin_type_for_size): New functions.
1769         (def_fn_type, get_nonnull_operand): Likewise.
1770         (install_builtin_elementary_type, install_builtin_function_types,
1771         install_builtin_attributes): Likewise.
1772         (fake_attribute_handler): Fake handler for attributes we don't
1773         support in Ada.
1774         (def_builtin_1): New function, worker for DEF_BUILTIN.
1775         (install_builtin_functions): New function.
1776         (gnat_install_builtins): Move to the builtins processing section.
1777         Now calling the newly introduced installers.
1779 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
1781         * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
1782         constant objects, but not exceptions.
1783         * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
1784         compatibility test.
1785         * utils.c (create_var_decl_1): Likewise.
1786         * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
1787         the type when copying to padded object and the source is a constructor.
1789 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1791         * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
1792         alignment, reset it to zero if it would end up not being greater
1793         than that of the type.
1795 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1797         * decl.c (maybe_pad_type): Only generate the XVS parallel type if
1798         the padded type has a variable size.
1800 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1802         * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
1803         target pointer mechanism as soon as the size is not constant.
1805 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1807         * gigi.h (create_var_decl_1): Declare.
1808         (create_var_decl): Turn into a macro invoking create_var_decl_1.
1809         (create_true_var_decl): Likewise.
1810         * utils.c (create_var_decl_1): Make global and reorder parameters.
1811         (create_var_decl): Delete.
1812         (create_true_var_decl): Likewise.
1814 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
1816         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
1817         objects by default.
1818         * fe.h (Debug_Flag_Dot_A): Delete.
1819         * debug.adb (-gnatd.a): Update documentation.
1821 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
1823         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
1824         "not null" parameter.
1826 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
1828         * g-socket.adb: Add a message "IPv6 not supported" to the
1829         Socket_Error exception.
1831 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
1833         PR ada/29015
1834         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
1835         the type is known instead of the underlying type.
1837 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
1839         PR ada/22387
1840         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1841         procedure for a derived type retrieve the discriminant values from
1842         the parent using the corresponding discriminant.
1844 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
1845             Gary Dismukes  <dismukes@adacore.com>
1847         PR ada/28733
1848         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
1849         which is not an entity (and hence not a package).
1850         (End_Use_Package): Ditto.
1852 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
1854         PR ada/16086
1855         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
1856         protected operation that matches the signature, not only an entry, a
1857         regular subprogram or a literal.
1859 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1861         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
1862         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
1863         if a size or alignment is specified.  Do not take into account
1864         alignment promotions for the computation of the object's size.
1865         <type>: Call maybe_pad_type only if a size or alignment is specified.
1866         (maybe_pad_type): Really reuse the RM_Size of the original type if
1867         requested.
1868         * trans.c (Attribute_to_gnu): Fix a couple of nits.
1869         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
1870         statements.  Use the padded view of the type when copying between
1871         padded objects of the same underlying type.
1873 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1875         * vms_data.ads: Fix typo in constant.
1876         * gen-soccon.c: Fix typo in error string.
1877         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
1878         Fix typos.
1879         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
1880         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
1881         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
1882         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
1883         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
1884         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
1885         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
1886         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
1887         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
1888         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
1889         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
1890         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
1891         sinfo.ads: Fix typos in comments.
1893 2008-04-14  Robert Dewar  <dewar@adacore.com>
1895         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
1896         to every non-object and change error message.
1898 2008-04-14  Robert Dewar  <dewar@adacore.com>
1900         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
1901         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
1902         directly.
1904 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
1906         PR ada/18680
1907         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
1908         apply pragma Linker_Section on type.
1910 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
1912         PR ada/16098
1913         * sem_prag.adb (Error_Pragma_Ref): New.
1914         (Process_Convention): Specialized message for non-local
1915         subprogram renaming. Detect the problem in homonyms as well.
1917 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
1919         PR ada/15915
1920         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
1921         * sem_ch12.adb (Instantiate_Object): Use it.
1922         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
1923         storage pool denotes a variable as per RM 13.11(15).
1925 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
1927         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
1928         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
1930 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
1932         PR ada/20822
1933         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
1934         line endings even on non-Unix platforms.
1936 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
1938         PR ada/35050
1939         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
1940         renaming information.
1942 2008-04-13  Samuel Tardieu  <sam@rfc1149.net> 
1944         PR ada/17985
1945         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
1946         itself.
1948 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1950         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
1951         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
1952         snames.ads, sprint.adb, stand.ads, stringt.ads,
1953         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
1954         switch.ads, sysdep.c, table.adb, table.ads,
1955         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
1956         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
1957         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
1958         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
1959         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
1960         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
1961         Fix comment typos.
1963         * sem_ch10.adb, sem_ch10.ads,
1964         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
1965         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
1966         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
1967         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
1968         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
1969         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
1970         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
1971         sem_warn.ads: Fix comment typos.
1973         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
1974         s-soflin.ads, s-stalib.ads, s-stausa.adb,
1975         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
1976         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
1977         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
1978         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
1979         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
1980         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
1981         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
1982         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
1983         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
1984         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
1985         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
1986         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
1987         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
1988         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
1989         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
1990         sem_cat.adb, sem_cat.ads: Fix comment typos.
1992 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
1994         PR ada/35825
1995         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
1997 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
1999         * s-linux-hppa.ads: Fix syntax errors.
2001 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2003         * gnat_ugn.texi: Fix typos.
2004         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
2005         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
2006         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
2007         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
2008         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
2009         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
2010         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
2011         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
2012         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
2013         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
2014         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
2015         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
2016         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
2017         s-osinte-darwin.ads, s-osinte-freebsd.ads,
2018         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
2019         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
2020         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
2021         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
2022         s-parame-hpux.ads, s-parame-vms-alpha.ads,
2023         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
2024         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
2025         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
2026         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
2027         s-rident.ads: Fix comment typos.
2029 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
2031         PR ada/28305
2032         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
2033         environment if generic instance is a top-level one.
2035 2008-04-09  Doug Rupp  <rupp@adacore.com>
2037         * decl.c (validate_size): Set minimum size for fat pointers same as
2038         access types. Code clean ups.
2040         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
2041         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
2043         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
2045         * s-crtl.ads (malloc32) New function, alias for malloc
2046         (realloc32) New function, alias for realloc
2048         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
2050         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
2051         allocator size is 32 and default pointer size is 64.
2052         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
2053         lhs type if smaller, whatever the modes.
2055         * gigi.h (malloc32_decl): New macro definition
2057         * utils.c (init_gigi_decls): New malloc32_decl
2058         Various code clean ups.
2060         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
2061         Task_Address vice System.Address.
2063         * s-taspri-vms.ads: Import System.Aux_DEC
2064         (Task_Address): New subtype of System.Aux_DEC.Short_Address
2065         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
2067         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
2068         Task_Address vice System.Address.
2070         * s-inmaop-vms.adb: Import System.Task_Primitives
2071         (To_Address): Unchecked convert to Task_Address vice System.Address
2073         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
2074         expires now.
2075         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
2076         (To_Address) Unchecked convert to Task_Address vice System.Address
2078         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
2080         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
2082 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2084         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
2085         (fdesc_type_node): Define.
2086         (null_fdesc_node): Likewise.
2087         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
2088         uses descriptors for vtables and the type comes from a dispatch table,
2089         return the descriptor type.
2090         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
2091         uses descriptors for vtables and the type comes from a dispatch table,
2092         build a descriptor in the static case and copy the existing one in the
2093         non-static case.
2094         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
2095         the type is a pointer-to-subprogram coming from a dispatch table,
2096         return the null descriptor.
2097         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
2098         vtables, the source type is the descriptor type and the target type
2099         is a pointer type, first build the pointer.
2100         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
2101         build the descriptor type and the null descriptor.
2103 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2105         * decl.c (prepend_attributes): Fix typo.
2106         * trans.c (Pragma_to_gnu): Likewise.
2107         * utils.c (gnat_genericize): Likewise.
2109 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2110             Richard Kenner  <kenner@adacore.com>
2112         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
2113         * decl.c (gnat_to_gnu_entity): Adjust for above change.
2114         <E_Record_Type>: Try to get a better form of the component for
2115         packing, even if it has an integral mode.
2116         <E_Record_Subtype>: Likewise.
2117         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
2118         exception suppressing the final conversion between record types.
2120 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2122         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
2123         alignment for space, promote the alignment of non-scalar variables with
2124         no size and alignment.
2125         * gigi.h (gnat_types_compatible_p): Declare.
2126         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
2127         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
2128         * utils.c (gnat_types_compatible_p) : New predicate.
2129         (convert): Use it throughout to test for cases where a mere view
2130         conversion is sufficient.
2131         * utils2.c (build_binary_op): Minor tweaks.
2132         (build_unary_op): Likewise.
2134 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2136         * decl.c (adjust_packed): Expand comment.
2138 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
2140         * s-tasuti.ads: Use Task_Address instead of System.Address.
2142         * makeutl.adb (Path_Or_File_Name): New function
2144         * nlists.ads, itypes.ads: Update comments.
2146         * s-crtl.ads (malloc32, realloc32): New functions.
2148         * s-auxdec.ads (Short_Address_Size): New constant.
2150         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
2152         * s-ststop.ads, s-ststop.adb: New file.
2154         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
2155         Minor reformatting.
2157 2008-04-08  Pascal Obry  <obry@adacore.com>
2159         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
2160         (Stop_Bits_Number): New type.
2161         (Parity_Check): Likewise.
2162         (Set): Add parameter to set the number of stop bits and
2163         the parity. Parameter timeout is now a duration instead
2164         of a plain integer.
2166         * g-sercom-linux.adb:
2167         Implement the stop bits and parity support for GNU/Linux.
2168         Fix handling of timeout, it must be given in tenth of seconds.
2169         
2170         * g-sercom-mingw.adb:
2171         Implement the stop bits and parity support for Windows.
2172         Use new s-win32.ads unit instead of declaring Win32 services
2173         directly into this body.
2174         Update handling of timeout as now a duration.
2176         * s-win32.ads, s-winext.ads: New files.
2178 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2179             Arnaud Charlet  <charlet@adacore.com>
2181         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
2183         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
2184         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
2186         * s-osinte-lynxos-3.ads,
2187         (Alternate_Stack): Remove when not needed. Simplify declaration
2188         otherwise.
2189         (Alternate_Stack_Size): New constant.
2191         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
2192         'Unrestricted_Access.
2194         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
2195         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
2196         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
2197         s-osinte-solaris.ads, s-osinte-vms.ads
2198         (SA_ONSTACK): New constant.
2199         (stack_t): New record type.
2200         (sigaltstack): New imported function.
2201         (Alternate_Stack): New imported variable.
2202         (Alternate_Stack_Size): New constant.
2204         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
2206         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
2207         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
2208         s-taspri-vms.ads (Task_Address): New subtype of System.Address
2209         (Task_Address_Size): New constant size of System.Address
2210         (Alternate_Stack_Size): New constant.
2212         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
2213         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
2214         Establish the alternate stack if the platform makes use of n alternate
2215         signal stack for stack overflows.
2216         (Create_Task): Take into account the alternate stack in the stack size.
2217         (Initialize): Save the address of the alternate stack into the ATCB for
2218         the environment task.
2219         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
2221         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
2223         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
2225         * s-intman-posix.adb: 
2226         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
2227         alternate signal stack for stack overflows.
2229         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
2230         x86-64, adjust the saved value of the stack pointer if the signal was
2231         raised by a stack checking probe.
2232         (HP-UX section): Use global __gnat_alternate_stack as signal handler
2233         stack and only for SIGSEGV.
2234         (Linux section): Likewise on x86 and x86-64.
2235         [VxWorks section]
2236         (__gnat_map_signal): Now static.
2237         (__gnat_error_handler): Not static any more.
2238         (__gnat_adjust_context_for_raise): New function. Signal context
2239         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
2240         propagation circuitry.
2241         (__gnat_error_handler): Second argument of a sigaction handler is a
2242         pointer, not an int, and is unused.
2243         Adjust signal context before mapping to exception.
2244         Install signal handlers for LynxOS case.
2246         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
2247         (Task_Id): Set size to Task_Address_Size
2248         (To_Task_id): Unchecked convert from Task_Address vice System.Address
2249         (To_Address): Unchecked convert to Task_Address vice System.Address
2251         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
2252         address into the ATCB if the platform makes use of an alternate signal
2253         stack for stack overflows.
2254         (Free_Task): Add call to Finalize_Attributes_Link.
2255         Add argument Relative_Deadline to pass the value specified for
2256         the task. This is not yet used for any target.
2258         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
2259         the value specified for the task.
2261 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
2263         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
2264         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
2265         s-vxwext-rtp.adb): New files.
2267         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
2268         Minor updates to accomodate changes above.
2270 2008-04-08  Pascal Obry  <obry@adacore.com>
2272         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
2273         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
2274         Use new s-win32.ads unit instead of declaration
2275         from s-osinte-mingw.ads.
2276         
2277         * s-osinte-mingw.ads:
2278         Move all non tasking based interface to s-win32.ads.
2279         
2280         * s-osprim-mingw.adb:
2281         Remove duplicated declarations and use s-win32.ads
2282         unit instead.
2284 2008-04-08  Vincent Celier  <celier@adacore.com>
2285             Arnaud Charlet  <charlet@adacore.com>
2287         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
2288         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
2289         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
2290         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2291         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
2293         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
2294         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
2295         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
2296         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
2297         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
2298         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
2299         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
2300         mlib-tgt-specific-mingw.adb: New names.
2302         * Makefile.in: 
2303         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
2304         Get rid of gnatbl.
2305         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
2306         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
2307         Minor updates for VMS
2309         * gnatbl.c: Removed.
2311 2008-04-08  Thomas Quinot  <quinot@adacore.com>
2313         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
2314         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
2315         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
2316         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
2317         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
2318         ASCII.NUL throughout.
2320 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
2321             Matthew Heaney  <heaney@adacore.com>
2323         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
2324         renaming.
2326         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,  
2327         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
2328         to convention for non-RM specs.
2329         Add descriptive header, and documented each operation
2330         document each operation
2332 2008-04-08  Robert Dewar  <dewar@adacore.com>
2333             Bob Duff  <duff@adacore.com>
2334             Gary Dismukes  <dismukes@adacore.com>
2335             Ed Schonberg  <schonberg@adacore.com>
2337         * alloc.ads: Add entries for Obsolescent_Warnings table
2339         * einfo.ads, einfo.adb: Minor reformatting.
2340         (Is_Discriminal): New subprogram.
2341         (Is_Prival): New subprogram.
2342         (Is_Protected_Component): New subprogram.
2343         (Is_Protected_Private): Removed.
2344         (Object_Ref, Set_Object_Ref): Removed.
2345         (Prival, Set_Prival): Change assertion.
2346         (Privals_Chain, Set_Privals_Chain): Removed.
2347         (Prival_Link, Set_Prival_Link): New subprogram.
2348         (Protected_Operation, Set_Protected_Operation): Removed.
2349         (Protection_Object, Set_Protection_Object): New subprogram.
2350         (Write_Field17_Name): Remove case for Object_Ref.
2351         (Write_Field20_Name): Add case for Prival_Link.
2352         (Write_Field22_Name): Remove case for Protected_Operation,
2353         Privals_Chain.
2354         Add case for Protection_Object.
2355         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
2356         so clients
2357         (Overlays_Constant): New flag
2358         (Is_Constant_Object): New predicate
2359         (Is_Standard_Character_Type): New predicate
2360         (Optimize_Alignment_Space): New flag
2361         (Optimize_Alignment_Time): New flag
2362         (Has_Postconditions): New flag
2363         (Obsolescent_Warrning): Field removed
2364         (Spec_PPC_List): New field
2365         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
2366         subprograms to get and set the relative deadline associated to a task.
2368         * exp_attr.adb (May_Be_External_Call): Account for the case where the
2369         Access attribute is part of a named parameter association.
2370         (Expand_Access_To_Protected_Op): Test for the attribute occurring
2371         within an init proc and use that directly as the scope rather than
2372         traversing up to the protected operation's enclosing scope. Only apply
2373         assertion on Is_Open_Scopes in the case the scope traversal is done.
2374         For the init proc case use the address of the first formal (_init) as
2375         the protected object reference.
2376         Implement Invalid_Value attribute
2377         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
2378         contents of the dispatch table there is no need to duplicate the
2379         itypes associated with record types (i.e. the implicit full view
2380         of private types).
2381         Implement Enum_Val attribute
2382         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
2383         within _Postconditions procedure
2384         (Expand_N_Attribute_Reference, case Result): Implement new attribute
2386         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
2387         a return statement calls a function that is not available in
2388         configurable runtime.
2389         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
2390         (Expand_Non_Function_Return): Generate call to _Postconditions proc
2391         (Expand_Simple_Function_Return): Ditto
2393         * frontend.adb: Add call to Sem_Aux.Initialize
2395         * sem_aux.ads, sem_aux.adb: New file.
2397         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
2398         Add new Pragma_Relative_Deadline.
2399         Add support for pragmas Check and Check_Policy
2401         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
2402         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
2403         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
2404         missing check because they are not allowed in CPP tagged types.
2405         Add Sure parameter to Note_Possible_Modification calls
2406         Add implementation of Invalid_Value attribute
2407         Implement new attribute Has_Tagged_Values
2408         Implement Enum_Val attribute
2409         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
2410         generated attributes.
2411         (Analyze_Attribute, case Result): If prefix of the attribute is
2412         overloaded, it always resolves to the enclosing function.
2413         (Analyze_Attribute, case Result): Properly deal with analysis when
2414         Postconditions are not active.
2415         (Resolve_Attribute, case Result): Properly deal with appearence during
2416         preanalysis in spec.
2417         Add processing for attribute Result
2419         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
2420         for operators.
2421         (Analyze_Subprogram_Body): Install private_with_clauses when the body
2422         acts as a spec.
2423         (Check_Inline_Pragma): recognize an inline pragma that appears within
2424         the subprogram body to which it applies.
2425         (Analyze_Function_Return): Check that type of the expression of a return
2426         statement in a function with a class-wide result is not declared at a
2427         deeper level than the function.
2428         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
2429         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
2430         user- defined operators.
2431         (Install_Formals): Moved to spec to allow use from Sem_Prag for
2432         analysis of precondition/postcondition pragmas.
2433         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
2434         Last_Formal, along with lots of comments on what this is about
2435         (Analyze_Subprogram_Body): Fix case where we move entities from the
2436         spec to the body when there are no body entities (now possible with
2437         precondition and postcondition pragmas).
2438         (Process_PPCs): New procedure
2439         (Analyze_Subprogram_Body): Add call to Process_PPCs
2441         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
2442         clause.
2443         (Pop_Scope): Restore Check_Policy_List on scope exit
2444         (Push_Scope): Save Check_Policy_List on scope entry
2445         Change name In_Default_Expression      => In_Spec_Expression
2446         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2447         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
2448         (Analyze_Object_Renaming): Allow 'Reference as object
2449         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
2450         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
2451         of restriction identifier.
2452         Add Sure parameter to Note_Possible_Modication calls
2454         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
2455         Don't check for primitive operations when calling Rep_Item_Too_Late.
2456         (Process_Import_Or_Interface): Do not place flag on formal
2457         subprograms.
2458         (Analyze_Pragma, case Export): If the entity is a deferred constant,
2459         propagate information to full view, which is the one elaborated by the
2460         back-end.
2461         (Make_Inline): the pragma is effective if it applies to an internally
2462         generated subprogram declaration for a body that carries the pragma.
2463         (Analyze_Pragma, case Optimize_Alignment): Set new flag
2464         Optimize_Alignment_Local.
2465         (Analyze_PPC_In_Decl_Part): New procedure
2466         (Get_Pragma_Arg): Moved to outer level
2467         (Check_Precondition_Postcondition): Change to allow new visibility
2468         rules for package spec
2469         (Analyze_Pragma, case Check_Policy): Change placement rules to be
2470         same as pragma Suppress/Unsuppress.
2471         Change name In_Default_Expression      => In_Spec_Expression
2472         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2473         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
2474         (Check_Precondition_Postcondition): Do proper visibility preanalysis
2475         for the case of these pragmas appearing in the spec.
2476         (Check_Enabled): New function
2477         (Initialize): New procedure
2478         (Tree_Read): New procedure
2479         (Tree_Write): New procedure
2480         (Check_Precondition_Postcondition): New procedure
2481         Implement pragmas Check and Check_Policy
2482         Merge Assert processing with Check
2484         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
2485         New warning flag -gnatw.e
2487         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
2488         returning whether a task (or main procedure) has a pragma
2489         Relative_Deadline.
2490         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
2491         (or main procedure) has a pragma Relative_Deadline.
2492         Add Next_Pragma field to N_Pragma node
2493         (PPC_Enabled): New flag
2494         (Next_Pragma): Now used for Pre/Postcondition processing
2496         * snames.h, snames.ads, snames.adb: New standard name
2497         Inherit_Source_Path
2498         Add entry for 'Invalid_Value attribute
2499         Add entry for new attribute Has_Tagged_Values
2500         Add entry for Enum_Val attribute
2501         Add new standard names Aggregate, Configuration and Library.
2502         Add _Postconditions
2503         Add _Result
2504         Add Pragma_Precondition
2505         Add Pragma_Postcondition
2506         Add Attribute_Result
2507         New standard name Archive_Builder_Append_Option
2508         (Preset_Names): Add _relative_deadline and relative_deadline definitions
2509         There was also a missing non_preemptive_within_priorities.
2510         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
2511         Relative_Deadline.
2512         Add support for pragmas Check and Check_Policy
2514         * tree_gen.adb: Call Sem_Aux.Tree_Write
2516         * tree_in.adb: Call Sem_Aux.Tree_Read
2518         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
2519         sequence
2521         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
2522         sequence
2524         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
2525         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
2526         Relative_Deadline.
2527         (Expand_Pragma_Check): New procedure
2529         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
2530         buffer.
2532         * sinfo.adb (PPC_Enabled): New flag
2534 2008-04-08  Robert Dewar  <dewar@adacore.com>
2535             Gary Dismukes  <dismukes@adacore.com>
2536             Javier Miranda  <miranda@adacore.com>
2537             Ed Schonberg  <schonberg@adacore.com>
2539         * fe.h: Remove global Optimize_Alignment flag, no longer used
2541         * layout.adb: Test Optimize_Alignment flags rather than global switch
2543         * lib.ads, lib.adb: New OA_Setting field in library record
2545         * lib-load.adb: New OA_Setting field in library record
2547         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
2548         units mentioned in limited_with_ clauses in the ali file, with an
2549         'Y' marker.
2550         New Ox fields in U line
2552         * opt.adb: New flag Optimize_Alignment_Local
2553         (Check_Policy_List[_Config]): New flags
2555         * opt.ads (Invalid_Value_Used): New flag
2556         New switch Optimize_Alignment_Local
2557         (Warn_On_Parameter_Order): New flag
2558         (Check_Policy_List[_Config]): New flags
2560         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
2561         limited_with clauses.
2562         New data structures for Optimize_Alignment
2564         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
2565         New procedure
2566         (Check_Consistent_Optimize_Alignment): Rework for new structure
2567         (Check_Consistent_Restrictions): Fix incorrect error message
2569         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
2570         created class-wide type (to the Parent field of the specific type).
2571         (Install_Siblings): Handle properly private_with_clauses on subprogram
2572         bodies and on generic units.
2573         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
2574         illegal limited_with_clause that names a non-existent package.
2575         (Check_Body_Required): Determine whether a unit named a limited_with
2576         clause needs a body.
2577         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
2578         Capture Optimize_Alignment settings to set new OA_Setting field in
2579         library record.
2580         (Build_Limited_Views): Include task and protected type declarations.
2582         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
2583         case of a possible constant redeclaration where the current object is
2584         an entry index constant.
2585         (Analyze_Object_Declaration): Generate an error in case of CPP
2586         class-wide object initialization.
2587         (Analyze_Object_Declaration): Add extra information on warnings for
2588         declaration of unconstrained objects.
2589         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
2590         conflicts with the setting of Stored_Constraint in the case where the
2591         access type entity has already been created as an E_Incomplete_Type due
2592         to a limited with clause.
2593         Use new Is_Standard_Character_Type predicate
2594         (Analyze_Object_Declaration): Apply access_constant check only after
2595         expression has been resolved, given that it may be overloaded with
2596         several access types.
2597         (Constant_Redeclaration): Additional legality checks for deferred
2598         constant declarations tha involve anonymous access types and/or null
2599         exclusion indicators.
2600         (Analyze_Type_Declaration): Set Optimize_Alignment flags
2601         (Analyze_Subtype_Declaration): Ditto
2602         (Analyze_Object_Declaration): Ditto
2603         (Analyze_Object_Declaration): Don't count tasks in generics
2604         Change name In_Default_Expression      => In_Spec_Expression
2605         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2606         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
2607         (Process_Discriminants): Additional check for illegal use of default
2608         expressions in access discriminant specifications in a type that is not
2609         explicitly limited.
2610         (Check_Abstract_Overriding): If an inherited function dispaches on an
2611         access result, it must be overridden, even if the type is a null
2612         extension.
2613         (Derive_Subprogram): The formals of the derived subprogram have the
2614         names and defaults of the parent subprogram, even if the type is
2615         obtained from the actual subprogram.
2616         (Derive_Subprogram): In the presence of interfaces, a formal of an
2617         inherited operation has the derived type not only if it descends from
2618         the type of the formal of the parent operation, but also if it
2619         implements it. This is relevant for the renamings created for the
2620         primitive operations of the actual for a formal derived type.
2621         (Is_Progenitor): New predicate, to determine whether the type of a
2622         formal in the parent operation must be replaced by the derived type.
2624         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
2625         predicate recursive to handle components that have a user-defined
2626         Initialize procedure. Handle controlled derived types whose ancestor
2627         has a user-defined Initialize procedured.
2628         (Note_Possible_Modification): Add Sure parameter, generate warning if
2629         sure modification of constant
2630         Use new Is_Standard_Character_Type predicate
2631         (Find_Parameter_Type): when determining whether a protected operation
2632         implements an interface operation, retrieve the type of the formal from
2633         the entity when the formal is an access parameter or an
2634         anonymous-access-to-subprogram.
2635         Move Copy_Parameter_List to sem_util, for use when building stubbed
2636         subprogram bodies.
2637         (Has_Access_Values): Tagged types now return False
2638         (Within_HSS_Or_If): New procedure
2639         (Set_Optimize_Alignment_Flags): New procedure
2640         Change name In_Default_Expression      => In_Spec_Expression
2641         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2642         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
2644 2008-04-08  Tristan Gingold  <gingold@adacore.com>
2646         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
2648 2008-04-08  Tristan Gingold  <gingold@adacore.com>
2650 PR ada/10768
2652         * cuintp.c: Fix 16 bits issue for AVR.
2653         On AVR, integer is 16 bits, so it can't be used to do math with
2654         Base (=32768).
2655         So use long_integer instead.
2657 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
2659         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
2660         System.OS_Primitives.
2661         Change type of various constants, parameters and local variables from
2662         Time to representation type OS_Time.
2663         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
2664         Remove the declaration of constant Mili_F from several routines. New
2665         body for internal package Conversions_Operations.
2666         (Time_Of): Add default parameters for several formals.
2668         * a-caldel.adb: Minor reformatting
2670         * a-calend.ads, a-calend.adb: New body for internal package
2671         Conversions_Operations.
2672         (Time_Of): Add default parameters for several formals.
2674         * Makefile.rtl: Add a-ststop
2675         Add Ada.Calendar.Conversions to the list of runtime files.
2676         Add g-timsta
2678         * a-calcon.adb, a-calcon.ads: New files.
2680 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
2681             Tristan Gingold  <gingold@adacore.com>
2683         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
2684         (Install_Restricted_Handlers): New procedure
2685         which is a simplified version of Install_Handlers that does not store
2686         previously installed.
2688         * s-interr-vxworks.adb: Fix ACATS cxc3001
2689         On VxWorks interrupts can't be detached.
2690         (Install_Restricted_Handlers): New procedure.
2692         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
2693         procedure.
2695 2008-04-08  Olivier Hainque  <hainque@adacore.com>
2697         * s-intman-vxworks.ads, s-intman-vxworks.adb
2698         (Map_And_Raise_Exception): Remove. Was an import of only part of the
2699         required services already implemented elsewhere.
2700         (Notify_Exception): Delete body, import __gnat_error_handler instead.
2701         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
2702         argument passed to the handler, which we need for ZCX propagation
2703         purposes.
2705 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
2707         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
2709         * g-timsta.adb, g-timsta.ads: New files.
2711 2008-04-08  Robert Dewar  <dewar@adacore.com>
2713         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
2714         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
2715         (Raise_Exception_Always): Fix documentation accordingly
2717 2008-04-08  Robert Dewar  <dewar@adacore.com>
2719         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
2720         Stream_Convert)
2722         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
2723         FOnly
2725 2008-04-08  Javier Miranda  <miranda@adacore.com>
2726             Robert Dewar  <dewar@adacore.com>
2727             Ed Schonberg  <schonberg@adacore.com>
2729         * a-tags.adb (Register_Interface_Offset): New subprogram.
2730         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
2731         (To_Predef_Prims_Table_Ptr): Removed.
2732         (Acc_Size): Removed.
2733         (To_Acc_Size): Removed.
2734         (Parent_Size): Modified to the call the subprogram returning the size of
2735         the parent by means of the new TSD component Size_Func.
2737         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
2738         (DT_Offset_To_Top_Offset): New constant value that is used to generate
2739         code referencing the Offset_To_Top component of the dispatch table's
2740         prologue.
2741         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
2742         use of 'address to initialize dispatch table slots.
2743         (Size_Func): New component of the TSD. Used by the run-time to call the
2744         size primitive of the tagged type.
2746         * checks.adb (Apply_Access_Check): Avoid check when accessing the
2747         Offset_To_Top component of a dispatch table.
2748         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
2749         deferred constant declaration. do not add a null expression, to prevent
2750         spurious errors when full declaration is analyzed.
2751         (Apply_Discriminant_Check): If both discriminant constraints share a
2752         node which is not static but has no side effects, do not generate a
2753         check for that discriminant.
2754         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
2755         subexpr, since the prefix of an attribute is a name.
2757         * checks.ads: Fix nit in comment.
2759         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
2760         and body of predefined primitives in case of CPP tagged type
2761         derivations.
2762         (Freeze_Type): Deal properly with no storage pool case
2763         (Make_Predefined_Primitive_Specs): Generate specification of abstract
2764         primitive Deep_Adjust if a nonlimited interface is derived from a
2765         limited interface.
2766         (Build_Dcheck_Functions): Create discriminant-checking functions only
2767         for variants that have some component(s).
2768         (Build_Slice_Assignment): In expanded code for slice assignment, handle
2769         properly the case where the slice bounds extend to the last value of the
2770         underlying representation.
2771         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
2772         (Is_Variable_Size_Record): An array component has a static size if
2773         index bounds are enumeration literals.
2775         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
2776         an external tag has been specified for the type.
2777         (Building_Static_DT): Add missing support for private types.
2778         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
2779         to the entity associated with the parent of Typ. This is done to
2780         avoid wrong access when the parent is a private type.
2781         (Expand_Interface_Conversion): Improve error message when the
2782         configurable runtime has no support for dynamic interface conversion.
2783         (Expand_Interface_Thunk): Add missing support to interface types in
2784         configurable runtime.
2785         (Expand_Dispatching_Call): remove obsolete code.
2786         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
2787         ensure that all subtypes and aggregates associated with dispatch
2788         tables have the attribute Is_Dispatch_Table_Entity set to true.
2789         (Register_Primitive): Rename one variable to improve code reading.
2790         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
2791         of the pointer to the 'size primitive in the TSD.
2793         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
2794         (RE_Offset_To_Top_Ptr): New entity.
2795         (RE_Register_Interface_Offset): New entity.
2796         (RE_Set_Dynamic_Offset_To_Top): New entity.
2797         (RE_Set_Offset_To_Top): Removed entity.
2798         (RE_Prim_Ptr): New entity
2799         (RE_Size_Func): New entity
2800         (RE_Size_Ptr): New entity
2801         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
2802         (Ada_Dispatching_Child): Define this new subrange.
2803         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
2804          RE_Time_Span, and RE_Time_Span_Zero).
2805         (RE_Unit_Table): Add new required run-time calls
2807         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
2808         children.
2810         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
2811         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
2812          initializes the Offset_To_Top component of a dispatch table.
2813         (Build_Predef_Prims): Removed.
2814         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
2815          its actual code.
2816         (Build_Set_Size_Function): New subprogram.
2818         * exp_ch13.adb: Do not generate storage variable for storage_size zero
2819         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
2821 2008-04-08  Robert Dewar  <dewar@adacore.com>
2823         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
2824         computing Fore when Exp > 0
2826 2008-04-08  Robert Dewar  <dewar@adacore.com>
2828         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
2830         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
2831         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
2833         * fmap.adb: Remove Big_String declarations (now in Types)
2834         (No_Mapping_File): New Boolean global variable
2835         (Initialize): When mapping file cannot be read, set No_Mapping_File to
2836         False.
2837         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
2838         tables were empty before adding entries, open the mapping file
2839         with Truncate = True, instead of delete/re-create.
2841         * fname-sf.adb: Remove Big_String declarations (now in Types)
2843         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
2844         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
2845         big pointer types
2847         * table.ads: Add for Table_Ptr'Storage_Size use 0
2849         * types.ads: Add Big_String declarations
2850         Add Size_Clause of zero for big pointer types
2852 2008-04-08  Vincent Celier  <celier@adacore.com>
2854         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
2855         (Usage): Add line for switch --subdirs=
2856         Add new switch -eL, to follow symbolic links when processing project
2857         files.
2859         * gnatcmd.adb: Process switches -eL and --subdirs=
2860         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
2861         Program_Name to get proper tool names when AAMP_On_Target is set.
2862         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
2863         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
2864         Osint.Program_Name).
2866         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
2867         (Usage): Add lines for switches -eL and --subdirs=
2869         * makeusg.adb: Add line for switch --subdirs=
2871         * prj.ads: 
2872         (Source_Data): New Boolean component Compiled, defaulted to True
2873         (Empty_File_Name: New global variable in private part, initialized in
2874         procedure Initialize.
2875         (Subdirs_Option): New constant string
2876         (Subdirs): New String_Ptr global variable
2877         (Language_Config): New component Include_Compatible_Languages
2878         (Project_Qualifier): New type for project qualifiers
2879         (Project_Data): New component Qualifier
2880         (Project_Configuration): New component Archive_Builder_Append_Option
2882         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
2883         another imported project indicate the name of this imported project.
2884         (Check_File): When a unit is in two project files, indicate the project
2885         names and the paths of the source files for each project.
2886         (Add_Source): Set Compiled to False if compiler driver is empty. Only
2887         set object, dependency and switches file names if Compiled is True.
2888         (Process_Compiler): Allow the empty string for value of attribute Driver
2889         (Get_Directories): When Subdirs is not null and Object_Dir is not
2890          specified, locate and create if necessary the actual object dir.
2891         (Locate_Directory): When Subdirs is not empty and Create is not the
2892         empty string, locate and create if necessary the actual directory
2893         as a subdirectory of directory Name.
2894         (Check_Library_Attributes.Check_Library): Allow a project where the only
2895         "sources" are header files of file based languages to be imported by
2896         library projects, in multi-language mode (gprbuild).
2897         (Check_Library_Attributes.Check_Library): In multi-language mode
2898         (gprbuild), allow a library project to import a project with no
2899         sources, even when this is not declared explicitly.
2900         (Check_If_Externally_Built): A virtual project extending an externally
2901         built project is also externally built.
2902         (Check_Library_Attributes): For a virtual project extending a library
2903         project, inherit the library directory.
2904         (Process_Project_Level_Array_Attributes): Process new attribute
2905         Inherit_Source_Path.
2906         For projects with specified qualifiers "standard", "library" or
2907         "abstract", check that the project conforms to the qualifier.
2908         (Process_Project_Level_Simple_Attributes): Process new attribute
2909          Archive_Builder_Append_Option.
2911         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
2912         (Normalize_Compiler_Switches): Only keep compiler switches that are
2913         passed to gnat1 by the gcc driver and that are stored in the ALI file
2914         by gnat1.
2915         Do not take into account switc -save-temps
2917         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
2918         gprmake is called with -eL.
2919         (Scan_Arg): Recognize switch -eL
2920         (Usage): Add line for switch -eL
2922         * prj.adb (Initialize): Initialize Empty_File_Name
2923         (Project_Empty): New component Qualifier
2925         * prj-attr.ads, prj-attr.adb: New project level attribute
2926         Inherit_Source_Path.
2927         New project level attribute Archive_Builder_Append_Option
2929         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
2931         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
2932         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
2933         upward compatibility.
2935         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
2936         each Trying ..." on different lines.
2937         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
2938         is "configuration" when not in configuration. Fail when in configuration
2939         when a specified qualifier is other than "configuration".
2941         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
2942         full associative array together.
2943         (Recursive_Process): Put the project qualifier in the project data
2944         
2945         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
2946         (Set_Project_Qualifier_Of): New procedure
2948 2008-04-08  Robert Dewar  <dewar@adacore.com>
2950         * errout.ads: Update comments for new handling of info: messages
2952         * erroutc.adb (Matches): New procedure
2953         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
2954         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
2955          info messages as well as style messages.
2957         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
2959         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
2960         subprograms.
2961         (Check_A_Call): Special "info: " warnings now have ? in the text
2962         (Elab_Warning): Use info message in static case
2964 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
2966         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
2967         whether an array aggregate with static bounds and scalar components
2968         should be expanded into a static constant.
2970 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
2971             Ed Schonberg  <schonberg@adacore.com>
2972             Robert Dewar  <dewar@adacore.com>
2974         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
2975         Has_Stream_Attribute_ Definition when checking for available stream
2976         attributes on parameters of a limited type in Ada 2005. Necessary for
2977         proper recognition of visible stream attribute clauses.
2978         (Has_Stream_Attribute_Definition): If the type is derived from a
2979         private type, then use the derived type's underlying type for checking
2980         whether it has stream attributes.
2981         (Validate_Object_Declaration): The check for a user-defined Initialize
2982         procedure applies also to types with controlled components or a
2983         controlled ancestor.
2984         Reject an object declaration in a preelaborated unit if the type is a
2985         controlled type with an overriding Initialize procedure.
2986         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
2987         checking when the parent of a dereference is a selected component and
2988         the name has not been analyzed.
2990         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
2991         prefixes that are invalid explicit dereferences of remote
2992         access-to-class-wide values, first checking whether the selected
2993         component is a prefixed form of call to a tagged operation.
2994         (Analyze_Call): Remove code that issues an error for limited function
2995         calls in illegal contexts, as we now support all of the contexts that
2996         were forbidden here.
2997         Allow a function call that returns a task.and appears as the
2998         prefix of a selected component.
2999         (Analyze_Reference): Give error message if we try to make a 'Reference
3000         for an object that is atomic/aliased without its type having the
3001         corresponding attribute.
3002         (Analyze_Call): Remove condition checking for attributes to allow
3003         calls to functions with inherently limited results as prefixes of
3004         attributes. Remove related comment about Class attributes.
3005         (Analyze_Selected_Component): If the prefix is a remote type, check
3006         whether this is a prefixed call before reporting an error.
3007         (Complete_Object_Operation): If the controlling formal is an access to
3008         variable reject an actual that is a constant or an access to one.
3009         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
3010         primitive operations from base type.
3012         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
3013         build-in-place
3014         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
3015         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
3016         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
3017         (Expand_N_Slice): Test for prefix that is a build-in-place function call
3018         and call Make_Build_In_Place_Call_In_Anonymous_Context.
3019         (Analyze_Call): Remove code that issues an error for limited function
3020         calls in illegal contexts, as we now support all of the contexts that
3021         were forbidden here.
3022         New calling sequence for Get_Simple_Init_Val
3023         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
3024         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
3026 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
3027             Ed Schonberg  <schonberg@adacore.com>
3028             Robert Dewar  <dewar@adacore.com>
3030         * exp_ch2.adb: Minor reformatting.
3031         (Expand_Entry_Index_Parameter): Set the type of the identifier.
3032         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
3033         (Expand_Protected_Component): New routine.
3034         (Expand_Protected_Private): Removed.
3035         Add Sure parameter to Note_Possible_Modification calls
3037         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
3038         generated subprogram declaration must inherit the overriding indicator
3039         from the instantiation node.
3040         (Validate_Access_Type_Instance): If the designated type of the actual is
3041         a limited view, use the available view in all cases, not only if the
3042         type is an incomplete type.
3043         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
3044         and the actual subtype does not exclude null.
3045         (Process_Default): Handle properly abstract formal subprograms.
3046         (Check_Formal_Package_Instance): Handle properly defaulted formal
3047         subprograms in a partially parameterized formal package.
3048         Add Sure parameter to Note_Possible_Modification calls
3049         (Validate_Derived_Type_Instance): if the formal is non-limited, the
3050         actual cannot be limited.
3051         (Collect_Previous_Instances): Generate instance bodies for subprograms
3052         as well.
3054         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
3055         try to set RM_Size.
3056         Add Sure parameter to Note_Possible_Modification calls
3057         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
3058         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
3059         constant overlaid by variable and issue warning.
3060         Use new Is_Standard_Character_Type predicate
3061         (Analyze_Record_Representation_Clause): Check that the specified
3062         Last_Bit is not less than First_Bit - 1.
3063         (Analyze_Attribute_Definition_Clause, case Address): Check for
3064         self-referential address clause
3066         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
3067         detection mechanism when the lhs is a prival.
3068         (Analyze_Assignment): Call Check_Unprotected_Access to detect
3069         assignment of a pointer to protected data, to an object declared
3070         outside of the protected object.
3071         (Analyze_Loop_Statement): Check for unreachable code after loop
3072         Add Sure parameter to Note_Possible_Modication calls
3073         Protect analysis from previous syntax error such as a scope mismatch
3074         or a missing begin.
3075         (Analyze_Assignment_Statement): The assignment is illegal if the
3076         left-hand is an interface.
3078         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
3079         violation of restriction No_Implicit_Conditionals
3080         Add Sure parameter to Note_Possible_Modication calls
3081         Use new Is_Standard_Character_Type predicate
3082         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
3083         call as operator. Fixes problems (e.g. validity checking) which
3084         come from the result looking as though it does not come from source).
3085         (Resolve_Call): Check case of name in named parameter if style checks
3086         are enabled.
3087         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
3088         from the checking that such calls should not occur from an entry body.
3089         (Resolve_Call): If the return type of an Inline_Always function
3090         requires the secondary stack, create a transient scope for the call
3091         if the body of the function is not available for inlining.
3092         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
3093         that are actuals for in-out formals.
3094         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
3095         primitive operations from base type.
3096         (Analyze_Selected_Component): If the context is a call to a protected
3097         operation the parent may be an indexed component prior to expansion.
3098         (Resolve_Actuals): If an actual is of a protected subtype, use its
3099         base type to determine whether a conversion to the corresponding record
3100         is needed.
3101         (Resolve_Short_Circuit): Handle pragma Check
3103         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
3104         Use new Is_Standard_Character_Type predicate
3105         (Eval_Relational_Op): Catch more cases of string comparison
3107 2008-04-08  Robert Dewar  <dewar@adacore.com>
3108             Gary Dismukes  <dismukes@adacore.com>
3110         * s-rident.ads: Add No_Default_Initialization restriction
3112         * exp_tss.adb: 
3113         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
3114         (Set_TSS): Handle No_Default_Initialization case
3116         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
3117         No_Default_Initialization
3118         (Expand_N_Subprogram_Body): Remove redundant initialization of out
3119         parameters when Normalize_Scalars is active.
3120         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
3121         Fix casing error in formal parameter name in call
3122         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
3123         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3124         dispatching call on VM targets.
3126 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
3127             Thomas Quinot  <quinot@adacore.com>
3129         * exp_ch7.adb (Find_Final_List): Change the test for generating a
3130         selected component from an access type's Associated_Final_Chain to
3131         check for the presence of that field, rather than assuming it exists
3132         for all named access types.
3133         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
3134         procedure to call at the end of the generated cleanup procedure.
3135         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
3136         and an At_End_Proc already exists in the handled sequence of statements
3137         for which cleanup actions are being expanded, the original cleanup
3138         action must be preserved.
3140 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
3141             Ed Schonberg  <schonberg@adacore.com>
3142             Robert Dewar  <dewar@adacore.com>
3143             Gary Dismukes  <dismukes@adacore.com>
3145         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
3146         Build_Unprotected_Subprogram_Body): Generate debug info for
3147         declarations related to the handling of private data in task and
3148         protected types.
3149         (Debug_Private_Data_Declarations): New subprogram.
3150         (Install_Private_Data_Declarations): Remove all debug info flagging.
3151         This is now done by Debug_Private_Data_Declarations at the correct
3152         stage of expansion.
3153         (Build_Simple_Entry_Call): If the task name is a function call, expand
3154         the prefix into an object declaration, and make the surrounding block a
3155         task master.
3156         (Build_Master_Entity): An internal block is a master if it wraps a call.
3157         Code reformatting, update comments. Code clean up.
3158         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
3159         (Replicate_Entry_Formals): If the formal is an access parameter or
3160         anonymous access to subprogram, copy the original tree to create new
3161         entities for the formals of the subprogram.
3162         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
3163         for tasks to store the value passed using pragma Relative_Deadline.
3164         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
3165         run-time call to create a task.
3166         (Build_Wrapper_Spec): If the controlling argument of the interface
3167         operation is an access parameter with a non-null indicator, use the
3168         non-null indicator on the wrapper.
3170         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
3171         present, which it may not be in the case where the type entity is an
3172         incomplete view brought in by a limited with.
3173         (Analyze_Task_Type): Only retrieve the full view when present, which it
3174         may not be in the case where the type entity is an incomplete view brought
3175         in by a limited with.
3176         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
3177         private components of a protected type, to prevent the generation of freeze
3178         nodes for which there is no proper scope of elaboration.
3180         * exp_util.ads, exp_util.adb
3181         (Remove_Side_Effects): If the expression is a function call that returns a
3182         task, expand into a declaration to invoke the build_in_place machinery.
3183         (Find_Protection_Object): New routine.
3184         (Remove_Side_Effects): Also make a copy of the value
3185         for attributes whose result is of an elementary type.
3186         (Silly_Boolean_Array_Not_Test): New procedure
3187         (Silly_Boolean_Array_Xor_Test): New procedure
3188         (Is_Volatile_Reference): New function
3189         (Remove_Side_Effects): Use Is_Volatile_Reference
3190         (Possible_Bit_Aligned_Component): Handle slice case properly
3192         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
3193         case test to Exp_Util
3194         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
3196 2008-04-08  Thomas Quinot  <quinot@adacore.com>
3198         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
3199         in call
3200         (Add_RACW_Features): When processing an RACW in another unit than the
3201         main unit, set Body_Decls to No_List to indicate that the bodies of
3202         the type's TSS must not be generated.
3203         (GARLIC_Support.Add_RACW_Read_Attribute,
3204         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
3205         Body_Decls is No_List.
3206         (PolyORB_Support.Add_RACW_Read_Attribute,
3207         PolyORB_Support.Add_RACW_Write_Attribute,
3208         PolyORB_Support.Add_RACW_From_Any,
3209         PolyORB_Support.Add_RACW_To_Any,
3210         PolyORB_Support.Add_RACW_TypeCode): Same.
3211         (Transmit_As_Unconstrained): New function.
3212         (Build_Ordered_Parameters_List): Use the above to order parameters.
3213         (GARLIC_Support.Build_General_Calling_Stubs):
3214         Use the above to determine which parameters to unmarshall using 'Input
3215         at the point where their temporary is declared (as opposed to later on
3216         with a 'Read call).
3217         (PolyORB_Support.Build_General_Calling_Stubs):
3218         Use the above to determine which parameters to unmarshall using From_Any
3219         at the point where their temporary is declared (as opposed to later on
3220         with an assignment).
3222 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
3224         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
3225         an Input function for an access type, do not perform default
3226         initialization on the local variable that receives the value, to
3227         prevent spurious warnings when the type is null-excluding.
3229 2008-04-08  Robert Dewar  <dewar@adacore.com>
3230             Ed Schonberg  <schonberg@adacore.com>
3232         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
3233         units.
3234         (Size_Known): Generic formal scalar types have known at compile
3235         time size, so remove check.
3236         Fix casing error in formal parameter name in call
3237         (Freeze_Subprogram): If the subprogram is a user-defined operator,
3238         recheck its overriding indication.
3240 2008-04-08  Vincent Celier  <celier@adacore.com>
3242         * gnat1drv.adb: Send all messages indicating an error to standard error
3244 2008-04-08  Robert Dewar  <dewar@adacore.com>
3246         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
3247         (List_Applicable_Restrictions): Do not list existing restrictions
3249 2008-04-08  Thomas Quinot  <quinot@adacore.com>
3251         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
3252         add a pointer to generic sockets literature
3253         do not mention that the given example is "typical" usage.
3254         Remove obsolete comment about multicast not being supported on Windows.
3255         (Connect_Socket): Make Server mode IN rather than IN OUT
3256         since this formal is never modified.
3258 2008-04-08  Robert Dewar  <dewar@adacore.com>
3260         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
3261         the declaration for some different entity.
3262         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
3263         list is precent (following the parent subtype indication), display
3264         appropriate "and" keyword.
3266         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
3267         Remove unnecessary calls to Init_Size_Align and Init_Esize.
3268         Add notes on use of Parent field of an Itype
3270 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
3271             Robert Dewar  <dewar@adacore.com>
3272             Gary Dismukes  <dismukes@adacore.com>
3274         * lib-xref.adb (Is_On_LHS): Remove dead code
3275         (Output_Overriden_Op): If the overridden operation is itself inherited,
3276         list the ancestor operation, which is the one whose body or absstract
3277         specification is actually being overridden. For source navigation
3278         purposes.
3280         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
3281         operation is primitive for the type.
3282         (Declare_Inherited_Private_Subprograms): If the new operation overrides
3283         an inherited private subprogram, set properly the Overridden_Operation
3284         attribute, for better cross-reference information.
3285         (Analyze_Package_Specification): Do late analysis of spec PPCs
3286         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
3287         properly the full view and underlying full views of a private type in a
3288         child unit, whose full view is derived from a private type in a parent
3289         unit, and whose own full view becomes visible in the child body.
3291         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
3292         primitive operation after the type has been frozen, add an explicit
3293         reference to the type and the operation, because other primitive
3294         references have been emitted already.
3295         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3296         dispatching call on VM targets.
3298 2008-04-08  Vincent Celier  <celier@adacore.com>
3299             Thomas Quinot  <quinot@adacore.com>
3301         * make.adb: (Gnatmake_Called): Remove, no longer necessary
3302         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
3303         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
3304         (Insert_Project_Sources): Take into account index in multi-unit source
3305         files.
3306         After building a library project, delete all temporary files.
3307         (Initialize): Reset current output after parsing project file.
3308         (Collect_Arguments_And_Compile): Never insert in the queue the sources
3309         of library projects that are externally built.
3310         Put file name in error and inform messages if -df is used
3311         (Display): If invoked with -d7, do not display path names, but only
3312         file names.
3314         * makeutl.ads (Path_Or_File_Name): New function
3315         (Path_Or_File_Name): New function
3317 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
3319         * Make-lang.in: Disable warnings during first stage of bootstrap
3320         Get rid of gnatbl.
3321         Update dependencies.
3323 2008-04-08  Vincent Celier  <celier@adacore.com>
3325         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
3326         case to decide if ALI object file is included in library.
3327         (Build_Library): Never attempt to build a library if the project is
3328         externally built.
3330 2008-04-08  Thomas Quinot  <quinot@adacore.com>
3332         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
3333         (No_List) is defined to return Empty.
3335 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
3337         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
3338         documentation.
3339         Update comments.
3340         (Read_Default_Search_Dirs): Do not consider spaces as path separators
3341         because spaces may be part of legal paths.
3343 2008-04-08  Robert Dewar  <dewar@adacore.com>
3345         * par-ch11.adb (P_Exception_Handler): Check indentation level for
3346         handler
3348 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
3350         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
3351         in a type declaration, if this is not an interface declaration or
3352         private type extension.
3354 2008-04-08  Vincent Celier  <celier@adacore.com>
3356         * prj-util.adb (Executable_Of): New String parameter Language. When
3357         Ada_Main is False and Language is not empty, attempt to remove the body
3358         suffix or the spec suffix of the language to get the base of the
3359         executable file name.
3360         (Put): New Boolean parameter Lower_Case, defauilted to False. When
3361         Lower_Case is True, put the value in lower case in the name list.
3362         (Executable_Of): If there is no executable suffix in the configuration,
3363         then do not modify Executable_Extension_On_Target.
3365         * prj-util.ads (Executable_Of): New String parameter Language,
3366         defaulted to the empty string.
3367         (Put): New Boolean parameter Lower_Case, defauilted to False
3369 2008-04-08  Robert Dewar  <dewar@adacore.com>
3371         * scng.adb (Scan_Identifier): Handle case of identifier starting with
3372         wide character using UTF-8 encoding.
3374 2008-04-08  Javier Miranda  <miranda@adacore.com>
3376         * sem.adb (Analyze): Consider case in which we analyze an empty node
3377         that was generated by a call to a runtime function that is not
3378         available under the configurable runtime.
3380         * sem.ads (Inside_Freezing_Actions): New flag.
3381         (Save_Check_Policy_List): New field in scope stack entry
3383 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
3384             Robert Dewar  <dewar@adacore.com>
3386         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
3387         the ancestor part of an extension aggregate for a limited type.
3388         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
3389         enumeration index bounds.
3390         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
3391         when array is too short.
3392         (Check_Expr_OK_In_Limited_Aggregate): Move function
3393         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
3394         change name).
3395         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
3396         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
3397         component associations.
3398         (Check_Non_Limited_Type): Moved to outer level and renamed.
3399         (Resolve_Record_Aggregate): In an extension aggregate, an association
3400         with a box initialization can only designate a component of the
3401         extension, not a component inherited from the given ancestor
3403         * sem_case.adb: Use new Is_Standard_Character_Type predicate
3405 2008-04-08  Robert Dewar  <dewar@adacore.com>
3407         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
3408         negative scale
3409         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
3410         Properly handle case where Aft > Scale and input number is less than
3411         one.
3413 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
3415         * s-stoele.ads, s-soflin.ads: Move the location of
3416         Dummy_Communication_Block from System.Storage_Elements to
3417         System.Soft_Links.
3419         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
3420         emulate Communication_Block in certain scenarios.
3422 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
3424         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
3425         subprogram.
3426         Add new subtype S_WWC, unchecked conversion routines From_WWC and
3427         To_WWC.
3428         (I_WWC, O_WWC): New routines for input and output of
3429         Wide_Wide_Character.
3431 2008-04-08  Robert Dewar  <dewar@adacore.com>
3433         * stringt.adb (Write_String_Table_Entry): Handle wide characters
3434         properly
3436 2008-04-08  Robert Dewar  <dewar@adacore.com>
3438         * styleg.adb (Check_Comment): Allow special char after -- in
3439         non-end-of-line case
3441 2008-04-08  Robert Dewar  <dewar@adacore.com>
3443         * stylesw.adb: Implement -gnaty + - y options
3444         (Set_GNAT_Style_Check_Options): Includ I in style check string
3446         * stylesw.ads: Add comments for new style switch options
3448 2008-04-08  Sergey Rybin  <rybin@adacore.com>
3450         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
3451         to the set of the GNAT components needed by ASIS.
3453 2008-04-08  Bob Duff  <duff@adacore.com>
3455         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
3457 2008-04-08  Tristan Gingold  <gingold@adacore.com>
3459         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
3460         Improve error message generation.
3462 2008-04-08  Vincent Celier  <celier@adacore.com>
3464         * a-direct.adb (Start_Search): Check for Name_Error before checking for
3465         Use_Error, as specified in the RM. Check if directory is open and raise
3466         Use_Error if it is not.
3468 2008-04-08  Vincent Celier  <celier@adacore.com>
3469             Robert Dewar  <dewar@adacore.com>
3471         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
3472         AAMP_On_Target is set.
3474         * vms_data.ads: Add NOxxx to style check switch list
3475         Add entry COMPONENTS for -gnatVe
3476         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
3477         (/SUBDIRS=).
3478         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
3479         Add qualifiers for gnatmetric coupling options
3480         Add note that -gnata enables all checks
3481         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
3482         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
3483         New warning flag -gnatw.e
3485         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
3486         Add entry for -gnatyN (forgotten before)
3487         Line for new warning switch -gnatw.p
3488         New warning flag -gnatw.e
3490         * gnat_ugn.texi: Add documentation fpr project file switch -aP
3491         Document -gnaty - + y
3492         Replace occurences of "package specification" with "package spec"
3493         Define preprocessing symbols in documentation of gnatprep
3494         Clarify reason for distinguishing overflow checking
3495         Add documentation for project-aware tool switches -eL and --subdirs=
3496         Complete list of configuration pragmas
3497         Specify that, even when gnatmake switch -x is used, mains on the command
3498         line need to be sources of project files.
3499         Editing of gnatcheck/gnatmetric doc.
3500         Add documentation for -gnatw.p/-gnatw.P
3501         Add missing documentation for -fno-inline-functions.
3502         Add documentation for -gnatw.e
3504         * gnat_rm.texi: Add documentation for No_Default_Initialization
3505         Replace occurences of "package specification" with "package spec"
3506         Document use of * in Warnings Off string
3507         Update documentation of alignment/component clauses.
3508         Add documentation for Invalid_Value
3509         Document new consistency rule for Optimize_Alignment
3510         Add documentation for Precondition and Postcondition pragmas
3511         Add documentation for Check and Check_Policy pragmas
3512         Document new Enum_Val attribute
3513         Remove requirement for static string in pragma Assert
3514         Add documentation on GNAT.Time_Stamp
3516         * ug_words: add entry for -gnatVe
3517         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
3518         Add entry for -gnatw.e
3520         * debug.adb: Add missing documentation for d.a flag
3521         Document new -gnatd.a switch.
3522         Add documentation for new gnatmake debug switch -df
3524 2008-04-08  Thomas Quinot  <quinot@adacore.com>
3526         * gen-soccon.c: Bump year in copyright notices.
3528         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
3530 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
3532         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
3533         Minor reformatting.
3535 2008-04-08  Robert Dewar  <dewar@adacore.com>
3536             Bob Duff  <duff@adacore.com>
3538         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
3539         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
3541         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
3543         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
3545         * g-trasym.ads: Minor comment improvements
3547         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
3549         * a-sequio.ads, a-direio.ads: improve message for tagged type
3551         * a-strunb.ads: Minor reformatting
3553         * a-tifiio.adb: Minor reformatting
3555         * atree.adb (Fix_Parents): Use clearer names for formals
3556         Cleanup and simplify code
3557         Use named notation in calls
3559         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
3560         confusing calls
3562         * uintp.adb: Used named notation for some confusing calls
3564         * bindusg.adb: Minor change in one line of output
3566         * cstand.adb: Minor reformatting of src representation of Standard
3568         * a-assert.ads: Add comment.
3570         * g-decstr.adb: Fix bad indentation
3572         * expander.ads, expander.adb: Code clean up.
3574         * sem_dist.ads: Minor comment improvement
3576         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
3577         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
3579         * i-cstrin.adb: Fix casing error in formal parameter name in call
3581 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
3583         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
3584         mentioned in limited_with_clauses to do create semantic dependencies
3585         even though they appear in the ali file.
3587 2008-04-08  Emmanuel Briot  <briot@adacore.com>
3589         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
3590         statement.
3591         (Get_Configuration): New subprogram.
3593         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
3594         These optional parameters help preserve the casing of the project's name
3595         when pretty-printing.
3597 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
3598             Arnaud Charlet  <charlet@adacore.com>
3600         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
3601         then use __gnat_set_exit_status to report the returned status code.
3603         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
3604         messages on .NET, since some constructs of the language are not
3605         properly supported.
3607         * gnatlink.adb (Gnatlink): In case the command line is too long for the
3608         .NET linker, gnatlink now concatenate all .il files and pass this to
3609         ilasm.
3611 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
3612             Xavier Grave  <grave@ipno.in2p3.fr>
3614         * Makefile.in: Add make ifeq define for mips/mipsel support.
3615         * g-soccon-linux-mips.ads, system-linux-mipsel.ads, 
3616         system-linux-mips.ads: New files.
3618 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
3620         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
3621         detect systems using GNU libc.
3622         * gsocket.h: ditto.
3623         * socket.c: ditto.
3624         * adaint.c: ditto.
3625         * link.c: ditto.
3627 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
3629         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New 
3630         constant constant for sysconf call.
3631         (bit_field): New packed boolean type used by cpu_set_t.
3632         (cpu_set_t): New type corresponding to the C type with
3633         the same name. Note that on the Ada side we use a bit
3634         field array for the affinity mask. There is not need
3635         for the C macro for setting individual bit.
3636         (pthread_setaffinity_np): New imported routine.
3637         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
3638         on GNU/kFreeBSD.
3640 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3642         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
3644 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3646         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
3647         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
3648         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
3649         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
3650         Return by Depressed Stack Pointer.
3652 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3654         * decl.c (is_variable_size): Do not unconditionally return false
3655         on non-strict alignment platforms.
3657 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3659         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
3660         used to process all the variants of the specified type.
3661         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
3662         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
3663         (rest_of_type_decl_compilation): Likewise.
3664         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
3666 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
3668         * gigi.h (insert_block): Kill.
3669         * utils.c (insert_block): Kill.
3671 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
3673         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
3674         type has self-referential size, get the size from the initializing
3675         expression directly if it is also a constant whose nominal type
3676         has self-referential size.
3678 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3680         PR ada/33688
3681         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
3683         PR ada/33857
3684         * env.c: Always include crt_externs.h if __APPLE__ is defined.
3685         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
3687 2008-04-01  Andreas Jaeger  <aj@suse.de>
3689         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
3690         IP_PKTINFO.
3692 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3694         * g-table.adb, g-tasloc.adb, g-traceb.ads,
3695         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
3696         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
3697         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
3698         gnatlink.adb, gnatmem.adb, gprep.adb,
3699         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
3700         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
3701         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
3702         lib-xref.ads, lib.adb, link.c, live.ads,
3703         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
3704         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
3705         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
3706         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
3707         namet.adb, namet.h, nlists.adb, nlists.ads,
3708         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
3709         osint-c.ads, osint.adb, osint.ads, output.ads,
3710         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
3711         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
3712         par-endh.adb, par-labl.adb, par-prag.adb,
3713         par-sync.adb, par-tchk.adb, par-util.adb,
3714         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
3715         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3716         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
3717         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
3719 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3721         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
3722         size if it has overflowed.
3724 2008-03-31  Olivier Hainque  <hainque@adacore.com>
3725             Eric Botcazou  <ebotcazou@adacore.com>
3727         * utils2.c (find_common_type): Document assumption on t1/t2 vs
3728         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
3730 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3732         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
3733         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
3734         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
3735         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
3736         exp_tss.ads, exp_util.adb, exp_util.ads,
3737         exp_vfpt.adb, freeze.adb, freeze.ads,
3738         frontend.adb, g-alleve.adb, g-altcon.adb,
3739         g-altive.ads, g-alveop.ads, g-alvevi.ads,
3740         g-arrspl.adb, g-busorg.ads, g-calend.adb,
3741         g-calend.ads, g-casuti.ads, g-cgideb.adb,
3742         g-comlin.adb, g-comlin.ads, g-curexc.ads,
3743         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
3744         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
3745         g-dyntab.adb, g-encstr.ads, g-excact.ads,
3746         g-except.ads, g-expect.ads, g-heasor.adb,
3747         g-hesora.adb, g-hesorg.adb, g-htable.ads,
3748         g-locfil.ads, g-md5.adb, g-md5.ads,
3749         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
3750         g-pehage.adb, g-pehage.ads, g-regexp.adb,
3751         g-regexp.ads, g-regpat.adb, g-regpat.ads,
3752         g-soccon-aix.ads, g-soccon-darwin.ads,
3753         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
3754         g-soccon-hpux.ads, g-soccon-irix.ads,
3755         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
3756         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
3757         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
3758         g-soccon-solaris.ads, g-soccon-tru64.ads,
3759         g-soccon-vms.ads, g-soccon-vxworks.ads,
3760         g-soccon.ads, g-socket.adb, g-socket.ads,
3761         g-socthi-mingw.adb, g-socthi-vms.adb,
3762         g-socthi-vxworks.adb, g-soliop-mingw.ads,
3763         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
3764         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
3765         typos.
3767 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
3769         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
3770         if the procedure is imported.
3772 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3774         * adaint.c: Fix warnings.
3776 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3778         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
3780 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3782         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
3783         Fix problem of status check for null file
3785 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3787         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
3788         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
3789         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
3790         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
3791         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
3792         comments.
3794 2008-03-26  Thomas Quinot  <quinot@adacore.com>
3796         PR ada/33688
3797         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
3798         Get_Socket_Option): Add support for Receive_Packet_Info.
3800         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3801         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3802         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
3803         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
3804         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
3805         new constants SO_REUSEPORT and IP_PKTINFO
3807 2008-03-26  Robert Dewar  <dewar@adacore.com>
3809         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
3810         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
3811         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
3812         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
3813         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
3814         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
3815         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
3816         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
3817         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
3818         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
3819         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
3820         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
3821         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
3822         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
3823         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
3824         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
3825         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
3826         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
3827         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
3828         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
3829         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
3830         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
3831         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
3832         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
3833         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
3834         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
3835         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
3836         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
3837         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
3838         s-tasloc.adb: Minor reformatting.
3839         Update comments.
3840         Remove "used for" sections from comments.
3842 2008-03-26  Robert Dewar  <dewar@adacore.com>
3844         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
3845         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
3846         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
3847         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
3848         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
3849         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
3850         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
3851         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
3852         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
3853         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
3854         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
3855         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
3856         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
3857         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
3858         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
3859         double spaced if it fits on one line and otherwise single spaced.
3861 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3863         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb, 
3864         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb, 
3865         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
3866         or task info if the thread could not be created.
3868 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
3870         * gnatvsn.ads (Library_Version): Bump to 4.4.
3871         (Current_Year): Bump to 2008.
3873 2008-03-26  Robert Dewar  <dewar@adacore.com>
3875         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
3877         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
3879         * debug.adb: Add debug flags d.r and d.v
3880         Add debug flag .T (Optimize_Alignment (Time))
3881         Add debug flag .S (Optimize_Alignment (Space))
3883         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
3884         depending on setting of relevant debug flags.
3885         Replace use of Warnings_Off by Has_Warnings_Off
3886         (Freeze_Entity): In circuit for warning on suspicious convention
3887         actuals, do not give warning if subprogram has same entity as formal
3888         type, or if subprogram does not come from source.
3889         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
3890         if Optimize_Alignment set to Space.
3892         * frontend.adb: Add call to Sem_Warn.Initialize
3893         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
3894         Reset Optimize_Alignment mode from debug switches .S and .T
3896         * layout.adb (Layout_Composite_Object): Rewritten for
3897         Optimize_Aligment pragma.
3899         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
3900         mode.
3902         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
3904         * par-prag.adb (N_Pragma): Chars field removed, use Chars
3905         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
3906         this change. Add entry for pragma Optimize_Alignment
3908         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
3909         (Pragma_Identifier (..
3910         instead, adjustments throughout to accomodate this change.
3911         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
3912         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
3913         Add implementation of pragma Optimize_Alignment
3915 2008-03-26  Vincent Celier  <celier@adacore.com>
3917         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
3918         Improve memory usage to avoid use of stack.
3920 2008-03-26  Robert Dewar  <dewar@adacore.com>
3922         * a-teioed.ads: Correct value of Default_Fill
3924         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
3926 2008-03-26  Robert Dewar  <dewar@adacore.com>
3928         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
3929         with Current_Output (introduce Self).
3931 2008-03-26  Robert Dewar  <dewar@adacore.com>
3933         * checks.adb (Ensure_Valid): Capture valid status if possible
3934         (eliminate checks)
3936 2008-03-26  Robert Dewar  <dewar@adacore.com>
3938         * stand.ads: Deal with reordering of package standard declarations
3940         * cstand.adb: Put package Standard declarations in proper order
3942 2008-03-26  Robert Dewar  <dewar@adacore.com>
3944         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
3945         (Pragma_Identifier (.. instead.
3946         (OK_To_Reorder_Components): New flag
3947         (Has_Entries): Code cleanup.
3948         (Warnings_Off_Used): New flag
3949         (Warnings_Off_Used_Unmodified): New flag
3950         (Warnings_Off_Used_Unreferenced): New flag
3951         (Has_Warnings_Off): New function
3952         (Has_Unmodified): New function
3953         (Has_Unreferenced): New function
3954         (Is_Trivial_Subprogram): New flag
3955         (Is_Static_Dispatch_Table_Entity): New attribute.
3956         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
3957         (more consistent with other similar names)
3958         (Access_Subprogram_Type): New classification function
3960 2008-03-26  Robert Dewar  <dewar@adacore.com>
3962         * errout.ads: Document new !! insertion sequence
3964         * errout.adb (N_Pragma): Chars field removed, use Chars
3965         (Pragma_Identifier (..  instead.
3966         Replace use of Warnings_Off by Has_Warnings_Off
3967         (Error_Msg_Internal): Don't delete warning ending in !!
3969 2008-03-26  Robert Dewar  <dewar@adacore.com>
3971         * par.adb (Check_No_Right_Paren): Removed no longer used
3973         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
3974         (Pragma_Identifier (..  instead.
3976         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
3978         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
3979         par-ch4.adb: Minor improvements in error recovery and messages.
3981         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
3982         non-serious
3984         * par-ch9.adb: Minor improvements in error recovery and messages
3985         (P_Protected): Better error recovery for "protected type x;"
3987         * par-util.adb: Minor improvements in error recovery and messages
3988         (Check_No_Right_Paren): Removed no longer used
3990 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
3992         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
3993         that the prefix of an attribute is the type of the aggregate being
3994         expanded.
3996 2008-03-26  Javier Miranda  <miranda@adacore.com>
3997             Robert Dewar  <dewar@adacore.com>
3999         * exp_attr.adb (N_Pragma): Chars field removed.
4000         (Expand_N_Attribute_Reference): If the designated type associated with
4001         attribute 'Unrestricted_Access is a subprogram entity then replace it
4002         by an E_Subprogram_Type itype.
4003         Implement attribute Old
4005         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
4007         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
4008         Replace call to
4009         New_Internal_Entity by call to Create_Itype to centralize calls
4010         building itypes, ad propagate the convention of the designated
4011         subprogram. In addition, disable the machinery cleaning constant
4012         indications from all entities in current scope when 'Unrestricted_Access
4013         corresponds with a node initializing a dispatch table slot.
4014         (Analyze_Attribute): Parameterless attributes returning a string or a
4015         type will not be called with improper arguments, so we can remove junk
4016         code that was dealing with this case.
4017         Implement attribute Old
4019         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
4020         Add entry for pragma Optimize_Alignment
4021         New standard names Sync and Synchronize
4023 2008-03-26  Robert Dewar  <dewar@adacore.com>
4024             Arnaud Charlet  <charlet@adacore.com>
4026         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
4027         stmt.
4028         (No_Exception_Propagation_Active): New function.
4029         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
4030         Update comments, and review all uses of No_Exception_Propagation, which
4031         are now correct and in sync with what gigi expects.
4033         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
4034         function.
4035         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
4036         Update comments, and review all uses of No_Exception_Propagation, which
4037         are now correct and in sync with what gigi expects.
4039 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
4041         * sem_ch3.adb (Access_Definition): If the access type is the return
4042         result of a protected function, create an itype reference for it
4043         because usage will be in an inner scope from the point of declaration.
4044         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
4045         OK_To_Reorder_Components.
4046         (Make_Index): If an overloaded range includes a universal integer
4047         interpretation, resolve to Standard.Integer.
4048         (Analyze_Subtype_Indication): Copy Convention to subtype
4049         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
4050         limited an synchronized progenitors in type declaration and private
4051         extension declarations.
4053         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
4054         protected subprogram body, determine proper scope from subprogram
4055         declaration.
4057 2008-03-26  Robert Dewar  <dewar@adacore.com>
4059         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
4060         No_Run_Time_Mode
4062 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
4064         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
4065         of a heap allocator for a limited unconstrained function return when
4066         resstriction No_Allocators is active.
4067         (Analyze_Allocator): The restriction No_Allocators is now only checked
4068         on allocators that have Comes_From_Source set, as per RM-H.4(7).
4070         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
4071         of a heap allocator for a limited unconstrained function return when
4072         resstriction No_Allocators is active.
4073         (Analyze_Allocator): The restriction No_Allocators is now only checked
4074         on allocators that have Comes_From_Source set, as per RM-H.4(7).
4075         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
4076         operands are fixed-point types, the universal_fixed predefined operation
4077         is used, regardless of whether the operand type (s) have a primitive
4078         operation of the same name.
4080 2008-03-26  Javier Miranda  <miranda@adacore.com>
4082         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
4083         Is_Static_Dispatch_Table
4084         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
4085         to Exchange_Declarations to exchange the private and full-view. Bug
4086         found working in this issue.
4087         (Expand_Dispatching_Call): Propagate the convention of the subprogram
4088         to the subprogram pointer type.
4089         (Make_Secondary_DT): Replace generation of Prim'Address by
4090         Address (Prim'Unrestricted_Access)
4091         (Make_DT): Replace generation of Prim'Address by
4092         Address (Prim'Unrestricted_Access)
4093         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
4094         simple call form for single entry.
4095         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
4096         tables of predefined primitives).
4097         (Make_Secondary_DT): Add support to handle access to dispatch tables of
4098         predefined primitives.
4099         (Make_Tags): Add entities to Access_Dispatch_Table associated with
4100         access to dispatch tables containing predefined primitives.
4102         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
4103         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
4104         this change.
4105         (Register_Predefined_DT_Entry): Updated to handle the new contents
4106         of attribute Access_Disp_Table (pointers to dispatch tables containing
4107         predefined primitives).
4109         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
4110         subprogram.
4111         (Find_Interface_ADT): Updated to skip the new contents of attribute
4112         Access_Dispatch_Table (pointers to dispatch tables containing predefined
4113         primitives).
4115         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
4116         concurrent types.
4117         (Set_Convention): Use new function Is_Access_Subprogram_Type
4118         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
4119         Access_Dispatch_Table (pointers to dispatch tables containing predefined
4120         primitives).
4122         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
4123         expanded code avoiding calls to Build_Predef_Prims.
4124         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
4125         call to Build_Get_Predefined_Prim_Op_Address.
4127 2008-03-26  Javier Miranda  <miranda@adacore.com>
4129         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
4130         subprogram Corresponding_Runtime_Package to know the runtime package
4131         that will provide support to a given protected type.
4133         * exp_ch9.adb (Add_Private_Declarations,
4134         Build_Protected_Subprogram_Call,
4135         Build_Protected_Entry, Build_Simple_Entry_Call,
4136         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
4137         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
4138         cleanup using the new centralized subprogram Corresponding_Runtime
4139         Package to know the runtime package that provides support to
4140         a given protected type.
4142 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
4144         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
4145         assignment is within the initialization procedure for a packed array,
4146         and Initialize_Scalars is enabled, compile right-hand side with checks
4147         off, because the value is purposely out of range.
4149 2008-03-26  Vincent Celier  <celier@adacore.com>
4151         * gnatcmd.adb: Add processing for GNAT SYNC
4153         * vms_conv.ads: (Command_Type): Add command Sync
4155         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
4157         * vms_data.ads: Add entries for -gnatw.w
4158         Add qualifier for gnatstub --header-file option
4159         Add switches for GNAT SYNC
4161         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
4162         (Add_Package_Name): New procedure
4163         (Package_Name_List): New function
4164         (Initialize): Add known package names to the list
4165         (Register_New_Package): Add the new package name to the list
4167 2008-03-26  Robert Dewar  <dewar@adacore.com>
4169         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
4170         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
4171         Raise_Exception by "raise with" construct.
4173 2008-03-26  Pascal Obry  <obry@adacore.com>
4175         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
4176         supported platforms.
4177         
4178         * Makefile.rtl: Add g-sercom.o.
4179         
4180         * impunit.adb: Add g-sercom.adb.
4181         
4182         * s-crtl.ads (open): New routine.
4183         (close): Likewise.
4184         (write): Likewise.
4185         
4186         * s-osinte-mingw.ads (BYTE): New type.
4187         (CHAR): Likewise.
4188         (OVERLAPPED): Likewise.
4189         (GENERIC_READ): New constant.
4190         (GENERIC_WRITE): Likewise.
4191         (OPEN_EXISTING): Likewise.
4192         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
4193         type instead.
4194         (CreateFile): New routine.
4195         (WriteFile): Likewise.
4196         (ReadFile): Likewise.
4197         (CloseHandle): Move next to the other file oriented routines.
4199         * g-sercom.ads: New unit.
4201         * g-sercom.adb: Default implementation, calls to this unit will raise
4202         a program error exception.
4203         
4204         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
4205         GNU/Linux implementations.
4207 2008-03-26  Robert Dewar  <dewar@adacore.com>
4209         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
4211         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
4212         unchecked conversion for different conventions only for subprogram
4213         pointers or on VMS.
4215 2008-03-26  Vincent Celier  <celier@adacore.com>
4217         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
4218         to check if the specified object file is correct.
4220 2008-03-26  Thomas Quinot  <quinot@adacore.com>
4222         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
4223         Comes_From_Source to exclude primitives from being checked. We want to
4224         exclude predefined primitives only, so use the appropriate specific
4225         predicate. Also, flag a formal parameter of an anonymous
4226         access-to-subprogram type as illegal for a primitive operation of a
4227         remote access to class-wide type.
4229 2008-03-26  Vincent Celier  <celier@adacore.com>
4231         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
4232         known, check if it may be a missspelling of a known package name. In
4233         not verbose, not mode, issue warnings only if the package name is a
4234         possible misspelling.
4235         In verbose mode, always issue a warning for a not known package name,
4236         plus a warning if the name is a misspelling of a known package name.
4238         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
4239         limited withs or limited withs are parse during one call.
4240         (Parse_Single_Project): Post parse context clause in two passes: non
4241         limited withs before current project and limited withs after current
4242         project.
4244         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
4245         project with the name With_Name, even if it is only extended indirectly.
4246         (Recursive_Process): Process projects in order: first single withs, then
4247         current project, then limited withs.
4249         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
4250         project with the name With_Name, even if it is only extended indirectly.
4252 2008-03-26  Robert Dewar  <dewar@adacore.com>
4254         * scn.adb (Initialize_Scanner): Format messages belong on standard error
4256 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
4258         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
4259         a generic subprogram that is imported, do not attempt to compile
4260         non-existent body.
4262         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
4263         imported, do not generate a raise_program_error for the non-existent
4264         body.
4265         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
4266         perform minimal name resolution on the generic to avoid spurious
4267         warnings.
4268         (Find_Actual_Type): the designated type of the actual in a child unit
4269         may be declared in a parent unit without being an actual.
4271 2008-03-26  Robert Dewar  <dewar@adacore.com>
4273         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
4274         * sinfo.ads, sinfo.adb (From_At_End): New flag
4276 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
4278         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
4279         operations that have an interface parameter.
4280         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
4281         Don't treat No_Return call as raise.
4283         * sem_disp.adb (Check_Dispatching_Operations): apply check for
4284         non-primitive interface primitives to access parameters, not to all
4285         parameters of an access type.
4287 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
4289         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
4290         declarations of a parent unit are made visible when compiling a child
4291         instance, the parent is not a hidden open scope, even though it may
4292         contain other pending instance.
4293         
4294         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
4295         hidden open scope for some child instance, it does affect the
4296         visibility status of other stach entries.
4297         (Analyze_Object_Renaming): Check that a class-wide object cannot be
4298         renamed as an object of a specific type.
4300 2008-03-26  Robert Dewar  <dewar@adacore.com>
4302         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
4303         recursion and raise SE directly.
4304         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
4305         set for formal type for IN mode parameter.
4307 2008-03-26  Robert Dewar  <dewar@adacore.com>
4309         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
4310         (Initialize): New procedure
4311         (Output_Warnings_Off_Warnings): New procedure
4312         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
4313         (Output_Non_Modifed_In_Out_Warnings): Ditto
4314         (Warn_On_Unreferenced_Entity): Ditto
4316 2008-03-26  Vincent Celier  <celier@adacore.com>
4318         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
4319         readable.
4321 2008-03-26  Matthew Heaney  <heaney@adacore.com>
4323         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads, 
4324         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
4325         Marked with clauses as private, and controlled operations as overriding
4327 2008-03-26  Robert Dewar  <dewar@adacore.com>
4329         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
4331 2008-03-26  Robert Dewar  <dewar@adacore.com>
4333         * back_end.adb, back_end.ads: Minor reformatting
4335         * bindgen.adb: Minor clarification of comments
4337         * fname.ads: Minor comment fixes
4339         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
4340         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
4342         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
4343         xsnames.adb: Remove warnings off pragma no longer needed
4345         * a-catizo.ads, a-calari.ads, a-calfor.adb,
4346         a-calfor.ads: Fix header.
4348 2008-03-26  Tristan Gingold  <gingold@adacore.com>
4350         * init.c: Do not adjust pc for HPARITH on alpha/vms.
4352 2008-03-26  Robert Dewar  <dewar@adacore.com>
4354         * lib-xref.adb: (OK_To_Set_Reference): New function
4355         (Generate_Reference): Don't set referenced from occurrence in Warnings,
4356         Unmodified, or Unreferenced pragma
4358 2008-03-26  Robert Dewar  <dewar@adacore.com>
4360         * alloc.ads: Add entries for Warnings_Off_Pragmas table
4362 2008-03-26  GNAT Script  <nobody@adacore.com>
4364         * Make-lang.in: Makefile automatically updated
4366 2008-03-26  Robert Dewar  <dewar@adacore.com>
4368         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
4369         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
4370         removed, use Chars (Pragma_Identifier (..  instead, adjustments
4371         throughout to accomodate this change.
4373         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
4375         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
4376         Einfo.Set_Needs_Debug_Info)
4378 2008-03-26  Robert Dewar  <dewar@adacore.com>
4380         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
4381         Add description for the new gnatstub option '--header-file'
4382         clarification of -gnatwz/-gnatwZ
4383         Add a "Irix-Specific Considerations" section to document the need to
4384         set LD_LIBRARY_PATH when using the default shared runtime library.
4385         Added documentation for both gcov and gprof.
4387         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
4388         messages that are not suppressed when clients are compiled.
4389         Add documentation of s-pooglo s-pooloc
4390         Document the new GNAT.Serial_Communications API.
4391         Add documentation for 'Old attribute
4392         Add description of pragma Optimize_Alignment
4394         * ug_words: Add entries for -gnatw.w -gnatw.W
4396         * usage.adb: Add line for -gnatw.w (warn on warnings off)
4398 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
4400         Revert
4401         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
4402         PR ada/35186
4403         * decl.c (maybe_pad_type): Avoid padding an integral type when
4404         bumping its alignment is sufficient.
4406 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
4408         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
4409         Fix wrong formatting (lines too long)
4411 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4413         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
4414         a-calend-vms.adb, a-calend.adb, a-calend.ads,
4415         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
4416         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
4417         a-cohama.ads, a-comlin.ads, a-coorse.adb,
4418         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
4419         a-except-2005.ads, a-except.adb, a-except.ads,
4420         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
4421         a-exextr.adb, a-filico.ads, a-finali.ads,
4422         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
4423         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
4424         a-sequio.ads, a-strbou.ads, a-strfix.adb,
4425         checks.adb, exp_ch3.adb, exp_ch4.adb,
4426         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
4427         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
4428         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
4429         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
4430         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
4432 2008-03-24  Robert Dewar  <dewar@adacore.com>
4434         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
4435         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
4436         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
4437         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
4438         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
4439         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4440         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4441         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
4442         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
4443         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
4444         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
4445         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
4446         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
4447         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
4448         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
4449         double spaced if it fits on one line and otherwise single spaced.
4451 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4453         PR documentation/15479
4454         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
4455         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
4456         (doc/gnat_ugn.info): Renamed from ...
4457         (doc/gnat_ugn_unw.info): ... this.
4458         (doc/gnat_ugn.dvi): Renamed from ...
4459         (doc/gnat_ugn_unw.dvi): ... this.
4460         (doc/gnat_ugn.pdf): Renamed from ...
4461         (doc/gnat_ugn_unw.pdf): ... this.
4462         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
4463         Adjusted.
4464         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
4465         unconditionally to gnat_ugn.info.  Fix cross references to the
4466         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
4467         and GNU make manuals to be proper texinfo links.
4468         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
4470 2008-03-21  Olivier Hainque  <hainque@adacore.com>
4472         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
4473         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
4475 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
4477         * trans.c (addressable_p): Add notes on addressability issues.
4479 2008-03-21  Olivier Hainque  <hainque@adacore.com>
4480             Ed Schonberg  <schonberg@adacore.com>
4482         * trans.c (addressable_p): Accept COND_EXPR when both arms
4483         are addressable.
4484         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
4485         (call_to_gnu): Do not use name reference in the error message
4486         for a misaligned by_reference_parameter. The actual may be a
4487         general expression.
4489 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
4491         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
4493 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4495         * gnat_rm.texi (Implementation Defined Characteristics)
4496         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
4497         appropriate.
4498         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
4499         (Switches for gnatchop, Installing a library): Likewise.
4501 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
4503         * trans.c (emit_range_check): Do not emit the check if the base type
4504         of the expression is the type against which its range must be checked.
4506 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4508         * decl.c (maybe_pad_type): Use value_factor_p.
4510 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4512         * lang.opt (nostdlib): Move around.
4513         * misc.c (gnat_handle_option): Fix formatting.
4514         (gnat_dwarf_name): Move around.
4515         * trans.c (Case_Statement_to_gnu): Fix formatting.
4516         (gnat_to_gnu): Likewise.
4517         * utils.c (aggregate_type_contains_array_p): Likewise.
4518         (create_subprog_decl): Likewise.
4520 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4522         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
4523         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
4525 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4527         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
4528         BIGGEST_ALIGNMENT when capping the alignment of records with
4529         strict alignment and size clause.
4531 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4533         * lang-specs.h: Pass -gnatwa if -Wall is passed.
4534         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
4535         and -Wuninitialized.
4536         (gnat_post_options): Clear warn_unused_parameter.
4538 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4540         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
4541         aligned bit-fields, bumping the alignment of the record type if deemed
4542         profitable.
4543         (value_factor_p): Return false instead of 0.
4545 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4547         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
4548         for scalar types with small alignment.
4550 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
4552         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
4553         from that of the front-end's end label.
4554         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
4555         from that of the loop label.
4557 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
4559         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
4560         comment for the packed array type case.
4561         * utils.c (build_template): Use a loop to strip padding or
4562         containing records for justified modular types.
4564 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
4566         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
4567         large alignments specified for types.
4568         (validate_alignment): Minor cleanup.
4570 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
4572         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
4573         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
4574         the component for packing, if possible, as well as if a component
4575         size clause is specified.
4576         <E_Record_Subtype>: For an array type used to implement a packed
4577         array, get the component type from the original array type.
4578         Try to get a smaller form of the component for packing, if possible,
4579         as well as if a component size clause is specified.
4580         (round_up_to_align): New function.
4581         (make_packable_type): Add in_record parameter.
4582         For a padding record, preserve the size.  If not in_record and the
4583         size is too large for an integral mode, attempt to shrink the size
4584         by lowering the alignment.
4585         Ditch the padding bits of the last component.
4586         Compute sizes and mode manually, and propagate the RM size.
4587         Return a BLKmode record type if its size has shrunk.
4588         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
4589         Use Original_Array_Type to retrieve the type in case of an error.
4590         Adjust call to make_packable_type.
4591         (gnat_to_gnu_field): Likewise.
4592         (concat_id_with_name): Minor tweak.
4593         * trans.c (larger_record_type_p): New predicate.
4594         (call_to_gnu): Compute the nominal type of the object only if the
4595         parameter is by-reference.  Do the conversion actual type -> nominal
4596         type if the nominal type is a larger record.
4597         (gnat_to_gnu): Do not require integral modes on the source type to
4598         avoid the conversion for types with identical names.
4599         (addressable_p): Add gnu_type parameter.  If it is specified, do not
4600         return true if the expression is not addressable in gnu_type.
4601         Adjust recursive calls.
4602         * utils.c (finish_record_type): Remove dead code.
4604 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
4606         PR ada/35186
4607         * decl.c (maybe_pad_type): Avoid padding an integral type when
4608         bumping its alignment is sufficient.
4610 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4612         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
4613         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
4614         statement.
4615         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
4616         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
4617         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
4618         code output strings.
4619         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
4620         system-vms_64.ads: Fix typos in ada source code comments.
4621         * sinfo-cn.adb: Remove incomplete sentence.
4623         PR documentation/15479
4624         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
4626 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
4628         PR ada/22255
4629         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
4631 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
4633         PR ada/34799
4634         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
4635         that underlying type is present.
4637 2008-02-26  Tom Tromey  <tromey@redhat.com>
4639         * misc.c (internal_error_function): Remove test of
4640         USE_MAPPED_LOCATION.
4641         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
4642         (Sloc_to_locus): Remove old location code.
4644 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4646         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
4647         `i.e.' by adding comma or `@:' as appropriate.
4648         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
4649         plain characters `C', use `@samp{C}'.
4650         * gnat_ugn.texi (File Naming Rules, About gnatkr)
4651         (Krunching Method): Likewise.
4653         * gnat_ugn.texi (Conventions): List environment variables and
4654         metasyntactic variables.
4655         (Compiling Programs): Fix notation of metasyntactic variables.
4656         Add @file where appropriate.  Use @file for file extensions,
4657         @samp for strings.
4658         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
4659         instead of @file, @env instead of @code.
4661 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4663         PR documentation/15479
4664         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
4665         and `...' with `@dots{}' or `@enddots{}'.
4667         PR documentation/15479
4668         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
4669         use @command instead of @code, @option instead of @samp or @code,
4670         @code instead of @var, @samp instead of @file.
4672         PR documentation/15479
4673         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
4674         in Makefile rules, by using `&&' rather than `;'.
4676 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4678         PR documentation/15479
4679         * gnat_ugn.texi: In non-code, avoid space before colon.
4680         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
4681         (Examples of gnatxref Usage): Use @command{vi} instead of
4682         @file{vi}.
4683         (Character Set Control): Do not use @code for UTF-8.
4684         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
4685         use @code for IEEE.
4686         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
4687         sample.
4688         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
4690 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
4692         PR ada/35143
4693         * env.c: Add __rtems__ to if defined.
4694         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
4695         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
4696         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
4697         pragma Convention as required.
4698         * gsocket.h: Make compile in and out of RTS.
4699         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
4700         Use g-soccon-rtems.ads.
4701         * g-soccon-rtems.ads, system-rtems.ads: New files.
4703 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4705         PR other/35107
4706         * Make-lang.in (gnat1): Add $(GMPLIBS).
4708 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
4710         * decl.c (components_to_record): Improve comment.
4712 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
4714         * decl.c (components_to_record): Do not reuse the empty union type
4715         if there is a representation clause on the record.
4716         * trans.c (addressable_p): Return true for INTEGER_CST.
4718 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
4720         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
4721         in pointer arithmetics.
4722         * utils2.c (build_allocator): Likewise.
4724 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
4726         * utils.c (build_function_stub): Properly build the call expression.
4728 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
4730         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
4731         before converting the expression to the type of the object.
4732         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
4733         Stabilize constructors for special wrapping types.
4735 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
4737         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
4738         when necessary.  Merge some conditional statements.  Update comments.
4739         Rename unchecked_convert_p local variable to suppress_type_conversion.
4740         Do not suppress conversions in the In case.
4741         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
4742         into account on non strict-alignment platforms.
4744 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
4746         * utils.c (aggregate_type_contains_array_p): New predicate.
4747         (create_field_decl): In a packed record, force byte alignment
4748         for fields without specified position that contain an array.
4750 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
4752         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
4754 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
4756         PR ada/34466
4757         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
4758         sysconf call.
4759         (bit_field): New packed boolean type used by cpu_set_t.
4760         (cpu_set_t): New type corresponding to the C type with
4761         the same name. Note that on the Ada side we use a bit
4762         field array for the affinity mask. There is not need
4763         for the C macro for setting individual bit.
4764         (pthread_setaffinity_np): New imported routine.
4766 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
4768         PR ada/34647
4769         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4770         on OpenBSD as is done on other BSD systems.
4772         PR ada/34645
4773         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
4774         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
4775         I/O.
4777         PR ada/34644
4778         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
4779         clearenv().
4781         PR ada/34646
4782         * init.c (__gnat_error_handler, __gnat_install_handler,
4783         __gnat_init_float): Define for OpenBSD.
4785         * initialize.c (__gnat_initialize): Define for OpenBSD.
4787 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
4789         PR ada/34553
4790         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4791         instead of mktemp() or tmpnam() on NetBSD.
4793 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
4795         * trans.c (call_to_gnu): Make the temporary for non-addressable
4796         In parameters passed by reference.
4797         (addressable_p): Return true for STRING_CST and CALL_EXPR.
4799 2007-12-19  Robert Dewar  <dewar@adacore.com>
4801         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb: 
4802         Add pragma Warnings (Off) for unassigned IN OUT arguments
4804         * sem_warn.adb (Output_Reference): Suppress messages for internal names
4805         (Check_References): Extensive changes to tune up warnings
4806         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
4807         (Has_Pragma_Unmodifed_Check_Spec): New function
4808         (Check_References): Implement pragma Unmodified
4809         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
4811         * par-prag.adb: Dummy entry for pragma Unmodified
4813         * sem_prag.adb: Implement pragma Unmodified
4815         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
4816         (Proc_Next_Component_Or_Discriminant): Fix typo.
4817         Update comments.
4819         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
4820         Unmodified.
4821         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
4822         because the former already takes care of discarding the result.
4823         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
4824         Add comment.
4826         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
4828 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
4830         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
4831         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
4832         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
4833         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
4834         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4835         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
4836         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
4837         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
4838         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4839         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
4840         (Dynamic_Trampolines_Used): Delete.
4842         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
4843         Turn on stack probing mechanism on LynxOS.
4845 2007-12-19  Bob Duff  <duff@adacore.com>
4847         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
4848         the resulting tail recursion by hand. This prevents running out of
4849         memory on deeply nested concatenations, since Field2 is where the left
4850         operand of concatenations is stored.
4851         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
4852         clarify that it can only return OK or Abandon.
4854         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
4855         operand by iteration, in order to avoid running out of memory on
4856         deeply-nested concatenations. Use the Parent pointer to get back up the
4857         tree.
4858         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
4859          Resolve_Op_Concat_Rest): New procedures split out of
4860         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
4861         clearer.
4863         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
4864         Traverse_Func, because the former already takes care of discarding the
4865         result.
4867         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
4868         because the former already takes care of discarding the result.
4869         (Remove_Warning_Messages): Use appropriate subtype for Status and
4870         Discard 
4872 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
4874         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
4875         discriminants forces expansion of the aggregate into assignments.
4876         (Init_Record_Controller):  If the type of the aggregate is untagged and
4877         is not inherently limited, the record controller is not limited either.
4879 2007-12-19  Robert Dewar  <dewar@adacore.com>
4881         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
4882         handling compile time known size of record or array (case of front end
4883         layout active, e.g. in GNAAMP).
4885 2007-12-19  Javier Miranda  <miranda@adacore.com>
4887         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
4888         that forces the construction of static dispatch tables in case of
4889         record subtypes.
4891 2007-12-19  Robert Dewar  <dewar@adacore.com>
4893         * exp_ch9.adb (Null_Statements): Moved to library level
4894         (Trivial_Accept_OK): New function
4895         (Expand_Accept_Declaration): Use Trivial_Accept_OK
4896         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
4898 2007-12-19  Robert Dewar  <dewar@adacore.com>
4900         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
4901         in complex case where array is Volatile.
4903 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
4905         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
4906         properly the Ada2005 rules concerning when the current instance of a
4907         record type is aliased.
4909 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
4911         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
4912         mangled declaration
4913         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
4914         declarations.
4915         (P_Variant_Part): Cleaner patch for parenthesized discriminant
4917 2007-12-19  Vincent Celier  <celier@adacore.com>
4919         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
4920         package is not known
4922         * prj-attr.ads (Unknown_Package): New constant
4923         Do not crash when an unknown package is in several projects
4925         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
4926         ignored
4928         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
4929         existing package Language_Processing.
4931 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
4932             Gary Dismukes  <dismukes@adacore.com>
4933             Samuel Tardieu  <sam@rfc1149.net>
4935         PR ada/15803, ada/15805
4936         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
4937         illegal access subtypes when there is a constrained partial view.
4938         (Check_For_Premature_Usage): New procedure inside
4939         Access_Subprogram_Declaration for checking that an access-to-subprogram
4940         type doesn't reference its own name within any formal parameters or
4941         result type (including within nested anonymous access types).
4942         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
4943         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
4944         context is an access_to_variable, the expression cannot be an
4945         access_to_constant.
4947 2007-12-19  Bob Duff  <duff@adacore.com>
4949         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
4950         (Analyze_Concatenation): Use iteration instead of recursion in order
4951         to avoid running out of stack space for deeply nested concatenations.
4953 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
4954             Gary Dismukes  <dismukes@adacore.com>
4956         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
4957         whose renamed entity is a subprogram that requires overriding.
4958         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
4959         issuing an error for premature usage and issue a message that says
4960         'type' rather than 'object'.
4962 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
4964         PR ada/34149
4965         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
4966         presence of a statically tagged operand (Present (Static_Tag)) with
4967         test for Indeterm_Ancestor_Call when determining whether to propagate
4968         the static tag to tag-indeterminate operands (which forces dispatching
4969         on such calls).
4970         (Check_Controlling_Formals): Ada2005, access parameters can have
4971         defaults.
4972         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
4973         not insert subprogram in list of primitive operations if already there.
4975 2007-12-19  Tristan Gingold  <gingold@adacore.com>
4977         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
4978         global variable.
4980 2007-12-19  Thomas Quinot  <quinot@adacore.com>
4982         Part of PR ada/33688
4983         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
4984         datagram info on Linux.
4986 2007-12-19  Vincent Celier  <celier@adacore.com>
4988         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
4989         that the source path name is always found in the dependencies.
4991 2007-12-19  Robert Dewar  <dewar@adacore.com>
4993         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
4994         Fix name of Wide_Wide_Latin_1/9 file names
4995         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
4996         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
4997         Add missing documentation for Ada.Command_Line.Response_File
4998         Update list of warning letters for Warnings pragma
4999         Add documentation for pragma Unmodified
5001 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
5003         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
5005 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
5007         * s-vxwork-alpha.ads: Removed, no longer used.
5009 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
5011         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
5013 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
5015         PR ada/34360
5016         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
5017         mlib-tgt-specific.adb.
5019 2007-12-13  Bob Duff  <duff@adacore.com>
5021         * trans.c (Attribute_to_gnu): Check for violations of the
5022         No_Implicit_Dynamic_Code restriction. This checking used to be done in
5023         the front end, but is moved here so we can make it more accurate.
5025 2007-12-13  Pascal Obry  <obry@adacore.com>
5027         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
5028          version is provided for older GNU/Linux distribution not
5029          supporting thread affinity sets.
5030         
5031         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
5032         call.
5033         (bit_field): New packed boolean type used by cpu_set_t.
5034         (cpu_set_t): New type corresponding to the C type with
5035         the same name. Note that on the Ada side we use a bit
5036         field array for the affinity mask. There is not need
5037         for the C macro for setting individual bit.
5038         (pthread_setaffinity_np): New imported routine.
5039         
5040         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
5041         no null.
5042         (Create_Task): Set the processor affinity mask if information
5043         is present.
5044         
5045         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
5046         
5047 2007-12-13  Robert Dewar  <dewar@adacore.com>
5049         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, 
5050         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, 
5051         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, 
5052         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
5053         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
5054         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, 
5055         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, 
5056         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
5057         for subprogram pointers.
5059         * g-ctrl_c.adb: New file.
5061         * g-ctrl_c.ads (Install_Handler): New body.
5063         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
5064         instead of obsolete function Is_Always_Inlined.
5065         (Freeze_Entity): check for tagged type in imported C subprogram
5066         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
5067         (Freeze_Entity): check for convention Ada subprogram pointer in
5068         imported C subprogram.
5069         (Freeze_Fixed_Point_Type): In the case of a base type where the low
5070         bound would be chopped off and go from negative to zero, force
5071         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
5072         bound) so that the size computation for the base type will take
5073         negative values into account.
5075 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
5076             Bob Duff  <duff@adacore.com>
5077             Tristan Gingold  <gingold@adacore.com>
5079         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
5080         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
5081         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
5082         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
5083         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
5084         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
5085         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
5086         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
5087         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
5088         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
5089         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
5090         (Always_Compatible_Rep): New flag to control trampolines globally.
5091         (Dynamic_Trampolines_Used): New flag for implementing the
5092         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
5093         and not yet set correctly for some targets).
5095         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
5096         Simply indirectly call s-stchop when a task is created.
5098         * ali.ads: 
5099         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
5100         appears as an argument (entries A) in an ALI file.
5102         * fe.h (Stack_Check_Limits): Declare new target parameter.
5103         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
5105         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
5106         This variable is declared in C to be sure not subject to elaboration
5107         code.
5108         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
5109         Storage_Error.
5111         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
5112         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
5114         * s-stchop.ads: Add comments.
5116         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
5117         limit method of stack checking.
5119         * s-stchop-limit.ads: New file.
5121 2007-12-13  Robert Dewar  <dewar@adacore.com>
5123         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, 
5124         a-cihama.adb, g-awk.adb, 
5125         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
5126         warnings
5128         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
5130         * sem.adb: Update handling of assigned value/unreferenced warnings
5132         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
5134         * lib-xref.ads: Improve documentation for k xref type
5136         * lib-xref.adb: 
5137         Update handling of assigned value/unreferenced warnings
5138         (Generate_Reference): Warning for reference to entity for which a
5139         pragma Unreferenced has been given should be unconditional.
5140         If the entity is a discriminal, mark the original
5141         discriminant as referenced.
5143         * sem_warn.ads, sem_warn.adb
5144         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
5145         no entities referenced in package
5146         (Check_One_Unit): Don't give message about no entities referenced in
5147         a package if a pragma Unreferenced has appeared.
5148         Handle new warning flag -gnatw.a/-gnatw.A
5149         Update handling of assigned value/unreferenced warnings
5151         * atree.h: Add flags up to Flag247
5152         (Flag231): New macro.
5154 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
5156         * adaint.h: (__gnat_plist_init): Not defined for RTX.
5158         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
5159         RTX systems.
5161         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
5162         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
5163         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
5164         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
5166         * mingw32.h: 
5167         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
5169         * sysdep.c (winflush_function for RTX): Procedure that does nothing
5170         since we only have problems with Windows 95/98, which are not
5171         supported by RTX.
5172         (__gnat_ttyname): Return the empty string on Nucleus, just as
5173         done on vxworks.
5175 2007-12-13  Robert Dewar  <dewar@adacore.com>
5177         * a-textio.adb, a-textio.ads: 
5178         Extensive changes to private part for wide character encoding
5180         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
5181         (Look_Ahead): Fix mishandling of encoded sequences
5182         Move declaration of Wch_Con to private part (should not be visible)
5184         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
5185         UTF-8. Probably this is never used, but if it is, brackets is
5186         clearly correct.
5188         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
5189         setting wide character encoding for no main program case and when
5190         encoding is specified using -W?
5191         Initialize stack limit of environment task if stack limit method of
5192         stack checking is enabled.
5193         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
5194         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
5195         (Get_Main_Unit_Name): New function.
5196         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
5197         (Gen_Output_File): Set Bind_Main_Program to True for .NET
5199         * bindusg.adb: Add line for -Wx switch
5201         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
5202         Add comments
5203         Add new useful constant WC_Longest_Sequences
5205         * switch-b.adb: Clean up handling of -Wx switch
5206         For -gnatWx, set Wide_Character_Encoding_Method_Specified
5208         * switch-c.adb: -gnatg activates warning on assertion errors
5209         For -gnatWx, set Wide_Character_Encoding_Method_Specified
5211         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
5213 2007-12-13  Robert Dewar  <dewar@adacore.com>
5214             Ed Schonberg  <schonberg@adacore.com>
5216         * a-ngcoty.adb: New pragma Fast_Math
5218         * opt.adb: New pragma Fast_Math
5220         * par-prag.adb: 
5221         Add Implemented_By_Entry to the list of pragmas which do not require any
5222         special processing.
5223         (Favor_Top_Level): New pragma.
5224         New pragma Fast_Math
5226         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
5227         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5228         Expand_Allocator_Expression): Take into account VM_Target
5229         (Expand_Attribute, case 'Identity):  Handle properly the case where
5230         the prefix is a task interface.
5231         New pragma Fast_Math
5233         * par.adb (Next_Token_Is): New function
5234         (P_Pragma): Add Skipping parameter
5235         (U_Left_Paren): New procedure
5236         (U_Right_Paren): New procedure
5237         New pragma Fast_Math
5239         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
5240         subunit
5241         New pragma Fast_Math
5243         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
5244         Implemented_By_Entry.
5245         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
5246         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
5247         items, since it can apply to more than one overloadable entity. Set
5248         new flag Has_Pragma_Inline_Always for Inline_Always case.
5249         (Analyze_Pragma, case Complex_Representation): Improve error message.
5250         (Analyze_Pragma, case Assert): When assertions are disabled build the
5251         rewritten code with Sloc of expression rather than pragma, so new
5252         warning about failing is not deleted.
5253         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
5254         protected types and update error message to reflect that. Test whether
5255         the protected type is allowed for the pragma (an error is issued if the
5256         type has any entries, or components that do not have preelaborable
5257         initialization).
5258         New pragma Fast_Math
5259         (Analyze_Pragma, case No_Return): Handle generic instance
5261         * snames.h, snames.ads, snames.adb: 
5262         Add new predefined name for interface primitive _Disp_Requeue.
5263         New pragma Fast_Math
5265         * a-tags.ads, a-tags.adb: New calling sequence for
5266         String_To_Wide_[Wide_]String
5267         (Secondary_Tag): New subprogram.
5269         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
5270         from Exp_Attr
5271         New calling sequence for String_To_Wide_[Wide_]String
5272         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
5273         the use of the secondary stack for image routines.
5275         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
5276         calling sequence for String_To_Wide_[Wide_]String
5278         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
5279         Ada 95 mode
5280         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
5281         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5283         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
5284         (P_Formal_Part): Use Skipping parameter in P_Pragma call
5285         to improve error recovery
5287         * par-util.adb (Next_Token_Is): New function
5288         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
5290         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
5291         semicolon if missing
5292         (P_Pragma): Implement new Skipping parameter
5293         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5294         Fix location of flag for unrecognized pragma message
5296         * par-tchk.adb (U_Left_Paren): New procedure
5297         (U_Right_Paren): New procedure
5299 2007-12-13  Geert Bosch  <bosch@adacore.com>
5301         * a-tifiio.adb: 
5302         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
5303         the second or later Scaled_Divide would omit leading zeroes,
5304         resulting in too few digits produced and a Layout_Error as result.
5305         (Put): Initialize Pos.
5307 2007-12-13  Robert Dewar  <dewar@adacore.com>
5309         atree.ads, atree.adb (Flag231..Flag247): New functions
5310         (Set_Flag231..Set_Flag247): New procedures
5311         (Basic_Set_Convention): Rename Set_Convention to be
5312         Basic_Set_Convention
5313         (Nkind_In): New functions
5314         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5316         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
5317         instead
5318          of obsolete function Is_Always_Inlined
5319         (Register_Predefined_DT_Entry): Initialize slots of the second
5320         secondary dispatch table.
5321         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5322         (Expand_N_Function_Call): Remove special provision for stack checking.
5324         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
5325         Include _Disp_Requeue in the list of predefined operations.
5326         (Find_Interface_ADT): Modified to fulfill the new specification.
5327         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5329         * par-ch4.adb, nlists.ads, nlists.adb: 
5330         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5332         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
5333         Fix location of flag for unrecognized pragma message
5335         * sem_ch7.adb: Use Nkind_In
5337 2007-12-13  Vincent Celier  <celier@adacore.com>
5339         * opt.ads: 
5340         Indicate what flags are used by the Project Manager, gprbuild and
5341         gprclean.
5342         (Opt.Follow_Links_For_Dirs): New flag
5343         (Warn_On_Assertion_Failure): New flag
5344         (Wide_Character_Encoding_Method_Specified): New flag
5345         (Suppress_All_Inlining): New switch set by -fno-inline
5346         (Real_VMS_Target): New flag
5347         New pragma Fast_Math
5349 2007-12-13  Robert Dewar  <dewar@adacore.com>
5351         * back_end.adb: Recognize -fno-inline
5353 2007-12-13  Robert Dewar  <dewar@adacore.com>
5355         * checks.adb: Fix optimization problem with short-circuited form
5357 2007-12-13  Bob Duff  <duff@adacore.com>
5359         * clean.adb (Usage): Add line for -aP
5360         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
5361         with a parameter "procedure Usage", instead of passing a pointer to a
5362         procedure. This is to eliminate trampolines (since the Usage procedure
5363         is often nested in a main procedure, and it would be inconvenient to
5364         unnest it).
5366         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
5367         to be generic, with a parameter "procedure Callback (...)", instead of
5368         passing a pointer to a procedure. This is to eliminate trampolines
5369         (since the Callback procedure is usually nested).
5371         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, 
5372         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
5373         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
5375         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
5376         Use the generic Heap_Sort_G instead of Heap_Sort_A.
5378 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5380         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
5381         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
5382         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
5383         (Renamed_In_Spec): New flag
5384         (Has_Pragma_Inline_Always): New flag
5385         Add missing doc for pragma Obsolescent_Warning
5386         Add missing doc for 17 additional unused flags (230-247)
5387         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
5388         Alphabetize with clauses.
5389         Separate Is_Thunk and Has_Thunks flags
5390         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
5391         (Related_Interface): Renamed to Related_Type.
5392         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
5393         (Set_Is_Flag): Restrict the assertion.
5395 2007-12-13  Vincent Celier  <celier@adacore.com>
5397         * errout.adb (Output_Source_Line): Do not keep a trailing space after
5398         the source line number if the source line is empty.
5400 2007-12-13  Geert Bosch  <bosch@adacore.com>
5402         * eval_fat.adb (Decompose_Int): Handle argument of zero.
5403         (Compose): Remove special casing of zero.
5404         (Exponent): Likewise.
5405         (Fraction): Likewise.
5406         (Machine): Likewise.
5407         (Decompose): Update comment.
5409 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
5411         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
5412         limited ancestor part, initialize controllers of enclosing record
5413         before expanding ancestor aggregate.
5414         (Gen_Assign): If a component of the aggregate is box-initialized, add
5415         code to call Initialize if the component is controlled, and explicit
5416         assignment of null if the component is an access type.
5418         Handle properly aggregates for limited types that appear in object
5419         declarations when the aggregate contains controlled values such as
5420         protected types.
5421         When expanding limited aggregates into individual components, do not
5422         call Adjust on controlled components that are limited.
5424 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
5426         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
5428 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5430         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
5431         predefined primitive _Disp_Requeue.
5432         (Make_Predefined_Primitive_Specs): Create the spec for predefined
5433         primitive _Disp_Requeue.
5434         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
5435         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
5436         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
5437         an interface type. In case of limited interfaces we now declare all the
5438         predefined primitives associated with synchronized interfaces as
5439         abstract.
5440         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
5441         declarations.
5442         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
5443         tagged type is an interface type and there is no user-defined equality
5444         function.
5445         Add also bodies of predefined primitives associated with synchronized
5446         interfaces.
5447         (Freeze_Record_Type): Do not build bodies of predefined primitives of
5448         interface types because they are now defined abstract.
5449         Add missing documentation.
5450         (Expand_Record_Controller): Update occurrence of Related_Interface
5451         to Related_Type.
5452         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
5453         (Expand_N_Object_Declaration): Take into account VM_Target when handling
5454         class wide interface object declaration.
5455         (Expand_Previous_Access_Type): Do not create a duplicate master entity
5456         if the access type already has one.
5457         (Expand_N_Object_Declaration): Defend against attempt to validity check
5458         generic types. Noticed for -gnatVcf specified with previous errors.
5460 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
5462         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5463         Expand_Allocator_Expression): Take into account VM_Target
5465         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
5466         secondary stack when VM_Target /= No_VM
5468 2007-12-13  Javier Miranda  <miranda@adacore.com>
5469             Ed Schonberg  <schonberg@adacore.com>
5471         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
5472         Is_Complation_Unit by Is_Library_Level_Entity in the code
5473         that decides if the static dispatch tables need to be built.
5474         (Wrap_Transient_Declaration): Do not generate a finalization call if
5475         this is a renaming declaration and the renamed object is a component
5476         of a controlled type.
5478 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
5480         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
5481         In the case where the renamed subprogram is a dereference, call
5482         Force_Evaluation on the prefix.
5484 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5485             Ed Schonberg  <schonberg@adacore.com>
5487         * exp_ch9.adb (Expand_N_Asynchronous_Select,
5488         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
5489         comment reformatting.
5490         (Set_Privals): Inherit aliased flag from formal. From code reading.
5491         (Build_Simple_Entry_Call): Out parameters of an access type are passed
5492         by copy and initialized from the actual. This includes entry parameters.
5493         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
5494         and Ada 2005 models of requeue.
5495         (Null_Statements): Still connsider do-end block null if it contains
5496         Unreferenced and Warnings pragmas.
5497         (Expand_N_Accept_Statement): Do not optimize away null do end if
5498         dispatching policy is other than defaulted.
5499         (Expand_N_Timed_Entry_Call): When the triggering statement is a
5500         dispatching call, manually analyze the delay statement.
5501         (Find_Parameter_Type): Move subprogram to Sem_Util.
5503 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5504             Javier Miranda  <miranda@adacore.com>
5506         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
5507         _Disp_Requeue occupies dispatch table slot number 15. Move
5508         _Disp_Timed_Select to slot 16.
5509         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
5510         generate the spec and body of _Disp_Reqeueue.
5511         (Make_DT): Build and initialize the second dispatch table.
5512         Handle initialization of RC_Offset when the parent
5513         is a private type with variable size components.
5514         (Make_Secondary_DT): Complete documentation. Add support to
5515         initialize the second dispatch table.
5516         (Make_Tags): Generate the tag of the second dispatch table.
5517         (Register_Primitive): Add support to register primitives in the
5518         second dispatch table.
5520 2007-12-13  Pascal Obry  <obry@adacore.com>
5522         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
5523         Windows. This signal is used by gnatmake to kill child processes for
5524         example.
5526 2007-12-13  Javier Miranda  <miranda@adacore.com>
5528         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
5529         support for generic dispatching constructor calls in which we need to
5530         locate the tag of a secondary dispatch table associated with an
5531         interface type to properly dispatch the call.
5532         (Expand_N_Attribute_Reference [case Address],
5533         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
5534         handling of VM targets.
5536 2007-12-13  Robert Dewar  <dewar@adacore.com>
5537             Ed Schonberg  <schonberg@adacore.com>
5539         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
5540         assert fail
5542         * ug_words: Add entries for -gnatw.a -gnatw.A
5544         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
5545         literal is a subtype with non-static constraints, use the base type of
5546         the context as the base of the string subtype, to prevent type
5547         mismatches in gigi.
5548         (Resolve_Actuals): If the actual is an entity name, generate a
5549         reference before the actual is resolved and expanded, to prevent
5550         spurious warnings on formals of enclosing protected operations.
5551         (Analyze_Overloaded_Selected_Component): If type of prefix if
5552         class-wide, use visible components of base type.
5553         (Resolve_Selected_Component): Ditto.
5554         (Resolve_Short_Circuit): Detect case of pragma Assert argument
5555         evaluating to False, and issue warning message.
5557         * usage.adb: Add lines for -gnatw.a and -gnatw.A
5559 2007-12-13  Emmanuel Briot  <briot@adacore.com>
5561         * g-calend.ads (No_Time): New constant, to represent an uninitialized
5562         time value
5564         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
5565         formats.
5566         (Month_Name_To_Number): New subprogram
5568         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
5569         letter to upper-case.
5571 2007-12-13  Robert Dewar  <dewar@adacore.com>
5572             Ed Schonberg  <schonberg@adacore.com>
5574         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
5576         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
5577         context is a limited view, use non-limited view when available. If the
5578         non-limited view is an unconstrained array, this enforces consistency
5579         requirements in 3.10.2 (27).
5580         (Layout_Type): For an access type whose designated type is a limited
5581         view, examine its declaration to determine if it is an unconstrained
5582         array, and size the access type accordingly.
5583         (Layout_Type): Do not force 32-bits for convention c subprogram
5584         pointers in -gnatdm mode, only if real vms target.
5586         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
5587         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5588         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
5589         violations of the No_Implicit_Dynamic_Code restriction.
5590         (Resolve_Attribute, case 'Access): If designated type of context is a
5591         limited view, use non-limited view when available. If the non-limited
5592         view is an unconstrained array, this enforces consistency requirements
5593         in 3.10.2 (27).
5594         (Layout_Type): For an access type whose designated type is a limited
5595         view, examine its declaration to determine if it is an unconstrained
5596         array, and size the access type accordingly.
5598 2007-12-13  Vincent Celier  <celier@adacore.com>
5600         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
5601         object directory of main project does not exist.
5602         On VMS, correctly set then environment variable for the source
5603         directories.
5605 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
5607         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
5608         set to True this procedure will create the value of type REG_EXPAND_SZ.
5609         It was only possible to create REG_SZ values before.
5611 2007-12-13  Robert Dewar  <dewar@adacore.com>
5613         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
5614         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
5615         namet-sp.adb, namet-sp.ads: New files.
5617         * g-speche.adb: Use generic routine in g-spchge
5619         * s-wchcnv.ads, s-wchcnv.adb: 
5620         Minor code cleanup (make formal type consistent with spec)
5622         * namet.adb: Update comments.
5624         * par-endh.adb (Evaluate_End_Entry): Use new
5625         Namet.Sp.Is_Bad_Spelling_Of function
5627         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
5629         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
5630         ancestor is an access type initialized with a box, set its type
5631         explicitly, for use in subsequent expansion.
5632         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
5633         function
5635 2007-12-13  Robert Dewar  <dewar@adacore.com>
5637         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
5638         access Vstring)
5640 2007-12-13  Robert Dewar  <dewar@adacore.com>
5642         * inline.adb (Back_End_Cannot_Inline): Use new flag
5643         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5645         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
5646         Has_Pragma_Inline_Always instead.
5647         of obsolete function Is_Always_Inlined
5648         (Build_Body_To_Inline): Same change
5649         (Cannot_Inline): Same change
5650         Do not give warning on exception raise in No_Return function
5652         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
5653         component has two inconsistent component clauses in the same record
5654         representation clause, favor the message that complains about
5655         duplication rather than inconsistency.
5656         Update comments.
5657         (Record_Representation_Clause): Do not warn on missing component
5658         clauses for inherited components of a type extension.
5659         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
5660         an overloadable item if it is a pragma that can apply to multiple
5661         overloadable entities (e.g. Inline) because a pragma cannot be on
5662         more than one chain at a time.
5663         (Validate_Unchecked_Conversion): Add code to warn on unchecked
5664         conversion where one of the operands is Ada.Calendar.Time.
5665         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
5666         For now, ignore Component_Size clause on VM targets, as done for
5667         pragma Pack.
5669 2007-12-13  Emmanuel Briot  <briot@adacore.com>
5670             Vincent Celier  <celier@adacore.com>
5672         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
5673         string
5674         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
5675         prj.ads
5676         (Hash): Move instantiation of System.HTable.Hash from spec to body
5677         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
5678         systems, since we do not need to recompute the Name_Id for the canonical
5679         file name.
5680         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5681         as a parameter. This parameter is in fact always "ada" in all calls, and
5682         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
5683         while loading a project with 40000 files
5685         * prj-attr.adb: Fix name of attribute Dependency_Driver
5686         Change the kind of indexing for attribute Root
5688         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
5689         variables already declared, in case constructions.
5691         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
5692         Current_Object_Path_File to No_Path.
5694         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
5695         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
5697         * prj-makr.adb: new parameter Current_Dir
5699         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
5700         Ada sources when language is not Ada.
5701         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5702         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
5703         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
5704         (Locate_Directory): Always resolve links when computing Canonical_Path
5705         (Look_For_Sources): Make sure that Name_Buffer contains the file name
5706         in Source_Files before checking for the presence of a directory
5707         separator.
5708         Optimize calls to Name_Find when on case sensitive systems.
5709         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5710         as a parameter.
5711         (Prj.Nmsc.Check): new parameter Current_Dir
5712         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
5713         cannot be empty and the spec suffix cannot be the same as the body or
5714         separate suffix.
5715         (Get_Unit): When a file name can be of several unit kinds (spec, body or
5716         subunit), always consider the longest suffix.
5717         (Check_Configuration): Do not issue an error if there is no compiler
5718         for a language. Just issue a warning and ignore the sources for the
5719         language.
5720         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
5721         not empty.
5722         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
5723         (Unit_Exceptions): New hash table
5724         (Check_Naming_Schemes): Check if a file that could be a unit because of
5725         the naming scheme is not in fact a source because there is an exception
5726         for the unit.
5727         (Look_For_Sources): Put the unit exceptions in hash table
5728         Unit_Exceptions
5729         (Get_Unit_Exceptions): Give initial value No_Source to local variable
5730         Other_Part to avoid exception when code is compiled with validity
5731         checking.
5732         (Get_Sources_From_File): Check that there is no directory information
5733         in the file names.
5734         (Look_For_Sources): Check that there is no directory information in the
5735         list of file names in Source_Files.
5736         (Look_For_Sources): In multi-language mode, do not allow exception file
5737         names that are excluded.
5738         (Excluded_Sources_Htable): New hash table
5739         (Search_Directories.Check_File): New procedure to simplify
5740         Search_Directories.
5741         (Search_Directories): Do not consider excluded sources
5742         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
5743         Search_Directories.
5744         (Get_Exceptions): Set component Lang_Kind of Source_Data
5745         (Get_Unit_Exceptions): Ditto
5746         (Search_Directories): Ditto
5748         * prj-pars.adb: new parameter Current_Dir
5750         * prj-part.ads, prj-part.adb: 
5751         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5752         (Opt.Follow_Links_For_Dirs): New flag
5753         (Project_Path_Name_Of): Cache information returned by this routine as
5754         Locate_Regular_File is a costly routine. The code to output a log
5755         information and the effective call to Locate_Regular_File is now
5756         factorized into a routine (code clean-up).
5757         (Parse, Parse_Single_Project): new parameter Current_Dir
5758         When main project file cannot be found, indicate in the error
5759         message the project path that was used to do the search.
5761         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
5762         (Prj.Proc.Process*): new parameter Current_Dir
5764         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
5766 2007-12-13  Bob Duff  <duff@adacore.com>
5768         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
5769         procedure to be called from the back end to check the
5770         No_Implicit_Dynamic_Code restriction.
5772 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
5774         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
5775         Fixes another case where RTE_Available_Call was ignored instead of being
5776         taken into account.
5777         (Load_Fail): Ditto.
5779         * rtsfind.ads: Add new entries.
5781 2007-12-13  Robert Dewar  <dewar@adacore.com>
5783         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
5784         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
5786         * scn.adb: Implement BOM recognition
5788 2007-12-13  Thomas Quinot  <quinot@adacore.com>
5789             Ed Schonberg  <schonberg@adacore.com>
5791         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
5792         subprogram body that acts as its own spec may not have a non-private
5793         WITH clause on a private sibling.
5794         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
5795         child unit is a renaming, create an implicit with_clause on that
5796         parent, and not on the unit it renames, to prevent visibility errors
5797         in the current unit.
5799 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
5801         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
5802         renaming declaration, use the Slocs of the formal parameters from the
5803         declaration of the formal subprogram when creating the formal parameter
5804         entities in the renaming declaration.
5805         (Analyze_Formal_Type_Declaration): Change the placement of the error
5806         message concerning illegal known discriminants. It is now posted on the
5807         type rather than on the first discriminant. This change ensures early
5808         error report.
5809         (Freeze_Subprogram_Body): If the generic subprogram is nested within
5810         the package body that contains the instance, do not generate an
5811         out-of-place freeze node for the enclosing package.
5812         (Collect_Previous_Instantiations): Ignore internal instantiations
5813         generated for formal packages.
5814         (Validate_Derived_Type_Instance): Add a check that when a formal
5815         derived type is Known_To_Have_Preelab_Init then the actual type must
5816         have preelaborable initialization, and issue an error when this
5817         condition is violated.
5819 2007-12-13  Robert Dewar  <dewar@adacore.com>
5821         * s-imenne.adb, s-imenne.ads: New files.
5823         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, 
5824         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, 
5825         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, 
5826         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, 
5827         s-imgwch.ads: New calling sequence for Image routines to avoid sec
5828         stack usage.
5830 2007-12-13  Javier Miranda  <miranda@adacore.com>
5831             Ed Schonberg  <schonberg@adacore.com>
5833         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
5834         generation of spurious error if parent is an interface type; caused
5835         because predefined primitive bodies will be generated later by
5836         Freeze_Record_Type.
5837         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
5838         flag.
5839         (Derive_Subprograms): Handle derivations of predefined primitives
5840         after all the user-defined primitives to ensure that they are
5841         found in proper order in instantiations.
5842         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
5843         of Related_Interface to Related_Type.
5844         (Record_Type_Declaration): Minor reordering of calls to decorate the
5845         Tag component because the entity must have set its Ekind attribute
5846         before setting its Is_Tag attribute.
5847         (Analyze_Subtype_Declaration): In the case of subtypes with
5848         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
5850 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5851             Ed Schonberg  <schonberg@adacore.com>
5853         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
5854         statement to the list of contexts where a selected component with a
5855         concurrent tagged type prefix should yield a primitive operation.
5856         (Find_Primitive_Operation): Handle case of class-wide types.
5857         (Analyze_Overloaded_Selected_Component): If type of prefix is
5858         class-wide, use visible components of base type.
5859         (Resolve_Selected_Component): Ditto.
5860         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
5861         formal of a generic subprogram. find candidate interpretations by
5862         scanning the list of generic formal declarations.:
5863         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
5864         type from a limited_with_clause, and the full view is available, use it
5865         for subsequent semantic checks.
5866         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
5867         (Find_Primitive_Operation): New function.
5868         (Analyze_Overloaded_Selected_Component): insert explicit dereference
5869         only once if several interpretations of the prefix yield an access type.
5870         (Try_Object_Operation): Code and comment cleanup.
5871         (Analyze_Selected_Component): Reorder local variables. Minot comment and
5872         code reformatting. When the type of the prefix is tagged concurrent, a
5873         correct interpretation might be available in the primitive and
5874         class-wide operations of the type.
5876 2007-12-13  Robert Dewar  <dewar@adacore.com>
5877             Ed Schonberg  <schonberg@adacore.com>
5879         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
5880         renaming entry as subprogram using rename-as-body if subprogram spec
5881         frozen.
5882         (Use_One_Type): The clause is legal on an access type whose designated
5883         type has a limited view.
5884         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5885         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5886         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
5887         operation denoted by a selected component.
5888         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
5889         it can be an expression, possibly overloaded, that returns a task or
5890         an access to one.
5892 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5893             Gary Dismukes  <dismukes@adacore.com>
5895         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
5896         requeue statement is dispatching. Do not emit an error when the name is
5897         not an entry and the context is a dispatching select. Add code to
5898         perform subtype conformance between the formals of the current entry
5899         and those of the target interface primitive.
5900         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
5901         Timed_Entry_Call): Analyze the triggering statement as the first step of
5902         the processing. If this is a dispatching select, postpone the analysis
5903         of all select statements until the Expander transforms the select. This
5904         approach avoids generating duplicate identifiers after the Expander has
5905         replicated some of the select statements. In case the Expander is
5906         disabled, perform regular analysis.
5907         (Check_Triggering_Statement): New routine.
5908         (Analyze_Requeue): Exclude any interpretations that are not entries when
5909         checking overloaded names in a requeue. Also test type conformance for
5910         matching interpretations rather than requiring subtype conformance at
5911         that point to conform with the RM's resolution rule for requeues.
5913 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
5915         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
5916         inherited operation is a defaulted tag-indeterminate call, and there is
5917         a statically tagged actual, use the static tag as a controlling actual
5918         for the defaulted actual.
5920 2007-12-13  Geert Bosch  <bosch@adacore.com>
5922         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
5923         context, so do not call Check_Non_Static_Context.
5925 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
5927         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
5928         whether formal E is an entity which may have parameters.
5930 2007-12-13  Bob Duff  <duff@adacore.com>
5931             Javier Miranda  <miranda@adacore.com>
5932             Robert Dewar  <dewar@adacore.com>
5934         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
5935         (Set_Convention): New procedure to set the Convention flag, and in
5936         addition make sure the Favor_Top_Level flag is kept in sync (all
5937         foreign-language conventions require Favor_Top_Level = True).
5938         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
5939         to Related_Type.
5940         (Collect_Interfaces_Info): Minor update to handle the two secondary
5941         dispatch tables. Update occurrence of Related_Interface to Related_Type.
5942         (Generate_Parent_Ref): Add parameter to specify entity to check
5943         (Is_Preelaborable_Expression): Allow the name of a discriminant to
5944         initialize a component of a type with preelaborable initialization.
5945         This includes the case of a discriminal used in such a context.
5946         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
5947         latest Ada 2005 rules about renaming and 'Access of
5948         discriminant-dependent components.
5949         (Check_Nested_Access): Add handling when there are no enclosing
5950         subprograms (e.g. case of a package body).
5951         (Find_Parameter_Type): Factor routine from several other compiler files.
5952         Remove routine from Find_Overridden_Synchronized_Primitive.
5954 2007-12-13  Thomas Quinot  <quinot@adacore.com>
5956         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
5957         an invalid access to an uninitialized slot in the
5958         Source_File_Index_Table.
5960 2007-12-13  Thomas Quinot  <quinot@adacore.com>
5962         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
5964 2007-12-13  Bob Duff  <duff@adacore.com>
5966         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
5967         access-to-subprogram types in this package.
5969 2007-12-13  Olivier Hainque  <hainque@adacore.com>
5971         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
5972         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
5973         Stack_Overlay_Address and document that we are using an internal
5974         abstraction.
5975         (Byte_Size, Unsigned_32_Size): Remove, now useless.
5976         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
5977         consistently throughout the various implementation pieces.
5979         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
5980         overlay we are using to fill the stack area with patterns.
5981         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
5982         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
5983         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
5985 2007-12-13  Robert Dewar  <dewar@adacore.com>
5987         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
5989 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
5991         * s-tassta.adb: 
5992         (Create_Task): Take into account tasks created by foreign threads.
5993         Code clean up: use constants instead of hard coded values.
5995 2007-12-13  Robert Dewar  <dewar@adacore.com>
5997         * styleg.adb (Check_Comment): More liberal rules for comment placement
5999 2007-12-13  Olivier Hainque  <hainque@adacore.com>
6001         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
6002         of Procedure Value instead of Frame Pointer as the invocation
6003         identifier associated with the instruction pointer in each traceback
6004         entry.
6006         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
6007         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
6008         Pointer as the invocation identifier passed to tbk$symbolize.
6010         * s-traent-vms.ads, s-traent-vms.adb
6011         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
6012         Procedure Value instead of Frame Pointer as the invocation identifier
6013         passed to tbk$symbolize.
6015 2007-12-13  Robert Dewar  <dewar@adacore.com>
6017         * tbuild.ads, tbuild.adb: 
6018         Fix location of flag for unrecognized pragma message
6020 2007-12-13  Robert Dewar  <dewar@adacore.com>
6022         * treepr.ads, treepr.adb: (pl): implement use of positive value
6023         shorthands
6025 2007-12-13  Robert Dewar  <dewar@adacore.com>
6027         * xeinfo.adb: Remove warnings
6028         * xnmake.adb: Remove warnings
6029         * xsinfo.adb: Remove warnings
6030         * xtreeprs.adb: Remove warnings
6031         * xsnames.adb: Remove warnings
6033         * a-ngcoar.adb: Fix typo.
6034         * s-interr.adb: Minor reformatting
6035         * env.c: Minor reformatting.
6036         * g-bytswa.adb: Minor reformatting.
6037         * g-rannum.ads: Minor documentation improvements
6038         * s-tasinf-mingw.adb: Minor header fix
6039         * a-clrefi.adb: Minor reformatting
6040         * g-sttsne.ads: Minor documentation improvement
6041         * g-sttsne-locking.ads: Minor documentation improvement
6042         * g-soliop-solaris.ads: Minor documentation improvement
6043         * g-soliop-mingw.ads: Minor documentation improvement
6044         * g-soliop.ads: Minor documentation improvement
6045         * exp_aggr.ads: Minor reformatting
6046         * debug.adb: Add documentation for the gprbuild debug flags
6047         * exp_ch2.adb: Use Nkind_In to simplify code throughout
6048         * exp_pakd.adb: Minor reformatting
6050         * g-altive.ads, g-alleve.adb: Remove assertions.
6051         Add comment about minor differences between targets regarding
6052         floating-point operations.
6054         * g-thread.adb: Remove pragma unreferenced.
6055         * lib.ads: Minor reformatting
6056         * par-ch9.adb: Minor reformatting of error messages
6057         * sem_case.adb: Minor reformatting
6058         * s-fileio.adb: Minor reformattinng
6059         * s-vmexta.ads: Minor typo
6060         * vxaddr2line.adb: 
6061         Take into account 'Success' value as per new GNAT warning.
6063 2007-12-13  Vincent Celier  <celier@adacore.com>
6065         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
6066         even on Windows
6068 2007-12-13  Robert Dewar  <dewar@adacore.com>
6069             Bob Duff  <duff@adacore.com>
6071         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
6072         Document that suffixes may be terminations of each others
6073         Add doc for -gnatw.a and -gnatw.A
6074         Document gnatbind -Wx switch
6075         Document BOM recognition
6076         Document pragma Implemented_By_Entry.
6077         Document new units.
6079         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
6080         Add doc for pragma Unreferenced suppressing no entities referenced msg
6081         Add documentation of GNAT.Directory_Operations.Iteration
6082         Add documentation of GNAT.Random_Numbers
6083         Add documentation for pragma Shared.
6084         Correct documentation for Bit_Order
6085         Add documentation for the Pool_Address attribute.
6086         Fix and improve documentation of pragma machine_attribute.
6087         New pragma Fast_Math
6088         Document BOM recognition
6090         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
6091         Add /Wide_Character_Encoding for binder
6092         Add qualifier for the new gnatpp option --no-separate-loop-then
6094 2007-12-13  Matthew Heaney  <heaney@adacore.com>
6096         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
6097         which generic formal operations are called for each operation.
6099 2007-12-13  Olivier Hainque  <hainque@adacore.com>
6101         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
6102         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
6104 2007-12-13  Emmanuel Briot  <briot@adacore.com>
6106         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
6107         Reference_Dir unless we actually need it.
6109 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
6110             Tristan Gingold  <gingold@adacore.com>
6112         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
6114         * s-osprim-vms.adb,
6115         a-calend-vms.adb: Remove pragma warning off and add pragma
6116         unreferenced.
6118 2007-12-13  Robert Dewar  <dewar@adacore.com>
6120         * impunit.adb: Add entries for missing units
6122         * Makefile.rtl: Add new run-time units.
6124         * Make-lang.in:  Update dependencies.
6126 2007-12-13  Bob Duff  <duff@adacore.com>
6128         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
6129         types, set Can_Use_Internal_Rep appropriately, based on
6130         Always_Compatible_Rep_On_Target.
6132 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
6133             Arnaud Charlet  <charlet@adacore.com>
6135         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
6136         it to the front end and setting the aamp_target environment variable
6137         to the switch's argument to ensure that gnaampbind and gnaamplink will
6138         take the specified library into account.
6139         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
6140         target, since the CIL compiler supports an "object" file (.il files).
6142 2007-12-13  Vincent Celier  <celier@adacore.com>
6144         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
6145         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
6147 2007-12-13  Geert Bosch  <bosch@adacore.com>
6149         * s-parame-vxworks.adb: 
6150         Update comments to reflect usage of this package by Nucleus.
6152 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
6154         * i-vxwork.ads: Kill new warning on Convention C, since changing the
6155         spec would break code.
6157         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
6159         * system-vxworks-alpha.ads: Removed.
6161 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
6163         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
6165 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
6167         PR ada/34366
6168         * sem_ch3.adb (Designates_T): New function.
6169         (Mentions_T): Factor reusable part of the logic into Designates_T.
6170         Consider non-access parameters and access and non-access result.
6171         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
6172         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
6174         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
6176 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
6178         PR ada/34361
6179         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
6180         the new implementation of target-specific calls.
6182 2007-12-07  Olivier Hainque  <hainque@adacore.com>
6184         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
6185         the designated full view, only follow a second level Full_View link
6186         for Non_Limited_Views of from_limited_with references.
6187         
6188 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
6190         PR ada/15805
6191         * sem_ch6.adb (Process_Formals): Prevent an access type formal
6192         to be initialized with an access to constant object.
6194         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
6195         when an access to constant is used to initialize an access
6196         value.
6198         PR ada/21346
6199         * a-direct.adb (Compose): Containing_Directory can be an empty string.
6201 2007-12-07  Olivier Hainque  <hainque@adacore.com>
6203         PR ada/34173
6204         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
6205         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
6206         this is from an alignment clause on the GNAT entity.
6207         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
6208         to distinguish the case where we set it from the type's alignment.
6209         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
6210         whether this alignment was set from an explicit alignment clause.
6212 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
6214         * decl.c (make_packable_type): Revert last change.
6215         (gnat_to_gnu_field): Avoid setting size and position multiple times.
6216         * utils.c (finish_record_type): Retrieve the real name of the type.
6218 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
6220         * trans.c (lvalue_required_p): Take base node directly instead
6221         of its parent.  Rename second parameter to 'gnu_type'.
6222         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
6223         <N_Slice>: Likewise.
6224         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
6225         Adjust calls to lvalue_required_p.
6227 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
6229         PR ada/21489
6230         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
6231         parameters of an entry call.
6233 2007-12-03  Robert Dewar  <dewar@adacore.com>
6234             Samuel Tardieu  <sam@rfc1149.net>
6236         PR ada/34287
6237         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
6238         of variables declared in a library-level package.
6239     
6240 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
6242         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
6243         of Empty_String'Unchecked_Access.
6245         * Makefile.in: Add support for sh4-linux.
6247         * system-linux-sh4.ads: New file.
6249 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
6251         PR ada/33722
6252         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
6253         and its argument must not be free()ed.
6255 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
6257         * decl.c (make_packable_type): Retrieve the real name of the type.
6258         (maybe_pad_type): Simplify similar code.
6260 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
6262         PR ada/15804
6263         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
6264         than an identifier is used after "case" in a variant_part.
6266         PR ada/17318
6267         * par-ch4.adb (Is_Parameterless_Attribute): New map.
6268         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
6269         attribute name or not depending on the new map.
6271         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
6272         returning a string or a type will not be called with improper
6273         arguments.
6275         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
6277         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
6279         PR ada/32792
6280         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
6281         Signal an error when attribute argument is a fixed-point value of
6282         an unknown type.
6284         PR ada/22559
6285         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
6286         a derived ordinary fixed point type.
6288         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
6289         RM_Size when a Small clause is found.
6291 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
6293         PR 34081/C++
6294         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
6295         Pass 'false' for the new allocate_struct_function parameter.
6296         * utils.c (build_function_stub): Likewise.
6298 2007-11-25  Richard Guenther  <rguenther@suse.de>
6300         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
6301         (gnat_poplevel): Likewise.
6303 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
6305         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
6306         strict alignment, no alignment clause and a known static size, cap
6307         the type alignment to the greatest power of 2 factor of the size.
6308         (gnat_to_gnu_field): If the field has a component clause, is aliased
6309         or of a type with strict alignment, require that its size be equal to
6310         that of the type.
6311         (validate_size): Use the type size as the minimum size for a type with
6312         strict alignment.
6314 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
6316         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
6317         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
6318         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
6319         Use 'Access instead of 'Unchecked_Access in second and third
6320         arguments of pthread_sigmask.
6322 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
6324         * decl.c (ceil_alignment): New function.
6325         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
6326         (make_packable_type): Likewise.
6328 2007-11-22  Olivier Hainque  <hainque@adacore.com>
6330         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
6331         to fit in 80 columns.
6333 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
6335         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
6336         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
6338 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
6340         PR ada/34098
6341         * misc.c (gnat_adjust_rli): Delete.
6342         (gnat_init): Do not initialize the translation code here.
6343         Do not call set_lang_adjust_rli.
6344         * trans.c (init_code_table): Make static.
6345         (gnat_init_stmt_group): Delete.
6346         (gigi): Initialize the translation code entirely here.
6347         Emit debug info for the common types here instead of...
6348         * utils.c (gnat_init_decl_processing): ...here.
6349         * gigi.h (init_code_table): Delete.
6350         (gnat_init_stmt_group): Likewise.
6352 2007-11-16  Olivier Hainque  <hainque@adacore.com>
6354         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
6355         retrieving an allocator return value from a super-aligned address from
6356         here to ...
6357         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
6358         expect a super-aligned address for a fat or thin pointer.
6359         
6360 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
6362         * trans.c (call_to_gnu): Always set the source location on the call
6363         expression.  If the function returns-by-target, also set it on the
6364         address expression.
6366 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
6368         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
6369         sections of non-supported Interix target.
6371         * s-osinte-interix.ads: Removed.
6373         * i-cstrin.ads (chars_ptr): Make it a C convention type.
6375 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
6377         * a-tasatt.adb: Add a comment at the beginning of the package
6378         explaining why in general 'Unchecked_Access must be used instead
6379         of 'Access.
6381         * sem_prag.adb (Process_Convention): Move the test for the
6382         entity on which the Convention pragma applies down to also
6383         forbid pragma Convention on enumeration literals reached
6384         through renamings.
6386 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
6388         * a-tasatt.adb: Revert previous change for this file as it will
6389         generate an error when this package is instantiated from a
6390         local context.
6392 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
6394         * a-tasatt.adb: Type Wrapper should be declared in comment instead
6395         of already declared type Node_Access.
6396         Use 'Access instead of 'Unchecked_Access when applicable. Local
6397         lifetime is the one of the package.
6398         (Set_Value): W is allocated on the heap.
6400         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
6401         applicable.
6402         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
6403         access type.
6404         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
6405         access type.
6407         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
6408         applicable.
6409         (elaboration code): Timer_Queue lifetime is the one of the
6410         package.
6412         * tracebak.c (i386 alternative): Remove useless comparaison
6413         which is always false; LOWEST_ADDRESS is 0 and is never greater
6414         than an unsigned integer.
6416         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
6417         embedded check for "Ada_Version >= Ada_05".
6419 2007-11-07  Olivier Hainque  <hainque@adacore.com>
6421         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
6422         craft and expand comment.
6424 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
6426         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
6428 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
6430         * misc.c (gnat_handle_option): Replace call to abort with
6431         call to gcc_unreachable.
6432         (gnat_init): Likewise.
6433         (gnat_expand_expr): Likewise.
6434         (fp_prec_to_size): Likewise.
6435         (fp_size_to_prec): Likewise.
6437 2007-10-23  Richard Guenther  <rguenther@suse.de>
6439         PR bootstrap/33608
6440         * tracebak.c: #undef abort after including system.h.
6442 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
6444         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
6445         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
6446         for win32 targets.
6447         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
6449 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
6451         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
6452         Set the protection status of the guard page based on the value of On.
6454         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
6456         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
6457         (Exit_Task): Pass False to Hide_Yellow_Zone.
6459 2007-10-15  Robert Dewar  <dewar@adacore.com>
6461         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
6462         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
6463         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
6464         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
6465         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
6466         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
6467         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
6468         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
6469         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
6470         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
6471         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
6472         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
6473         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
6474         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
6475         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
6476         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
6477         Minor reformatting.
6478         Add Unreferenced and Warnings (Off) pragmas for cases of
6479         variables modified calls where they are IN OUT or OUT parameters and
6480         the resulting values are not subsequently referenced. In a few cases,
6481         we also remove redundant code found by the new warnings.
6483         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
6484         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
6485         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
6486         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
6487         warning controlled by -gnatw.o that warns on cases of out parameter
6488         values being ignored.
6490 2007-10-15  Geert Bosch  <bosch@adacore.com>
6492         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
6494         * expect.c: Initial port to arm-mentor-nucleus.
6495         Use kill for __gnat_kill() on VMS.
6497 2007-10-15  Emmanuel Briot  <briot@adacore.com>
6499         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
6500         value.
6501         (Xref_Record): Change type for Line, since in the case of a reference to
6502         a predefined entity (as happens for array index types), the line is set
6503         to 0.
6504         Add support for parsing multiple array index types info, or
6505         multiple inherited interfaces info. This information cannot be stored
6506         in Xref_Entity_Record, which only supports a single instance of Tref_*,
6507         and is therefore stored in the list of references instead. It has a
6508         special treatement later on in tools that use this information.
6510 2007-10-15  Tristan Gingold  <gingold@adacore.com>
6512         * debug.adb: Document use of -gnatd.a and -gnatd.I
6514         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
6516 2007-10-15  Javier Miranda  <miranda@adacore.com>
6518         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
6519         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
6520         care of access to class-wide interface types plus removal of bizarre
6521         conversion of tagged object to access type (reported by Gary
6522         Dismukes). After this patch there is no need to perform any
6523         additional management on these nodes in Expand_Interface_Actuals.
6525         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
6526         that handles use of 'Access and 'Unchecked_Access applied to
6527         actuals covering interface types. Such code is now
6528         centralized in Expand_N_Attribute_Reference.
6530 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
6532         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
6533         of tagged types whose ultimate ancestor is a CPP type.
6534         (Freeze_Array_Type): For a packed array type, generate an initialization
6535         procedure if the type is public, to handle properly a client that
6536         specifies Normalize_Scalars.
6538 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
6540         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
6541         inside a generic body, retrieve the full view of the entry family
6542         discrete subtype if available.
6544 2007-10-15  Thomas Quinot  <quinot@adacore.com>
6546         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
6547         attempt to generate stubs for hidden primitive operations.
6549 2007-10-15  Vincent Celier  <celier@adacore.com>
6551         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
6552         returning None, used when there is no platform specific body for
6553         MLib.Tgt.Specific.
6555 2007-10-15  Bob Duff  <duff@adacore.com>
6557         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
6558         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
6559         the generic Heap_Sort_G, in order to avoid trampolines.
6561 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
6562             Jose Ruiz  <ruiz@adacore.com>
6564         * vx_stack_info.c: New file.
6566         * i-forbla-unimplemented.ads: New file.
6568         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
6569         for unsupported configurations; use it on VMS targets instead of the
6570         real one.
6571         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
6572         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
6573         used by VxWorks targets to have access to task-specific data and be
6574         able to extract the stack boundaries for stack checking.
6575         Use system-vms-ia64.ads on ivms.
6577         * Make-lang.in: Update dependencies.
6579         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
6580         (vx_stack_info.c).
6582 2007-10-15  Vincent Celier  <celier@adacore.com>
6584         * snames.adb, snames.ads: Add new standard name runtime_library_dir
6586         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
6588         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
6590         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
6591         the source is unknown.
6593         * prj-ext.adb: Spelling error fix
6595         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
6596         95 reserved word in its name.
6597         (Process_Project_Level_Array_Attributes): Process new attribute
6598         Runtime_Library_Dir.
6600         * prj-part.adb (Parse_Single_Project): Do not check the name of the
6601         config project against the user project names.
6603         * prj-proc.adb (Expression): In multi-language mode, indexes that do
6604         not include a dot are always case insensitive.
6605         (Process_Declarative_Items): Ditto
6606         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
6607         detected.
6609         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
6610         True, compare both indexes in lower case.
6612 2007-10-15  Robert Dewar  <dewar@adacore.com>
6614         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
6616 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
6618         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
6619         association for an access component, add an association with null as
6620         the expression. Remove testing for array subtypes and the setting in
6621         that case of Ctyp to the array component type, which prevented proper
6622         inclusion of an association for null-initialized arrays. Collapse
6623         condition that tests for array subtypes into just a test of
6624         Is_Partially_Initialized_Type (which already covers arrays anyway).
6626 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
6628         * sem_ch12.adb: Minor code reformatting.
6629         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
6630         find the parent package which may have been hidden by local
6631         declarations.
6633 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
6635         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
6636         flag of derived concurrent types, taking into account the flag setting
6637         on the parent subtype and any new set of discriminants.
6639 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
6641         * sem_ch4.adb: Minor code and comment reformatting.
6642         (Analyze_Allocator): When the designated type of an unconstrained
6643         allocator is a record with unknown discriminants or an array with
6644         unknown range bounds, emit a detailed error message depending on the
6645         compilation mode and whether the designated type is limited.
6647 2007-10-15  Tristan Gingold  <gingold@adacore.com>
6649         * system-vms-ia64.ads: New file.
6651         * system-vms_64.ads: Minor comment fix.
6653 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
6655         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
6656         body generated for a function with a controlling result that is a null
6657         extension, discard the generated body in favor of the current explicit
6658         one.
6660 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
6662         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
6663         examining its original form, to handle properly operator calls that
6664         have been rewritten.
6666 2007-10-15  Olivier Hainque  <hainque@adacore.com>
6668         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
6669         instead of a procedure value in each traceback entry.
6671         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
6672         instead of procedure value to TBK$SYMBOLIZE.
6674         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
6675         field.
6676         (TB_Entry_For): Account for the PV/FP renaming.
6678         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
6679         add comment.
6680         (Null_TB_Entry): Account for change of component name.
6681         (PV_For): Rename as FP_For.
6683 2007-10-15  Tristan Gingold  <gingold@adacore.com>
6685         * trans.c (gnat_to_gnu): Remove the padding structure more often.
6686         This optimize assignment to over-aligned record.
6688 2007-10-15  Emmanuel Briot  <briot@adacore.com>
6690         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
6691         interfaces.
6693         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
6694         type, for dispatching calls.
6696 2007-10-15  Vincent Celier  <celier@adacore.com>
6697             Robert Dewar  <dewar@adacore.com>
6699         * gnat_ugn.texi: Add documentation for switches --version and --help
6700         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
6701         gnatxref, gnatfind, gnatls, and gnatclean.
6702         Document -gnatw.o.
6703         Mention attribute Excluded_Source_Dirs
6704         Replace obsolescent attribute Locally_Removed_Files with attribute
6705         Excluded_Source_Files.
6706         Improve documentation of -u (gnatbind)
6707         Document how to do reliable stack checking for the environmental task
6708         on iVMS.
6710         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
6711         Document attribute Excluded_Source_Files and indicate that attribute
6712         Locally_Removed_Files is obsolescent.
6714 2007-10-15  Thomas Quinot  <quinot@adacore.com>
6716         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
6718         * gen-soccon.c: 
6719         Update documentation to note that OpenVMS 8.3 or later must be used
6720         to generate g-soccon-vms.ads.
6722         * atree.adb: Add ??? comment
6724         * exp_util.adb: Minor reformatting.
6725         Add ??? comment in Kill_Dead_Code.
6727 2007-10-15  Robert Dewar  <dewar@adacore.com>
6729         * errout.ads: Comment clarification
6731         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
6732         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
6734         * lib.ads: Comment update
6736         * init.c: Minor reformatting.
6738         * sem_attr.adb: Minor formatting
6740         * osint-b.ads: Minor reformatting
6742         * sem_ch9.adb: Implement -gnatd.I switch
6744         * g-comlin.adb: (Start): Fix handling of empty command line.
6746         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
6747         even when -rules follows the -cargs section.
6749 2007-10-08  Ollie Wild  <aaw@google.com>
6751         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
6752         gnat_return_tree.
6753         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
6754         gnat_return_tree.
6755         (gnat_eh_runtime_type): Removed.
6756         (gnat_return_tree): New function.
6758 2007-10-08  Ben Elliston  <bje@au.ibm.com>
6760         PR ada/33454
6761         Revert:
6762         2007-08-31  Ben Elliston  <bje@au.ibm.com>
6764         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
6765         when compiling for powerpc64-*-linux.
6766         * system-linux-ppc64.ads: New file.
6768 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
6770         Mapped location support
6771         * back_end.adb (Call_Back_End): Pass information about source
6772         files instead of units to gigi.
6773         * gigi.h (struct File_Info_Type): New.
6774         (gigi): Rename and change type of number_units parameter, change
6775         type of file_info_ptr parameter.
6776         * trans.c (number_files): New global variable.
6777         (gigi): Rename and change type of number_units parameter, change
6778         type of file_info_ptr parameter.
6779         If mapped location support is enabled, create the isomorphic mapping
6780         between source files and line maps.
6781         (Sloc_to_locus): If mapped location support is enabled, translate
6782         source location into mapped location.
6783         (annotate_with_node): Rename into set_expr_location_from_node.
6784         Call set_expr_location instead of annotate_with_locus.
6785         (Pragma_to_gnu): Adjust for above change.
6786         (Loop_Statement_to_gnu): Likewise.
6787         (call_to_gnu): Likewise.
6788         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
6789         (gnat_to_gnu): Likewise.
6790         (add_stmt_with_node): Likewise.
6791         (add_cleanup): Likewise.
6792         * utils.c (gnat_init_decl_processing): Do not set input_line.
6794 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
6796         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
6797         (Applicable_Use): Emit a warning when a package tries to use itself.
6798         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
6799         is already in use or the package where it is declared is in use or is
6800         declared in the current package.
6801         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
6803         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
6804         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
6805         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
6807 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
6809         * a-calend-vms.adb, a-calend.adb: 
6810         Add a section on leap seconds control along with two entities used to
6811         enable and disable leap seconds support. The array Leap_Second_Times is
6812         now constant and contains hard time values pre-generated. Remove
6813         all elaboration code used to populate the table of leap seconds.
6815         * bindgen.adb: 
6816         Add entity Leap_Seconds_Support to the list of global run-time variables
6817         along with a comment on its usage and values.
6818         (Gen_Adainit_Ada): Add code to generate the declaration and import of
6819         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
6820         or one (enabled) depending on the presence of binder switch "-y".
6821         (Gen_Adainit_C): Add code to generate the declaration of external int
6822         __gl_leap_seconds_support. Set is value to zero (disabled) or one
6823         (enabled) depending on the presence of binder switch "-y".
6825         * init.c: Add __gl_leap_seconds_support to the list of global values
6826         computed by the binder.
6828 2007-09-26  Jerome Guitton  <guitton@adacore.com>
6830         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
6831         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
6832          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
6833         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
6835         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
6837         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
6838         function which can be called by the debugger to interrupt the tasks of
6839         an Ada application asynchronously, as needed on VxWorks.
6840         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
6842         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
6843         renamed from Stop_All_Tasks. Update comments.
6844         (Stop_All_tasks): New function declaration.
6846 2007-09-26  Olivier Hainque  <hainque@adacore.com>
6848         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
6849         #include <utime.h> and #define GCC_RESOURCE_H before
6850         #include <sys/wait.h>.
6851         Add more protections in __gnat_translate_vms.
6853         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
6854         #include <sys/wait.h>.
6856 2007-09-26  Thomas Quinot  <quinot@adacore.com>
6857             Sergey Rybin  <rybin@adacore.com>
6859         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
6861         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6862         where it belongs.
6864         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6866         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6867         where it belongs.
6869         * sem_dist.ads: Minor comment fix
6871         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6873 2007-09-26  Javier Miranda  <miranda@adacore.com>
6874             Eric Botcazou  <ebotcazou@adacore.com>
6876         * a-tags.adb: 
6877         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
6878          indirection added to the HT_Link component of the TSD. This is required
6879          to statically allocate the TSD.
6881         * a-tags.ads: 
6882         Minor reordering of the declarations in the private part. Required to
6883         add a level of indirection to the contents of the TSD component HT_Link.
6884         This is required to statically allocate the TSD.
6886         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
6887         Is_Statically_Allocated set from constant objects.
6888         Do not make exported constants created by the compiler volatile.
6889         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
6890         as read-only.
6892         * trans.c (Identifier_to_gnu): For constants, unshare initializers
6893         before returning them.
6895         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
6896         public part of the package.
6897         (Make_DT): Move HT_Link component out of the TSD record. For this
6898         purpose Make_DT now declares a separate object that stores the
6899         HT_Link value, and initializes the TSD component with the address
6900         of this new object. The addition of this level of indirection is
6901         required to statically allocate the TSD because the TSD cannot
6902         have variable components.
6903         (Expand_Interface_Conversion): Improve the expanded code.
6904         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
6906         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
6907         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
6908         if we are building static dispatch tables then we must not generate
6909         extra code to register the primitive because the dispatch table will
6910         be built at the end of the library package; otherwise we notify that
6911         we cannot build the static dispatch table.
6913 2007-09-26  Robert Dewar  <dewar@adacore.com>
6915         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
6916         overlays.
6918         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
6919         (Analyze_Record_Representation_Clause): Suppress junk warning for
6920         missing component clause.
6921         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
6922         tests for controlled type overlay to composites with controlled
6923         components.
6924         (Analyze_Record_Representation_Clause): Add reference for component name
6926 2007-09-26  Javier Miranda  <miranda@adacore.com>
6927             Gary Dismukes  <dismukes@adacore.com>
6929         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
6930         for thunks associated with interface types.
6932         * einfo.ads: Improve documentatation of Is_Internal
6933         (Is_Thunk): New attribute applicable to subprograms. True for thunks
6934         associated with interface types.
6935         Extensive comment fixes regarding flags that appear in all entities. The
6936         documentation is now consistent for all such flags (there were a number
6937         of errors in the documentation in this regard).
6939         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
6941         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
6942         of these procedures are passed a function call that already has
6943         build-in-place actuals (testing new flag
6944         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
6945         the case where processing continues.
6946         (Expand_Call): If the call is generated from a thunk body then we
6947         propagate the extra actuals associated with the accessibility
6948         level of the access type actuals.
6950         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
6951         of each extra formal of a protected operation to reference the
6952         corresponding extra formal of the subprogram denoted by the
6953         operation's Protected_Body_Subprogram.
6954         
6955         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
6956         N_Function_Call nodes.
6958 2007-09-26  Robert Dewar  <dewar@adacore.com>
6960         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
6962         * debug.adb: Add d.s flag.
6964 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
6966         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
6967         debug variable so that it won't be initialized when pragma
6968         Initialize_Scalars is in effect.
6970 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
6972         * freeze.adb (Freeze_Entity): Remove check for preelaborable
6973         initialization of a full view. This is moved to
6974         Analyze_Package_Specification.
6976         * sem_ch7.adb (Analyze_Package_Specification): Add check for
6977         preelaborable initialization of a full view in entity loop.
6978         (Uninstall_Declarations): If entity is a use-visible compilation unit,
6979         its child units are use-visible only if they are visible child units.
6981         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
6982         whether an expression can be used within a type declaration that
6983         requires preelaborable init.
6984         (Check_Components): Replace inline code that does partial checking for
6985         preelaborable default expressions with call to
6986         Is_Preelaborable_Expression.
6987         (Has_Preelaborable_Initialization): In the case of a generic actual
6988         subtype, (that is, Is_Generic_Actual is True), return the result of
6989         applying Has_Preelaborable_Initialization to the generic actual's base
6990         type.
6992 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
6994         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
6995         call to Jan_1_Day _Of_Week to optimize its performance.
6996         (Is_Leap): Move the routine to the scope of Week_In_Year.
6997         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
6998         weekday on which January 1 falls of Year - 1 and Year + 1. This function
6999         avoids calling Time_Of and Split, thus making it more efficent.
7000         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
7002         * g-calend.ads (Week_In_Year): Change comment to reflect new
7003         implementation.
7005 2007-09-26  Emmanuel Briot  <briot@adacore.com>
7007         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
7008         Command_Line): New types
7009         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
7010         support for defining how switches can be grouped on a command line (as
7011         is the case for -gnatw... for GNAT), and how simple switches can be
7012         used as aliases for more complex switches (-gnatwa is same as
7013         -gnatwbcef...)
7014         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
7015         (Start, Current_*): New subprograms
7016         Added support for parsing an array of strings in addition to the real
7017         command line.
7018         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
7019          be moved from the body to the private part of the spec.
7020         (*): All subprograms now have an extra parameter with default value to
7021         specify which parser should be used. For backward compatibility, it
7022         defaults to parsing the command line of the application. They were also
7023         modified to properly handle cases where each of the argument does not
7024         start at index 1 (which is always true for Ada.Command_Line, but not
7025         when processing any Argument_List).
7026         (Free): New subprogram
7027         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
7028         Argument): New subprograms
7029         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
7030         special characters like ':', '=',... are now handled in a single place,
7031         which makes the code more extensible eventually.
7032         (Getopt, Full_Switch): When the switch was returned as part of the
7033         special character '*', make sure it is prepended by the switch character
7034         ('-' in general), so that the application knows whether "foo" or "-foo"
7035         was specified on the command line.
7037 2007-09-26  Florian Villoing  <villoing@adacore.com>
7039         * g-dirope.adb (Remove_Dir): In case we are removing directories
7040         recursively, make sure that if an exception is raised during the
7041         processing, the current working directory is reset to its initial
7042         value before propagating the exception.
7044 2007-09-26  Vincent Celier  <celier@adacore.com>
7046         * gnatbind.adb: If there are several ALI files specified and there is
7047         a main program to bind, the first ALI is expected to contain the main
7048         subprogram and the names of the binder generated files will be derived
7049         from the first ALI file name.
7050         (Gnatbind): Fix insertion character in invocation of Error_Msg
7052 2007-09-26  Vincent Celier  <celier@adacore.com>
7054         * gnatcmd.adb (Check_Files): Do not include sources that have been
7055         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
7057 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
7059         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
7060         information about each of its index types, following the type
7061         reference for its component type.
7063 2007-09-26  Vincent Celier  <celier@adacore.com>
7065         * make.adb: (Kill): New procedure (__gnat_kill imported)
7066         (Running_Compile, Outstanding_Compiles): Global variables that
7067         were previously local to procedure Compile_Sources.
7068         (Sigint_Intercepted): Send signal SIGINT to all outstanding
7069         compilation processes.
7071         (Gnatmake): If project files are used, create the mapping of all the
7072         sources, so that the correct paths will be found.
7074         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
7076 2007-09-26  Vincent Celier  <celier@adacore.com>
7078         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
7080         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
7081         Replace components Compiler_Min_Options and Binder_Min_Options with
7082         Compiler_Required_Switches and Binder_Required_Switches in record
7083         Language_Config.
7084         Remove components Default_Language and Config in Project_Tree_Data,
7085         no longer used.
7087         * prj-attr.adb: New attributes Required_Switches (<language>) in
7088         packages Compiler and Binder.
7090         * prj-nmsc.adb: Major rewrite of the processing of configuration
7091         attributes for gprbuild. No impact on GNAT tools.
7093         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
7094         process configuration attributes: this is done in Prj.Nmsc.Check.
7095         (Recursive_Process): Make a full copy of packages inherited from project
7096         being extended, instead of a shallow copy.
7097         (Process_Project_Tree_Phase_1): New procedure
7098         (Process_Project_Tree_Phase_1): New procedure
7099         (Process): Implementation now uses the two new procedures
7101         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
7102         from the project config, not the tree config that no longer exists.
7104 2007-09-26  Vincent Celier  <celier@adacore.com>
7106         * Make-lang.in: Update dependencies..
7108 2007-09-26  Vincent Celier  <celier@adacore.com>
7110         * osint.adb, osint.ads: Minor reformatting
7112         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
7114 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
7116         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
7117         message to cite use of <> in aggregate component associations rather
7118         than wrongly indicating use of limited aggregates.
7120 2007-09-26  Robert Dewar  <dewar@adacore.com>
7122         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
7123         Address_Taken.
7125 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
7127         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
7128         ancestor of the derived type, the operations are inherited from the
7129         primary dispatch table of the parent.
7130         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
7131         when the context is an explicit type conversion.
7133 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
7135         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
7136         rule for qualified expressions properly, to detect improper conversions
7137         and resolve some cases of overloading.
7139 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
7141         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
7142         proper kind of reference to the primitive operation, for better source
7143         navigation.
7144         (Valid_Conversion): A tagged conversion is legal if both operands are
7145         tagged.
7147 2007-09-26  Robert Dewar  <dewar@adacore.com>
7149         * sem_warn.adb (Check_References): Catch more cases of unreferenced
7150         packages.
7152 2007-09-26  Vincent Celier  <celier@adacore.com>
7154         * snames.adb, snames.ads: Change Include_Option to Include_Switches
7156 2007-09-26  Robert Dewar  <dewar@adacore.com>
7158         * s-wchstw.adb: provide messages for run time unit exceptions
7160         * a-witeio.adb: Minor reformatting
7162         * exp_ch13.adb: Minor reformatting
7164 2007-09-26  Sergey Rybin  <rybin@adacore.com>
7166         * vms_data.ads: Revise gnatmetric qualifiers.
7167         Add qualified for the new gnatbind option '-y'
7169         * gnat_ugn.texi: Revise the gnatmetric section.
7170         Add entry for new gnatbind option '-y'.
7172         * gnat_rm.texi: Minor spelling correction.
7173         Document restriction on overlaying controlled types
7175 2007-09-26  Vincent Celier  <celier@adacore.com>
7177         * makegpr.adb (Link_Executables): Do not fail when the root project has
7178         no sources, but is an extending project.
7180 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
7182         * trans.c: Fix misplaced #define.
7184 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
7186         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
7187         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
7189 2007-09-21  Olivier Hainque  <hainque@adacore.com>
7191         * utils.c (type_for_nonaliased_component_p): Return false for
7192         all AGGREGATE_TYPEs.
7194 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
7196         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
7197         object covered by 13.3(19) volatile.
7199 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
7201         PR ada/26797
7202         PR ada/32407
7203         * utils.c (unchecked_convert): Use a subtype as the intermediate type
7204         in the special VIEW_CONVERT_EXPR case.
7206 2007-09-12  Robert Dewar  <dewar@adacore.com>
7208         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
7210         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
7211         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
7212         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
7213         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
7214         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
7215         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
7216         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
7217         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
7218         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
7219         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
7220         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
7221         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
7222         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
7223         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
7224         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
7225         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
7226         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
7227         pragma Compiler_Unit and adds it to relevant library units.
7229 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
7231         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
7232         a box need not correspond to any component.
7234 2007-09-12  Robert Dewar  <dewar@adacore.com>
7236         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
7237         the tasking version of the Ada run time when foreign threads are
7238         present and there are no explicit Ada tasks or tasking constructs.
7240         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
7242 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
7244         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
7245         the usage of switch -y.
7247         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
7248         when switch -y is present.
7250         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
7251         leap seconds in Ada.Calendar and its children.
7253 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
7255         * a-extiti.ads (Timer): The discriminant is a "not null access
7256         constant" in the Reference Manual.
7257         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
7259 2007-09-12  Robert Dewar  <dewar@adacore.com>
7261         * a-swuwha.adb: Remove junk RM header
7263 2007-09-12  Vincent Celier  <celier@adacore.com>
7265         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
7266         indicator
7268         * g-bytswa.ads: Minor reformatting
7270 2007-09-12  Thomas Quinot  <quinot@adacore.com>
7272         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
7273         Add new constant Thread_Blocking_IO, always True by default, set False
7274         on a per-runtime basis.
7275         (Need_Netdb_Buffer): New constant.
7277 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
7279         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
7280         Added renames for corresponding functions in System.Partition_Interface.
7282 2007-09-12  Doug Rupp  <rupp@adacore.com>
7284         * Makefile.in: Remove VMS specific System.CRTL packages which are no
7285         longer needed.
7287         * s-crtl-vms64.ads: Removed.
7289 2007-09-12  Olivier Hainque  <hainque@adacore.com>
7291         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
7292         with discriminant constraints, generalize the code for BIT_FIELDs
7293         to PACKED fields of constant size and propagate DECL_PACKED.
7295 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
7297         * decl.c (array_type_has_nonaliased_component): New predicate.
7298         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
7299         set the TYPE_NONALIASED_COMPONENT flag on the type.
7300         <E_Array_Subtype>: Likewise.
7301         * gigi.h (type_for_nonaliased_component_p): Declare.
7302         * utils.c (type_for_nonaliased_component_p): New predicate.
7303         (create_field_decl): Invoke the above predicate to set the
7304         DECL_NONADDRESSABLE_P flag on the field.
7306 2007-09-11  Javier Miranda  <miranda@adacore.com>
7308         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
7309         in library level record type entities if we are generating statically
7310         allocated dispatch tables.
7312         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
7313         importing/exporting the _tag declaration by new code
7314         importing/exporting the dispatch table wrapper. This change allows us
7315         to statically allocate of the TSD.
7316         (Make_DT.Export_DT): New procedure.
7317         (Build_Static_DT): New function.
7318         (Has_DT): New function.
7320         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
7321         True_Constant and Current_Value. Required to statically
7322         allocate the dispatch tables.
7323         (Check_Allocator): Make function iterative instead of recursive.
7324         Also return inner allocator node, when present, so that we do not have
7325         to look for that node again in the caller.
7327 2007-09-11  Jan Hubicka  <jh@suse.cz>
7329         * misc.c (gnat_expand_body): Kill.
7330         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
7332 2007-09-10  Robert Dewar  <dewar@adacore.com>
7334         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
7335         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
7336         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
7337         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
7338         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
7339         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
7340         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
7341         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
7342         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
7343         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
7344         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
7345         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
7346         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
7347         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
7348         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
7349         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
7350         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
7351         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
7352         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
7353         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
7354         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
7355         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
7356         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
7357         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
7358         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
7359         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
7360         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
7361         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
7362         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
7363         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
7364         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
7365         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
7366         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
7367         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
7368         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
7369         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
7370         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
7371         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
7372         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
7373         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
7374         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
7375         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
7376         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
7377         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
7378         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
7379         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
7380         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
7381         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
7382         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
7383         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
7384         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
7385         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
7386         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
7387         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
7388         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
7389         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
7390         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
7391         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
7392         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
7393         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
7394         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
7395         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
7396         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
7397         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
7398         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
7399         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
7400         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
7401         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
7402         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
7403         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
7404         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
7405         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
7406         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
7407         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
7408         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
7409         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
7410         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
7411         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
7412         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
7413         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
7414         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
7415         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
7416         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
7418 2007-09-10  Emmanuel Briot  <briot@adacore.com>
7420         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
7421         classes ("[]").
7423 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
7425         * adaint.c (__gnat_translate_vms): new function.
7427 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
7428             Thomas Quinot  <quinot@adacore.com>
7430         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
7431         create an abstract subprogram in the case of 'Input. For 'Output we now
7432         create a real spec/body when the type is abstract, since it can
7433         potentially be called.
7434         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
7435         body for 'Output when the type is abstract (only the creation of the
7436         body for 'Input is excluded when the type is abstract).
7437         (Stream_Operation_OK): Add an additional condition in the return
7438         statement, so that False will be returned for TTS_Stream_Input if the
7439         associated tagged type is an abstract extension. Add comments for
7440         return statement.
7441         (Expand_N_Object_Declaration): For the case of a shared passive
7442         variable, insert init proc call only after the shared variable
7443         procedures have been processed, because the IP call needs to undergo
7444         shared passive variable reference expansion, which requires these
7445         procedures to be available (and elaborated).
7447 2007-09-10  Vincent Celier  <celier@adacore.com>
7449         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
7450         parameter Runtime_Project.
7452 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
7454         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
7455         given a box association, the type of the component is discriminated,
7456         and the value of the discriminant is the discriminant of the enclosing
7457         type, retrieve its value from the aggregate itself, where it must have
7458         been supplied.
7460         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
7461         to remove other spurious ambiguities on arithmetic operations involving
7462         literals and addresses, on systems where Address is a visible integer
7463         type, when the operator is called in functional notation.
7464         (Try_Primitive_Operation): Within an instance, a call in prefixed form
7465         is legal when the types match, even if the operation is currently
7466         hidden.
7468 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
7470         * sem_ch12.adb (Build_Local_Package): A formal package with no
7471         associations is legal if all formals have defaults. It is not
7472         equivalent to a formal declared with a box.
7474 2007-09-10  Sergey Rybin  <rybin@adacore.com>
7476         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
7478 2007-09-10  Sergey Rybin  <rybin@adacore.com>
7480         * gnat_ugn.texi: Add description of the new '-lratio' option
7481         Update 7.3.1 section about availability of the feature.
7483 2007-09-10  Thomas Quinot  <quinot@adacore.com>
7485         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
7486         inserted node.
7488 2007-09-10  Olivier Hainque  <hainque@adacore.com>
7490         * Makefile.in: (mips-irix section): Activate build of libgmem.
7492 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
7494         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
7495         x87 registers.
7497 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
7499         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
7500         a debug renaming declaration specially.
7502 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
7504         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
7505         which a constant renaming is treated as a normal object declaration.
7506         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
7507         the N_Indexed_Component case.
7508         <N_Indexed_Component>: Fall through to above case.
7509         <N_Object_Renaming_Declaration>: Return true for all composite types.
7511 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
7513         * decl.c (make_packable_type): If the new type has been given BLKmode,
7514         try again to get an integral mode for it.
7516 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
7518         Re-apply accidentally reverted change:
7520         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
7522         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
7523         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
7524         and _Unwind_SWord with _sleb128_t.
7526 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
7528         * trans.c (convert_with_check): Update call to real_2expN.
7530 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
7532         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
7533         * utils.c (end_subprog_body): Likewise.
7535 2007-09-03  Nick Clifton  <nickc@redhat.com>
7537         * Make-lang.in: Change copyright header to refer to version 3 of
7538         the GNU General Public License and to point readers at the
7539         COPYING3 file and the FSF's license web page.
7540         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
7541         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
7542         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
7543         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
7544         Likewise.
7546 2007-08-31  Vincent Celier  <celier@adacore.com>
7548         PR ada/4720
7550         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
7551         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
7552         (Check_Version_And_Help): New procedure in package Switch to process
7553         switches --version and --help.
7554         Use Check_Version_And_Help in GNAT tools
7556         * make.adb:  Ditto.
7557         (Compile_Sources): Make sure that sources that are "excluded" are not
7558         compiled.
7559         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
7560         project file is used.
7561         (Version_Switch): Remove, moved to Switch
7562         (Help_Switch): Remove, moved to Switch
7563         (Display_Version): Remove, moved to Switch
7565         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
7566         package Switch to process switches --version and --help.
7567         (Display_Version): New procedure
7569         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
7571 2007-08-31  Javier Miranda  <miranda@adacore.com>
7573         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
7574         internal tags.
7576 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
7578         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
7579         (Mark_Non_Null): If the node for which we just generated an access check
7580         is a reference to an *in* parameter and the reference appears in the
7581         declarative part of a subprogram body, mark the node as known non null.
7583 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
7585         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
7586         structure of E_Exception to reflect the new flag.
7587         (Is_Raised, Set_Is_Raised): New inlined routines.
7588         Update the usage of available flag to reflect the addition of Is_Raised.
7589         (Is_Raised, Set_Is_Raised): Bodies of new routines.
7590         (Write_Entity_Flags): Write the status of flag Is_Raised.
7591         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
7592         spurious ambiguities when integer literals appear in the context of an
7593         address type that is a visible integer type.
7595         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
7596         exceptions never being raised.
7597         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
7598         explicitly raised.
7600 2007-08-31  Javier Miranda  <miranda@adacore.com>
7602         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
7603         statement when compiling under restriction No_Exceptions_Proparation.
7605 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
7607         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
7608         initialization aggregate for the type, generate itype references for
7609         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
7611 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
7613         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
7614         library-level package renaming, pass the declaration associated with
7615         the renaming's special debug variable to Qualify_Entity_Names to ensure
7616         that its encoded name is properly qualified.
7618         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
7619         occurring in the list of entities to qualify, and do not attempt to
7620         traverse an entity list in that case. Variables associated with
7621 `       library-level package renamings can now occur in the table.
7623         * exp_dbug.ads: Revise documentation of the encoding for renaming
7624         declarations.
7626 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7628         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
7629         access type points to an unconstrained array.
7631 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
7633         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
7634         conversion.
7636         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
7637         simple redundant qualifications. The check is performed whenever the
7638         expression is a non-overloaded identifier.
7639         (Resolve_Type_Conversion): Enchance the redundant type conversion check
7640         to include loop parameters.
7641         (Valid_Conversion): Avoid generation of spurious error message.
7643 2007-08-31  Bob Duff  <duff@adacore.com>
7645         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
7646         concatenations of string literals into a single literal, in order to
7647         avoid very deep recursion in the front end, which was causing stack
7648         overflow.
7650         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
7651         string, and the right operand is a string literal (the case of "" &
7652         "..."), optimize by avoiding copying the right operand -- just use the
7653         value of the right operand directly.
7655         * stringt.adb (Store_String_Chars): Optimize by growing the
7656         String_Chars table all at once, rather than appending characters one by
7657         one.
7658         (Write_String_Table_Entry): If the string to be printed is very long,
7659         just print the first few characters, followed by the length. Otherwise,
7660         doing "pn(n)" in the debugger can take an extremely long time.
7662         * sem_prag.adb (Process_Interface_Name): Replace loop doing
7663         Store_String_Char with Store_String_Chars.
7665 2007-08-31  Vincent Celier  <celier@adacore.com>
7667         * prj-attr.adb: Add new attribute Excluded_Source_Files
7669         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
7670         Locally_Removed_Files.
7672         * snames.ads, snames.adb: New standard name Excluded_Source_Files
7674 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
7676         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
7677         clauses of subunits, ignore limited_with_clauses that are illegal and
7678         have not been fully analyzed.
7680 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
7682         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
7683         flag, for effiency. It is called when analyzing arithmetic operators
7684         and also for actuals in calls that are universal_integers. The flag is
7685         set for the predefined type address, and for any type or subtype
7686         derived from it.
7688         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
7689         Universal_Integer, when the formal is a descendent of address and the
7690         call appears in user code.
7691         (Analyze_Selected_Component): if the prefix is a private extension, the
7692         tag component is visible.
7694         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
7695         entity flag.
7697 2007-08-31  Robert Dewar  <dewar@adacore.com>
7699         * s-fileio.adb (Open): Normalize file name to lower case in non-case
7700         sensitive file name systems to avoid unexpected mismatch in Vista.
7702 2007-08-31  Vincent Celier  <celier@adacore.com>
7704         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
7706 2007-08-31  Vincent Celier  <celier@adacore.com>
7708         * symbols-vms.adb (Initialize): Read symbol files with continuation
7709         lines
7710         (Finalize): If symbol is long, split the line
7712 2007-08-31  Vincent Celier  <celier@adacore.com>
7714         * fmap.ads: Minor comment updates
7716 2007-08-31  GNAT Script  <nobody@adacore.com>
7718         * Make-lang.in: Makefile automatically updated
7720 2007-08-31  Bob Duff  <duff@adacore.com>
7722         * sinfo.ads: Minor comment fix.
7724 2007-08-31  Thomas Quinot  <quinot@adacore.com>
7726         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
7727         with implementation.
7728         Documentation cleanup only.
7730 2007-08-31  Sergey Rybin  <rybin@adacore.com>
7732         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
7733         gnatpp '--separate-stmt-name' option.
7734         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
7735         option.
7737         * gnat_ugn.texi: Add description for the new gnatpp
7738         '--separate-stmt-name' and '--use-on-new-line' options.
7740 2007-08-31  Ben Elliston  <bje@au.ibm.com>
7742         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
7743         when compiling for powerpc64-*-linux.
7744         * system-linux-ppc64.ads: New file.
7746 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
7748         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
7749         NetBSD.
7751 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7753         * misc.c (gnat_type_max_size): Constify.
7755 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
7757         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
7758         associated with Standard_Debug_Renaming_Type, to be used as the type of
7759         the special variables whose names provide debugger encodings for
7760         renaming declarations.
7762         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
7763         (Set_Debug_Renaming_Link): Change to set Node25.
7764         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
7765         (Write_Field25_Name): Add case for E_Variable to output
7766         "Debug_Renaming_Link".
7767         (Write_Field23_Name): Correct the output string for "Limited_View".
7769         * exp_dbug.adb: Add with and use of Tbuild.
7770         (Debug_Renaming_Declaration): Replace creation of an enumeration type
7771         and literal with creation of a variable of type
7772         Standard_Debug_Renaming_Type whose name encodes both the renamed object
7773         and the entity of the renaming declaration.
7774         (Qualify_Entity_Name): Add the delayed qualification of the entity name
7775         part of the name of a variable that has a Debug_Renaming_Link.
7777         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
7778         special type to be associated with variables that provide debugger
7779         encodings for renaming declarations.
7781 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
7782             Ed Schonberg  <schonberg@adacore.com>
7783             Javier Miranda  <miranda@adacore.com>
7785         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
7786         ancestor part given by an aggregate to test for an unchecked conversion,
7787         since this can occur in some cases when the ancestor part is a function
7788         call, and we don't want to fall into the recursive call to this
7789         procedure in that case.
7791         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
7792         stream attributes on limited types to account for user-specified
7793         attributes as well as whether Input (resp. Output) becomes available
7794         due to Read (resp. Write) being available for the type. Change Boolean
7795         variable to the more accurate name
7796         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
7797         double-"not" predicate at beginning of return statement to more
7798         understandable form.
7800         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
7801         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
7802         in a block statement and use that as the first statement of the
7803         expanded return rather than incorrectly using the handled sequence as
7804         the first statement.
7806         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
7807         operation, generate an explicit freeze node for it rather than
7808         generating extra formals, to ensure that gigi has the proper order of
7809         elaboration for anonymous subtypes in the signature of the subprograms.
7810         (Build_In_Place_Formal): Move assertion to beginning of loop.
7811         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
7812         applied to a function call (occurs for some cases of 'Input).
7813         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
7814         applied to a function call (occurs for some cases of 'Input).
7816         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
7817         2005, generate an extended return statement enclosing the result object
7818         and 'Read call.
7820         * freeze.adb (Freeze_Record_Type): Extend the current management of
7821         components that are access type with an allocator as default value: add
7822         missing support to the use of qualified expressions of the
7823         allocator (which also cause freezing of the designated type!)
7824         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
7825         dispatching operation, since extra formals may be needed by calls to
7826         build-in-place functions (such as stream 'Input).
7828         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
7829         formals for 'Constrained and accessibility level in the case of a
7830         predefined dispatching operation.
7832         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
7833         point, no need to find the parent node.
7835 2007-08-16  Javier Miranda  <miranda@adacore.com>
7837         * exp_attr.adb (Attribute_Priority): Add missing support for entries
7838         and entry barriers.
7840 2007-08-16  Javier Miranda  <miranda@adacore.com>
7842         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
7843         is not really required and can introduce regression with the debugger.
7844         The original problem is fixed with the patch written for checks.adb.
7846 2007-08-16  Thomas Quinot  <quinot@adacore.com>
7848         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
7849         Range_Check on Allocated_Table.
7851 2007-08-16  Vincent Celier  <celier@adacore.com>
7853         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
7854         Including_Non_Switch set to False.
7855         (Gnatmake): For the compiler, call Test_If_Relative_Path with
7856         Including_Non_Switch set to False.
7858         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
7859         parameter Including_Non_Switch, defaulted to True. When
7860         Including_Non_Switch is False, options that are not switches and
7861         appear as relative path are not converted to absolute paths.
7863 2007-08-16  Nicolas Roche  <roche@adacore.com>
7865         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
7866         makefiles
7868         * Make-lang.in: Update dependencies
7870 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
7872         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
7873         currently inspected is a selected component, retrieve the entity of
7874         its selector.
7875         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
7876         from the immediate ancestor of Main_Unit_Entity.
7877         (Install_Limited_Withed_Unit): Do not install the limited view of
7878         package P if P is reachable through an ancestor chain from package C
7879         and C also has a with clause for P in its body.
7880         (Has_Limited_With_Clause): New routine.
7881         (Has_With_Clause): New routine.
7883 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
7885         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
7886         generic for an enclosing instance is a global reference, even though
7887         its scope is the enclosing instance.
7889 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
7890             Javier Miranda  <miranda@adacore.com>
7892         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
7893         initialize a limited object.
7894         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
7895         13/2 and 14/2.
7896         Make sure Has_Complex_Representation is inherited by derived type.
7898 2007-08-16  Robert Dewar  <dewar@adacore.com>
7900         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
7901         exception case
7903 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
7905         * sem_disp.adb (Check_Dispatching_Operation): If the operation
7906         implements an operation inherited from a progenitor interface, verify
7907         that they are subtype-conformant.
7909 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
7910             Bob Duff  <duff@adacore.com>
7911             Nicolas Setton  <setton@adacore.com>
7913         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
7914         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
7915         the statement which is being resolved comes from a predefined library
7916         unit, all non-predefined library interpretations are skipped.
7917         (Resolve_Op_Concat): If string concatenation was folded in the parser,
7918         but the "&" is user defined, give an error, because the folding would
7919         be wrong.
7921         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
7922         the parser has folded a long sequence of concatenations of string
7923         literals.
7925         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
7926         and "JMP_BUF" variables as artificial.
7927         (N_String_Literal): Do not use alloca for very long string literals. Use
7928         xmalloc/free instead. Otherwise the stack might overflow.
7930         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
7931         compiler.
7933 2007-08-16  Vincent Celier  <celier@adacore.com>
7935         * vms_conv.adb (Process_Argument): Ensure that project related options
7936         are not put in the -cargs section when using GNAT COMPILE.
7938 2007-08-16  Robert Dewar  <dewar@adacore.com>
7940         * gnat_ugn.texi: Add note on preprocessing (output file not written)
7942 2007-08-16  Thomas Quinot  <quinot@adacore.com>
7944         * a-tags.adb: Minor reformatting.
7946 2007-08-16  Bob Duff  <duff@adacore.com>
7948         * sem_type.ads, sem_ch4.adb: Minor reformatting.
7950 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7952         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
7953         s-osinte-interix.ads, system-interix.ads: Removed.
7955 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
7957         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
7958         calls to Check_Within_Time_Bounds.
7959         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
7960         (Difference): Account for possible rounding of the resulting difference
7962 2007-08-14  Robert Dewar  <dewar@adacore.com>
7964         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
7965         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
7966         s-osinte-solaris.adb, s-osinte-solaris.ads,
7967         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
7969         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
7970         switch -gnatyS. Enable -gnatyS in GNAT style check mode
7972 2007-08-14  Robert Dewar  <dewar@adacore.com>
7973             Ed Schonberg  <schonberg@adacore.com>
7975         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
7976         Suppress unmodified in-out parameter warning in some cases
7977         This patch is a also fairly significant change to the way suppressible
7978         checks are handled.
7980         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
7981         needed for access to concurrent record types generated by the expander.
7982         (Generate_Range_Check): When generating a temporary to capture the
7983         value of a conversion that requires a range check, set the type of the
7984         temporary before rewriting the node, so that the type is always
7985         properly placed for back-end use.
7986         (Apply_Float_Conversion_Check): Handle case where the conversion is
7987         truncating.
7988         (Get_Discriminal): Code reformatting. Climb the scope stack looking
7989         for a protected type in order to examine its discriminants.
7991 2007-08-14  Robert Dewar  <dewar@adacore.com>
7992             Gary Dismukes  <dismukes@adacore.com>
7993             Ed Schonberg  <schonberg@adacore.com>
7994             Thomas Quinot  <quinot@adacore.com>
7996         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
7997         a-stwisu.adb, a-strsup.adb: Fix warnings for range
7998         tests optimized out.
8000         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
8001         (Get_Allocator_Final_List): For the case of an anonymous access type
8002         that has a specified Associated_Final_Chain, do not go up to the
8003         enclosing scope.
8004         (Expand_N_Type_Conversion): Test for the case of renamings of access
8005         parameters when deciding whether to apply a run-time accessibility
8006         check.
8007         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
8008         aggregate code before allocator, and ahead of declaration for
8009         temporary, to prevent access before elaboration when the allocator is
8010         an actual for an access parameter.
8011         (Expand_N_Type_Conversion): On an access type conversion involving an
8012         access parameter, do not apply an accessibility check when the
8013         operand's original node was an attribute other than 'Access. We now
8014         create access conversions for the expansion of 'Unchecked_Access and
8015         'Unrestricted_Access in certain cases and clearly accessibility should
8016         not be checked for those.
8018         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
8019         includes a type conversion of a packed component that has been expanded,
8020         recover the original expression for the object, and use this expression
8021         in the post-call assignment statement, so that the assignment is made
8022         to the object and not to a back-end temporary.
8023         (Freeze_Subprogram): In case of primitives of tagged types not defined
8024         at the library level force generation of code to register the primitive
8025         in the dispatch table. In addition some code reorganization has been
8026         done to leave the implementation clear.
8027         (Expand_Call): When expanding an inherited implicit conversion,
8028         preserve the type of the inherited function after the intrinsic
8029         operation has been expanded.
8031         * exp_ch2.ads, exp_ch2.adb
8032         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
8033         of an entry formal appearing in an assignment statement does not assign
8034         to the formal.
8035         (Expand_Current_Value): Instead of calling a routine to determine
8036         whether the prefix of an attribute reference should be optimized or
8037         not, prevent the optimization of such prefixes all together.
8039         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
8040         component whose prefix is known to be of an access type is an implicit
8041         dereference and does not assign to the prefix.
8043 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8044             Robert Dewar  <dewar@adacore.com>
8046         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
8047         itype is visited, make an entry into table to link associated node and
8048         new itype.
8049         Add comments and correct harmless error in Build_NCT_Hash_Tables
8050         (Array_Aggr_Subtype): Associate each itype created for an index type to
8051         the corresponding range construct, and not to the aggregate itself. to
8052         maintain a one-to-one correspondence between itype and its associated
8053         node, to prevent errors when complex expression is copied.
8054         Fix mishandling of multiple levels of parens
8056         * sem_aggr.adb: Create a limited view of an incomplete type, to make
8057         treatment of limited views uniform for all visible declarations in a
8058         limited_withed package.
8059         (New_Copy_Tree): If hash table is being used and itype is visited,
8060         make an entry into table to link associated node and new itype.
8061         (Resolve_Record_Aggregate): Do not add an others box association for a
8062         discriminated record component that has only discriminants, when there
8063         is a box association for the component itself.
8065         * par-ch4.adb: Fix mishandling of multiple levels of parens
8067 2007-08-14  Robert Dewar  <dewar@adacore.com>
8069         * comperr.adb: Fix problem with suppressing warning messages from gigi
8071         * erroutc.ads, erroutc.adb, errout.ads, 
8072         errout.adb (Write_Eol): Remove trailing spaces before writing the line
8073         (Write_Eol_Keep_Blanks): New procedure to write a line, including
8074         possible trailing spaces.
8075         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
8076         Fix problem with suppressing warning messages from back end
8077         Improve handling of deleted warnings
8079         * gnat1drv.adb: 
8080         Fix problem with suppressing warning messages from back end
8081         Handle setting of Static_Dispatch_Tables flag.
8083         * prepcomp.adb: 
8084         Fix problem with suppressing warning messages from back end
8086         * exp_intr.adb: Improve handling of deleted warnings
8088 2007-08-14  Robert Dewar  <dewar@adacore.com>
8090         * debug.adb: Improve -gnatdI to cover all cases of serialization
8091         Add documentation of dZ, d.t
8093         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
8094         serialization.
8095         (Sprint_Node_Actual): Generate new output associated with implicit
8096         importation and implicit exportation of object declarations.
8098 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8099             Robert Dewar  <dewar@adacore.com>
8100             Javier Miranda  <miranda@adacore.com>
8101             Gary Dismukes  <dismukes@adacore.com>
8103         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
8104         to make treatment of limited views uniform for all visible declarations
8105         in a limited_withed package.
8106         Improve warnings for in out parameters
8107         (Set_Related_Interaface/Related_Interface): Allow the use of this
8108         attribute with constants.
8109         (Write_Field26_Name): Handle attribute Related_Interface in constants.
8110         Warn on duplicate pragma Preelaborable_Initialialization
8112         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
8113         generation of a freezing node to ensure proper management of null
8114         excluding access types in the backend.
8115         (Create_Extra_Formals): Test base type of the formal when checking for
8116         the need to add an extra accessibility-level formal. Pass the entity E
8117         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
8118         originally being done in a couple of cases), to ensure that the
8119         Extra_Formals list gets set on the entity E when the first entity is
8120         added.
8121         (Conforming_Types): Add missing calls to Base_Type to the code that
8122         handles anonymous access types. This is required to handle the
8123         general case because Process_Formals builds internal subtype entities
8124         to handle null-excluding access types.
8125         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
8126         functions that need it, even when not marked Requires_Overriding.
8127         Improve warnings for in out parameters
8128         (Analyze_Function_Return): Warn for disallowed null return
8129         Warn on return from procedure with unset out parameter
8130         Ensure consistent use of # in error messages
8131         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
8132         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
8133         the implicit conversion of the expression done for anonymous access
8134         types. This is required to generate the code of the null excluding
8135         check (if required).
8137         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
8138         A formal parameter is never publicly referenceable outside of its body.
8139         (Check_References): For an unreferenced formal parameter in an accept
8140         statement, use the same warning circuitry as for subprogram formal
8141         parameters.
8142         (Warn_On_Unreferenced_Entity): New subprogram, taken from
8143         Output_Unreferenced_Messages, containing the part of that routine that
8144         is now reused for entry formals as described above.
8145         (Goto_Spec_Entity): New function
8146         (Check_References): Do not give IN OUT warning for dispatching operation
8147         Improve warnings for in out parameters
8148         (Test_Ref): Check that the entity is not undefinite before calling
8149         Scope_Within, in order to avoid infinite loops.
8150         Warn on return from procedure with unset out parameter
8151         Improved warnings for unused variables
8153 2007-08-14  Robert Dewar  <dewar@adacore.com>
8154             Javier Miranda  <miranda@adacore.com>
8155             Gary Dismukes  <dismukes@adacore.com>
8157         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
8158         (Expand_N_Attribute_Reference): Further unify the handling of the
8159         three forms of access attributes, using common code now for all three
8160         cases. Add a test for the case of applying an access attribute to
8161         an explicit dereference when the context is an access-to-interface
8162         type. In that case we need to apply the conversion to the prefix
8163         of the explicit dereference rather than the prefix of the attribute.
8164         (Attribute_Version, UET_Address): Set entity as internal to ensure
8165         proper dg output of implicit importation.
8166         (Expand_Access_To_Type): Removed.
8167         (Expand_N_Attribute_Reference): Merge the code from the three cases
8168         of access attributes, since the processing is largely identical for
8169         these cases. The substantive fix here is to process the case of a
8170         type name prefix (current instance case) before handling the case
8171         of interface prefixes.
8173 2007-08-14  Thomas Quinot  <quinot@adacore.com>
8174             Ed Schonberg  <schonberg@adacore.com>
8175             Javier Miranda  <miranda@adacore.com>
8176             Robert Dewar  <dewar@adacore.com>
8178         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
8179         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
8180         type that is an anonymous access to controlled object, establish
8181         an associated finalization chain to avoid corrupting the global
8182         finalization list when a dynamically allocated object designated
8183         by such a component is deallocated.
8184         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
8185         functions that need it, even when not marked Requires_Overriding.
8186         (Initialize_Tag): Replace call to has_discriminants by call to
8187         Is_Variable_Size_Record in the circuitry that handles the
8188         initialization of secondary tags.
8189         (Is_Variable_Size_Record): New implementation.
8190         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
8191         Suppress_Initialization pragma for a derived type.
8192         (Is_Variable_Size_Record): New subprogram.
8193         (Build_Offset_To_Top_Functions): New implementation that simplifies the
8194         initial version of this routine and also fixes problems causing
8195         incomplete initialization of the table of interfaces.
8196         (Build_Init_Procedure): Improve the generation of code to initialize the
8197         the tag components of secondary dispatch tables.
8198         (Init_Secondary_Tags): New implementation that simplifies the previous
8199         version of this routine.
8200         (Make_DT): Add parameter to indicate when type has been frozen by an
8201         object declaration, for diagnostic purposes.
8202         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
8203         diagnose attemps to freeze a subprogram when some untagged type of its
8204         profile is a private type whose full view has not been analyzed yet.
8205         (Freeze_Array_Type): Generate init proc for packed array if either
8206         Initialize or Normalize_Scalars is set.
8207         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
8208         constructing the new profile, copy the null_exclusion indicator for each
8209         parameter, to ensure full conformance of the new body with the spec.
8211         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
8212         Create wrappers for constructor functions that need it, even when not
8213         marked Requires_Overriding.
8214         (Covers): Handle properly designated types of anonymous access types,
8215         whose non-limited views are themselves incomplete types.
8216         (Add_Entry): Use an entity to store the abstract operation which hides
8217         an interpretation.
8218         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
8219         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
8220         initialization aggregate.
8221         (Function_Interp_May_Be_Hidden): Rename to
8222         Function_Interp_Has_Abstract_Op.
8223         (Has_Compatible_Type): Remove machinery that skips interpretations if
8224         they are labeled as potentially hidden by an abstract operator.
8225         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
8226         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
8227         (Write_Overloads): Output the abstract operator if present.
8228         (Add_Entry): Before inserting a new entry into the interpretation table
8229         for a node, determine whether the entry will be disabled by an abstract
8230         operator.
8231         (Binary_Op_Interp_May_Be_Hidden): New routine.
8232         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
8233         aggregate.
8234         (Function_Interp_May_Be_Hidden): New routine.
8235         (Has_Compatible_Type): Do not consider interpretations hidden by
8236         abstract operators when trying to determine whether two types are
8237         compatible.
8238         (Has_Hidden_Interp): New routine.
8239         (Set_May_Be_Hidden_Interp): New routine.
8240         (Write_Overloads): Write the status of flag May_Be_Hidden.
8242 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8243             Javier Miranda  <miranda@adacore.com>
8245         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
8246         types declared in the declarative part of a nested package body or in
8247         the proper body of a stub.
8248         (Set_All_DT_Position): Add missing check to avoid wrong assignation
8249         of the same dispatch table slot to renamed primitives.
8250         (Make_Select_Specific_Data_Table): Handle private types.
8251         (Tagged_Kind): Handle private types.
8252         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
8253         output of implicit importation and exportation.
8254         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
8255         first formal of the thunk is always associated with the controlling
8256         type. In addition perform the following code cleanup: remove formal
8257         Thunk_Alias which is no longer required, cleanup evaluation of the
8258         the controlling type, and update the documentation.
8259         Replace occurrence of Default_Prim_Op_Count by
8260         Max_Predef_Prims. Addition of compile-time check to verify
8261         that the value of Max_Predef_Prims is correct.
8262         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
8263         (Make_DT): Add parameter to indicate when type has been frozen by an
8264         object declaration, for diagnostic purposes.
8265         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
8266         construction of statically allocated dispatch tables.
8267         (Make_DT): In case of library-level tagged types export the declaration
8268         of the primary tag. Remove generation of tags (now done by Make_Tags).
8269         Additional modifications to handle non-static generation of dispatch
8270         tables. Take care of building tables for asynchronous interface types
8271         (Make_Tags): New subprogram that generates the entities associated with
8272         the primary and secondary tags of Typ and fills the contents of Access_
8273         Disp_Table. In case of library-level tagged types imports the forward
8274         declaration of the primary tag that will be declared later by Make_DT.
8275         (Expand_Interface_Conversion): In case of access types to interfaces
8276         replace an itype declaration by an explicit type declaration to avoid
8277         problems associated with the scope of such itype in transient blocks.
8279 2007-08-14  Robert Dewar  <dewar@adacore.com>
8280             Ed Schonberg  <schonberg@adacore.com>
8281             Javier Miranda  <miranda@adacore.com>
8283         * exp_util.ads, exp_util.adb: 
8284         This patch replaces a number of occurrences of explicit tests for N_Null
8285         with calls to Known_Null. This improves tracking of null values, since
8286         Known_Null also catches null constants, and variables currently known to
8287         be null, so we get better tracking.
8288         (Ensure_Defined): create an itype reference only in the scope of the
8289         itype.
8290         (Side_Effect_Free): A selected component of an access type that
8291         denotes a component with a rep clause must be treated as not
8292         side-effect free, because if it is part of a linked structure its
8293         value may be affected by a renaming.
8294         (Expand_Subtype_From_Expr): For limited objects initialized with build
8295         in place function calls, do nothing; otherwise we prematurely introduce
8296         an N_Reference node in the expression initializing the object, which
8297         breaks the circuitry that detects and adds the additional arguments to
8298         the called function. Bug found working in the new patch for statically
8299         allocated dispatch tables.
8300         (Is_Library_Level_Tagged_Type): New subprogram.
8301         (Remove_Side_Effects): If the expression of an elementary type is an
8302         operator treat as a function call.
8303         (Make_Literal_Range): If the index type of the array is not integer, use
8304         attributes properly to compute the constraint on the resulting aggregate
8305         which is a string.
8307         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
8308         class-wide type whose base type is an incomplete private type, leave
8309         class-wide type unfrozen so that freeze nodes can be generated
8310         properly at a later point.
8311         (Freeze_Entity, array case): Handle case of pragma Pack and component
8312         size attributre clause for same array.
8314 2007-08-14  Vincent Celier  <celier@adacore.com>
8316         * prj.ads, prj.adb: Update Project Manager to new attribute names for
8317         gprbuild.
8318         Allow all valid declarations in configuration project files
8319         (Reset): Initialize all tables and hash tables in the project tree data
8320         Major update of the Project Manager and of the project aware tools,
8321         including gprmake, so that the same sources in the GNAT repository
8322         can be used by gprbuild.
8323         (Slash_Id): Change type to be Path_Name_Type
8324         (Slash): Return a Path_Name_Type instead of a File_Name_Type
8326         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
8327         gprbuild.
8328         Update Project Manager to new attribute names for ghprbuild
8329         Allow all valid declarations in configuration project files
8330         Major update of the Project Manager and of the project aware tools,
8331         including gprmake, so that the same sources in the GNAT repository
8332         can be used by gprbuild.
8334         * prj-com.ads: 
8335         Major update of the Project Manager and of the project aware tools,
8336         including gprmake, so that the same sources in the GNAT repository
8337         can be used by gprbuild.
8339         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8340         insensitive flag for attributes with optional index.
8341         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8342         array attribute, put the index in lower case.
8343         Update Project Manager to new attribute names for ghprbuild
8344         Allow all valid declarations in configuration project files
8345         Major update of the Project Manager and of the project aware tools,
8346         including gprmake, so that the same sources in the GNAT repository
8347         can be used by gprbuild.
8349         * prj-env.ads, prj-env.adb: 
8350         Major update of the Project Manager and of the project aware tools,
8351         including gprmake, so that the same sources in the GNAT repository
8352         can be used by gprbuild.
8353         (Get_Reference): Change type of parameter Path to Path_Name_Type
8355         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
8356         removing '-' from the path to start with the first character of the
8357         next directory.
8358         Major update of the Project Manager and of the project aware tools,
8359         including gprmake, so that the same sources in the GNAT repository
8360         can be used by gprbuild.
8361         Major update of the Project Manager and of the project aware tools,
8362         including gprmake, so that the same sources in the GNAT repository
8363         can be used by gprbuild.
8365         * prj-nmsc.ads, prj-nmsc.adb: 
8366         Update Project Manager to new attribute names for ghprbuild
8367         Allow all valid declarations in configuration project files
8368         (Search_Directories): Detect subunits that are specified with an
8369         attribute Body in package Naming. Do not replace a source/unit in the
8370         same project when the order of the source dirs are known. Detect
8371         duplicate sources/units in the same project when the order of the
8372         source dirs are not known.
8373         (Check_Ada_Name): Allow all identifiers that are not reserved words
8374         in Ada 95.
8375         Major update of the Project Manager and of the project aware tools,
8376         including gprmake, so that the same sources in the GNAT repository
8377         can be used by gprbuild.
8378         (Look_For_Sources): If the list of sources is empty, set the object
8379         directory of non extending project to nil.
8380         Change type of path name variables to be Path_Name_Type
8381         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
8382         otherwise creating missing directories will fail.
8384         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
8385         prj-part.ads, prj-part.adb:
8386         Major update of the Project Manager and of the project aware tools,
8387         including gprmake, so that the same sources in the GNAT repository
8388         can be used by gprbuild.
8390         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8391         insensitive flag for attributes with optional index.
8392         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8393         array attribute, put the index in lower case.
8394         (Parse_Variable_Reference): Allow the current project name to be used in
8395         the prefix of an attribute reference.
8397         * prj-util.ads, prj-util.adb
8398         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
8399         defaulted to False. When True, always check against indexes in lower
8400         case.
8402         * snames.ads, snames.h, snames.adb: 
8403         Update Project Manager to new attribute names for gprbuild
8404         Allow all valid declarations in configuration project files
8406 2007-08-14  Robert Dewar  <dewar@adacore.com>
8407             Ed Schonberg  <schonberg@adacore.com>
8409         * opt.ads: Warning for non-local exception propagation now off by
8410         default
8411         New switch -gnatI to disable representation clauses
8412         Implement new pragma Implicit_Packing
8414         * usage.adb: 
8415         Warning for non-local exception propagation now off by default
8416         Add warning for unchecked conversion of pointers wi different
8417         conventions.
8418         New switch -gnatI to disable representation clauses
8420         * usage.adb: new switch -gnatyS
8422         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
8423         note that aggregates of anonymous array types are not flagged.
8424         -gnatwc now includes membership tests optimized away
8425         -gnatw.x warnings are now off by default
8426         Added conditional compilation Appendix
8427         Add documentation of -gnatI
8428         Add documentation for new -gnatyS style check
8429         Update documentation about SAL and auto-init on Windows.
8431         * gnat_rm.texi: 
8432         Add documentation for pragma Check_Name and 'Enabled attribute
8433         Document that Eliminate on dispatching operation is ignored
8434         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
8435         Document pragma Main
8436         Document pragma Implicit_Packing
8438         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
8439         different conventions
8440         New switch -gnatI to disable representation clauses
8442         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
8443         recognized, report the invalid characters including "-gnat" instead of
8444         just the first character in the switch.
8445         New switch -gnatI to disable representation clauses
8446         Set Warn_On_Object_Renames_Function true for -gnatg
8448         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
8449         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
8450         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
8451         to switch -aP (add directory to project search dir).
8453         * par-prag.adb: Implement new pragma Implicit_Packing
8455         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
8456         type as having a non-standard representation, to force expansion on
8457         conversion to related types.
8458         (Analyze_Pragma): Warn on misspelled pragma
8459         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
8460         Ensure consistent use of # in error messages
8461         Implement pragma Implicit_Packing
8463 2007-08-14  Olivier Hainque  <hainque@adacore.com>
8464             Eric Botcazou  <ebotcazou@adacore.com>
8466         * targtyps.c (get_target_maximum_default_alignment): New function.
8467         Maximum alignment
8468         that the compiler might choose by default for a type or object.
8469         (get_target_default_allocator_alignment): New function. Alignment known
8470         to be honored by the target default allocator.
8471         (get_target_maximum_allowed_alignment): New function. Maximum alignment
8472         we might accept for any type or object on the target.
8473         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
8475         * gigi.h (get_target_maximum_default_alignment): Declare new function.
8476         (get_target_default_allocator_alignment): Likewise.
8477         (get_target_maximum_allowed_alignment): Likewise.
8479         PR ada/19037
8480         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
8481         result of a function call, first try to use a stabilized reference for
8482         a constant renaming too.
8483         (validate_alignment): Use target_maximum_allowed_alignment instead of
8484         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
8485         (gnat_to_gnu_entity): Use common nodes directly.
8486         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
8487         alignment and size for the object.
8488         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
8489         and N_Procedure_Call_Statement.
8490         (takes_address): Rename to lvalue_required_p, add third parameter
8491         'aliased' and adjust recursive calls.
8492         <N_Indexed_Component>: Update 'aliased' from the array type.
8493         <N_Selected_Component>: New case.
8494         <N_Object_Renaming_Declaration>: New Likewise.
8495         (Identifier_to_gnu): Adjust for above changes.
8496         (maybe_stabilize_reference) <CONST_DECL>: New case.
8498         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
8499         between type variants.
8500         (build_simple_component_ref): Likewise.
8501         (build_call_alloc_dealloc): Use target_default_allocator_alignment
8502         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
8503         aligning type circuitry for allocations from the default storage pool.
8504         (build_allocator): Likewise.
8505         (build_simple_component_ref): Manually fold the reference for a
8506         constructor if the record type contains a template.
8508         * utils.c (value_zerop): Delete.
8509         (gnat_init_decl_processing): Emit debug info for common types.
8510         (rest_of_record_type_compilation): If a union contains a field
8511         with a non-constant qualifier, treat it as variable-sized.
8512         (finish_record_type): Give the stub TYPE_DECL a name.
8513         (rest_of_record_type_compilation): Likewise.
8514         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
8515         types are equivalent array types.
8516         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
8517         even if the type is not passed by reference.
8518         (static_ctors, static_dtors): Delete.
8519         (end_subprog_body): Do not record constructors and destructors.
8520         (build_global_cdtor): Delete.
8521         (gnat_write_global_declarations): Do not call build_global_cdtor.
8523         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
8524         -fRTS=rtp is specified.
8525         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
8526         specified.
8528         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
8529         of the personality function with SJLJ exceptions.
8531         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
8532         the name of the personality function with SJLJ exceptions.
8534 2007-08-14  Robert Dewar  <dewar@adacore.com>
8535             Ed Schonberg  <schonberg@adacore.com>
8537         * par.ads, par.adb: Improve handling of extra right parens.
8538         (Par): Remove flag From_Limited_With_Clause.
8540         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
8541         Improve handling of extra right parens.
8543 2007-08-14  Robert Dewar  <dewar@adacore.com>
8545         * par-tchk.adb (TF_Semicolon): Improve error recovery
8547 2007-08-14  Robert Dewar  <dewar@adacore.com>
8548             Ed Schonberg  <schonberg@adacore.com>
8550         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
8551         enumeration type, mark all literals as referenced.
8552         (Eval_Attribute, case 'Image): If the argument is an enumeration
8553         literal and names are available, constant-fold but mark nevertheless as
8554         non-static.
8555         Clean up function names.
8556         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
8557         comment.
8558         (Requires_Simple_Name_Prefix): Removed.
8560 2007-08-14  Robert Dewar  <dewar@adacore.com>
8561             Ed Schonberg  <schonberg@adacore.com>
8563         * sem_ch11.adb: Improved warnings for unused variables
8565         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
8566         is a synchronized interface, the derived type is limited.
8567         (Analyze_Object_Declaration): Mark the potential coextensions in the
8568         definition and expression of an object declaration node.
8569         (Build_Derived_Type): For the completion of a private type declaration
8570         with a derived type declaration, chain the parent type's representation
8571         items to the last representation item of the derived type (not the
8572         first one) if they are not present already.
8573         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
8574         object declaration of forward references to tags.
8575         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
8576         subprogram types can appear as access discriminants of synchronized
8577         types.
8578         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
8579         given in prefixed form as a selected component.
8580         (Process_Discriminants): If not all discriminants have defaults, place
8581         error message on a default that is present.
8582         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
8583         extend a synchronized tagged type.
8584         Improved warnings for unused variables
8585         (Is_Visible_Component): Fix a visibility hole on a component inherited
8586         by a private extension when parent is itself declared as a private
8587         extension, and the derivation is in a child unit.
8588         (Find_Hidden_Interface): Move spec from the package body.
8590 2007-08-14  Robert Dewar  <dewar@adacore.com>
8591             Ed Schonberg  <schonberg@adacore.com>
8593         * sem_ch5.adb: Improve warnings on redundant assignments
8595         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
8596         parameter
8597         (Is_Synchronized_Tagged_Type): New subprogram that returns true
8598         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
8599         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
8600         is set to False. Improves handling of Known_[Not_]Null.
8601         (Wrong_Type): Special case address arithmetic attempt
8602         (Collect_Abstract_Interfaces): Add new formal to allow collecting
8603         abstract interfaces just using the partial view of private types.
8604         (Has_Abstract_Interfaces): Add new formal to allow checking types
8605         covering interfaces using the partial view of private types.
8606         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
8607         component still needs to be defined in this case, but is never
8608         initialized as VMs are using other dispatching mechanisms.
8609         (Abstract_Interface_List): For a protected type, use base type to get
8610         proper declaration.
8611         Improve warnings on redundant assignments
8612         (Is_Variable): Handle properly an implicit dereference of a prefixed
8613         function call.
8614         (Build_Actual_Subtype): If this is an actual subtype for an
8615         unconstrained formal parameter, use the sloc of the body for the new
8616         declaration, to prevent anomalises in the debugger.
8618 2007-08-14  Robert Dewar  <dewar@adacore.com>
8620         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
8621         dispatching operation
8623 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8624             Gary Dismukes  <dismukes@adacore.com>
8626         * exp_aggr.ads, 
8627         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
8628         expanded aggregate code before allocator, and ahead of declaration for
8629         temporary, to prevent access before elaboration when the allocator is
8630         an actual for an access parameter.
8631         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
8632         the TSD and the table of interfaces.
8633         (Convert_To_Assignments): Augment the test for delaying aggregate
8634         expansion for limited return statements to include the case of extended
8635         returns, to prevent creation of an unwanted transient scope.
8636         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
8637         (Expand_Array_Aggregate): Handle aggregates associated with
8638         statically allocated dispatch tables.
8639         (Expand_Record_Aggregate): Handle aggregates associated with
8640         statically allocated dispatch tables.
8641         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
8642         of anonymous access type.
8644 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8646         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
8647         is a variable that renames a slice, use the variable itself in the
8648         expannsion when the renamed expression itself may be modified between
8649         the declaration of the renaming and the array assignment.
8651 2007-08-14  Jerome Guitton  <guitton@adacore.com>
8653         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
8654         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
8655         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
8656         New functions; dummy implementations.
8658         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
8659         functions, used to implement the multi-tasks mode routines on VxWorks.
8661         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
8662         New functions, thin
8663         binding to the VxWorks routines which have changed between VxWorks 5
8664         and 6.
8665         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
8666         which are not callable from a RTP.
8668         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
8669         implemented for the multi-tasks mode on VxWorks 5 and 6.
8671         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
8673         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
8674         functions.
8676 2007-08-14  Vincent Celier  <celier@adacore.com>
8678         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
8679         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
8680         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
8681         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
8682         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
8683         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
8684         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
8685         procedure.
8686         (Major_Id_Name): New function.
8687         mlib-tgt.ads/mlib.tgt.adb:
8688         (Library_Major_Minor_Id_Supported): New function, default returns True
8689         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
8690         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
8691         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
8692         Implementation of Library_Major_Minor_Id_Supported returns False
8693         clean.adb:
8694         (Clean_Library_Directory): If major/minor ids are supported, clean all
8695         library files.
8696         Major update of the Project Manager and of the project aware tools,
8697         including gprmake, so that the same sources in the GNAT repository
8698         can be used by gprbuild.
8700 2007-08-14  Olivier Hainque  <hainque@adacore.com>
8702         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
8703         (GCC_ZCX_Support): Switch to True.
8704         
8705         * s-intman-solaris.adb (Notify_Exception): Call
8706         Adjust_Context_For_Raise before raising, as expected for signal
8707         handlers in general.
8708         
8709         * s-intman-posix.adb (Notify_Exception): Remove declaration of
8710         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
8711         to other implementation bodies.
8712         
8713         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
8714         be visible by multiple implementation bodies.
8715         
8716         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
8717         only for conditions coming from hardware.
8718         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
8719         adjustments to signal context prior to exception raise from signal
8720         handler.
8721         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
8722         mode.
8723         Solaris section: (__gnat_adjust_context_for_raise): New function.
8724         Implementation of the machine context adjustments to perform prior to
8725         raise from a signal handler. Version for both sparc and x86.
8726         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
8727         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
8728         prior to raising as expected for any handler, before possible nested
8729         faults to make sure all the contexts in a chain have been adjusted by
8730         the time we propagate.
8732 2007-08-14  Pascal Obry  <obry@adacore.com>
8734         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
8735         (SYSTEM_INFO): New record.
8736         (SetThreadIdealProcessor): New imported routine needed for supporting
8737         task_info pragma on Windows.
8739         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
8740         info can be applied to the current host.
8741         (Create_Task): Set the ideal processor if information is present.
8743         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
8744         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
8746 2007-08-14  Olivier Hainque  <hainque@adacore.com>
8748         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
8749         stack size and initial stack pointer value for a given task.
8750         (Enter_Task): Get the stack attributes of the task we are entering and
8751         let the stack checking engine know about them.
8753         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
8754         Let the stack-checking engine know about the initial sp value and stack
8755         size associated with the current task.
8756         (Set_Stack_Info): If a stack base has been notified for the current
8757         task, honor it. Fallback to the previous less accurate method otherwise.
8759         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
8761 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8763         * sem_ch10.adb: Create a limited view of an incomplete type, to make
8764         treatment of limited views uniform for all visible declarations in a
8765         limited_withed package.
8766         Set flag indicating that a subprogram body for a child unit has a
8767         generated spec.
8768         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
8769         separate declaration, remove the unit name from visibility after
8770         compilation, so that environment is clean for subsequent compilations.
8771         (Install_Limited_Context_Clauses): Do not install a
8772         limited_private_with_clause unless the current unit is a body or a
8773         private child unit.
8774         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
8775         in the same fashion.
8776         (Install_Limited_Withed_Unit): Do not install a limited with clause if
8777         it applies to the declaration of the current package body.
8778         (Remove_Private_With_Clauses): If there is a regular with_clause for
8779         the unit, delete Private_With_Clause from context, to prevent improper
8780         hiding when processing subsequent nested packages and instantiations.
8782 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
8784         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
8785         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
8786         representing absolute path names.
8787         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
8789         * cstreams.c (__gnat_full_name for VxWorks): Use
8790         __gnat_is_absolute_path to detect whether we need to add the current
8791         directory to normalize the path.
8793 2007-08-14  Javier Miranda  <miranda@adacore.com>
8795         * a-tags.ads, 
8796         a-tags.adb (Displace): Associate a message with the raised CE
8797         exception.
8798         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
8799         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
8800         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
8801         spec.
8802         (Default_Prim_Op_Count): Removed.
8803         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
8804         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
8805         Remove pragma Inline_Always.
8807         * rtsfind.ads (Default_Prim_Op_Count): Removed
8808         (Max_Predef_Prims): New entity
8809         (RE_Expanded_Name): Removed
8810         (RE_HT_Link): Removed
8811         (RE_Iface_Tag): Remmoved
8812         (RE_Ifaces_Table): Removed
8813         (RE_Interfaces_Array): Removed
8814         (RE_Interface_Data_Element): Removed
8815         (RE_Nb_Ifaces): Removed
8816         (RE_RC_Offset): Removed
8817         (RE_Static_Offset_To_Top): Removed
8819         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
8820         formal.
8821         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
8822         Prim_Op_Count by Max_Predef_Prims.
8824 2007-08-14  Thomas Quinot  <quinot@adacore.com>
8825             Vincent Celier  <celier@adacore.com>
8827         * binde.adb (Elab_All_Links): Remove unnecessary call to
8828         Generic_Separately_Compiled (if a unit satisfies this predicate, there
8829         won't be an associated Afile).
8830         (Elab_All_Links): Fail if a referenced unit cannot be found
8832         * bindgen.adb: 
8833         Fix comments in bindgen regarding consistency checks done in Bcheck:
8834         the checks are made across units within a partition, not across several
8835         partitions.
8836         Fix generation of C binder file for VxWorks.
8838         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
8839         Generic_May_Lack_ALI, more descriptive of the current use of the
8840         predicate, and update documentation.
8842         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
8843         reorganization and documentation update for the case of predefined
8844         library generics (for which we do not reference an Afile).
8846 2007-08-14  Robert Dewar  <dewar@adacore.com>
8848         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
8849         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
8850         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
8851         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
8852         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
8853         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
8854         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
8855         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
8856         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
8857         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
8858         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
8859         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
8860         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
8861         g-altcon.adb: Minor reformatting
8863         ada-tree.h: Delete empty line.
8865         ali.ads: Minor reformatting
8866         Clarification of comments.
8867         Minor spelling correction
8869         * exp_dbug.adb: Add Warnings Off to suppress new warning
8871         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
8872         formal
8874         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
8875         value
8877         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
8879         * a-textio.ads: Reorder the standard input/output/error declarations
8880         for consistency.
8882         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
8884         * par-ch2.adb: Recognize RM specially in errout
8885         Change 'R'M to RM in all error messages
8887         * scng.adb: Recognize RM specially in errout
8889         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
8890         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
8892         * s-direio.adb: Add missing routine header box.
8894         * sem_attr.ads: Add ??? comments
8896         * sem_eval.adb: Recognize RM specially in errout
8897         Change 'R'M to RM in all error messages
8899         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
8901         * s-tasinf.ads: Fix minor comment typo.
8903         * a-cihama.adb: Minor comment addition
8905         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
8906         formal
8908         * s-tasinf-tru64.ads: Fix minor comment typo.
8910         * itypes.ads: Comment update.
8912         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
8913         anymore.
8915         * argv.c: Added protection against null gnat_argv and gnat_envp.
8917         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
8918         warning message when Tolerate_Consistency_Errors is True.
8920         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
8921         Any_Id, as this subprogram is only applicable to *type* entities (it
8922         sets RM_Size). Instead initialize just Esize and Alignment.
8924 2007-08-14  Bob Duff  <duff@adacore.com>
8926         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
8927         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
8928         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
8929         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
8930         a-coorse.ads (Next): Applied pragma Inline.
8931         Make all Containers packages Remote_Types (unless they are already
8932         Pure).
8933         (Previous): applied pragma Inline
8934         (Elements_Type): is now a record instead of an array
8936 2007-08-14  Thomas Quinot  <quinot@adacore.com>
8938         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
8939         of Set_Item.
8940         (Set_Item): When the new item is an element of the currently allocated
8941         table passed by reference, save a copy on the stack if we're going
8942         to reallocate. Also, in Table.Set_Item, make sure we test the proper
8943         variable to determine whether to call Set_Last.
8945         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
8946         symbols-vms.adb, symbols-processing-vms-alpha.adb,
8947         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
8948         some occurrences of the pattern
8949            T.Increment_Last;
8950            T.Table (T.Last) := Value;
8951         with a cleaner call to
8952            T.Append (Value);
8954 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8955             Gary Dismukes  <dismukes@adacore.com>
8956             Thomas Quinot  <quinot@adacore.com>
8958         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
8959         derived type with interface progenitors use the analyzed formal as the
8960         parent of the actual, to create renamings for all the inherited
8961         operations in Derive_Subprograms.
8962         (Collect_Previous_Instances): new procedure within of
8963         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
8964         unit being loaded, to ensure that the generation of global symbols is
8965         consistent in different compilation modes.
8966         (Is_Tagged_Ancestor): New function testing the ancestor relation that
8967         takes progenitor types into account.
8968         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
8969         traversing over the primitives of the formal and actual types to locate
8970         any abstract subprograms of the actual type that correspond to a
8971         nonabstract subprogram of the formal type's ancestor type(s), and issue
8972         an error if such is found.
8973         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
8974         Instantiate_Package_Body, Instantiate_Subprogram_Body):
8975         Remove bogus guard around calls to Inherit_Context.
8976         (Reset_Entity): If the entity is the selector of a selected component
8977         that denotes a named number, propagate constant-folding to the generic
8978         template only if the named number is global to the generic unit.
8979         (Set_Instance_Env): Only reset the compilation switches when compiling
8980         a predefined or internal unit.
8982 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
8984         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
8985         parameter to determine whether operation applies to the prefix.
8986         (Complete_Object_Operation): If actual has an access type and
8987         controlling formal is not an in_parameter, reject the actual if it is
8988         an access_to_constant type.
8989         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
8990         type, the candidate operations are found in the scope of declaration of
8991         the type, because the type has no primitive subprograms.
8992         (Analyze_Selected_Component): If prefix is class-wide, and root type is
8993         a private extension, only examine visible components before trying to
8994         analyze as a prefixed call.
8995         Change Entity_List to Type_To_Use, for better readability.
8996         (Has_Fixed_Op): Use base type when checking whether the type of an
8997         operator has a user-defined multiplication/division
8998         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
8999         user-defined operators are available for fixed-point types.
9001 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9002             Ed Schonberg  <schonberg@adacore.com>
9004         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
9005         formal At_Any_Place indicating, when True, that we want to test for
9006         availability of the stream attribute at any place (as opposed to the
9007         current visibility context only).
9008         (Missing_Read_Write_Attributes): A stream attribute is missing for the
9009         purpose of enforcing E.2.2(8) only if it is not available at any place.
9010         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
9011         when checking the legality of an extension aggregate in a preelaborable
9012         package. Treat the literal null as a valid default expression in a
9013         component declaration for a type with preelaborable initialization.
9014         A limited interface is a legal progenitor for the designated type of a
9015         remote access to class-wide type.
9017 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9018             Ed Schonberg  <schonberg@adacore.com>
9020         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
9021         reference): Use correct entity as denoted entity for the selector of
9022         the rewritten node.
9023         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
9024         setting the Referenced_As_LHS flag for entities that are implicitly
9025         dereferenced.
9026         (Find_Type): If the type is an internally generated incomplete type,
9027         mark the full view as referenced, to prevent spurious warnings.
9028         (Find_Selected_Component, Has_Components): Handle properly non-limited
9029         views that are themselves incomplete types.
9030         Handle interfaces visible through limited-with clauses.
9031         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
9032         subprogram generic actual for which we have generated a renaming.
9033         Warn when the renaming introduces a homonym of
9034         the renamed entity, and the renamed entity is directly visible.
9036 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9037             Hristian Kirtchev  <kirtchev@adacore.com>
9039         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
9040         appear in the subtree to the current allocator if it is not a static
9041         coextension.
9042         (Resolve_Allocator): Perform cleanup if resolution has determined that
9043         the allocator is not a coextension.
9044         (Resolve): Skip an interpretation hidden by an abstract operator only
9045         when the type of the interpretation matches that of the context.
9046         (Resolve): When looping through all possible interpretations of a node,
9047         do not consider those that are hidden by abstract operators.
9048         (Resolve_Actuals): When verifying that an access to class-wide object
9049         is an actual  for a controlling formal, ignore anonymous access to
9050         subprograms whose return type is an access to class_wide type.
9051         (Resolve_Slice): If the prefix of the slice is a selected component
9052         whose type depends on discriminants, build its actual subtype before
9053         applying range checks on the bounds of the slice.
9054         (Valid_Conversion): In an instance or inlined body, compare root types,
9055         to prevent anomalies between private and public views.
9056         (Resolve): Improve error message for ambiguous fixed multiplication
9057         expressions that involve universal_fixed multiplying operations.
9059 2007-08-14  Javier Miranda  <miranda@adacore.com>
9060             Hristian Kirtchev  <kirtchev@adacore.com>
9062         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
9063         location to allow the correct generation of errors in case of
9064         restrictions applied to the expanded code.
9065         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
9066         function if the condition does not reference them.
9067         (Expand_Entry_Body_Declarations): Mark the index constant as having a
9068         valid value.
9070 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9071             Pablo Oliveira  <oliveira@adacore.com>
9073         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
9074         typecode parameters for a union (in a variant record), remove
9075         extraneous layer of Any wrapping for member label.
9076         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
9077         elabration statements, register the package with the name server
9078         at the beginning, not at the end, of the elaboration statements so
9079         that they can create remote access to subprogram values that designate
9080         remote subprograms from the package.
9082 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
9084         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
9085         values to compute the number of seconds since the Unix Epoc in order to
9086         account for Daylight Savings Time. Perform special processing for dates
9087         that are earlier than the Unix Epoc to obtain a negative number.
9089 2007-08-14  Emmanuel Briot  <briot@adacore.com>
9091         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
9092         switches.
9094 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
9096         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
9097         binder-generated file is not in Ada.
9098         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
9099         recorded in the ALI file.
9100         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
9102 2007-08-14  Vincent Celier  <celier@adacore.com>
9104         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
9105         (Output_Source): Do nothing if parameter is No_Sdep_Id
9107         * make.adb (Gnatmake): Do not rebuild an archive simply because a
9108         shared library it imports has a later time stamp.
9109         (Check): Resolve the symbolic links in the path name of the object
9110         directory.
9111         Check that the ALI file is in the correct object directory
9112         Check if a file name does not correspond to the mapping of units
9113         to file names.
9114         (Display_Version): New procedure
9115         (Initialize): Process switches --version and --help
9116         Use type Path_Name_Type for path name
9118 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
9120         * impunit.adb: Re-organize System.Random_Numbers and
9121         GNAT.Random_Numbers and add to builds.
9123         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
9125         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
9127         * a-assert.ads, a-assert.adb: New files.
9129 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
9131         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
9132         if AAMP_On_Target is True, then the size of the type encompasses two
9133         addresses (a static link and a subprogram address), except in the case
9134         of library-level access types.
9136 2007-08-14  Vincent Celier  <celier@adacore.com>
9138         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
9139         writing the line.
9140         (Write_Eol_Keep_Blanks): New procedure to write a line, including
9141         possible trailing spaces.
9142         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
9144 2007-08-14  Javier Miranda  <miranda@adacore.com>
9146         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
9147         null-excluding access types.
9149 2007-08-14  Javier Miranda  <miranda@adacore.com>
9151         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
9152         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
9153         of private types add missing check on matching interfaces in the
9154         partial and full declarations.
9155         (Analyze_Protected_Type): Code cleanup.
9156         (Analyze_Task_Type): Code cleanup.
9158 2007-08-14  Javier Miranda  <miranda@adacore.com>
9160         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
9161         generated interface thunk.
9163 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9165         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
9166         obsolescent warning on application of 'Class to an incomplete type.
9168         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
9169         prevent obsolescent warning on application of 'Class to an incomplete
9170         type.
9172 2007-08-14  Pascal Obry  <obry@adacore.com>
9174         * s-fileio.adb (Is_Open): Add check for usability of the underlying
9175         file stream.
9177 2007-08-14  Cyrille Comar  <comar@adacore.com>
9179         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
9180         since it is potentially used in cases implying double finalization of
9181         the same object.
9183 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
9185         * s-tasini.adb (Get_Stack_Info): Move this function to
9186         System.Soft_Links.Tasking because it is common to the full and the
9187         restricted run times.
9188         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
9189         in SSL.Tasking.Init_Tasking_Soft_Links.
9191         * s-solita.adb (Get_Stack_Info): Function moved from
9192         System.Tasking.Initialization because it is common to the full and the
9193         restricted run times.
9194         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
9196 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
9198         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
9199         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
9200         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
9201         parameter.
9203         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
9204         guard to 12K.
9206 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
9208         * s-veboop.adb (SU): New named number initialized to
9209         System.Storage_Unit.
9210         (True_Val): The initialization expression is revised to use SU (=
9211         Storage_Unit) rather than assuming 8 for the component size of an
9212         unpacked Boolean array.
9214 2007-08-14  Tristan Gingold  <gingold@adacore.com>
9216         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
9218         * tb-ivms.c: New file.
9220         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
9222 2007-08-14  Geert Bosch  <bosch@adacore.com>
9224         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
9225         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
9226         Add required linker pragmas for automatically linking with the gnalasup
9227         linear algebra support library, and the systems math library.
9228         Rename cdot to cdotu and zdot to zdotu.
9229         Update header comment to describe purpose of package.
9231 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9233         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
9234         an explicitly specified Associated_Final_Chain, use that list.
9235         (Expand_N_Package_Body): Build dispatch tables of library level tagged
9236         types.
9237         (Expand_N_Package_Declaration): Build dispatch tables of library level
9238         tagged types. Minor code cleanup.
9240 2007-08-14  Vincent Celier  <celier@adacore.com>
9242         * gnatchop.adb (Terminate_Program): Remove exception and use
9243         Types.Terminate_Program instead.
9245         * osint.ads, osint.adb (Current_Exit_Status): New global variable
9246         (Find_Program_Name): Added protection against empty name.
9247         (OS_Exit_Through_Exception): New procedure
9249         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
9250         (OS_Exit_Default): New procedure that contains the previous
9251         implementation of procedure OS_Exit.
9252         (Final_Value): Remove obsolete Interix stuff.
9254 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9256         * g-socket.ads: Reorganize example code so that it also works on
9257         Windows XP.
9259 2007-08-14  Tristan Gingold  <gingold@adacore.com>
9261         * g-trasym.ads: AIX now supports symbolic backtraces.
9263 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9265         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
9266         units being loaded to detect circularities. A circularity may be
9267         present even if the current chain of pending units to load starts from
9268         a limited_with_clause.
9270         * lib-load.ads: Change profile of Load_Unit to use a with_clause
9271         rather than a boolean flag, in order to detect circularities in
9272         with_clauses.
9274         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
9275         than propagating the From_Limited_With flag, in order to handle
9276         properly circularities involving with_clauses.
9278 2007-08-14  Nicolas Setton  <setton@adacore.com>
9280         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
9281         warnings.
9283 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
9285         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
9286         to build for libgnala.
9287         libgnat: Add rules to build libgnala.a
9288         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
9289         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
9290         Add s-osinte-vxworks-kernel.adb to the target pairs of the
9291         kernel run-time lib for VxWorks 6, which would provide a different
9292         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
9293         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
9294         running ZCX by default.
9295         Add g-sttsne-locking to LynxOS version.
9296         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
9297         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
9299         * system-darwin-x86.ads: New file.
9301         * Make-lang.in: Delete files before copying onto them, so if they are
9302         read-only, the copy won't fail.
9303         Update dependencies
9305 2007-08-14  Pascal Obry  <obry@adacore.com>
9307         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
9308         naming scheme.
9310 2007-08-14  Vincent Celier  <celier@adacore.com>
9312         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
9313         (Gcc): Initialize Gcc_Name at the first call
9315 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
9317         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
9318         with_clauses of the enclosing unit when analyzing the package
9319         specification of a nested instance.
9321 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
9323         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
9324         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
9325         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
9326         layout of N_Allocator.
9328 2007-08-14  Thomas Quinot  <quinot@adacore.com>
9330         * rtsfind.adb (Check_RPC): Add PCS version check.
9332         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
9333         (Gnat_Free_Software): New function.
9335         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
9336         the PCS_Version value from s-parint, used to check that it is consistent
9337         with what exp_dist expects.
9339         * s-parint.ads (PCS_Version): New entity for checking consistency
9340         between exp_dist and PCS.
9342         * gen-soccon.c: (SO_REUSEPORT): New constant.
9344 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
9346         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
9347         variable Sub_Second to Duration in order to accomodate a larger range
9348         of arithmetic operations.
9350 2007-08-14  Bob Duff  <duff@adacore.com>
9352         * g-sttsne-locking.ads: Move comments from spec to body.
9353         * g-sttsne-locking.adb: Move comments from spec to body.
9354         * g-sttsne-vxworks.ads: Removed.
9355         * g-sttsne-vxworks.adb: Removed.
9357 2007-08-11  Ian Lance Taylor  <iant@google.com>
9359         * misc.c (gnat_get_alias_set): Change return type to
9360         alias_set_type.
9362 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9364         * decl.c, utils2.c: Fix whitespace in last change.
9366 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9368         * decl.c (compare_field_bitpos): Constify.
9369         * utils2.c (compare_elmt_bitpos): Likewise.
9371 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
9373         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
9374         anonymous access type.
9375         (pthread_sigmask): Now take an access sigset_t.
9377 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
9379         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
9380         
9381 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
9383         PR tree-optimization/25737
9384         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
9386 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9388         * trans.c (Attribute_to_gnu): When subtracting an
9389         offset from a pointer, use POINTER_PLUS_EXPR with
9390         NEGATE_EXPR instead of MINUS_EXPR.
9391         (gnat_to_gnu): Likewise.
9392         * utils.c (convert): When converting between
9393         thin pointers, use POINTER_PLUS_EXPR and sizetype
9394         for the offset.
9395         * utils2.c (known_alignment): POINTER_PLUS_EXPR
9396         have the same semantics as PLUS_EXPR for alignment.
9397         (build_binary_op): Add support for the semantics of
9398         POINTER_PLUS_EXPR's operands.
9399         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
9401 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
9403         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
9404         of get_signed_or_unsigned_type.
9405         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
9407 2007-06-11  Bob Duff  <duff@adacore.com>
9408             Thomas Quinot  <quinot@adacore.com>
9410         * g-stsifd-sockets.adb (Create): Work around strange behavior of
9411         'bind' on windows that causes 'connect' to fail intermittently, by
9412         retrying the 'bind'.
9413         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9415 2007-06-10  Duncan Sands  <baldrick@free.fr>
9417         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
9418         than to void, for the fields when making a new fat pointer type.
9419         (gnat_substitute_in_type): Now substitute_in_type.
9420         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
9421         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
9422         * utils.c (update_pointer_to): Update fat pointers by updating the
9423         dummy node pointers used for the fields.
9425 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9426             Bob Duff  <duff@adacore.com>
9428         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
9429         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
9430         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
9431         constant Thread_Blocking_IO, always True by default, set False
9432         on a per-runtime basis.
9433         (Need_Netdb_Buffer): New constant.
9435         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
9436         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
9437         files.
9439         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
9440         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
9441         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
9442         child package Task_Safe_NetDB
9443         (Host_Error_Messages): Add stub body.
9444         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9446         * g-soccon-mingw.ads: Add Windows-specific constants.
9447         (Need_Netdb_Buffer): New constant.
9448         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
9449         wrapper and import inet_addr(3) from the standard sockets library
9450         directly instead.
9451         (In_Addr): Add alignment clause.
9452         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9454 2007-06-06  Robert Dewar  <dewar@adacore.com>
9456         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
9457         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
9458         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
9459         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
9460         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
9461         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
9462         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
9463         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
9464         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
9465         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
9466         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
9467         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
9468         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
9469         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
9470         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
9471         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
9472         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
9473         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
9474         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
9475         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
9476         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
9477         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
9478         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
9479         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
9480         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
9481         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
9482         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
9483         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
9484         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
9485         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
9486         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
9487         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
9488         Unchecked_* by Ada.Unchecked_*
9490 2007-06-06  Robert Dewar  <dewar@adacore.com>
9492         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
9493         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
9494         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
9495         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
9496         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
9497         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
9499         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
9500         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
9501         s-tasloc.adb, s-tasloc.ads: New files.
9503 2007-06-06  Bob Duff  <duff@adacore.com>
9505         * g-expect-vms.adb: 
9506         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
9507         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
9508         (Send_Signal, Close): Raise Invalid_Process if the process id is
9509         invalid.
9510         (Pattern_Matcher_Access): Is now a general access type to be able to
9511         use aliased string.
9513 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9514             Arnaud Charlet  <charlet@adacore.com>
9516         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
9517         (SIGEMT is now used instead of SIGTERM on AIX).
9519         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
9520         (Time_Slice_Supported): Set to True.
9521         Use SIGEMT instead of SIGTERM as SIGADAABORT.
9523 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
9525         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
9526         (Time, Time)): Use To_Relative_Time rather than manual calculation to
9527         express the bounds of Duration as Time. Raise Time_Error when the
9528         result is greater or equal to the higher bound of Duration (on the
9529         margin case).
9530         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
9531         Ada_High_And_Leaps.
9532         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
9533         Ada_High_And_Leaps.
9534         ("-" (Time, Time)): Reorder code.
9535         (All_Leap_Seconds): Removed.
9536         (Arithmetic_Operations.Add): Remove sign related kludge.
9537         (Arithmetic_Operations.Difference): Control the leaps seconds processing
9538         with flag Leap_Support.
9539         (Arithmetic_Operations.Subtract): Remove sign related kludge.
9540         (Check_Within_Time_Bounds): New procedure.
9541         (Clock): Control the leap seconds processing with flag Leap_Support.
9542         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
9543         (Formatting_Operations.Split): Control the leap seconds processing with
9544         flag Leap_Support.
9545         (Formatting_Operations.Time_Of): Control the leaps seconds processing
9546         with flag Leap_Support. Adjust the year, month and day (if applicable)
9547         when the value of day seconds designates a new day.
9548         (Split): Use parameter associations for better readability. Integrate
9549         flag Is_Ada_05.
9550         (Time_Of): Use parameter associations for better readability. Integrate
9551         flag Is_Ada_05.
9553         * a-calfor.adb (Split): Use parameter associations for better
9554         readability. Integrate flag Is_Ada_05.
9555         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
9556         better readability. Integrate flag Is_Ada_05.
9558 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9560         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
9561         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
9562         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
9563         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
9564         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
9565         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
9566         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
9567         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
9568         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
9569         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
9570         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
9571         time when entering this routine to detect a backward clock setting
9572         (manual setting or DST adjustment), to avoid waiting for a longer delay
9573         than needed.
9574         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
9575         Remove handling of deferred priority change, and replace by setting the
9576         task priority directly, as required by AI-188.
9577         Update comments.
9578         (Max_Task_Image_Length): New constant.
9579         Replace Warnings (Off) by Unreferenced pragma, cleaner.
9580         (Dynamic_Priority_Support): Removed, no longer needed.
9581         (Poll_Base_Priority_Change): Ditto.
9582         (Set_Ceiling): Add this procedure to change the ceiling priority
9583         associated to a lock. This is a dummy implementation because dynamic
9584         priority ceilings are not supported by the underlying system.
9586         * a-dynpri.adb (Set_Priority): Take into account case where Target is
9587         accepting a RV with its priority boosted.
9588         Remove handling of deferred priority change, and replace by setting the
9589         task priority directly, as required by AI-188.
9591         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
9592         Succeeded = True.
9593         Remove handling of deferred priority change, and replace by setting the
9594         task priority directly, as required by AI-188.
9595         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
9596         of Self_Id earlier.
9598         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
9599         (Poll_Base_Priority_Change): Removed.
9600         Code clean up: use SSL.Current_Target_Exception.
9602         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
9603         to run as this is a potentially dispatching point.
9604         (Call_Synchronous): Use Local_Defer_Abort.
9605         (Callable): Relax assertion.
9606         (Selective_Wait): Relax assertion in case abort is not allowed.
9607         Remove handling of deferred priority change, and replace by setting the
9608         task priority directly, as required by AI-188.
9610         * s-tasuti.adb (Make_Passive): Adjust assertions.
9611         Remove handling of deferred priority change, and replace by setting the
9612         task priority directly, as required by AI-188.
9614 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9616         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
9617         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
9618         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
9619         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
9620         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
9621         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
9622         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
9623         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
9624         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
9625         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
9626         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
9627         This patch changes the largest non-binary modulus from 2**31-1 to
9628         2**32-1.
9629         (Compiler_System_Version): Removed, no longer used.
9630         Clean up system files by removing flags only used on a single target.
9631         Also remove obsolete flags, only used during bootstrap from system.ads
9632         (Address): Add a pragma Preelaborable_Initialization.
9634         * system-aix.ads:  Ditto.
9635         (GCC_ZCX_Support): Set to true.
9636         Update priority range on AIX and map Ada priorities to target
9637         priorities appropriately for different scheduling policies.
9639         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
9641 2007-06-06  Vincent Celier  <celier@adacore.com>
9643         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
9644         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
9646         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
9647         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
9648         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
9649         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
9650         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
9651         MLib.Tgt, containing the default versions of the exported subprograms.
9652         For each platform, create a specific version of the body of new child
9653         package MLib.Tgt.Specific that contains only the body of subprograms
9654         that are different from the default.
9655         (Archive_Builder_Append_Options): New function.
9657 2007-06-06  Matthew Gingell  <gingell@adacore.com>
9659         * s-osinte-aix.adb: Map Ada priorities to target priorities
9660         appropriately for different scheduling policies.
9662 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9664         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
9665         its C counterpart.
9666         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
9667         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
9669 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
9671         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
9672         Noop on VMS, added for interface commonality.
9674 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
9675             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9676             Olivier Hainque  <hainque@adacore.com>
9678         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
9679         renamed expression of a full renaming at toplevel.
9680         (gnat_to_gnu_entity, case object): If not defining, do not look inside
9681         the values the constant is initialized to if it is an N_Allocator.
9682         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
9683         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
9684         (make_aligning_type): Accept an extra ROOM argument for storage to be
9685         made available before the aligned field, and an extra BASE_ALIGN
9686         argument for callers to pass the alignment guaranteed to be honored for
9687         the whole aligning object. Avoid call to finish_record_type, which only
9688         interferes with the sizes we want to set.
9689         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
9690         make_aligning_type for super-aligned objects on stack.
9691         (components_to_record): Pass the adjusted size of the type when creating
9692         fields in the qualified union for the variant part.
9693         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
9694         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
9695         packed array type.
9696         (maybe_pad_type): Set TYPE_USER_ALIGN.
9697         (make_aligning_type): Likewise.
9698         ALIGN argument is unsigned int.
9699         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
9700         (gnat_to_gnu_param): Likewise, for parameters.
9701         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
9702         if it is constant and stems from a function call.
9703         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
9704         of the record is specified.  Adjust accordingly.
9705         (adjust_packed): New static function.
9706         (gnat_to_gnu_field): Use it to adjust the packedness setting.
9707         (components_to_record): Likewise.
9708         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
9709         side-effects if the object is deemed constant.
9710         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
9711         type instead of merely finalizing it.  Tidy.
9712         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
9713         <E_Access_Type>: Likewise.
9714         (defer_debug_incomplete_list): Rename to defer_finalize_list.
9715         (defer_debug_level): Delete.
9716         (gnat_to_gnu_entity) <debug_deferred>: Likewise
9717         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
9718         type.
9719         <E_Record_Type>: Do not explicitly defer finalizing the type.
9720         Adjust for write_record_type_debug_info renaming.
9721         <E_Subprogram_Type>: Likewise.
9722         Finalize deferred types right after deferred incomplete types are
9723         expanded.
9724         (rest_of_type_decl_compilation): New global function.
9725         (components_to_record): Rename defer_debug parameter to do_not_finalize.
9726         (components_to_record): Propagate the packedness to the fields of the
9727         qualified union type if there is a variant part.
9728         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
9729         instead of inline code to adjust the XUT field offsets.
9730         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
9731         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
9732         and write the debug info if the type derives from a discriminated one.
9733         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
9734         <E_Array_Subtype>: Likewise.
9735         <E_String_Literal_Subtype>: Likewise.
9736         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
9737         an alignment clause.
9738         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
9739         before giving warning.
9740         (prepend_one_attribute_to): New function, helper to prepend an attribute
9741         to an attribute list.
9742         (gnat_to_gnu_entity) <E_Procedure>: Use it.
9743         (prepend_attributes): Likewise.
9744         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
9745         <E_Array_Type>: Declare the padding type for the element type, if any.
9746         <E_Array_Subtype>: Likewise.
9747         (defer_limited_with): New variable.
9748         (Gigi_Equivalent_Type): New function.
9749         (gnat_to_gnu_entity): Use it at start and use result throughout.
9750         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
9751         Gigi_Equivalent_Type, support Limited_With, allow two levels of
9752         indirection, precompute if unconstrained array to simplify logic, and
9753         use defer_limited_with to defer elaboration of some types from limited
9754         with.
9755         (finalize_from_with_types): New function.
9757 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
9758             Eric Botcazou  <ebotcazou@adacore.com>
9759             Tristan Gingold  <gingold@adacore.com>
9760             Olivier Hainque  <hainque@adacore.com>
9762         * trans.c (Identifier_to_gnu): Change test for deferred constant by
9763         adding guard that the entity is an E_Constant before testing presence
9764         of Full_view (and remove unnecessary test that entity is not a type).
9765         For a CONST_DECL used by reference, manually retrieve
9766         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
9767         (struct language_function): Move from utils.c to here.
9768         (struct parm_attr): New structure.
9769         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
9770         (f_parm_attr_cache): New macro.
9771         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
9772         expressions for the 'First, 'Last and 'Length attributes of the
9773         unconstrained array IN parameters.
9774         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
9775         Allocate the information structure for the function earlier, as well
9776         as the language-specific part.
9777         If the parameter attributes cache has been populated, evaluate the
9778         cached expressions on entry.
9779         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
9780         N_Procedure_Call_Statement and N_Indexed_Component.
9781         (Pragma_to_gnu): Translate inspection_point to an asm statement
9782         containaing a comment and a reference to the object (either its address
9783         for BLKmode or its value).
9784         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
9785         to go to DECL_INITIAL. Together with the size constraint relaxation
9786         in create_var_decl, enlarges the set of situations in which an
9787         identifier may be used as an initializer without implying elaboration
9788         code.
9789         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
9790         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
9791         node.
9792         (maybe_stabilize_reference): Remove lvalues_only parameter.
9793         (gnat_stabilize_reference): Adjust for above change.
9794         (gnat_to_gnu): Do not set location information on the result
9795         if it is a reference.
9796         (add_cleanup): Add gnat_node parameter and set the location of the
9797         cleanup to it.
9798         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
9799         (Exception_Handler_to_gnu_zcx): Likewise.
9800         (gigi): Remove the cgraph node if the elaboration procedure is empty.
9801         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
9802         the former right after the latter.
9803         (start_stmt_group): Make global.
9804         (end_stmt_group): Likewise.
9805         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
9806         vars.
9807         (gnu_program_error_label_stack): Likewise.
9808         (gigi): Initialize them.
9809         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
9810         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
9811         New cases.
9812         (push_exception_label_stack): New function.
9813         (takes_address): New function.
9815         * utils.c (struct language_function): Move to trans.c from here.
9816         (unchecked_convert): Do not wrap up integer constants in
9817         VIEW_CONVERT_EXPRs.
9818         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
9819         the latter for aggregate types, unexpected by later passes, and relax an
9820         arbitrary size constraint on the former.
9821         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
9822         to compare the sizes.
9823         (convert_vms_descriptor): When converting to a fat pointer type, be
9824         prepared for a S descriptor at runtime in spite of a SB specification.
9825         (shift_unc_components_for_thin_pointers): New function.
9826         (write_record_type_debug_info): For variable-sized fields, cap the
9827         alignment of the pointer to the computed alignment.
9828         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
9829         If REP_LEVEL is 2, do not compute the sizes.
9830         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
9831         (build_unc_object_type): Likewise.
9832         (declare_debug_type): New function.
9834         * ada-tree.def: USE_STMT: removed (not emitted anymore).
9836         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
9837         no statement is expandable anymore.
9838         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
9839         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
9840         when the user requested it explicitely.
9841         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
9842         to 0 for Ada.
9843         (get_alias_set): Return alias set 0 for a type if
9844         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
9846         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
9847         (DECL_FUNCTION_STUB): New accessor macro.
9848         (SET_DECL_FUNCTION_STUB): New setter macro.
9850         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
9852         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
9853         declarations.
9855 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
9857         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
9858         Rename to Abort_Task_Interrupt to be able to keep the same interface
9859         as the rest of the targets.
9861         * s-osinte-vxworks.ads s-osinte-vxworks.adb
9862         (To_VxWorks_Priority): Remove explicit "in" mode indicator
9864         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
9865         New files.
9867 2007-06-06  Robert Dewar  <dewar@adacore.com>
9869         * a-chahan.ads: Remove obsolescent pragmas
9871         * a-chlat1.ads: Minor reformatting
9873 2007-06-06  Robert Dewar  <dewar@adacore.com>
9875         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
9876         for Errout
9878         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
9879         implementation
9881         * errout.ads (Finalize): Changed interface
9882         (Output_Messages): New procedure
9883         (Compilation_Errors): New Interface
9885         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
9886         Finalize/Output_Messages interface for Errout
9887         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
9888         Errout.
9890 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9891             Olivier Hainque  <hainque@adacore.com>
9892             Robert Dewar  <dewar@adacore.com>
9894         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
9895         check.
9896         (Raise_Current_Excep): Call Debug_Raise_Exception just before
9897         propagation starts, to let debuggers know about the event in a reliable
9898         fashion.
9899         (Local_Raise): Moved to System.Exceptions
9900         More convenient to have this as a separate unit
9902         * s-except.adb, s-except.ads: New files.
9904         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
9905         Debug_Unhandled_Exception in System.Exceptions where it belongs
9906         together with a couple of other debug helpers.
9907         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
9908         the former Unhandled_Exception.
9910         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
9911         (Warn_No_Exception_Propagation): New procedure
9912         (Warn_If_No_Propagation): Rewritten for new warning generation
9913         (Expand_Exception_Handlers): New warning generation
9914         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
9915         (Add_Exception_Label): Use Special_Exception_Package_Used for test
9916         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
9917         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
9918         even if restriction is set (makes life easier in Check_Returns)
9919         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
9920         checking exception identities.
9921         (Expand_Local_Exception_Handlers): Do not optimize when all others case
9922         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
9923         block for handler (used by Check_Returns)
9924         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
9925         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
9926         remove all exception handlers when optimizing local raise statements.
9927         (Find_Local_Handler): Use Get_Renamed_Entity
9928         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
9929         marked analyzed after expanding exception handlers, do not generate
9930         redundant cleanup actions, because they have been constructed already.
9932 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9934         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
9935         presence of this categorization pragma is mandated by the language.
9936         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
9937         for this type.
9939 2007-06-06  Vincent Celier  <celier@adacore.com>
9940             Robert Dewar  <dewar@adacore.com>
9942         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
9943         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
9944         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
9945         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
9946         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
9947         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
9948         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
9949         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
9950         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
9951         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
9952         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
9953         ali.ads, ali.adb: 
9954         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
9955         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
9956         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
9957         Use variables of types File_Name_Type and Unit_Name_Type in error
9958         messages.
9959         (Get_Name): Add parameter Ignore_Special, and set it reading file name
9960         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
9961         here.
9962         Define flags Flag217-Flag230 with associated subprograms
9963         (Flag_Word5): New record type.
9964         (Flag_Word5_Ptr): New access type.
9965         (To_Flag_Word5): New unchecked conversion.
9966         (To_Flag_Word5_Ptr): Likewise.
9967         (Flag216): New function.
9968         (Set_Flag216): New procedure.
9970 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9972         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
9973         instead of 'Size.
9975         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
9977 2007-06-06  Javier Miranda  <miranda@adacore.com>
9979         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
9980         the package.
9981         (Object_Specific_Data_Array): This is now internal to the package.
9982         (Object_Specific_Data): This is now internal to the package.
9983         (Select_Specific_Data_Element): This is now internal to the package.
9984         (Select_Specific_Data_Array): This is now internal to the package.
9985         (Select_Specific_Data): This is now internal to the package.
9986         (Offset_To_Top_Function_Ptr): This is now public.
9987         (To_Offset_To_Top_Function_Ptr): Removed.
9988         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
9989          local to subprogram Offset_To_Top.
9990         (Predefined_DT): Removed.
9991         (Typeinfo_Ptr): Removed.
9992         (OSD): This function is now internal to this package.
9993         (SSD): This function is now internal to this package.
9994         (DT): New function that displaces the pointer to the table of primitives
9995          to get access to the enclosing wrapper record.
9996         (IW_Membership): Code cleanup.
9997         (Offset_To_Top): Code cleanup.
9998         (Predefined_DT): Removed.
9999         (Register_Interface_Tag): Removed.
10000         (Set_Interface_Table): Removed.
10001         (Set_Offset_Index): Removed.
10002         (Set_Offset_To_Top): Code cleanup.
10003         (Set_OSD): Removed.
10004         (Set_Signature): Removed.
10005         (Set_SSD): Removed.
10006         (Set_Tagged_Kind): Removed.
10007         (Typeinfo_Ptr): Removed.
10008         (TSD): Removed.
10009         (Displace): Add missing check on null actual.
10011         * exp_disp.ads, exp_disp.adb
10012         (Select_Expansion_Utilities): Removed.
10013         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
10014         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
10015         the interface requires a new parameter.
10016         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
10017         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
10018         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
10019         Done to remove package Select_Expansion_Utilities.
10020         (Make_DT): New implementation for statically allocated dispatch tables.
10021         (Make_Secondary_DT): Moved to the scope of Make_DT.
10022         (Register_Primitive): Code cleanup plus incoporate the use of the new
10023         function DT_Address_Attribute.
10024         (Expand_Interface_Thunk): The profile of this subprogram has been
10025         changed to return the Thunk_Id and the corresponding code.
10026         (Fill_DT_Entry): Removed. Its functionality is now provided by
10027         subprogram Register_Primitive.
10028         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
10029         subprogram Register_Primitive.
10030         (Register_Primitive): New subprogram that incorporates the previous
10031         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
10032         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
10033         was only required to call Make_DT_Access_Action, which is now removed.
10034         (Ada_Actions): Removed
10035         (Action_Is_Proc): Removed
10036         (Action_Nb_Arg): Removed
10037         Replace all the calls to Make_DT_Access_Action by direct calls to
10038         Make_Procedure_Call_Statement or Make_Function_Call.
10039         (Set_DTC_Entity_Value): New subprogram.
10040         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
10041         (Expand_Interface_Thunk): Add missing support for primitives that are
10042         functions with a controlling result (case in which there is no need
10043         to generate the thunk).
10045         * exp_atag.ads, exp_atag.adb
10046         (Build_DT): New subprogram that displaces the pointer to reference the
10047         base of the wrapper record.
10048         (Build_Typeinfo_Offset): Removed.
10049         (RTE_Tag_Node): Removed.
10050         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
10051         (Build_Get_RC_Offset): Removed.
10052         (Build_Inherit_Predefined_Prims): Removed.
10053         (Build_Inherit_TSD: Removed.
10054         (Build_New_TSD): Removed.
10055         (Build_Set_External_Tag): Removed.
10056         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
10057         (Build_Set_Prim_Op_Address): Add documentation.
10058         (Build_Set_TSD): Removed.
10060         * rtsfind.ads, rtsfind.adb
10061         (Load_Fail): If load fails and we are not in configurable run-time
10062         mode, then raise Unrecoverable_Error.
10063         (Text_IO_Kludge): Generate an error message if a run-time library is
10064         not available in a given run-time (ie. zfp run-time).
10065         (RTE_Record_Component): Add code to check that the component we search
10066         for is not found in two records in the given run-time package.
10067         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
10068         (RE_DT_Predef_Prims_Offset): New entity
10069         (RE_Static_Offset_To_Top): New entity
10070         (RE_HT_Link): New entity.
10071         (System_Address_Image): Addition of this run-time package.
10072         (RE_Address_Image): New entity.
10073         (RE_Abstract_Interface): Removed.
10074         (RE_Default_Prim_Op_Count): Removed.
10075         (RE_DT_Entry_Size): Removed.
10076         (RE_DT_Min_Prologue_Size): Removed.
10077         (RE_DT_Prologue_Size): Removed.
10078         (RE_Ifaces_Table_Ptr): Removed.
10079         (RE_Interface_Data_Ptr): Removed.
10080         (RE_Type_Specific_Data): Removed.
10081         (RE_Primary_DT): Removed.
10082         (RE_Register_Interface_Tag): Removed.
10083         (RE_Set_Offset_Index): Removed.
10084         (RE_Set_OSD): Removed.
10085         (RE_Set_SSD): Removed.
10086         (RE_Set_Signature): Removed.
10087         (RE_Set_Tagged_Kind): Removed.
10088         (RE_Address_Array): New entity.
10089         (RE_DT): New entity.
10090         (RE_Iface_Tag): New entity.
10091         (RE_Interfaces_Table): New entity.
10092         (RE_No_Dispatch_Table): New entity.
10093         (RE_NDT_Prims_Ptr): New entity.
10094         (RE_NDT_TSD): New entity.
10095         (RE_Num_Prims): New entity.
10096         (RE_Offset_To_Top_Function_Ptr): New entity.
10097         (RE_OSD_Table): New entity.
10098         (RE_OSD_Num_Prims): New entity.
10099         (RE_Predef_Prims): New entity
10100         (RE_Predef_Prims_Table_Ptr): New entity.
10101         (RE_Primary_DT): New entity.
10102         (RE_Signature): New entity.
10103         (RE_SSD): New entity.
10104         (RE_TSD): New entity.
10105         (RE_Type_Specific_Data): New entity.
10106         (RE_Tag_Kind): New entity.
10108 2007-06-06  Thomas Quinot  <quinot@adacore.com>
10110         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
10111         C imported variable.
10112         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
10113         on entry.
10115 2007-06-06  Robert Dewar  <dewar@adacore.com>
10117         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
10118         character
10120 2007-06-06  Vincent Celier  <celier@adacore.com>
10122         * a-tifiio.adb (Put, internal): For negative numbers, check that there
10123         is room for at least one digit and the minus sign.
10124         (Put.Put_Character): Never put a character outside of the range of
10125         string To.
10127 2007-06-06  Olivier Hainque  <hainque@adacore.com>
10128             Eric Botcazou  <ebotcazou@adacore.com>
10130         * utils2.c (build_allocator): Provide the extra arguments to
10131         make_aligning_type for super-aligned objects allocated from the default
10132         pool. Leave enough room for a pointer before the aligning field, and
10133         store the system's allocator return value there.
10134         (build_call_alloc_dealloc): When releasing a super-aligned object,
10135         retrieve the system's allocator return value from where build_allocator
10136         has stored it, just ahead of the adjusted address we are passed.
10137         (build_call_raise): Handle properly the generation of line numbers when
10138         the node is marked No_Location.
10139         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
10140         by using DECL_UID on ties.
10141         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
10142         main variant.
10143         (build_call_raise): Handle converting exception into goto; support new
10144         argument KIND.
10145         (build_component_ref): Add new arg to build_call_raise.
10147 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
10149         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
10150         "." in the case of nnn.xxx when nnn terminates with an underscore.
10151         Parse the remaining "#" or ":" in the case of nnn#.xxx#
10153 2007-06-06  Robert Dewar  <dewar@adacore.com>
10155         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
10157 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
10158             Vincent Celier  <celier@adacore.com>
10159             Robert Dewar  <dewar@adacore.com>
10161         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
10162         needed.
10163         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
10164         ((destructor)) for adafinal, even when switch -a is used.
10165         Do not issue pragma Linker_Destructor for adafinal when switch -a is
10166         used.
10167         (Gen_Object_Files_Options): Add formatting of Linker Options, when
10168         Output_Linker_Option_List is set. Suppress this formatting when
10169         Zero_Formatting is set.
10170         Add case for CLI_Target.
10171         (System_Restrictions_Used): New flag, used to avoid generating with of
10172         System_Restrictions and initialization of the data unless there is
10173         some use of System.Restrictions in the partition.
10174         (Check_System_Restrictions_Used): New procedure
10176         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
10177         since we only with this unit in the binder file if it is used elsewhere
10178         in the partition.
10180 2007-06-06  Vincent Celier  <celier@adacore.com>
10182         * bindusg.adb: Add line for @<response file>
10183         Add lines for new switches -R and -Z
10185         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
10186         hierarchy in the list of files of the closure when -R is used
10187         (Gnatbind): Accept arguments starting with '@' to indicate response
10188         files and take the arguments from the response files.
10189         If List_Closure is set, display the referenced files
10191 2007-06-06  Javier Miranda  <miranda@adacore.com>
10192             Robert Dewar  <dewar@adacore.com>
10193             Ed Schonberg  <schonberg@adacore.com>
10195         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
10196         which the address-clause is applied to in-mode actuals (allowed by
10197         13.1(22)).
10198         (Apply_Discriminant_Check): Do not generate a check if the type is
10199         constrained by a current instance.
10200         (Activate_Division_Check): New procedure
10201         (Activate_Overflow_Check): New procedure
10202         (Activate_Range_Check): New procedure
10203         Call these new Activate procedures instead of setting flags directly
10204         (Apply_Array_Size_Check): Removed, no longer needed.
10205         Code clean up: remove obsolete code related to GCC 2.
10206         (Get_E_Length): Protect against bomb in case scope is standard
10207         (Selected_Range_Checks): If the node to be checked is a conversion to
10208         an unconstrained array type, and the expression is a slice, use the
10209         bounds of the slice to construct the required constraint checks.
10210         Improve NOT NULL error messages
10211         (Apply_Constraint_Check): If the context is a null-excluding access
10212         type, diagnose properly the literal null.
10214 2007-06-06  Pascal Obry  <obry@adacore.com>
10216         * clean.adb (Clean_Archive): Use untouched casing for the archive name
10217         and the corresponding .deps file.
10218         (Clean_Interface_Copy_Directory): Use untouched casing for the library
10219         src directory. Minor code-clean-up. Use untouched casing for files
10220         read into the library src dir.
10221         (Clean_Library_Directory): Idem.
10222         (Parse_Cmd_Line): Accept new switch -aP
10224 2007-06-06  Javier Miranda  <miranda@adacore.com>
10225             Ed Schonberg  <schonberg@adacore.com>
10226             Robert Dewar  <dewar@adacore.com>
10227             Eric Botcazou  <ebotcazou@adacore.com>
10228             Arnaud Charlet  <charlet@adacore.com>
10230         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
10231         applicable to types that have the With_Type flag set. Returns the
10232         non-limited view of the type, if available, otherwise the type itself.
10233         For class-wide types, there is no direct link in the tree, so we have
10234         to retrieve the class-wide type of the non-limited view of the Etype.
10235         New attributes Static_Initialization and Static_Elaboration_Desired.
10236         Remove the pragma Thread_Body, and the associated flag
10237         Is_Thread_Body in entities, and all related code.
10238         (Suppress_Value_Tracking_On_Call): New flag
10239         E_Exception has Esize and Alignment fields
10240         (Universal_Aliasing): New function.
10241         (Set_Universal_Aliasing): New procedure.
10242         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
10243         (Check_Nested_Access): New procedure.
10244         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
10245         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10246         (Related_Interface): New attribute. Present in dispatch table pointer
10247         components of records. Set to point to the entity of the corresponding
10248         interface type.
10249         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
10250         (Original_Access_Type): Remove, not needed.
10251         (Root_Type): Handle properly subtypes of class-wide-types.
10252         Update comments.
10254         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
10255         class-wide types visible through limited-with clauses.
10256         (Try_Primitive_Operation): When examining all primitive operations of a
10257         tagged type, do not consider subprograms labeled as hidden unless they
10258         belong to a private generic type with a tagged parent.
10259         (Try_Object_Operation): Extensive rewriting, to handle properly various
10260         overloading cases, when several ancestors may have class-wide operations
10261         that are possible candidates, and when the overloaded functions return
10262         array types and have defaulted parameters so that the call may be
10263         interpreted as an indexing.
10264         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
10265         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
10266         successive actuals before analyzing the call itself.
10267         (Try_Primitive_Operation): A primitive operation is compatible with the
10268         prefix if the prefix has a synchronized type and the type of the formal
10269         is its corresponding record, as can be the case when the primitive
10270         operation is declared outside of the body of the type.
10271         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
10272         perform homonym traversal, looking for class-wide operation matches
10273         (formerly done in statements of Try_Class_Wide_Operation). Matches on
10274         access parameters are now restricted to anonymous access types.
10275         (Mark_Allocator): An allocator with a discriminant association parent is
10276         a coextension.
10277         (Try_One_Prefix_Interpretation): If the type of the object is
10278         incomplete, as can be happen when it is a limited view obtained through
10279         a limited_with_clause, the selected component is not part of a prefixed
10280         call.
10281         (Complete_Object_Operation): Diagnose properly an object that is not
10282         aliased when the corresponding controlling formal is an access
10283         parameter.
10284         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
10285         ambiguous calls in prefixed notation, where two primitives differ only
10286         in that the controlling argument of one is an access parameter.
10288         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
10289         whether a function that returns an unconstrained type can be inlined.
10290         (Process_Formals): Diagnose properly the illegal use of an incomplete
10291         type in the profile of an access_to_subprogram declaration.
10292         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
10293         operations are attached to the corresponding record.
10294         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
10295         When processing a primitive of a concurrent type which implements an
10296         interface change the type of all controlling formals to that of the
10297         corresponding record type.
10298         (Check_Synchronized_Overriding): Relax the conditional logic when trying
10299         to determine the tagged type to which a primitive belongs.
10300         (Check_Conventions): Capture condition to ignore a primitive operation
10301         (which is shared between the loop in Check_Conventions and the one in
10302         Check_Convention) in a new local function Skip_Check.
10303         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
10304         confusion with Check_Conventions' own Prim_Op local variable.
10305         (Create_Extra_Formals): Test for a tagged result type rather than a
10306         controlling result when determining whether to add a BIP_Alloc_Form
10307         formal and a BIP_Final_List formal to the function.
10308         (Check_Conformance); For parameters that are anonymous access types,
10309         subtype conformance requires that the not null and the constant
10310         indicators must match
10311         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
10312         to retrieve the appropriate type when processing a concurrent type
10313         declared within a generic. Minor comment reformatting. Change invocation
10314         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
10315         mitive.
10316         (Analyze_Subprogram_Body): If the return type of a function is an
10317         anonymous access to the limited view of a class-wide type, and the
10318         non-limited view of the type is available, update the type of the
10319         function so that code can be generated.
10320         (Process_Formals): In case of access-subtype itype whose designated
10321         type is also an itype (situation that happens now with access to
10322         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
10323         attribute to avoid backend problems.
10324         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
10325         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
10326         anonymous types' designated types are same before testing
10327         Subtypes_Statically_Match.
10328         (Create_Extra_Formals): Test for a named access parameter that is a
10329         controlling formal as an additional condition for adding an
10330         accessibility level formal. This can occur in the subp type created for
10331         dispatching calls in Expand_Dispatching_Call, and allows calling
10332         Create_Extra_Formals from that procedure rather than special-casing the
10333         extra formals there.
10334         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
10335         when the function has a controlling result.
10336         (Check_Returns): Add much more knowledge of the optimization of local
10337         raise statements to gotos, to retain proper warnings in this case.
10338         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
10339         nodes when looking for last statement.
10341         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
10342         class-wide types visible through limited with clauses.
10343         (Add_One_Interp): If the operands are anonymous access types, the
10344         predefined operator on universal_access is immediately visibles
10345         (Find_Unique_Type): Handle anonymous access to subprogram types just as
10346         other anonymous access types.
10347         (Disambiguate): Take into account CIL convention.
10348         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
10350 2007-06-06  Robert Dewar  <dewar@adacore.com>
10352         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
10353         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
10354         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
10355         Fix lower bound of tables.
10356         Add rep clauses.
10358         * nlists.adb: Ditto.
10359         (Prev_Node, Next_Node): Change index type to Int so that it properly
10360         covers the range First_Node_Id - 1 up.
10362 2007-06-06  Javier Miranda  <miranda@adacore.com>
10363             Ed Schonberg  <schonberg@adacore.com>
10364             Bob Duff  <duff@adacore.com>
10365             Hristian Kirtchev  <kirtchev@adacore.com>
10367         * exp_aggr.ads, exp_aggr.adb: 
10368         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
10369         in extension aggregates.
10370         (Flatten): Other conditions being met, an aggregate is static if the
10371         low bound given by component associations is different from the low
10372         bound of the base index type.
10373         (Packed_Array_Aggregate_Handled): If the component type is itself a
10374         packed array or record, the front-end must expand into assignments.
10375         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
10376         Init_Pr, instead of Ancestor_Is_Expression.
10377         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
10378         coextension chain root, either generate a list controller or use the
10379         already existing one.
10380         (Static_Array_Aggregate): New procedure to construct a positional
10381         aggregate that can be handled by the backend, when all bounds and
10382         components are compile-time known constants.
10383         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
10384         types covering interface types into assignments.
10385         (Replace_Type): move to Build_Record_Aggr_Code.
10386         (Expand_Record_Aggr_Code): if the target of the aggregate is an
10387         interface type, convert to the definite type of the aggregate itself,
10388         so that needed components are visible.
10389         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
10390         components and the context is an extended return statement do not
10391         create a transient block for it, to prevent premature finalization
10392         before the return is executed.
10393         (Gen_Assign): Do not generate a call to deep adjust routine if the
10394         component type is itself an array of controlled (sub)-components
10395         initialized with an inner aggregate.
10396         (Component_Check): New name for Static_Check. This name is now more
10397         appropriate, and documentation is added which was missing.
10398         (Component_Check): Add test for bit aligned component value
10399         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
10400         Tagged_Comps, name is more appropriate given added function below.
10401         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
10403 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
10404             Javier Miranda  <miranda@adacore.com>
10405             Robert Dewar  <dewar@adacore.com>
10407         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
10408         Terminated: Add unchecked type conversion from System.Address to
10409         System.Tasking.Task_Id when calling the predefined primitive
10410         _disp_get_task_id.
10411         Disable new Ada 05 accessibility check for JVM.NET targets, which
10412         cannot be implemented in a practical way.
10413         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
10414         the sources always references the tag of the actual object. Therefore,
10415         if 'Tag is applied in the sources to class-wide interface objects we
10416         generate code that displaces "this" to reference the base of the object.
10417         (Expand_N_Attribute_Reference, case Size): Return specified size if
10418         known to front end.
10419         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
10420         has code that displaces the pointer of the object to manage interface
10421         types. However this code must not be executed when the prefix is a
10422         subprogram. This bug caused the wrong expansion of the internally
10423         generated assignment that fills the dispatch table when the primitive
10424         is a function returning a class-wide interface type.
10425         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
10426         Set_Attribute_Name for Name_Unaligned_Valid.
10428 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10429             Gary Dismukes  <dismukes@adacore.com>
10431         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
10432         If the initialization is the equivalent aggregate of the initialization
10433         procedure of the type, do not remove it.
10434         (Expand_N_Attribute_Definition_Clause): Exclude access variables
10435         initialized to null from having their expression reset to empty and
10436         note this exception in the comment.
10438 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
10439             Robert Dewar  <dewar@adacore.com>
10440             Ed Schonberg  <schonberg@adacore.com>
10441             Gary Dismukes  <dismukes@adacore.com>
10443         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
10444         Add "with" and "use" clauses for Sem_Attr.
10445         (Expand_Current_Value): Do not replace occurences of attribute
10446         references where the prefix must be a simple name.
10448         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
10449         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
10450         Attribute_Requires_Simple_Name_Prefix.
10451         (Name_Modifies_Prefix): Body of new function.
10452         (Requires_Simple_Name_Prefix): Body of new function.
10453         (Resolve_Attribute, case Access): Improve error message for case of
10454         mismatched conventions.
10455         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
10456         incomplete type.
10457         (Analyze_Attribute, case 'Access): If the type of the prefix is a
10458         constrained subtype for a nominal unconstrained type, use its base type
10459         to check for conformance with the context.
10460         (Resolve_Attribute): Remove test of the access type being associated
10461         with a return statement from condition for performing accessibility
10462         checks on access attributes, since this case is now captured by
10463         Is_Local_Anonymous_Access.
10464         (Analyze_Access_Attribute): Set Address_Taken on entity
10465         (Analyze_Attribute, case Address): Set Address_Taken on entity
10466         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
10467         validating an access attribute whose prefix is a current instance.
10468         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
10469         applied to dispatching operations, if freezing is required then we set
10470         the attribute Has_Delayed_Freeze in the prefix's entity.
10471         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
10472         current scope if access of local subprogram taken
10473         (Analyze_Access_Attribute): Check legality of self-reference even if the
10474         expression comes from source, as when a single component association in
10475         an aggregate has a box association.
10476         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
10477         the prefix if it is a protected operation and the attribute is
10478         Unrestricted_Access.
10479         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
10480         reference to the base type of the context, to force a constraint check
10481         when the context is an access subtype with an explicit constraint.
10482         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
10483         node is rewritten as an interface conversion. leave unanalyzed after
10484         resolution, to ensure that type checking against the context will take
10485         place.
10487 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10488             Javier Miranda  <miranda@adacore.com>
10489             Robert Dewar  <dewar@adacore.com>
10491         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
10492         wrapper when the full view of the controlling type of an inherited
10493         function that dispatches on result implements interfaces.
10494         (Expand_N_Object_Declaration): In cases where the type of the
10495         declaration is anonymous access, create finalization list for it.
10496         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
10497         if the object has no explicit initialization, to match description of
10498         functionality of pragam Persistent_BSS.
10499         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
10500         new function to build static aggregates, to replace initialization call
10501         when static initialization is desired.
10502         (Freeze_Type): Generate a list controller for an access type whenever
10503         its designated type has controlled anonymous access discriminants.
10504         (Build_Equivalent_Aggregate): New procedure to compute a static
10505         aggregate to be used as default initialization for composite types,
10506         instead of a generating a call to the initialization procedure for the
10507         type.
10508         (Build_Initialization_Call): When available, replace a call to the
10509         initialization procedure with a copy of the equivalent static aggregate
10510         for the type.
10511         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
10512         declarations for objects of a class-wide interface type, rather than
10513         just identifiers, to prevent visibility problems.
10514         (Expand_N_Object_Declaration): When expanding the declaration for an
10515         object of a class-wide interface type, preserve the homonym chain of
10516         the original entity before exchanging it with that of the generated
10517         renaming declaration.
10518         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
10519         active, because there is no way to handle the exception.
10520         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
10521         to do a minimum decoration of the Access_Disp_Table list.
10522         (Expand_Record_Controller): Avoid the addition of the controller between
10523         the component containing the tag of a secondary dispatch table and its
10524         adjacent component that stores the offset to the base of the object.
10525         This latter component is only generated when the parent type has
10526         discriminants ---documented in Add_Interface_Tag_Components).
10527         (Apply_Array_Size_Check): Removed, no longer needed.
10528         (Expand_N_Full_Type_Declaration): If the type has anonymous access
10529         components, create a Master_Entity for it only if it contains tasks.
10530         (Build_Init_Procedure): Suppress the tag assignment compiling under
10531         no run-time mode.
10532         (Freeze_Record_Type): Remove code associated with creation of dispatch
10533         table.
10534         (Init_Secondary_Tags): Update type of actuals when generating calls to
10535         Ada.Tags.Set_Offset_To_Top
10536         (Stream_Operation_OK): Disable use of streams compiling under no
10537         run-time mode
10538         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
10539         if Has_Init_Expression set.
10540         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
10541         Register_Primitive, which provides the same functionality.
10542         (Requires_Init_Proc): Return false in case of interface types.
10543         (Add_Secondary_Tables): Use the new attribute Related_Interface to
10544         cleanup the code.
10545         (Predefined_Primitive_Freeze): Do not assume that an internal entity
10546         is always associated with a predefined primitive because the internal
10547         entities associated with interface types are not predefined primitives.
10548         Therefore, the call to Is_Internal is replaced by a call to the
10549         function Is_Predefined_Dispatching_Operation.
10550         (Make_Eq_If): When generating the list of comparisons for the
10551         components of a given variant, omit the controller component that is
10552         present if the variant has controlled components.
10554 2007-06-06  Javier Miranda  <miranda@adacore.com>
10555             Hristian Kirtchev  <kirtchev@adacore.com>
10556             Bob Duff  <duff@adacore.com>
10558         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
10559         handle the creation of finalization lists and calls for nested
10560         coextensions when the root of the chains is part of a return statement.
10561         (Inside_A_Return_Statement): New function inside Complete_Coextension_
10562         Finalization.
10563         (Expand_Record_Equality): Skip components that are interface types.
10564         (Displace_Allocator_Pointer): Add missing support for interface subtypes
10565         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
10566         with Rewrite_Coextension. Change the condition for detecting coextension
10567         root nodes.
10568         (Is_Local_Access_Discriminant): Removed.
10569         (Rewrite_Coextension): New routine which rewrites a static coextension
10570         as a temporary and uses its unrestricted access in the construction of
10571         the outer object.
10572         (Complete_Coextension_Finalization): New routine. Generate finalization
10573         attachment calls to all delayed coextensions.
10574         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
10575         the allocator is not a coextension itself and has delayed coextensions.
10576         If the current allocator is controlled, but also a coextension, delay
10577         the generation of the finalization attachment call.
10578         Rename local variable "Node" to "Nod" in order to avoid confusion with
10579         "Elists.Node".
10580         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
10581         limited types that are not inherently limited. Such an allocator is
10582         illegal, but is generated by the expander for a return statement, to
10583         copy the result onto the secondary stack. This is the only case where a
10584         limited object can be copied. Generate code to displace the pointer
10585         to the object if the qualified expression is a class-wide interface
10586         object. Such displacement was missing and hence the copy of the object
10587         was wrong.
10588         (Apply_Accessibility_Check): Handle allocated objects initialized in
10589         place.
10590         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
10591         and Expand_Allocator_Expression. Allocating class-wide interface objects
10592         this routine displaces the pointer to the allocated object to reference
10593         the component referencing the corresponding secondary dispatch table.
10594         Expand_Allocator_Expression): Add missing support to allocate class-wide
10595         interface objects initialized with a qualified expression.
10596         (Get_Allocator_Final_List): Test for an anonymous access type that is a
10597         function result type, and use the finalization list associated with the
10598         function scope in that case (such an anonymous type should not be
10599         treated like an access parameter's type).
10601 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10602             Gary Dismukes  <dismukes@adacore.com>
10603             Javier Miranda  <miranda@adacore.com>
10605         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
10606         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
10607         required exception handler.
10608         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
10609         properly the case of a function whose return type is a limited
10610         class-wide interface type. Modify the code of the accessibility
10611         check to handle class-wide interface objects. In this case we need to
10612         displace "this" to reference the primary dispatch table to get access
10613         to the TSD of the object (to evaluate its accessibility level).
10614         (Expand_N_Extended_Return_Statement): Test for a tagged result type
10615         rather than a controlling result as one of the conditions for
10616         generating tests of the implicit BIP_Alloc_Form formal. The
10617         initialization assignment is also handled according to whether the
10618         result is tagged instead of controlling.
10619         In the case where the init assignment is inserted in the "then" part of
10620         the allocation conditional, rewrite the target to be a dereference of
10621         the implicit BIP_Object_Access formal.
10622         If the returned value is unconstrained and created on the secondary
10623         stack, mark the enclosing block and function so that the secondary
10624         stack is not reclaimed on return.
10625         Treat returns from functions with controlling results similarly to
10626         returns from functions with unconstrained result subtypes.
10627         If the object returned is unconstrained, and an allocator must be
10628         created for it, analyze the allocator once the block for the extended
10629         return is installed, to ensure that finalizable components
10630         of the expression use the proper finalization list. Guard the call to
10631         Move_Final_List with a check that there is something to finalize.
10632         (Make_Tag_Ctrl_Assignment): Use "old" handling
10633         of controlled type assignment for virtual machines, since new code uses
10634         unsupported features (such as direct access to bytes in memory).
10636 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
10637             Ed Schonberg  <schonberg@adacore.com>
10639         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
10640         accessibility actual, check for the case of an aliased object that has
10641         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
10642         we fall into processing for the attribute rather than the name of the
10643         object.
10644         (Expand_Inline_Call): If an actual is a literal, and the corresponding
10645         formal has its address taken in the body, create a temporary to capture
10646         value.  If the return type is a limited interface, do not treat the
10647         return value as Controlled.
10648         (Is_In_Place_Function):  If the return type is a limited interface,
10649         treat as returning in place. The actual returned object may not always
10650         be limited, but the caller has to assume that it is returned in place.
10651         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
10652         context of an allocator, use the correct finalization chain (that is,
10653         the chain belonging to the access type, rather than the chain belonging
10654         to the current scope).
10655         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
10656         result type rather than a controlling result as a precondition for
10657         adding an allocation form actual to a build-in-place call.
10658         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
10659         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
10660         primitive in the dispatch tables. This work is now done by Make_DT when
10661         the type is frozen.
10662         (Register_Predefined_DT_Entry): Removed.
10663         (Add_Return): If end label is not present, use sloc of last statement
10664         for generated return statement in procedure, for better gdb behavior
10665         on expanded code.
10666         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
10667         object address nodes to ensure proper processing by routines like
10668         Insert_After*.
10669         (Expand_Call): Fix generation of validity check for parameter
10670         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
10671         the allocation form parameter if the result subtype is constrained,
10672         except when the function has a controlling result.
10673         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
10674         rather than Is_Controlled and Has_Controlled_Component, since we want to
10675         include class-wide result types in this treatment. Also test for a
10676         controlling result, since that also requires passing a finalization
10677         list.
10678         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
10679         even when the result subtype is constrained, to handle calls involving
10680         controlling results.
10681         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
10682         is now called even when the result subtype is constrained, to handle
10683         calls involving controlling results.
10684         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
10685         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
10686         now performs the test).
10687         (Make_Build_In_Place_Call_In_Object_Declaration):
10688         Add_Alloc_Form_Actual_* is now called even when the result subtype is
10689         constrained, to handle calls involving controlling results.
10690         (Add_Return): Accomodate rewritten pattern from local raise to goto
10691         transformation, so that we still recognize an transfer statement
10692         and do the right thing here in that case.
10693         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
10694         and end of subprogram code.
10695         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
10696         support for primitives that are functions (without formals) with a
10697         controlling result.
10698         (Inherited_From_Formal): If the actual subtype has not generic parent
10699         type, it is not an actual for a formal derived type, and there is no
10700         operation to inherit from the formal.
10702 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10703             Thomas Quinot  <quinot@adacore.com>
10705         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
10706         inserted cleanup code appropriately for GDB use.
10707         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
10708         exception handler for Deep_Adjust or Deep_Finalize.
10709         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
10710         Raise_From_Controlled_Operation is available, use a call to that
10711         subprogram instead of a plain "raise Program_Error" node to raise
10712         Program_Error if an exception is propagated from an Adjust or Finalize
10713         operation.
10714         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
10715         appears in the optional statement list of a triggering alternative, the
10716         scope actions can be inserted directly there, and not in the list that
10717         includes the asynchronous select itself.
10719 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10720             Robert Dewar  <dewar@adacore.com>
10721             Hristian Kirtchev  <kirtchev@adacore.com>
10723         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
10724         generated exception handler appropriately when debugging generated code.
10725         Deal properly with No_Exception_Propagation restriction mode.
10726         (Expand_N_Abort_Statement): Add an unchecked type conversion from
10727         System.Address to System.Tasking.Task_Id when processing the result of
10728         the predefined primitive _disp_get_task_id.
10729         (Expand_N_Asynchronous_Select): Clarify comment.
10730         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
10731         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
10732         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
10733         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
10734         privals and for generated call to Complete_Entry_Body, for better gdb
10735         behavior.
10736         (Copy_Result_Type): Utility to construct a parameter and result profile
10737         for protected functions whose return type is an anonymous access to
10738         subprogram.
10739         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
10740         call the above.
10741         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
10742         point when the local-raise-to-goto transformation has taken place.
10744 2007-06-06  Javier Miranda  <miranda@adacore.com>
10745             Nicolas Setton  <setton@adacore.com>
10747         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
10748         functionality when the backend is generating code.
10749         Otherwise any serious error
10750         reported by the backend calling the frontend routine Error_Msg
10751         changes the Compilation_Mode to Check_Semantics, disables the
10752         functionality of this routine and causes the generation of
10753         spureous additional errors.
10755         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
10756         debugging information now generated by the compiler for fat-pointer
10757         types.
10758         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
10759         DWARF2/3.
10760         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
10762 2007-06-06  Thomas Quinot  <quinot@adacore.com>
10764         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
10765         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
10766         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
10767         For a remote call to a function with a classwide return type, apply an
10768         E.4(18) check to the returned value.
10769         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
10770         stream attributes of the designated type of an RACW, as they are not
10771         dispatching primitive operations.
10773 2007-06-06  Geert Bosch  <bosch@adacore.com>
10775         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
10776         negative literal
10777         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
10778         positive
10779         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
10780         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
10781         positive
10782         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
10784 2007-06-06  Javier Miranda  <miranda@adacore.com>
10786         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
10787         attribute compiling package Ada.Tags under No_Run_Time_Mode.
10789 2007-06-06  Javier Miranda  <miranda@adacore.com>
10791         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
10792         deallocation of class-wide interface objects.
10793         (Expand_Dispatching_Constructor_Call): Take into account that if the
10794         result of the dispatching constructor is an interface type, the
10795         function returns a class-wide interface type; otherwise the returned
10796         object would be actual. The frontend previously accepted returning
10797         interface types because Expand_Interface_Actuals silently performed
10798         the management of the returned type "as if" it were a class-wide
10799         interface type.
10800         (Expand_Dispatching_Constructor_Call): Replace call to
10801         Make_DT_Access_Action by direct call to Make_Function_Call.
10803 2007-06-06  Robert Dewar  <dewar@adacore.com>
10804             Ed Schonberg  <schonberg@adacore.com>
10806         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
10807         compute masking constant, since we now set Esize properly to the
10808         underlying size.
10809         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
10810         to match the alignment.
10811         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
10812         packed arrays of 8 bits or less.
10814         * freeze.adb (Freeze_Entity): When freezing the formals of a
10815         subprogram, freeze the designated type of a parameter of an access type
10816         only if it is an access parameter.
10817         Increase size of C convention enumeration object
10818         (Freeze_Entity, array type case): Make sure Esize value is properly
10819         adjusted for the alignment if it is known.
10820         (Freeze_Entity, array type case): When checking bit packed arrays for
10821         the size being incorrect, check RM_Size, not Esize.
10822         (Freeze_Record_Type): Check for bad discriminated record convention
10823         (In_Exp_Body): Return true if the body is generated for a subprogram
10824         renaming, either an attribute renaming or a renaming as body.
10825         (Check_Itype): If the designated type of an anonymous access component
10826         is a non-protected subprogram type, indicate that it is frozen, to
10827         prevent out-of-scope freeze node at some subsequent call.
10828         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
10829         only if the subprogram is neither imported nor exported, as well as the
10830         NCA descriptor class if the subprogram is exported.
10832 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10833             Arnaud Charlet  <charlet@adacore.com>
10834             Robert Dewar  <dewar@adacore.com>
10835             Gary Dismukes  <dismukes@adacore.com>
10837         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
10838         default initialization on an imported object, when there is no
10839         initialization call generated for it.
10840         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
10841         restriction
10843         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
10844         Static_Elaboration_Desired.
10845         Remove pragma Thread_Body.
10846         Implement a new pragma No_Body
10847         Removes the Explicit_Overriding pragma
10848         Remove Optional_Overriding pragma
10849         (Prag): Deal with Universal_Aliasing.
10850         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
10851         Pragma_CIL_Constructor): New names.
10853         * sem_cat.adb (Validate_Object_Declaration): An initialization that
10854         uses the equivalent aggregate of a type must be treated as an implicit
10855         initialization.
10856         (Get_Categorization): Check a unit for pragma Preelaborate only if it
10857         has none of the other categories.
10858         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
10859         to apply Import to an object renaming declaration.
10861         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
10862         from a C++ class should be declared as limited and that it will be
10863         considererd limited.
10864         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
10865         should be declared as limited and that it will be considererd limited.
10866         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
10867         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
10868         (Analyze_Pragma): Deal with Universal_Aliasing.
10869         (Sig_Flags): Likewise.
10870         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
10871         (Overflow_Checks_Unsuppressed): New flag.
10872         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
10873         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
10874         case of JVM or .NET targets, and compiling user code.
10875         Add debugging convenience routine rv
10877 2007-06-06  Robert Dewar  <dewar@adacore.com>
10879         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
10880         are interface type.
10881         (Build_Elementary_Input_Call): For floating-point use right type in the
10882         absence of strange size or stream size clauses.
10883         (Build_Elementary_Write_Call): Same fix
10884         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
10885         set to value that does not match base type size.
10887 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10889         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
10890         object of a limited type can be initialized with a call to a function
10891         that returns in place. If the limited type has unknown discriminants,
10892         and the underlying type is a constrained composite type, build an actual
10893         subtype from the function call, as is done for private types.
10894         (Side_Effect_Free): An expression that is the renaming of an object or
10895         whose prefix is the renaming of a object, is not side-effect free
10896         because it may be assigned through the renaming and its value must be
10897         captured in a temporary.
10898         (Has_Controlled_Coextensions): New routine.
10899         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
10900         as is done for other limited types.
10901         (Non_Limited_Designated_Type): new predicate.
10902         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
10903         objects.
10904         Remove all handling of with_type clauses.
10906         * par-ch10.adb: Remove all handling of with_type clauses.
10908         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
10909         checksum if the main source could not be parsed.
10910         (Loat_Unit): When processing a child unit, determine properly whether
10911         the parent unit is a renaming when the parent is itself a child unit.
10912         Remove handling of with_type clauses.
10914         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
10915         (Set_Is_Static_Coextension): New procedure.
10916         (Has_Local_Raise): New function
10917         (Set_Has_Local_Raise): New procedure
10918         (Renaming_Exception): New field
10919         (Has_Init_Expression): New flag
10920         (Delay_Finalize_Attach): Remove because flag is obsolete.
10921         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
10922         Remove all handling of with_type clauses.
10923         (Exception_Junk): Can now be set in N_Block_Statement
10925 2007-06-06  Vincent Celier  <celier@adacore.com>
10926             Robert Dewar  <dewar@adacore.com>
10928         * frontend.adb (Frontend): Return immediately if the main source could
10929         not be parsed, because of preprocessing errors.
10931         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
10932         (Gnat1drv): Exit with errors if the main source could not be parsed,
10933         because of preprocessing errors.
10934         (Check_Rep_Info): New procedure
10936 2007-06-06  Robert Dewar  <dewar@adacore.com>
10938         * g-hesorg.ads, g-heasor.ads,
10939         g-busorg.ads, g-bubsor.ads: Update documentation
10940         GNAT.Heap/Bubble_Sort_G is now pure
10942 2007-06-06  Robert Dewar  <dewar@adacore.com>
10944         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
10946 2007-06-06  Robert Dewar  <dewar@adacore.com>
10947             Ed Schonberg  <schonberg@adacore.com>
10949         * g-comlin.ads, g-comlin.adb: 
10950         Add new warning for renaming of function return objects
10952         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
10953         (Tree_Read): Use size of object instead of type'object_size, since the
10954         latter is incorrect for packed array types.
10955         (Tree_Write): Same fix
10957         * opt.ads: Add new warning for renaming of function return objects
10958         (Generating_Code): New boolean variable used to indicate that the
10959         frontend as finished its work and has called the backend to process
10960         the tree and generate the object file.
10961         (GCC_Version): Is now private
10962         (Static_Dispatch_Tables): New constant declaration.
10963         (Overflow_Checks_Unsuppressed): New flag.
10964         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
10965         (List_Closure): New flag for gnatbind (-R)
10966         Zero_Formatting: New flag for gnatbind (-Z)
10967         (Special_Exception_Package_Used): New flag.
10968         (Warn_On_Unrepped_Components): New flag.
10970         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
10971         unit is a compilation unit, rather than relying on its scope, so that
10972         Standard can be renamed.
10973         (Analyze_Object_Renaming): Add new warning for renaming of function
10974         return objects.
10975         Also reject attempt to rename function return object in Ada 83 mode.
10976         (Attribute_Renaming): In case of tagged types, add the body of the
10977         generated function to the freezing actions of the type.
10978         (Find_Type): A protected type is visible right after the reserved word
10979         "is" is encountered in its type declaration. Set the entity and type
10980         rather than emitting an error message.
10981         (New_Scope): Properly propagate Discard_Names to inner scopes
10982         (Check_Nested_Access): New procedure.
10983         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
10984         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10986         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
10987         Add new warning for renaming of function return objects
10988         (Check_References): Suppress warnings for objects whose type or
10989         base type has Warnings suppressed.
10990         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
10991         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
10993 2007-06-06  Vincent Celier  <celier@adacore.com>
10994             Emmanuel Briot  <briot@adacore.com>
10995             Olivier Hainque  <hainque@adacore.com>
10997         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
10998         absolute value of Header.Block_Size when displaying the freed physical
10999         memory in traces.
11000         (Allocate): Compute Storage_Address using Integer_Address, not
11001         Storage_Offset, because the range of Storage_Offset may not be large
11002         enough.
11003         (Configure): New parameter Low_Level_Traces
11004         (Allocate, Deallocation, Free_Physically): Added low-level traces
11005         (Configure): new parameter Errors_To_Stdout.
11006         (Output_File): new subprogram
11007         (Deallocate, Dereference): Send error messages to the proper stream
11008         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
11009         documented. Previous code would send it to the current output file
11010         defined in GNAT.IO, which might not be stdout
11011         (Is_Valid): Adjust comment to mention that a positive reply means that
11012         Header_Of may be used to retrieve the allocation header associated with
11013         the subprogram Storage address argument. Return False early if this
11014         address argument is misaligned.
11016 2007-06-06  Vincent Celier  <celier@adacore.com>
11018         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
11019         switch -P
11020         (ASIS_Main): New global variable
11021         (Get_Closure): New procedure
11022         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
11023         check, metric or pretty. Call Get_Closure in this case.
11024         (Check_Files): For GNAT LIST, check all sources of all projects when
11025         All_Projects is True.
11026         (GNATCmd): Accept -U for GNAT LIST
11028 2007-06-06  Vincent Celier  <celier@adacore.com>
11030         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
11031         has been specified
11032         Correct error message when invocation of the linker fails
11033         Add explicit size clause for the C imported variables
11034         Object_List_File_Supported and Using_GNU_Linker to emphasize that
11035         we expect char size.
11036         Read target parameters earlier, since this is needed to set
11037         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
11038         targets.
11040 2007-06-06  Vincent Celier  <celier@adacore.com>
11042         * gnatls.adb: 
11043         Add 3 spaces before the default project directory when displaying
11044         the project search path.
11045         Add new command line switch '-l' to display license information.
11047 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
11049         * gmem.c: Add support for timestamps on memory operations.
11051         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
11052         operations (not used currently, just foundation for future
11053         enhancements). Add possibility to perform full dump of gmem.out file.
11054         (Print_Back_Traces): Declare accesses to root arrays constants since
11055         they aren't modified.
11056         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
11058 2007-06-06  Vincent Celier  <celier@adacore.com>
11060         * gnatsym.adb: Update Copyright notice
11061         (Parse_Cmd_Line): Accept new switch -D
11062         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
11063          file.
11065         * prj.ads (Policy): New policy Direct
11066         (Yes_No_Unknown): New enumeration type
11067         (Project_Data): New component Libgnarl_Needed
11069         * prj-nmsc.adb (Check_For_Source): When recording a source file make
11070         use the untouched pathname casing.
11071         (Get_Directories): Ensure that the Display_Exec_Directory is using the
11072         proper casing on non case-sensitive platforms like Windows.
11073         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
11074         on all platforms, as it is not possible to know which one is allowed
11075         before processing the project files.
11076         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
11077         specified when symbol policy is Direct. Check that when there is a
11078         symbol file defined (either by default or with attribute
11079         Library_Symbol_File) it is not the same as the reference symbol file.
11080         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
11081         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
11082         extending projects.
11083         (Record_Ada_Source): Record a source that has been locally removed in an
11084         imported project.
11086         * symbols.ads (Policy): New policy Direct
11088         * symbols-vms.adb (Initialize): Take new policy Direct in case
11089         statement
11091 2007-06-06  Vincent Celier  <celier@adacore.com>
11093         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
11094         Correct obvious bug (return Dir; instead of return Directory;).
11095         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
11097 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11099         * g-pehage.adb (Produce): Open output files in Binary mode, so that
11100         they have UNIX line endings (LF only) even on Windows, and thus pass
11101         all GNAT style checks.
11103 2007-06-06  Emmanuel Briot  <briot@adacore.com>
11105         * g-regpat.adb (Quote): Fix improper quoting of '.'
11107 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11109         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
11110         default, set False on a per-runtime basis.
11111         (Need_Netdb_Buffer): New constant.
11113         * g-socket.ads, g-socket.adb: Import new package
11114         GNAT.Sockets.Thin.Task_Safe_NetDB.
11115         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
11116         binding to obtain proper message.
11117         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
11118         Replace various occurrences of Arry (Arry'First)'Address with the
11119         equivalent Arry'Address (GNAT always follows implementation advice from
11120         13.3(14)).
11121         (Get_Host_By_Address, Get_Host_By_Name,
11122         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
11123         instead, rely on platform-specific task safe netdb operations provided
11124         by g-socthi.
11126         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
11127         parameter Process_Blocking_IO.
11128         (Host_Error_Messages): Add stub body.
11129         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11130         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
11131         Safe_Getservbyport): Move functions into new child package
11132         Task_Safe_NetDB.
11133         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
11134         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
11135         (In_Addr): Add alignment clause.
11137 2007-06-06  Robert Dewar  <dewar@adacore.com>
11139         * g-trasym.ads, g-traceb.ads: Update list of supported targets
11140         Add note about symbolic traceback
11142 2007-06-06  Pascal Obry  <obry@adacore.com>
11144         * hostparm.ads (Normalized_CWD): Use the host directory separator
11145         instead of the hardcoded forward slash which is not the proper
11146         character on Windows for example.
11147         (Java_VM): Removed.
11149 2007-06-06  Vincent Celier  <celier@adacore.com>
11150             Arnaud Charlet  <charlet@adacore.com>
11152         * a-clrefi.adb, a-clrefi.ads: New files
11154         * impunit.adb: Add s-os_lib in the list of user visible units.
11155         (Non_Imp_File_Names_95): Add a-clrefi to this list
11156         Remove obsolete run-time entries.
11157         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
11158          "a-exetim" -- Ada.Execution_Time
11159          "a-extiti" -- Ada.Execution_Time.Timers
11161         * mlib-prj.ads, mlib-prj.adb
11162         (Build_Library): Use untouched object dir and library dir. At the
11163         same time makes sure that the checks are done using the canonical
11164         form. Removes hard-coded directory separator and use the proper host
11165         one instead.
11166         (Process_Project): Do not look in object directory to check if libgnarl
11167         is needed for a library, if there is no object directory.
11168         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
11169         linking.
11170         (Build_Library): When invoking gnatbind, use a response file if the
11171         total size of the arguments is too large.
11173         * Makefile.rtl: (g-sttsne): New object file.
11174         Add entry for a-clrefi, s-utf_32, System.Exceptions
11176         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
11177         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
11178         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
11179         Change g-string to s-string, g-os_lib to s-os_lib
11180         Change all g-utf_32 references to s-utf_32
11182 2007-06-06  Tristan Gingold  <gingold@adacore.com>
11183             Olivier Hainque  <hainque@adacore.com>
11185         * init.c: Do not adjust IP of an imported VMS exception of ia64.
11186         LIB$STOP is called to raise an exception and the IP of the exception
11187         is the instruction right after the call.
11188         (__gnat_adjust_context_for_raise, AIX): Implement.
11189         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
11190          adjust_context_for_raise before Raise_From_Signal_Hanler.
11191         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
11192         siginfo is passed to the handler, necessary to let the zcx propagation
11193         engine unwind past it.
11195 2007-06-06  Olivier Hainque  <hainque@adacore.com>
11197         * initialize.c (__gnat_initialize for vxworks):  Update documentation
11198         on the ZCX support, using different sets of crtstuff objects than with
11199         GCC 3.4.
11201 2007-06-06  Robert Dewar  <dewar@adacore.com>
11203         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
11204         spec from body
11205         (Layout_Type): Fix recomputation of size from alignment.
11207 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11208             Javier Miranda  <miranda@adacore.com>
11210         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
11211         association in an instance.
11212         (Copy_Generic_Node): If the node is a string literal, no need to copy
11213         its descendants.
11214         (Is_Generic_Formal): For a formal subprogram, the declaration is the
11215         grandparent of the entity.
11216         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
11217         to simplify handling of formal interfaces that derive from other formal
11218         interfaces.
11219         (Instantiate_Subprogram_Body): The defining unit name of the body of
11220         the instance should be a defining identifier.
11221         (Install_Formal_Packages): make global to the package, for use in
11222         instantiations of child units.
11223         (Analyze_Package_Instantiation): Do not attempt to set information on an
11224         enclosing master of an entry when expansion is disabled.
11225         (Instantiate_Type): If the actual is a tagged synchronized type and the
11226         generic ancestor is an interface, create a generic actual for the
11227         corresponding record.
11228         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
11229         declaration, to ensure that the interface list is processed correctly.
11230         (Inline_Instance_Body): If enclosing scope is an instance body, remove
11231         its entities from visibiility as well.
11232         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
11233         given with a named association, analyze the expression only, not the
11234         discriminant association itself.
11235         (Reset_Entity): If the analysis of a selected component is transformed
11236         into an expanded name in the prefix of a call with parameters, do not
11237         transform the original node into an expanded name, to prevent visibility
11238         errors in the case of nested generics.
11239         (Check_Private_View): For an array type, check whether the index types
11240         may need exchanging.
11242 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11243             Vincent Celier  <celier@adacore.com>
11245         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
11246         since both are separated.
11247         Add support for imported CIL packages.
11248         Add further special handling of "value_type" for CIL.
11249         Add special handling of pragma Import for CIL.
11251         * make.ads, make.adb: When switch -eS is used, direct all outputs to
11252         standard output instead of standard error, except errors.
11253         (Absolute_Path): Use untouched casing for the parent directory.
11254         (Add_Library_Search_Dir): Use the untouched directory name.
11255         (Add_Source_Search_Dir): Idem.
11256         (Change_To_Object_Directory): Update output to use proper casing.
11257         (Create_Binder_Mapping_File): Use the untouched filename to set
11258         ALI_Name.
11259         (Gnatmake): Use untouched library and executable directory names.
11260         (Insert_Project_Sources): Use untouched filename for spec and body.
11261         (Is_In_Object_Directory): Use untouched object directory.
11262         (Mark_Directory): Idem.
11263         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
11264         contains the non-canonical filename in all cases.
11265         (Change_To_Object_Directory): In verbose mode, display the name of the
11266         object directory we're changing to.
11267         (Compile_Sources): Make sure, when a project file is used, to compile
11268         the body of the unit, when there is one, even when only the spec is
11269         recorded in an ALI file.
11270         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
11271         spec to the body.
11272         (Report_Compilation_Failed): New procedure
11273         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
11274         procedures moved from the spec to the body.
11275         (Extract_Failure): Removed, not used
11276         Replace explicit raises of exception Bind_Failed and Link_Failed with
11277         calls to Make_Failed with the proper message.
11278         Replace explicit raises of exception Compilation_Failed with calls to
11279         procedure Report_Compilation_Failed.
11280         (Initialize): Create mapping files unconditionally when using project
11281         files.
11283         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11284         Pragma_CIL_Constructor): New names.
11286         * targparm.ads, targparm.adb
11287         (Compiler_System_Version): Removed, no longer used.
11288         (Get_Target_Parameters): Relax checks on system.ads validity. Add
11289         handling of two new system flags: JVM and CLI.
11291 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
11292             Arnaud Charlet  <charlet@adacore.com>
11294         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
11295         time, use the default s-interr body that provides interrupt support
11296         based on signals.
11297         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
11298         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
11299         g-soccon.ads, and s-taprop.adb for the marte run time.
11300         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
11301         timers are supported on marte.
11302         (EH_MECHANISM for marte): Do not use ZCX.
11303         (THREADSLIB for marte): Use -lmarte.
11304         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
11305         Add mlib-tgt-specific.o to gnatmake objects
11306         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
11307         longer of MLib.Tgt.
11308         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
11309         6, either kernel or rtp, use a specialized version of s-osinte.ads.
11311 2007-06-06  Pascal Obry  <obry@adacore.com>
11313         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
11315 2007-06-06  Vincent Celier  <celier@adacore.com>
11317         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
11318         separator, use instead the proper host directory separator.
11319         (Copy_ALI_Files): Make sure that an already existing ALI file in the
11320         ALI copy dir is writable, before doing the copy.
11322         * mlib-utl.ads, mlib-utl.adb: 
11323         (Gcc): If length of command line is too long, put the list of object
11324         files in a response file, if this is supported by the platform.
11325         (Ar): If invocation of the archive builder is allowed to be done in
11326         chunks and building it in one shot would go above an OS dependent
11327         limit on the number of characters on the command line, build the archive
11328         in chunks.
11330 2007-06-06  Vincent Celier  <celier@adacore.com>
11332         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
11333         of specified object file is not equal to base name of source.
11335 2007-06-06  Javier Miranda  <miranda@adacore.com>
11336             Hristian Kirtchev  <kirtchev@adacore.com>
11337             Ed Schonberg  <schonberg@adacore.com>
11339         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
11340         the full type declaration.
11341         (Analyze_Component_Declaration): Add local variable E to capture the
11342         initialization expression of the declaration. Replace the occurences of
11343         Expression (N) with E.
11344         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
11345         limited interface object with a function call.
11346         (Array_Type_Declaration): If the declaration lacks subtype marks for
11347         indices, create a simple index list to prevent cascaded errors.
11348         (Is_Null_Extension): Ignore internal components created for secondary
11349         tags when checking whether a record extension is a null extension.
11350         (Check_Abstract_Interfaces): Add missing support for interface subtypes
11351         and generic formals.
11352         (Derived_Type_Declaration): Add missing support for interface subtypes
11353         and generic formals.
11354         (Analyze_Object_Declaration): If an initialization expression is
11355         present, traverse its subtree and mark all allocators as static
11356         coextensions.
11357         (Add_Interface_Tag_Component): When looking for components that may be
11358         secondary tags, ignore pragmas that can appear within a record
11359         declaration.
11360         (Check_Abstract_Overriding): an inherited function that dispatches on
11361         result does not need to be overriden if the controlling type is a null
11362         extension.
11363         (Mentions_T): Handle properly a 'class attribute in an anonymous access
11364         component declaration, when the prefix is an expanded name.
11365         (Inherit_Component): If the derivation is for a private extension,
11366         inherited components remain visible and their ekind should not be set
11367         to Void.
11368         (Find_Type_Of_Object): In the case of an access definition, always set
11369         Is_Local_Anonymous_Access. We were previously not marking the anonymous
11370         access type of a return object as a local anonymous type.
11371         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
11372         range with character literal bounds.
11373         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
11374         (Access_Subprogram_Declaration): Indicate that the type declaration
11375         depends on an incomplete type only if the incomplete type is declared
11376         in an open scope.
11377         (Analyze_Subtype_Declaration): Handle properly subtypes of
11378         synchronized types that are tagged, and that may appear as generic
11379         actuals.
11380         (Access_Subprogram_Declaration): An anonymous access to subprogram can
11381         appear as an access discriminant in a private type declaration.
11382         (Add_Interface_Tag_Components): Complete decoration of the component
11383         containing the tag of a secondary dispatch table and the component
11384         containing the offset to the base of the object (this latter component
11385         is only generated when the parent type has discriminants --as documented
11386         in this routine).
11387         (Inherit_Components): Use the new decoration of the tag components to
11388         improve the condition that avoids inheriting the components associated
11389         with secondary tags of the parent.
11390         (Build_Discriminanted_Subtype): Indicate to the backend that the
11391         size of record types associated with dispatch tables is known at
11392         compile time.
11393         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
11394         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
11395         to include task, protected, and synchronized interfaces as limited
11396         interfaces.
11397         (Process_Discriminants): Remove the setting of
11398         Is_Local_Anonymous_Access on the type of (anonymous) access
11399         discriminants of nonlimited types.
11400         (Analyze_Interface_Type_Declaration): Complete the decoration of the
11401         class-wide entity it is is already present. This situation occurs if
11402         the limited-view has been previously built.
11403         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
11404         field.
11405         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
11406         Related_Interface.
11408 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11410         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
11411         of the type that specify the position of interface tags when the type
11412         inherits discriminated array components from the parent type.
11413         If a component is initialized with a box, check for the presence of a
11414         default expression in its declaration before using its default
11415         initialization procedure.
11416         (Resolve_Record_Aggregate): If a component is box-initialized, and the
11417         component type has a discriminants, create a partial aggregate for it
11418         by copying the discriminants of the component subtype.
11419         Reject attempt to initialize a discriminant with a box.
11420         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
11421         associated with dispatch tables is known at compile time.
11422         (Get_Value): If an association in a record aggregate has a box
11423         association, and the corresponding record component has a default
11424         expression, always copy the default expression, even when the
11425         association has a single choice, in order to create a proper
11426         association for the expanded aggregate.
11428 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11429             Robert Dewar  <dewar@adacore.com>
11431         * par-ch12.adb (P_Generic_Associations): The source position of an
11432         Others association is that of the others keyword, not that of the token
11433         that follows the box.
11434         (P_Formal_Type_Definition): Handle formal access types that carry a
11435         not null indicator.
11437         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
11438         multiple identifier are present, save Scan_State before scanning the
11439         colon, to ensure that separate trees are constructed for each
11440         declaration.
11441         (P_Identifier_Declarations): For object declaration, set new flag
11442         Has_Init_Expression if initialization expression present.
11443         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
11444         Improve NOT NULL error messages
11446 2007-06-06  Robert Dewar  <dewar@adacore.com>
11448         * par-ch4.adb: (P_Name): Recover from literal used as name
11450 2007-06-06  Vincent Celier  <celier@adacore.com>
11452         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
11453         defaulted to False.
11454         In the "not" case, recursive call with Complemented set to True.
11455         Do not allow "or" or "and" operators when Complemented is True.
11457 2007-06-06  Vincent Celier  <celier@adacore.com>
11459         * prj.adb (Project_Empty): Gives default value for new component
11460         Libgnarl_Needed
11462         * prj-attr.ads: Minor reformatting
11464         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
11465         directory using the untouched casing.
11466         (For_All_Source_Dirs): Idem.
11468         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
11469         directories specified with switches -aP.
11470         (Add_Search_Project_Directory): New procedure
11471         (Initialize_Project_Path): Put the directories in table
11472         Search_Directories in the project search path.
11473         (Initialize_Project_Path): For VMS, transform into canonical form the
11474         project path.
11476 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11478         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
11479         true if configurable run-time or No_Run_Time is set.
11480         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
11481         processing an unit which is not the one being compiled.
11483 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11485         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
11486         Replace UC by Ada.UC
11488         * s-bitops.adb: Get rid of System.Pure_Exceptions.
11489         Replace UC by Ada.UC
11491 2007-06-06  Robert Dewar  <dewar@adacore.com>
11493         * scng.adb: (Check_End_Of_Line): Deal with very long lines
11495 2007-06-06  Robert Dewar  <dewar@adacore.com>
11497         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
11498         Remove no longer used nodes.
11500 2007-06-06  Javier Miranda  <miranda@adacore.com>
11501             Ed Schonberg  <schonberg@adacore.com>
11502             Robert Dewar  <dewar@adacore.com>
11504         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
11505         on obsolescent withed unit in case of limited-withed units.
11506         (Analyze_Compilation_Unit): Add guard to code that removed an
11507         instantiation from visibility, to prevent compiler aborts when
11508         instantiation is abandoned early on.
11509         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
11510         current unit being analyzed, and Distinguish local incomplete types
11511         from limited views of types declared elsewhere.
11512         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
11513         to state that the class-wide entity is shared by the limited-view
11514         and the full-view.
11515         (Analyze_With_Clause): Improve placement of flag for case of
11516         unimplemented unit.
11517         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
11518         manner similar to GNAT.Current_Exception. This is a violation of
11519         restriction (No_Exception_Propagation), and also inhibits the
11520         optimization of local raise to goto.
11521         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
11522         and if so set Most_Recent_Exception_Used flag in Opt, and also check
11523         for violation of restriction No_Exception_Propagation.
11525 2007-06-06  Javier Miranda  <miranda@adacore.com>
11526             Hristian Kirtchev  <kirtchev@adacore.com>
11527             Gary Dismukes  <dismukes@adacore.com>
11529         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
11530         use of entity Exception_Occurrence if it is not available in the
11531         target run-time.
11533         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
11534         concurrent types are declared within an Ada 2005 generic, build their
11535         corresponding record types since they are needed for overriding-related
11536         semantic checks.
11537         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
11538         protected type does not implement a task interface or a nonlimited
11539         interface.
11540         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
11541         type does not implement a protected interface or a nonlimited interface.
11542         (Single_Task_Declaration, Single_Protected_Declaration): use original
11543         entity for variable declaration, to ensure that debugging information
11544         is correcty generated.
11545         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
11546         routines if the expander is not active.
11547         (Analyze_Task_Body): Mark all handlers to stop optimization of local
11548         raise, since special things happen for task exception handlers.
11550         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
11551         concurrent types declared within a generic.
11552         (Check_Dispatching_Operation): Do not emit warning about late interface
11553         operations in the context of an instance.
11554         (Check_Dispatching_Call): Remove restriction against calling a
11555         dispatching operation with a limited controlling result.
11556         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
11557         Register_Interface_DT_Entry by calls to Register_Primitive.
11558         (Check_Dispatching_Formals): Handle properly a function with a
11559         controlling access result.
11561 2007-06-06  Robert Dewar  <dewar@adacore.com>
11562             Arnaud Charlet  <charlet@adacore.com>
11564         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
11565         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
11566         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
11567         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
11568         message when using a VM, since this attribute is not supported.
11569         (Analyze_Record_Representation_Clause): Give unrepped component warnings
11571         * usage.adb: Add new warning for renaming of function return objects
11572         Indicate that -gnatwp and -gnatwP concern front-end inlining
11573         Add line for -gnatyg
11574         Add usage information for -gnatw.c/C
11576 2007-06-06  Robert Dewar  <dewar@adacore.com>
11577             Ed Schonberg  <schonberg@adacore.com>
11579         * sem_ch5.adb
11580         (Find_Var): Do not consider function call in test for infinite loop
11581         warning if warnings set off for function entity.
11582         (One_Bound): Do not create a temporary for a loop bound if it is a
11583         character literal.
11584         (Analyze_Assignment): Traverse the right hand side of an assignment and
11585         mark all allocators as static coextensions.
11586         (Analyze_Assignment): Exempt assignments involving a dispatching call
11587         to a function with a controlling access result from the check requiring
11588         the target to be class-wide.
11590 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11591             Ed Schonberg  <schonberg@adacore.com>
11592             Robert Dewar  <dewar@adacore.com>
11593             Javier Miranda  <miranda@adacore.com>
11595         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
11596         chain of coextensions when an allocator serves as the root of such a
11597         chain.
11598         (Propagate_Coextensions): Remove the test for the root being an
11599         allocator.
11600         (Resolve_Allocator): Add condition to ensure that all future decoration
11601         occurs on an allocator node. Add processing and cleanup for static
11602         coextensions.
11603         (Valid_Conversion): If the operand type is the limited view of a
11604         class-wide type, use the non-limited view is available to determine
11605         legality of operation.
11606         (Ambiguous_Character): move to spec, for use elsewhere.
11607         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
11608         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
11609         character literals.
11610         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
11611         Do_Division_Check flag explicitly.
11612         (Resolve_Actuals): If the actual is of a synchronized type, and the
11613         formal is of the corresponding record type, this is a call to a
11614         primitive operation of the type, that is declared outside of the type;
11615         the actual must be unchecked-converted to the type of the actual
11616         (Resolve_Call): Kill all current values for any subprogram call if
11617         flag Suppress_Value_Tracking_On_Call is set.
11618         (Resolve_Type_Conversion): Generate error message the the operand
11619         or target of interface conversions come from a limited view.
11620         (Check_Infinite_Recursion): Ignore generated calls
11621         (Check_Allocator_Discrim_Accessibility): New procedure for checking
11622         that an expression that constrains an access discriminant in an
11623         allocator does not denote an object with a deeper level than the
11624         allocator's access type.
11625         (Resolve_Allocator): In the case of an allocator initialized by an
11626         aggregate of a discriminated type, check that associations for any
11627         access discriminants satisfy accessibility requirements by calling
11628         Check_Allocator_Discrim_Accessibility.
11629         (Resolve_Equality_Op): Handle comparisons of anonymous access to
11630         subprogram types in the same fashion as other anonymous access types.
11631         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
11632         message that is not a continuation message.
11633         (Resolve_Type_Conversion): Add missing support for conversion to
11634         interface type.
11635         (Resolve_Actuals): Introduce a transient scope around the call if an
11636         actual is a call to a function returning a limited type, because the
11637         resulting value must be finalized after the call.
11638         (Resolve_Actuals): If the call was given in prefix notations, check
11639         whether an implicit 'Access reference or implicit dereference must be
11640         added to make the actual conform to the controlling formal.
11642 2007-06-06  Robert Dewar  <dewar@adacore.com>
11643             Javier Miranda  <miranda@adacore.com>
11645         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
11646         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
11647         overriding of an inherited private subprogram now there is no need to
11648         inherit its dispatching slot and reduce the size of the dispatch table.
11649         Set_All_DT_Position now ensures that the same slot is now assigned to
11650         both entities. This is required to statically build the dispatch table.
11651         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
11652         of calling Set_All_DT_Position to re-evaluate the position of the
11653         entries in the dispatch table. Such reevaluation is not desired if
11654         the tagged type is already frozen.
11656 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
11657             Gary Dismukes  <dismukes@adacore.com>
11658             Robert Dewar  <dewar@adacore.com>
11659             Javier Miranda  <miranda@adacore.com>
11661         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
11662         reference acts as an lvalue when the attribute name modifies the prefix
11663         (Is_Coextension_Root): New routine.
11664         (Mark_Static_Coextensions): New routine.
11665         (Type_Access_Level): Revise code for checking the level of the
11666         anonymous access type of a return object.
11667         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
11668         (Matches_Prefixed_View_Profile): Remove the no longer necessary
11669         retrieval of the corresponding controlling record type.
11670         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
11671         concurrent types declared within a generic as well as class wide types.
11672         Emit a mode incompatibility error whenever a protected entry or routine
11673         override an interface routine whose first parameter is not of mode
11674         "out", "in out" or access to variable.
11675         (Overrides_Synchronized_Primitive): Rename to
11676         Find_Overridden_Synchronized_Primitive.
11677         (Collect_Interface_Components): New subprogram that collects all the
11678         components of a tagged record containing tags of secondary dispatch
11679         tables.
11680         (Add_Global_Declaration): New procedure
11681         (Abstract_Interface_List): Handle properly the case of a subtype of a
11682         private extension.
11683         (Type_Access_Level): In the case of a type whose parent scope is a
11684         return statement, call Type_Access_Level recursively on the enclosing
11685         function's result type to determine the level of the return object's
11686         type.
11687         (Build_Elaboration_Entity): Build name of elaboration entity from the
11688         scope chain of the entity, rather than the unit name of the file name.
11689         (Check_Nested_Access): New procedure.
11690         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
11691         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11692         (Get_Renamed_Entity): Utility routine for performing common operation
11693         of chasing the Renamed_Entity field of an entity.
11695 2007-06-06  Robert Dewar  <dewar@adacore.com>
11697         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
11698         elaboration model
11699         (Check_A_Call): Add check for entry call which was causing blowup
11701 2007-06-06  Olivier Hainque  <hainque@adacore.com>
11703         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
11704         special code on ia64-vms to handle major incompatibilities between the
11705         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
11706         this routine with a very different set of arguments and expectations on
11707         the return value.
11709 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11711         * socket.c (__gnat_close_signalling_fd): New function.
11712         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
11713         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
11714         New supporting functions for task safe Netdb operations.
11716 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11717             Olivier Hainque  <hainque@adacore.com>
11719         * a-except-2005.ads, a-except-2005.adb
11720         (Raise_From_Controlled_Operation): New procedure in
11721         (private part of) Ada.Exceptions (standard runtime version). Used to
11722         provide informational exception message when Program_Error is raised as
11723         a result of an Adjust or Finalize operation propagating an exception.
11724         (Rmsg_28): Fix description for E.4(18) check.
11725         (Raise_Current_Excep): Call Debug_Raise_Exception just before
11726         propagation starts, to let debuggers know about the event in a reliable
11727         fashion.
11728         Take the address of E and dereference to make sure it is homed on stack
11729         and prevent the stores from being deleted, necessary for proper
11730         debugger behavior on "break exception" hits.
11731         (Local_Raise): Moved to System.Exceptions
11733         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
11734         exception message from the current occurrence and raise Program_Error
11735         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
11737 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
11738             Arnaud Charlet  <charlet@adacore.com>
11740         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
11741         lock, if needed.
11743         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
11744         priority associated to a lock.
11746         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
11747         assertion to take into account case of no abort restriction.
11748         (Initialize_Protection_Entries): Add initialization for the field
11749         New_Ceiling associated to the protected object.
11750         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
11751         needed.
11753         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11754         since this function needs to be set consistently with Update_Exception.
11756         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11757         since this function needs to be set consistently with Update_Exception.
11759         * s-taskin.ads: Update comments on
11760         Interrupt_Server_Blocked_On_Event_Flag.
11761         (Unbind_Handler): Fix handling of server_task wakeup
11762         (Server_Task): Set self's state so that Unbind_Handler can take
11763         appropriate actions.
11764         (Common_ATCB): Now use a constant from System.Parameters to determine
11765         the max size of the Task_Image field.
11767         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
11768         Initialize_Analyzer function.
11769         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
11770         take into account case of no abort restriction.
11771         ([Vulnerable_]Complete_Master): Modify assertion.
11773         * s-tataat.adb (Finalize): Use the nestable versions of
11774         Defer/Undefer_Abort.
11776         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
11778         * s-tpobop.ads: Update comments.
11780         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
11781         of locking the object manually, to avoid inconsistencies between
11782         Lock/Unlock_Entry assertions.
11784         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
11785         terminating
11786         application and System.Parameters.No_Abort is True.
11787         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
11788         (Unbind_Handler): Fix handling of server_task wakeup
11789         (Server_Task): Set self's state so that Unbind_Handler can take
11790         appropriate actions.
11792 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11794         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
11795         declarations instead of an explicit null body, for conciseness.
11797 2007-06-06  Robert Dewar  <dewar@adacore.com>
11799         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
11800         illegal aggregate and the type is still Any_Composite.
11801         (Subtypes_Statically_Match): Fix problem of empty discriminant list
11803 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11805         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
11806         to prevent subsequent expansion.
11808 2007-06-06  Robert Dewar  <dewar@adacore.com>
11810         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
11812 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
11813             Robert Dewar  <dewar@adacore.com>
11815         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
11816         exceptions.
11817         (Write_Itype): Handle case of string literal subtype, which
11818         comes up in this context.
11819         (Update_Itype): when debugging expanded code, update sloc of itypes
11820         associated with defining_identifiers and ranges, for gdb use.
11821         (Sprint_Node_Actual): Add static keyword to object or exception
11822         declaration output if Is_Statically_Allocated is True.
11823         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
11824         or task body, so that the tree carries the proper Sloc information for
11825         debugging use.
11826         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
11828 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
11830         * s-secsta.adb (Chunk): Ensure this object has a static size known at
11831         compile time, to avoid dynamic memory allocation
11832         (Elaboration code): Only use dynamic memory allocation when needed.
11834 2007-06-06  Quentin Ochem  <ochem@adacore.com>
11836         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
11837         "Overflow_Guard".
11838         (Stack_Analyzer): Added field "Overflow_Guard"
11839         (Task_Result): Added field "Overflow_Guard".
11840         (Index_Str): New constant.
11841         (Task_Name_Str): New constant.
11842         (Actual_Size_Str): New constant.
11843         (Pattern_Array_Element_Size): New constant.
11844         (Get_Usage_Range): New subprogram.
11845         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
11846         Now align the output.
11847         Added comments.
11848         (Initialize): Added value for Overflow_Guard.
11849         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
11850         Update the value of the overflow guard according to the actual
11851         beginning of the pattern array.
11852         (Initialize_Analyzer): Added parameter Overflow_Guard.
11853         Take this parameter into accound when computing the max size.
11854         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
11855         (Report_Result): Removed extra useless procedure.
11856         Updated call to Output_Result.
11857         Moved full computation of the Task_Result here.
11859 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11861         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
11862         Thread_Blocking_IO, always True by default, set False on a per-runtime
11863         basis.
11864         Add Windows-specific constants
11865         Add new constant Need_Netdb_Buffer.
11866         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11867         not, whether to use getXXXbyYYY_r.
11869         * gsocket.h: Add new constant Need_Netdb_Buffer.
11870         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11871         not, whether to use getXXXbyYYY_r.
11873 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
11875         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
11876         than their first call.
11877         Add type Dummy_Communication_Block used in the generation of the pre-
11878         defined dispatching primitive _disp_asynchronous_select.
11879         (Storage_Element): Put Pragma Universal_Aliasing on it.
11881 2007-06-06  Vincent Celier  <celier@adacore.com>
11883         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
11884         function.
11886         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
11887         letter if it is not followed by a '/' or a '\'.
11888         (Windows): New Boolean function
11890         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
11891         Ada 2005.
11892         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
11893         drive letter.
11894         (Containing_Directory): Raise Use_Error when the directory is a root
11895         directory.
11896         (Extension): When returning the result, use a conversion to Result_Type,
11897         not a qualification.
11899 2007-06-06  Robert Dewar  <dewar@adacore.com>
11901         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
11902         (Set_Style_Check_Options): Recognize new -gnatyg style switch
11904         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
11905         Warn_On_Non_Local_Exception to False, to turn off warnings for
11906         No_Exception_Propagation in ZFP runtime.
11907         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
11908         back-ends.
11909         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
11911 2007-06-06  Vincent Celier  <celier@adacore.com>
11913         * switch-b.adb (Scan_Binder_Switches): Add processing for new
11914         switches -R and -Z
11916         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
11917         (Scan_Make_Switches): Recognize new switch -aP
11919 2007-06-06  Matthew Gingell  <gingell@adacore.com>
11920             Jose Ruiz  <ruiz@adacore.com>
11922         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
11923         VxWorks task descriptor in the Ada run time, call a C subprogram
11924         (__gnat_get_stack_info) that extracts the required information.
11926         * sysdep.c: Back out temporary lynxos workaround.
11927         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
11928         time the stack information associated to the currently executing task.
11929         Only VxWorks systems require this function.
11931 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
11933         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
11934         add the stack bias if the offset is computed from a frame address.
11935         (__gnat_backtrace): Adjust for above change.
11937 2007-06-06  Thomas Quinot  <quinot@adacore.com>
11939         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
11940         PE_Non_Transportable_Actual.
11941         (By_Descriptor_Last): New constant.
11942         (By_Copy_Return): Likewise.
11944 2007-06-06  Vincent Celier  <celier@adacore.com>
11946         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
11947         is.
11949         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
11950         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
11951         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
11952         Add missing comment for /OPTIMIZE=SPACE
11953         Add entry for OPTIMIZE=SPACE
11954         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
11955         Add documentation for new qualifiers corresponding to -gnatw.c/.C
11957 2007-06-06  Vincent Celier  <celier@adacore.com>
11958             Robert Dewar  <dewar@adacore.com>
11960         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
11961         -gnatw.C)
11963         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
11964         Document gnatbind switch -a
11965         (case Constructions): Document that variables declarations are allowed
11966         for previously declared variables.
11967         Fix external lib project example
11968         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
11969         Indicate that "#if not X or Y then" is not allowed in input files to
11970         gnatprep.
11971         Document gnatw.x and gnatw.X warning flags
11972         Mention -Winline switch to activate warnings when back-end inlining is
11973         ineffective.
11974         Add gnatcheck rule descriptions
11975         Describe how to use the GNAT driver to call a tool on a closure.
11976         Describe how to run project-wide checks or metrics.
11977         Document gnatbind's -R option
11978         Updated to account for Ada 2005 support
11980         * gnat_rm.texi (Case Construction): Allow variable declarations for
11981         previously declared variables.
11982         (Representation Clauses and Pragmas): Lift restriction on alignment
11983         clauses for record types.
11984         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
11985         Document No_Exception_Propagation restriction
11986         Document No_Body pragma
11987         Updated to account for Ada 2005 support; corrected some typos
11988         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
11990         * gnat-style.texi: Make it clear that we never use mode IN for
11991         procedures or functions
11993         * ug_words: Add entries for -gnatw.x and -gnatw.X
11994         Add entries for -gnatw.c/.C
11996 2007-06-06  Pascal Obry  <obry@adacore.com>
11997             Vincent Celier  <celier@adacore.com>
11999         * makegpr.adb (Add_Archive_Path): Use untouched object and library
12000         dirs and library name.
12001         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
12002         comments.
12003         (Build_Library): Idem.
12004         (Compile_Individual_Sources): Idem.
12005         (Compile_Link_With_Gnatmake): Idem.
12006         (Compile_Sources): Idem.
12007         (Get_Imported_Directories): Idem.
12008         (Link_Executables): Idem. Same change for the executable dir.
12009         (Check_Compilation_Needed): C_Source_Path new variable containing
12010         the canonical form of Source_Path to check against the source names
12011         in the dependency file.
12012         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
12013         verbose mode, display the name of the object directory we're changing
12014         to.
12015         (Saved_Switches): New name of table X_Switches
12016         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
12017         (Usage): New line for switch -aP
12018         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
12019         testing if a directory should be added to the search path.
12021 2007-06-06  Javier Miranda  <miranda@adacore.com>
12023         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
12024         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
12025         declaration after freezing point of all its associated tagged types;
12026         otherwise such types are frozen too early.
12028 2007-06-06  Robert Dewar  <dewar@adacore.com>
12030         * a-reatim.adb: Documentation addition
12032         * g-cgideb.adb: Minor code reorganization
12034         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
12035         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
12036         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
12038         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
12039         function.  Change name New_Scope to Push_Scope
12040         (Get_Debug_Flag_K): Remove unused obsolete function.
12042         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
12043         Push_Scope.
12045         * makeusg.adb: Update Copyright notice
12046         Add line for switch -aP
12048         * makeusg.adb: Fix wording of some usage messages
12050         * s-assert.adb (Raise_Assert_Failure): Add call to
12051         Debug_Raise_Assert_Failure.
12053         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
12054         (2, Standard'Alignment) for compatibility with AAMP (where alignment
12055         is restricted to 1).
12057         * s-wchjis.adb: Remove use of System.Pure_Exceptions
12059         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
12060         node location to No_Location when we're not debugging the expanded
12061         code.
12063 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
12065         * misc.c (enumerate_modes): Consider log2_b to always be one.
12067 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
12069         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
12071 2007-05-02  Pascal Obry  <obry@adacore.com>
12073         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
12074         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
12075         encoding support of Stream_IO.
12076         (Write_Unit): Idem.
12078         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
12079         filename and corresponding encoding to match the OS requirement.
12080         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
12081         routine will fail on specific devices like CON: AUX: ...
12083         PR ada/29856: Add missing braces
12085 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12087         PR ada/31660
12088         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
12090 2007-04-21  Jan Hubicka  <jh@suse.cz>
12092         * misc.c (gnat_expand_body): Don't call target for destructors,
12093         avoid redundant check on syntax errors.
12095 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12097         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
12098         instead of checking GIMPLE_STMT_P in chain_next.
12100 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
12102         PR ada/31576
12103         * system-linux-alpha.ads: Disable constant condition warning for the
12104         Default_Bit_Order variable.
12105         * system-linux-s390.ads: Likewise.
12106         * system-linux-s390x.ads: Likewise.
12107         * system-linux-sparc.ads: Likewise.
12109 2007-04-06  Javier Miranda  <miranda@adacore.com>
12110             Matt Heaney  <heaney@adacore.com>
12111             Robert Dewar  <dewar@adacore.com>
12113         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
12114         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
12115         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
12116         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
12117         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
12118         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
12119         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
12120         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
12121         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
12122         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
12123         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
12124         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
12125         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
12126         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
12127         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
12128         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
12129         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
12130         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
12131         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
12132         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
12133         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
12134         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
12135         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
12136         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
12137         s-taprop-tru64.adb, s-taprop-irix.adb,
12138         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
12139         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
12140         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
12141         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
12142         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
12143         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
12144         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
12145         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
12146         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
12147         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
12148         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
12149         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
12150         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
12151         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
12152         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
12153         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
12154         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
12155         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
12156         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
12157         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
12158         access types.
12159         Update documentation.
12160         Minor rewording.
12162 2007-04-06  Robert Dewar  <dewar@adacore.com>
12164         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12165         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
12166         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
12167         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
12168         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
12169         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
12170         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
12171         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
12172         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
12173         system-hpux-ia64.ads, targparm.adb,
12174         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
12176         * system.ads: Move Functions_Return_By_DSP to obsolete section,
12177         kept for bootstrap purposes only.
12179 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
12181         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12182         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
12183         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
12184         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
12186 2007-04-06  Robert Dewar  <dewar@adacore.com>
12188         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
12189         (Local_Raise): New dummy procedure called when a raise is converted
12190         to a local goto. Used for debugger to detect that the exception
12191         is raised.
12193         * debug.adb: Document new d.g flag (expand local raise statements to
12194         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
12196         * exp_sel.adb: Use Make_Implicit_Exception_Handler
12198         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
12199         suppress warnings for unused handlers.
12200         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
12201         warnings for raise statements not handled locally.
12202         (Get_RT_Exception_Entity): New function
12203         (Get_Local_Call_Entity): New function
12204         (Find_Local_Handler): New function
12205         (Warn_If_No_Propagation): New procedure
12206         (Expand_At_End_Handler): Call Make_Implicit_Handler
12207         (Expand_Exception_Handlers): Major additions to deal with local handlers
12208         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
12209         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
12210         for local raise
12212         * exp_ch11.ads (Get_RT_Exception_Entity): New function
12213         (Get_Local_Call_Entity): New function
12215         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
12216         of restrictions that the binder will never suggest adding.
12218         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
12219         to No_Elist.
12221         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
12222         be with'ed in the presence of pragma Restriction
12223         (No_Exception_Propagation).
12225         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
12227         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
12228         parameter, then the handler is not a suitable target for a local raise,
12229         and this is a violation of restriction No_Exception_Propagation.
12230         (Analyze_Handled_Statements): Analyze choice parameters in exception
12231         handlers before analyzing statement sequence (needed for proper
12232         detection of local raise statements).
12233         (Analyze_Raise_Statement): Reraise statement is a violation of the
12234         No_Exception_Propagation restriction.
12236         * s-rident.ads: Add new restriction No_Exception_Propagation
12238         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
12239         function, like Make_Exception_Handler but sets Local_Raise_Statements
12240         to No_List.
12241         (Add_Unique_Serial_Number): Deal with case where this is called during
12242         processing of configuration pragmas.
12244 2007-04-06  Thomas Quinot  <quinot@adacore.com>
12245             Pat Rogers  <rogers@adacore.com>
12246             Pascal Obry  <obry@adacore.com>
12248         * g-stsifd-sockets.adb: New file.
12250         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
12251         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
12252         g-socthi-vms.adb: Move signalling
12253         fd management to a nested package, so that they can conveniently be
12254         moved to a subunit that is shared across Windows, VMS, and VxWorks
12255         (Ada implementation) or completed with imported bodies from socket.c
12256         (UNIX case).
12257         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
12258         subprograms.
12259         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
12260         the signalling file descriptor.
12261         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
12262         signalling file descriptor.
12263         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
12264         instead of creating a pair of sockets for signalling here.
12266         * g-socthi.adb: Ditto.
12267         Set the runtime process to ignore SIGPIPEs on platforms that support
12268         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12270         * g-socthi-mingw.adb: Ditto.
12271         (WS_Version): Use Windows 2.2.
12272         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12274         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
12275         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12277         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
12278         added GNAT byte swapping facility
12279         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
12281         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
12283         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
12284         New subprograms.
12285         (__gnat_create_signalling_fds): New subprogram.
12286         Set the runtime process to ignore SIGPIPEs on platforms that support
12287         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12289 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
12290             Vincent Celier  <celier@adacore.com>
12292         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
12293         New version of Ada.Calendar which supports the new upper bound of Ada
12294         time (2399-12-31 86_399.999999999).
12295         The following modifications have been made to the package:
12296          - New representation of time as count of nanoseconds since the start of
12297            Ada time (1901-1-1 0.0).
12298          - Target independent Split and Time_Of routines which service both
12299            Ada 95 and Ada 2005 code.
12300          - Target independent interface to the Ada 2005 children of Calendar.
12301          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
12302          - Handling of non-leap centenial years.
12303          - Updated clock function.
12304          - Updated arithmetic and comparison operators.
12306         * a-caldel.adb (To_Duration): Add call to target independent routine in
12307         Ada.Calendar to handle the conversion of time to duration.
12309         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
12310         (UTC Offset).
12311         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
12312         set off to 0.
12313         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
12314         targets do not have a natural time zone, GMT is used as a default.
12315         (__gnat_get_task_options): New.
12317         * a-direct.adb (Modification_Time): Add with and use clauses for
12318         Ada.Calendar and Ada.
12319         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
12320         since it is no longer needed.
12321         (Duration_To_Time): Removed.
12322         (OS_Time_To_Long_Integer): Removed.
12323         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
12324         Formatting Time_Of routines which automatically handle time zones,
12325         buffer periods and leap seconds.
12327         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
12328         target independent routines in Ada.Calendar.
12330         * a-calfor.ads, a-calfor.adb: 
12331         Code cleanup and addition of validity checks in various routines.
12332         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
12333         Ada.Calendar.
12335         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
12336         independent routine in Ada.Calendar.
12338 2007-04-06  Olivier Hainque  <hainque@adacore.com>
12340         * adaint.c: 
12341         (convert_addresses): Adjust prototype and dummy definition to expect an
12342          extra file_name argument.
12344         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
12345         filling the now expected file_name argument with the appropriate
12346         argv[0] expansion.
12347         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
12348         (tracebk): Array of void * instead of char *, corresponding to what
12349          convert_addresses expects.
12350         (exename): New static global, to hold the executable file name to be
12351         used in all convert_addresses invocations.
12352         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
12353         change.
12354         (__gnat_gmem_a2l_initialize): Resolve exename.
12355         (__gnat_convert_addresses): Use exename as the convert_addresses
12356         file_name argument.
12358         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
12359         "convert_addresses", now expecting a filename argument. Import the
12360         necessary entities to compute the filename to use and pass it to
12361         convert_addresses.
12363 2007-04-06  Matt Gingell  <gingell@adacore.com>
12365         * system-aix.ads: Back out previous change.
12366         (Functions_Return_By_DSP): Removed
12368 2007-04-06  Pascal Obry  <obry@adacore.com>
12370         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
12371         or the monotonic used by Ada.Real_Time) to compute the sleep duration
12372         on Windows.
12374 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
12376         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
12377         function. Its value changes in different VxWorks versions, and it is
12378         now handled by the function __gnat_get_task_options.
12380         * s-taprop-vxworks.adb (Create_Task): Call the function
12381         __gnat_get_task_options to get the required options for creating a task.
12383 2007-04-06  Pascal Obry  <obry@adacore.com>
12384             Thomas Quinot  <quinot@adacore.com>
12386         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
12387         dealing with filename.
12388         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
12389         filename from a standard string to a wide-string depending on the
12390         encoding value.
12391         (__gnat_freopen): Idem.
12392         (__gnat_current_time): New function (wrapper for time(3) standard C
12393         function).
12395         * g-os_lib.ads (Current_Time): New function. Returns the current
12396         system time as an OS_Time value.
12398         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
12399         (Monotonic_Clock): Same.
12401 2007-04-06  Quentin Ochem  <ochem@adacore.com>
12403         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
12404         not on a natural.
12405         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
12407 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
12409         * a-retide.adb: Add elaboration code to ensure that the tasking run
12410         time is initialized when using delay operations even when no task is
12411         created.
12413 2007-04-06  Javier Miranda  <miranda@adacore.com>
12415         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
12416         component Num_Prim_Ops.
12417         (Set_Num_Prim_Ops): Removed.
12418         Remove all the assertions because all the routines of this
12419         package are inline always.
12420         (Get_Offset_Index): Add support to primary dispatch tables.
12421         Move the documentation about the dispatch table to a-tags.ads
12422         (Set_External_Tag): Removed
12423         (Inherit_TSD): Removed.
12424         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
12425         moved to a-tags.ads
12426         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
12427         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
12428         of the TSD field "Table" because this field has been renamed to
12429         "Ifaces_Table".
12430         (Inherit_CPP_DT): Removed.
12431         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
12432         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
12433         declarations have been moved to a-tags.ads
12434         (Check_Size): Removed.
12435         (Expanded_Name): Updated to get access to the new field of TSD
12436         containing the address of the expanded name.
12437         (Get_Access_Level/Set_Access_Level): Removed.
12438         (Get_Predefined_Prim_Op_Address): Removed.
12439         (Set_Predefined_Prim_Op_Address): Removed.
12440         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
12441         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
12442         (Set_Expanded_Name): Removed.
12443         (Inherit_DT): Removed.
12444         (Inherit_CPP_DT): Removed.
12445         (Set_RC_Offset): Removed.
12446         (Set_TSD): Removed.
12447         (Base_Address): New function that displaces "this" to point to the base
12448         of the object (that is, to point to the primary tag of the object).
12450 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12451             Javier Miranda  <miranda@adacore.com>
12453         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
12454         anonymous access component, do not create a master_id if type already
12455         has one, as may happen if the type is a subcomponent of a packed array
12456         type.
12457         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
12458         Initialize_Tag): Remove code associated with the old CPP pragmas.
12459         CPP_Virtual and CPP_Vtable are no longer supported.
12460         (Build_Offset_To_Top_Internal): Add support for concurrent record types
12461         (Build_Offset_To_Top_Functions): Add support for concurrent record types
12462         (Freeze_Record_Type): Remove call to
12463         Init_Predefined_Interface_Primitives.
12464         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
12465         code required to initialize the tags of the secondary dispatch tables.
12466         This leaves the algoritm more clear.
12467         (Init_Secondary_Tags): Add support for concurrent record types
12468         (Make_Predefined_Primitive_Specs): Code cleanup.
12469         (Predefined_Primitive_Bodies): Code cleanup.
12470         (Build_Master_Renaming): New local subprogram.
12471         (Expand_N_Full_Type_Declaration): Build the master_id associated with
12472         anonymous access to task type components.
12473         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
12474         subtype indication are resolved during analysis, and must not be done
12475         here.
12476         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
12478 2007-04-06  Geert Bosch  <bosch@adacore.com>
12479             Ed Schonberg  <schonberg@adacore.com>
12480             Javier Miranda  <miranda@adacore.com>
12481             Bob Duff  <duff@adacore.com>
12483         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
12484         for conversion of a Float_Type'Truncation to integer.
12486         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
12487         check if a node is an attribute that can be handled directly by the
12488         back end.
12489         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
12490         attributes that can be handled directly by the back end.
12491         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
12492         use new predicate Is_Access_Protected_Subprogram_Type.
12493         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
12494         and Unchecked_Union if it is generated as part of the default  Output
12495         procedure for a type with default discriminants.
12496         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
12497         if we are compiling under restriction No_Dispatching_Calls.
12498         (Constrained): Use Underlying_Type, in case the type is private without
12499         discriminants, but the full type has discriminants.
12500         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
12501         call to Build_Get_Access_Level.
12502         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
12503         interface objects requires a call to the run-time subprogram that
12504         returns the base address of the object.
12505         (Valid_Conversion): Improve error message on illegal attempt to store
12506         an anonymous access to subprogram value into a record component.
12508         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
12509         null".
12510         (Simplify_Type_Conversion): New procedure that performs simplification
12511         of Int_Type (Float_Type'Truncation (X)).
12512         (Resolve_Type_Conversion): Call above procedure after resolving operand
12513         and before performing checks. This replaces the existing ineffective
12514         code in Exp_Ch4.
12515         (Set_String_Literal_Subtype): When creating the internal static lower
12516         bound subtype for a string literal, use a newly created copy of the
12517         subtree representing the lower bound.
12518         (Resolve_Call): Exclude build-in-place function calls from transient
12519         scope treatment. Update comments to describe this exception.
12520         (Resolve_Equality_Op): In case of dispatching call check violation of
12521         restriction No_Dispatching_Calls.
12522         (Resolve_Call): If the call returns an array, the context imposes the
12523         component type of the array, and the function has one non-defaulted
12524         parameter, rewrite the call as the indexing of a call with a single
12525         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
12526         in prefix form.
12527         (Resolve_Actuals): If an actual is an allocator for an access parameter,
12528         the master of the created object is the innermost enclosing statement.
12529         (Remove_Conversions): For a binary operator, check if type of second
12530         formal is numeric, to check if an abstract interpretation is present
12531         in the case of exponentiation as well.
12533 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12534             Bob Duff  <duff@adacore.com>
12536         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
12537         copying a parameter list in a call, set properly the First_Named_Formal
12538         and Next_Named_Formal fields in the new list and in the enclosing call.
12539         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
12540         names, to ease typing in the debugger. Improve comments.
12541         (Watch_Node): New variable, intended to be set in the debugger.
12542         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
12543         called when the watched node is created.
12544         (New_Node_Debugging_Output): Combined version of local procedures
12545         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
12546         with a parameter so that conditional breakpoints like "if Node = 12345"
12547         work.
12548         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
12549         Add Elist1 function
12551 2007-04-06  Thomas Quinot  <quinot@adacore.com>
12552             Ed Schonberg  <schonberg@adacore.com>
12553             Gary Dismukes  <dismukes@adacore.com>
12555         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
12556         required for a conversion between two access-to-unconstrained-array
12557         types.
12558         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
12559         to discriminant constraints on discriminant objects. This rule must
12560         apply as well to discriminants of protected types in private components.
12561         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
12562         object of a null-excluding access type then don't require the
12563         the object declaration to have an expression and don't emit a
12564         run-time check.
12566 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
12567             Eric Botcazou  <botcazou@adacore.com>
12569         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
12570         and made constant.
12572         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
12573         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
12574         carry any.
12576         * fe.h (Compiler_Abort): Add third parameter.
12578         * misc.c (internal_error_function): Build third argument from current
12579         input location and pass it to Compiler_Abort.
12581 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
12583         * cstand.adb (Create_Standard): When the target's storage unit size is
12584         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
12585         Standard_String.
12587 2007-04-06  Nicolas Roche  <roche@adacore.com>
12589         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
12590         absolute path can have the following form: device:/a/b. In this case
12591         '/' should be inserted between the path and the filename.
12593 2007-04-06  Olivier Hainque  <hainque@adacore.com>
12594             Eric Botcazou  <botcazou@adacore.com>
12596         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
12597         VAR_DECL to a CONST_DECL we make for a public constant when we know the
12598         corresponding definition has created the so made visible variable.
12599         Handle anonymous access to protected subprogram.
12600         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
12601         object with an address clause volatile.  Re-enable original fix.
12602         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
12603         too.
12604         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
12605         associated with either the Equivalent or Root type, instead of the
12606         naked type node.
12607         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
12608         subtree for every field of a global record type.
12609         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
12610         discriminants, invoke again variable_size on its newly computed sizes.
12612 2007-04-06  Robert Dewar  <dewar@adacore.com>
12613             Thomas Quinot  <quinot@adacore.com>
12614             Ed Schonberg  <schonberg@adacore.com>
12615             Bob Duff  <duff@adacore.com>
12617         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
12618         (Next_Component_Or_Discriminant): New function and procedure
12619         (First_Index, First_Literal, Master_Id,
12620         Set_First_Index, Set_First_Literal, Set_Master_Id):
12621         Add missing Ekind assertions.
12622         (Is_Access_Protected_Subprogram_Type): New predicate.
12623         (Has_RACW): New entity flag, set on package entities to indicate that
12624         the package contains the declaration of a remote accecss-to-classwide
12625         type.
12626         (E_Return_Statement): This node type has the Finalization_Chain_Entity
12627         attribute, in case the result type has controlled parts.
12628         (Requires_Overriding): Add this new flag, because "requires
12629         overriding" is subtly different from "is abstract" (see AI-228).
12630         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
12631         Is_Abstract_Type. Make sure these are called only when appropriate.
12632         (Has_Pragma_Unreferenced_Objects): New flag
12634         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
12635         class-wide, the tag of the right-hand side must be an exact match, not
12636         an ancestor of that of the object on left-hand side.
12637         (Move_Activation_Chain): New procedure to create the call to
12638         System.Tasking.Stages.Move_Activation_Chain.
12639         (Expand_N_Extended_Return_Statement): Generate code to call
12640         System.Finalization_Implementation.Move_Final_List at the end of a
12641         return statement if the function's result type has controlled parts.
12642         Move asserts to Build_In_Place_Formal.
12643         (Move_Final_List): New function to create the call statement.
12644         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
12645         tagged type, replace generation of call to the run-time subprogram
12646         CW_Membership by call to Build_CW_Membership.
12647         (Expand_N_Return_Statement): Replace generation of call to the run-time
12648         subprogram Get_Access_Level by call to Build_Get_Access_Level.
12649         (Expand_N_Simple_Function_Return): Replace generation of call to the
12650         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
12652         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
12653         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
12654         access to protected operations.
12655         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
12656         master and chain actual parameters to a build-in-place function call
12657         involving tasks.
12658         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
12659         statement.
12660         (Make_Build_In_Place_Call_In_Allocator,
12661         Make_Build_In_Place_Call_In_Anonymous_Context,
12662         Make_Build_In_Place_Call_In_Assignment,
12663         Make_Build_In_Place_Call_In_Object_Declaration): Call
12664         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
12665         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
12666         stubbed procedure with a null body, replace the call with a null
12667         statement without using the full inlining machinery, for efficiency
12668         and to avoid invalid values in source file table entries.
12670         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
12671         renamings of calls to build-in-place functions.
12673         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
12674         provides the functionality of RTE_Available to record components.
12675         (RTU_Entity): The function Entity has been renamed to RTU_Entity
12676         to avoid undesired overloading.
12677         (Entity): New subprogram that returns the entity for the referened
12678         unit. If this unit has not been loaded, it returns Empty.
12679         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
12680         Remove no longer used entities.
12681         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
12682         (RE_Type_Specific_Data): New entity.
12683         (RE_Move_Any_Value): New entity.
12684         (RE_TA_A, RE_Get_Any_Type): New entities.
12685         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
12686          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
12687          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
12688         (Entity): New subprogram that returns the entity for the referened
12689         unit. If this unit has not been loaded, it returns Empty.
12690         (RTE): Addition of a new formal that extends the search to the scopes
12691         of the record types found in the chain of the package.
12693         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
12694         "abstract subprograms must be visible" message, whether or not the type
12695         is an interface; that is, remove the special case for interface types.
12696         (Analyze_Function_Return): Remove error message "return of task objects
12697         is not yet implemented" because this is now implemented.
12698         (Create_Extra_Formals): Add the extra master and activation chain
12699         formals in case the result type has tasks.
12700         Remove error message "return of limited controlled objects is not yet
12701         implemented".
12702         (Create_Extra_Formals): Add the extra caller's finalization list formal
12703         in case the result type has controlled parts.
12704         (Process_Formals): In case of access formal types there is no need
12705         to continue with the analysis of the formals if we already notified
12706         errors.
12707         (Check_Overriding_Indicator): Add code to check overriding of predefined
12708         operators.
12709         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
12710         flags for formals that do not require them,.
12711         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
12712         hidden entity is use visible or directly visible.
12713         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
12714         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
12715         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
12716         New_Overloaded_Entity): Split Is_Abstract flag into
12717         Is_Abstract_Subprogram and Is_Abstract_Type.
12719         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
12720         a return statement's finalization list to the caller's list, used for
12721         build-in-place functions with result type with controlled parts.
12722         Remove no longer used entities.
12724         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
12725         longer needed, because the full type is now limited, and therefore a
12726         pass-by-reference type.
12727         (Foreign_Task_Level): New constant.
12729         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
12730         move tasks from the activation chain belonging to a return statement to
12731         the one passed in by the caller, and update the master to the one
12732         passed in by the caller.
12733         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
12734         of unactivated tasks, so we don't kill the ones that are being returned
12735         by a build-in-place function.
12736         (Create_Task): Ignore AI-280 for foreign threads.
12738 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12739             Robert Dewar  <dewar@adacore.com>
12740             Bob Duff  <duff@adacore.com>
12741             Gary Dismukes  <dismukes@adacore.com>
12743         * errout.adb (Unwind_Internal_Type): Use predicate
12744         Is_Access__Protected_Subprogram_Type.
12746         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
12747         (Freeze_Entity, packed array case): Do not override explicitly set
12748         alignment and size clauses.
12749         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
12750         the enclosing subprogram is a child unit body that acts as a spec.
12751         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
12752         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
12753         Remove all code for DSP option
12755         * layout.adb (Layout_Record_Type): Use First/
12756         Next_Component_Or_Discriminant
12757         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
12758         to handle properly the anonymous access case.
12760         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
12761         for all access attributes, because overload resolution should work the
12762         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
12763         causes the error message for the ambiguous "X'Access = Y'Access" and
12764         "X'Unrestricted_Access = Y'Access" and so forth to match.
12765         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
12766         now that anonymous access to protected operations have their own kind.
12767         (Resolve_Attribute): In case of dispatching call check the violation of
12768         restriction No_Dispatching_Calls.
12769         (Check_Array_Type): Check new -gnatyA array index style option
12771         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
12772         attempt to derive from a synchronized tagged type.
12773         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
12774         type, inherit the class-wide type already created, because it may
12775         already have been used in a self-referential anonymous access component.
12776         (Mentions_T): Recognize self-referential anonymous access components
12777         that use (a subtype of) the class-wide type of the enclosing type.
12778         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
12779         Derived_Type for Prev formal on call to
12780         Check_Anonymous_Access_Components rather than Empty.
12781         (Make_Incomplete_Type_Declaration): Add test for case where the type has
12782         a record extension in deciding whether to create a class-wide type,
12783         rather than just checking Tagged_Present.
12784         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
12785         to stand-alone object declarations as well as component declarations.
12786         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
12787         prevent accidental overwriting when enclosing package appears in
12788         a limited_with_clause.
12789         (Array_Type_Declaration): If the component type is an anonymous access,
12790         the associated_node for the itype is the type declaration itself.
12791         (Add_Interface_Tag_Components): Modified to support concurrent
12792         types with abstract interfaces.
12793         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
12794         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
12795         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
12796         to complete the decoration of synchronized interface types. Add also
12797         a call to Check_Abstract_Interfaces to verify the ARM rules.
12798         (Derive_Interface_Subprograms): Modified to support concurrent types
12799         with abstract interfaces.
12800         (Analyze_Subtype_Indication): Resolve the range with the given subtype
12801         mark, rather than delaying the full resolution depending on context.
12802         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
12803         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
12804         Array_Type_Declaration,Build_Derived_Record_Type,
12805         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
12806         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
12807         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
12808         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
12809         called only when appropriate.
12810         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
12811         to private type.
12812         (Analyze_Subtype_Declaration): For an access subtype declaration, create
12813         an itype reference for the anonymous designated subtype, to prevent
12814         scope anonmalies in gigi.
12815         (Build_Itype_Reference): New utility, to simplify construction of such
12816         references.
12818 2007-04-06  Vincent Celier  <celier@adacore.com>
12820         * errutil.adb (Initialize): Initialize warnings table, if all warnings
12821         are suppressed, supply an initial dummy entry covering all possible
12822         source locations.
12824         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
12825         and start with only one, such as "-RTS=none".
12826         (Collect_Arguments): Do not check for sources outside of projects.
12827         Do not collect arguments if project is externally built.
12828         (Compile_Sources): Do nothing, not even check if the source is up to
12829         date, if its project is externally built.
12830         (Compile): When compiling a predefined source, add -gnatpg
12831         as the second switch, after -c.
12832         (Compile_Sources): Allow compilation of Annex J renames without -a
12833         (Is_In_Object_Directory): Check if the ALI file is in the object
12834         even if there is no project extension.
12835         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
12836         gnatbind if the ALI file effectively exists.
12837         (Initialize): Add the directory where gnatmake is invoked in front of
12838         the path if it is invoked from a bin directory, even without directory
12839         information, so that the correct GNAT tools will be used when spawned
12840         without directory information.
12842         * makeusg.adb: Change switch -S to -eS
12843         Add lines for new switches -we, -wn and -ws
12844         Add line for new switch -p
12846         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
12847         Treat_As_Error and there are warnings.
12849         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
12850         -gnatww Change gnatmake switch -S to -eS
12851         (Scan_Make_Switches): Code reorganisation. Process separately multi
12852         character switches and single character switches.
12853         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
12854         False when switch is not recognized by gnatmake.
12855         (Scan_Make_Switches): Set Setup_Projects True when -p or
12856         --create-missing-dirs is specified.
12858         * fname.adb (Is_Predefined_File_Name): Return True for annex J
12859         renamings Calendar, Machine_Code, Unchecked_Conversion and
12860         Unchecked_Deallocation only when Renamings_Included is True.
12862         * par.adb: Allow library units Calendar, Machine_Code,
12863         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
12864         when -gnatg is not specified.
12865         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
12866         there is no need to generate always a record_definition_node in case
12867         of synchronized interface types.
12868         (SIS_Entry_Active): Initialize global variable to False
12869         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
12870         indicate cases where AI-447 says "not null" is legal.
12872         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
12874         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
12875         files with with several lines starting with the object fileb name.
12876         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
12877         is specified.
12878         (Initialize): Add the directory where gprmake is invoked in front of the
12879         path, if it is invoked from a bin directory or with directory
12880         information, so that the correct GNAT tools will be used when invoked
12881         directly.
12882         (Check_Compilation_Needed): Process correctly backslashes on Windows.
12884         * vms_data.ads: Update switches/qualifiers
12886 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
12887             Thomas Quinot  <quinot@adacore.com>
12889         * exp_aggr.adb:
12890         If the array component is a discriminated record, the array aggregate
12891         is non-static even if the component is given by an aggregate with
12892         static components.
12893         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
12894         (Convert_Aggr_In_Allocator): If the allocator is for an access
12895         discriminant and the type is controlled. do not place on a finalization
12896         list at this point. The proper list will be determined from the
12897         enclosing object.
12898         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
12899         initialize record controller if needed, before the components, to ensure
12900         that they are properly finalized.
12901         (Build_Record_Aggr_Code): For the case of an array component that has a
12902         corresponding array aggregate in the record aggregate, perform sliding
12903         if required.
12905 2007-04-06  Javier Miranda  <miranda@adacore.com>
12906             Gary Dismukes  <dismukes@adacore.com>
12907             Ed Schonberg  <schonberg@adacore.com>
12909         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
12910         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
12912         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
12913         accessibility on class-wide allocators if the allocator occurs at the
12914         same scope level as the allocator's type. The check is guaranteed to
12915         succeed in that case, even when the expression originates from a
12916         parameter of the containing subprogram.
12917         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
12918         under No_Dispatching_Calls restriction. During the semantic analysis
12919         we already notified such violation.
12920         (Tagged_Membership): Constant folding. There is no need to check
12921         the tag at run-time if the type of the right operand is non
12922         class-wide abstract.
12923         Replace call to Is_Ancestor by call to Is_Parent
12924         to support concurrent types with interface types.
12925         (Expand_N_Allocator): Add an assertion associated with the generation
12926         of the master_id.
12927         (Expand_N_Slice): Do not enable range check to nodes associated
12928         with the frontend expansion of the dispatch table.
12929         (Is_Local_Access_Discriminant): Subsidiary function to
12930         Expand_N_Allocator.
12931         (Tagged_Membership): Replace generation of call to the run-time
12932         subprogram CW_Membership by call to Build_CW_Membership.
12933         (Expand_Allocator_Expression): Replace generation of call to the
12934         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
12936         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
12937         initialize most the TSD components by means of an aggregate.
12938         Modify the declaration of the object containing the TSD
12939         because we now expand code that has a higher level of abstraction.
12940         The TSD has a discriminant containing the Inheritance Depth Level,
12941         value that is used in the membership test but also to fix the size
12942         of the table of ancestors.
12943         (Expand_Interface_Conversion): Insert function body at the closest place
12944         to the conversion expression, to prevent access-before-elaboration
12945         errors in the backend.
12946         Code improved to reduce the size of the dispatch table if
12947         compiling under restriction No_Dispatching_Calls plus code cleanup.
12948         Code reorganization plus removal of calls to Set_Num_Prim_Ops
12949         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
12950         (Expand_Dispatching_Call): Minor code reorganization plus addition of
12951         code to return immediately if compiling under No_Dispatching_Calls
12952         restriction.
12953         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
12954         CPP_Virtual and CPP_Vtable are no longer supported.
12955         (Expand_Interface_Conversion): Add missing support for interface type
12956         derivations.
12957         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
12958         Is_Parent to support concurrent types with interfaces.
12959         (Init_Predefined_Interface_Primitives): Removed.
12960         (Make_Secondary_DT): Modified to support concurrent record types.
12961         (Set_All_DT_Position): Modified to support concurrent record types.
12962         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
12963         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
12964         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
12965         with CW_Membership.
12966         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
12967         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
12968         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
12969         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
12970         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
12971         (Expand_Dispatching_Call): Replace generation of call to the run-time
12972         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
12973         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
12974         Address.
12975         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
12976         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
12977         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
12978         Build_Set_Prim_Op_Address.
12979         (Get_Remotely_Callable): Subprogram removed.
12980         (Init_Predefined_Interface_Primitives): Replace generation of call to
12981         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
12982         Prims.
12984         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
12985         First (Parameter_Associations ()) with the call to First_Actual that
12986         returns an actual parameter expression for both named and positional
12987         associations.
12989         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
12990         check violation of restriction No_Dispatching_Calls.
12991         (Check_Controlling_Type): A formal of a tagged incomplete type is a
12992         controlling argument.
12994         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
12995         First/Next_Component_Or_Discriminant
12996         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
12997         (Find_Implemented_Interface): Removed. All the calls to this subprogram
12998         specify Any_Limited_Interface, and this functionality is already
12999         provided by the function Has_Abstract_Interfaces.
13000         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
13001         support concurrent types implementing interfaces.
13002         (Find_Implemented_Interface): Removed. All the calls to this subprogram
13003         specify kind Any_Limited_Interface, and this functionality is already
13004         provided by the function Has_Abstract_Interfaces.
13005         (Remove_Side_Effects): replace Controlled_Type by
13006         CW_Or_Controlled_Type whenever the issue is related to
13007         using or not the secondary stack.
13009         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
13010         P_Interface_Type_Definition to fulfill the new interface (the formal
13011         Is_Synchronized is no longer required).
13013         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
13014         Update dependencies.
13016         * exp_atag.ads, exp_atag.adb: New file
13018 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13019             Bob Duff  <duff@adacore.com>
13020             Cyrille Comar  <comar@adacore.com>
13022         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
13023         anonymous, use finalization list of enclosing dynamic scope.
13024         (Expand_N_Package_Declaration): For a library package declaration
13025         without a corresponding body, generate RACW subprogram bodies in the
13026         spec (just as we do for the task activation call).
13027         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
13028         Is_Abstract_Type. Make sure these are called only when appropriate.
13029         Remove all code for DSP option
13030         (CW_Or_Controlled_Type): new subprogram.
13032 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
13033             Ed Schonberg  <schonberg@adacore.com>
13034             Gary Dismukes  <dismukes@adacore.com>
13036         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
13037         parameter. If it is set to true, return a result capped according to
13038         the global upper bound for the index of an entry family.
13039         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
13040         (Build_Find_Body_Index): Adjust for above change.
13041         (Entry_Index_Expression): Likewise.
13042         (Is_Potentially_Large_Family): New function extracted from...
13043         (Collect_Entry_Families): ...here. Call it to detect whether the family
13044         is potentially large.
13045         (Build_Entry_Count_Expression): If the family is potentially large, call
13046         Family_Size with 'Cap' set to true.
13047         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
13048         a protected version of an operation declared in the private part of
13049         a protected object, because they may be invoked through a callback.
13050         (Set_Privals): If the type of a private component is an anonymous access
13051         type, do not create a new itype for each protected body.
13052         If the body of a protected operation creates
13053         controlled types (including allocators for class-widetypes), the
13054         body of the corresponding protected subprogram must include a
13055         finalization list.
13056         (Build_Activation_Chain_Entity): Build the chain entity for extended
13057         return statements.
13058         (Type_Conformant_Parameters): Use common predicate Conforming_Types
13059         to determine whether operation overrides an inherited primitive.
13060         (Build_Wrapper_Spec): Add code to examine the parents while looking
13061         for a possible overriding candidate.
13062         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
13063         hold an actual parameter value since its initialization is separated
13064         from the the declaration. Prevents errors on null-excluding access
13065         formals.
13067 2007-04-06  Thomas Quinot  <quinot@adacore.com>
13068             Pablo Oliveira  <oliveira@adacore.com>
13070         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
13071         Do an Unchecked_Conversion to handle the passage from the Underlying
13072         Type to the Base Type when calling Build_To_Any_Call and
13073         Build_From_Any_Call.
13074         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
13075         E_Constant, depending upon Variable formal.
13076         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13077         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
13078         parameter that requires an extra constrained parameter, declare
13079         temporary for actual as a variable, not a constant.
13080         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
13081         the unit being compiled is the one that contains the stub type.
13082         Change primitive operation name for the RACW associated with a RAS
13083         from Call to _Call so it cannot clash with any legal identifier.
13084         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
13085         Is_RAS.
13086         (Append_RACW_Bodies): New subprogram.
13087         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
13088         Add_Receiving_Stubs_To_Declarations functions.
13089         When expanding a package body, this list correspond to the
13090         statements in the HSS at the end of the pacakge.
13091         When expanding a package spec, this list correspond to the
13092         spec declarations.
13093         (Add_Receiving_Stubs_To_Declarations): Append the function
13094         registering the receiving stubs at the end of the 'Stmts' list.
13095         (RCI_Package_Locator): Pass the new Version generic formal when
13096         instantiating a RCI_Locator package.
13097         (Build_From_Any_Function): To compute the High bound for an
13098         unconstrained array actual, we add the Low bound with the length.
13099         Thus we must convert the low bound and the length to an appropriate
13100         type before doing the sum.
13101         (Build_Subprogram_Receiving_Stubs, PolyORB):
13102          * Retrieve the extra formals parameters at the
13103            end of the parameter stream.
13104          * Use Move_Any_Value to write back out parameters
13105            after executing the request as it is more efficient
13106            than Copy_Any_Value.
13107          * Build the any containing Extra Formals with the
13108            appropriate typecode.
13109         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
13110         empty Component_List.
13111         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
13112         the tree the declaration for an object that serves as actual parameter
13113         in server-side stubs.
13114         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13115         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13116         Use Build_Actual_Object_Declaration to prepare the actuals.
13117         (Add_Parameter_To_NVList): Set the parameter mode to In for
13118         Extra Constrained Parameters.
13119         (Build_General_Calling_Stubs): Set the parameter type to boolean for
13120         Extra Constrained parameters.
13121         (Build_To_Any_Function, Build_From_Any_Function,
13122         Built_TypeCode_Function): When Typ is implicit, call the correct
13123         function with the first not implicit parent type.
13124         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
13125         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
13126         typecode from the Etype. Therefore we retrieve the correct typecode
13127         with a call to Get_Any_Type.
13128         (Copy_Specification): Do controlling formal type substitution based on
13129         Is_Controlling_Formal flag, instead of caller-provided object type.
13130         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
13131         a RACW primitive operation, we might get a subprogram declaration for an
13132         ancestor of the RACW designated type (not for the designated type
13133         itself), in the case where this operation is inherited. In this case we
13134         have no easy means of determining the original tagged type for which
13135         the primitive was declared, so instead we now rely on
13136         Copy_Specification to use the Is_Controlling_Formal flag to determine
13137         which formals require type substitution.
13139 2007-04-06  Robert Dewar  <dewar@adacore.com>
13140             Ed Schonberg  <schonberg@adacore.com>
13142         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
13143         GNAT.Current_Exception are not allowed if pragma Restrictions
13144         (No_Exception_Propagation) is set and in any case make the associated
13145         handler unsuitable as a target for a local raise statement.
13146         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
13147         run-time subprogram CW_Membership by call to Build_CW_Membership.
13148         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
13149         by a function call, a temporary must be created before expanding the
13150         Constructor_Call itself, to prevent out-of-order elaboration in the
13151         back-end when stack checking is enabled..
13153 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13155         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
13156         result are the bounds of the left operand, not the right.
13158 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13160         * exp_strm.adb
13161         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
13162          discriminant defaults.
13163         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
13164         (Make_Component_List_Attributes): Ditto.
13166 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13167             Bob Duff  <duff@adacore.com>
13169         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
13170         an association with a box as providing a value even though the
13171         initialization procedure for the type is not available.
13172         (Resolve_Record_Aggregate): Check that a choice of an association with a
13173         box corresponds to a component of the type.
13174         (Resolve_Record_Aggregate): Split Is_Abstract flag into
13175         Is_Abstract_Subprogram and Is_Abstract_Type.
13177         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
13178         assert.
13180         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
13181         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
13182         called only when appropriate.
13184 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13186         * g-alleve.ads (Low Level Vector type definitions): Map each to the
13187         associated vector view instead of all to the unsigned char view.
13189         * g-altcon.adb (Generic_Conversions): New internal generic package,
13190         offering facilities for all the Vector/View conversion routines
13191         implemented by this unit.
13192         (To_View/To_Vector - all versions): Reimplemented in a systematic
13193         manner, using the internal Generic_Conversions facilities.
13195 2007-04-06  Pascal Obry  <obry@adacore.com>
13197         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
13198         string.
13199         (Create): Free the source string before storing the new one.
13201 2007-04-06  Vincent Celier  <celier@adacore.com>
13203         * g-debpoo.adb (Validity): New package with a complete new
13204         implementation of subprograms Is_Valid and Set_Valid.
13205         (Is_Valid): Move to local package Validity
13206         (Set_Valid): Move to local package Validity
13208 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
13209             Pablo Oliveira  <oliveira@adacore.com>
13211         * g-expect.adb (Get_Command_Output): When expanding the output buffer
13212         we must ensure that there is enough place for the new data we are going
13213         to copy in.
13215 2007-04-06  Thomas Quinot  <quinot@adacore.com>
13217         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
13218         computation.
13220 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
13221             Vincent Celier  <celier@adacore.com>
13223         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
13224         (Stack_String): Add this String that contains the name of the Stack
13225         package in the project file.
13226         (Packages_To_Check_By_Stack): Add this list that contains the packages
13227         to be checked by gnatstack, which are the naming and the stack packages.
13228         (Check_Files): If no .ci files were specified for gnatstack we add all
13229         the .ci files belonging to the projects, including binder generated
13230         files.
13231         (Non_VMS_Usage): Document that gnatstack accept project file switches.
13232         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
13233         Add gnatstack to the list of commands that use project file related
13234         switches, and get the single attribute Switches from the stack package
13235         in a project file when calling gnatstack. Parse the -U flag for
13236         processing files belonging to all projects in the project tree.
13237         Remove all processing for command Setup
13239         * prj-attr.adb: Add new package Stack with single attribute Switches
13241         * vms_conv.ads (Command_Type): Add command Stack.
13242         Move to body declarations that are only used in the body: types Item_Id,
13243         Translation_Type, Item_Ptr, Item and its subtypes.
13245         * vms_conv.adb: (Initialize): Add data for new command Stack.
13246         Add declarations moved from the spec: types Item_Id, Translation_Type,
13247         Item_Ptr, Item and its subtypes.
13248         (Cargs_Buffer): New table
13249         (Cargs): New Boolean global variable
13250         (Process_Buffer): New procedure to create arguments
13251         (Place): Put character in table Buffer or Cargs_Buffer depending on the
13252          value of Cargs.
13253         (Process_Argument): Set Cargs when processing qualifiers for GNAT
13254         COMPILE
13255         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
13256         empty, for table Cargs_Buffer.
13257         (Initialize): Remove component Setup in Command_List
13259 2007-04-06  Vincent Celier  <celier@adacore.com>
13261         * gprep.adb (Process_Files.Process_One_File): Use full file name when
13262         issuing pragma Source_Reference.
13264 2007-04-06  Emmanuel Briot  <briot@adacore.com>
13266         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
13267         [[:xdigit:]] character class.
13268         Also raise an exception when an invalid character class is used.
13270 2007-04-06  Pascal Obry  <obry@adacore.com>
13272         * i-cstrea.ads: (fopen): Add encoding parameter.
13273         (freopen): Idem.
13274         Change reference from a-sysdep.c to sysdep.c in comment.
13275         Update copyright notice.
13276         This set of patch add support for the encoding form parameter.
13278         * mingw32.h (S2WSU): New macro to convert from a string to a
13279         wide-string using the UTF-8 encoding. The S2WS macro supports now only
13280         standard 8bits encoding.
13281         (WS2SU): As above but converting from wide-sring to string.
13282         This is needed as it is necessary to have access to both versions in the
13283         runtime for the form parameter encoding support.
13284         This set of patch add support for the encoding form parameter.
13285         (S2WS): Improve implementation to handle cases where the filename is not
13286         UTF-8 encoded. In this case we default to using the current code page
13287         for the conversion.
13289         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
13290         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
13291         the constants defined in adaint.h.
13292         (fopen): Add encoding parameter.
13293         (freopen): Idem.
13295         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
13296         encoding. This is needed for the Reset routine (freopen low level-call).
13298         * s-fileio.adb (Open): Decode encoding form parameter and set the
13299         corresponding encoding value into AFCB structure.
13300         (Reset): Pass the encoding value to freopen.
13301         (Close): Move the call to Lock_Task to the beginning of the procedure.
13303 2007-04-06  Geert Bosch  <bosch@adacore.com>
13304             Robert Dewar  <dewar@adacore.com>
13306         * i-fortra.ads: Add Double_Complex type.
13308         * impunit.adb: (Is_Known_Unit): New function
13309         Add Gnat.Byte_Swapping
13310         Add GNAT.SHA1
13311         Add new Ada 2005 units
13312         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
13313         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
13314         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
13315         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
13317         * impunit.ads (Is_Known_Unit): New function
13319         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
13320         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
13321         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
13322         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
13323         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
13324         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
13325         New files.
13327         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
13329         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
13331 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
13332             Arnaud Charlet  <charlet@adacore.com>
13334         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
13335         __gnat_adjust_context_for_raise.
13336         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
13337         implementation of floating point operations as native x86 targets.
13338         So the FPU should be initialized in the same way using finit. Fix
13339         floating point operations accuracy issues.
13340         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
13341         member in struct sigaction, so as to avoid warning for incompatible
13342         pointer types.
13344 2007-04-06 Serguei Rybin  <rybin@adacore.com>
13346         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
13347         switches from previously loaded tree
13349 2007-04-06  Thomas Quinot  <quinot@adacore.com>
13351         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
13352         cases where a given dependency has a body or not.
13353         (Write_With_File_Names): New subprogram, common code for the two cases
13354         above.
13356 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13357             Javier Miranda  <miranda@adacore.com>
13359         * lib-xref.ads, lib-xref.adb: 
13360         Modify the loop that collects type references, to include interface
13361         types that the type implements. List each of these interfaces when
13362         building the entry for the type.
13363         (Generate_Definition): Initialize component Def and Typ of new entry
13364         in table Xrefs, to avoid to have these components unitialized.
13365         (Output_References): Split Is_Abstract flag into
13366         Is_Abstract_Subprogram and Is_Abstract_Type.
13367         (Generate_Reference): Add barrier to do not generate the warning
13368         associated with Ada 2005 entities with entities generated by the
13369         expander.
13371 2007-04-06  Robert Dewar  <dewar@adacore.com>
13372             Arnaud Charlet  <charlet@adacore.com>
13373             Vincent Celier  <celier@adacore.com>
13375         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
13376         Update 'Exception Handling Control' chapter which was outdated.
13377         Minor fix to documentation of -gnatwq
13378         Remove section "Adapting the Run Time to a New C++ Compiler" because
13379         it is now obsolete.
13380         Add passage on need of -nostart-files in some non-ada-main cases.
13381         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
13382         Update documentation about Interfacing with C++
13383         Add documentation for new gnatmake switch -p
13384         Add missing protocol part in URLs.
13385         Document -gnatyA
13386         Document pragma Compile_Time_Error
13387         Add documentation for Object_Size indicating that stand alone
13388         objects can have a larger size in some cases.
13389         Add node for GNAT.Byte_Swapping, GNAT.SHA1
13390         Update reference to the Ravenscar profile.
13391         Document pragma Unreferenced_Objects
13393         * gnat-style.texi: Fix typo
13395 2007-04-06  Vincent Celier  <celier@adacore.com>
13397         * mlib.adb (Building_Library): Only output "building a library..." in
13398         verbose mode
13400         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
13401         files in verbose mode.
13403         * mlib-utl.adb (Ar): Only output the first object files when not in
13404         verbose mode.
13405         (Gcc): Do not display all the object files if not in verbose mode, only
13406         the first one.
13408 2007-04-06  Robert Dewar  <dewar@adacore.com>
13410         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
13411         it no longer destroys the contents of Name_Buffer or Name_Len and
13412         non-standard and invalid names are handled better.
13413         (Get_Decoded_Name_String): Improve performance by using
13414         Name_Has_No_Encodings flag in the name table.
13415         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
13416         Used for debugging printouts.
13418 2007-04-06  Robert Dewar  <dewar@adacore.com>
13419             Javier Miranda  <miranda@adacore.com>
13420             Bob Duff  <duff@adacore.com>
13422         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
13423         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
13424         there is no need to generate always a record_definition_node in case
13425         of synchronized interface types.
13426         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
13427         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
13428         illegal in Ada 95, in cases where it is legal. Change the warnings to
13429         errors in other cases. Don't give the error unless the "not null"
13430         parses properly. Correct the source position at which the error occurs.
13431         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
13432         P_Null_Exclusion, to suppress "not null" warnings.
13433         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
13434         associated goto statements.
13436         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
13437         of END RECORD
13439         * scans.ads (Type_Token_Location): New flag
13441         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
13442         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
13443         P_Null_Exclusion, to suppress "not null" warnings.
13445 2007-04-06  Robert Dewar  <dewar@adacore.com>
13446             Javier Miranda  <miranda@adacore.com>
13447             Bob Duff  <duff@adacore.com>
13448             Vincent Celier  <celier@adacore.com>
13450         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
13451         (Extensions_Allowed): No longer sets Ada_Version
13452         Entry for pragma Unreferenced_Objects
13454         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
13455         system.tasking if pragma priority used in a procedure
13456         (Analyze_Pragma, case Warning): Handle dot warning switches
13457         (Process_Compile_Time_Warning_Or_Error): New procedure
13458         (Analyze_Pragma): Add processing for Compile_Time_Error
13459         Add support for extra arguments External_Name and Link_Name.
13460         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
13461         (Process_Import_Or_Interface): Add support for the use of pragma Import
13462         with tagged types.
13463         (Extensions_Allowed): No longer affects Ada_Version
13464         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
13465         Is_Abstract_Type. Make sure these are called only when appropriate.
13466         Add processing for pragma Unreferenced_Objects
13468         * snames.h, snames.ads, snames.adb: Add entry for pragma
13469         Compile_Time_Error
13470         Add new standard name Minimum_Binder_Options for new gprmake
13471         Add new standard names for gprmake: Archive_Suffix,
13472         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
13473         Library_Support, Library_Version_Options,
13474         Shared_Library_Minimum_Options,
13475         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
13476         Change Name_Call to Name_uCall so that it cannot clash with a legal
13477         subprogram name.
13478         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
13479         Append C_Plus_Plus to convention identifiers as synonym for CPP
13480         Add new standard names Stack and Builder_Switches
13481         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
13482         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
13483         Run_Path_Option, Toolchain_Version.
13484         Entry for pragma Unreferenced_Objects
13486         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
13487         switches, without repetition of "eD". Make sure that last character of
13488         -gnatep= switch is not taken as -gnat switch character.
13489         Complete rewrite of circuit for handling saving compilation options
13490         Occasioned by need to support dot switchs for -gnatw, but cleans up
13491         things in general.
13492         -gnatX does not affect Ada_Version
13493         Include -gnatyA in -gnatg style switches
13495         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
13496         warnings on return objects.
13497         (Warn_On_Useless_Assignment): Exclude warnings on return objects
13498         (Set_Dot_Warning_Switch): New procedure
13499         (Check_References): Add missing case of test for
13500         Has_Pragma_Unreferenced_Objects
13501         (Output_Unreferenced_Messages): Implement effect of new pragma
13502         Unreferenced_Objects, remove special casing of limited controlled
13503         variables.
13505 2007-04-06  Vincent Celier  <celier@adacore.com>
13507         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
13508         the default project path, initially done during elaboration of the
13509         package.
13510         If the prefix returned by Sdefault is null, get the prefix from a call
13511         to Executable_Prefix_Path.
13512         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
13513         null.
13515         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
13516         canonical directory name to open the directory from which files are
13517         retrieved.
13518         (Record_Other_Sources): Idem.
13519         (Locate_Directory): Add the possibility to create automatically missing
13520         directories when Setup_Projects is True.
13521         Call Locate_Directory so that the directory will be created when
13522         Setup_Projects is True, for object dir, library dir, library ALI dir,
13523         library source copy dir and exec dir.
13525         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
13526         versions of GNAT.
13528 2007-04-06  Robert Dewar  <dewar@adacore.com>
13530         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
13531         Use First/Next_Component_Or_Discriminant
13532         (Analyze_Record_Representation_Clause):
13533         Use First/Next_Component_Or_Discriminant
13534         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
13535         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
13536         definition if type is unconstrained.
13537         (Adjust_Record_For_Reverse_Bit_Order): New procedure
13538         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
13539         Is_Abstract_Subprogram and Is_Abstract_Type.
13540         (Adjust_Record_For_Reverse_Bit_Order): New procedure
13542         * repinfo.adb (List_Record_Info): Use First/
13543         Next_Component_Or_Discriminant.
13545         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
13546         New procedure.
13548         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
13549         Include -gnatyA in default switches
13551         * opt.ads: (Warn_On_Non_Local_Exception): New flag
13552         (Warn_On_Reverse_Bit_Order): New flag
13553         (Extensions_Allowed): Update the documentation.
13554         (Warn_On_Questionable_Missing_Parens): Now on by default
13556         * usage.adb: Add documentation of -gnatw.x/X switches
13557         Document new -gnatyA style switch
13558         -gnatq warnings are on by default
13560 2007-04-06  Ed Falis  <falis@adacore.com>
13562         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
13563         full word is no longer compared twice.
13565 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13567         * sem_ch10.adb (Install_Limited_Context_Clauses.
13568         Expand_Limited_With_Clause): Use a new copy of selector name in the
13569         call to Make_With_Clause. This fixes the tree structure for ASIS
13570         purposes. Nothing is changed in the compiler behaviour.
13571         (Process_Body_Clauses): Handle properly use clauses whose prefix is
13572         a package renaming.
13573         (Install_Limited_With_Clauses): Do not install non-limited view when it
13574         is still incomplete.
13576 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13577             Gary Dismukes  <dismukes@adacore.com>
13579         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
13580         when capturing size information, instead of base type, which for a
13581         formal array type will be the unconstrained type.
13582         (Analyze_Formal_Object_Declaration): Add check for illegal default
13583         expressions for a formal in object of a limited type.
13584         (Instantiate_Object): Ditto.
13585         (Check_Formal_Package_Instance): Skip entities that are formal objects,
13586         because they were defaulted in the formal package and no check applies
13587         to them.
13588         (Check_Formal_Package_Instance): Extend conformance check to other
13589         discrete types beyond Integer.
13590         (Process_Default): Copy directly the unmatched formal. A generic copy
13591         has already been performed in Analyze_Formal_Package.
13592         (Analyze_Associations): If a formal subprogram has no match, check for
13593         partial parametrization before looking for a default, to prevent
13594         spurious errors.
13595         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
13596         not set the instantiation environment before analyzing the actuals.
13597         Fixes regression on 8515-003 with implementation of AI-133.
13598         Set_Instance_Env checks whether the generic unit is a predefined
13599         unit, in which case the instance must be analyzed with the latest Ada
13600         mode. This setting must take place after analysis of the actuals,
13601         because the actuals must be analyzed and frozen in the Ada mode extant
13602         outside of the current instantiation.
13603         (Save_Env, Restore_Env): Preserve and restore the configuration
13604         parameters so that predefined units can be compiled in the proper Ada
13605         mode.
13606         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
13607         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
13608         and Is_Abstract_Type.
13609         (Analyze_Formal_Package): For better error recovery, Add exception
13610         handler to catch Instantion_Error, which can be raised in
13611         Analyze_Associations
13613 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13614             Bob Duff  <duff@adacore.com>
13615             Gary Dismukes  <dismukes@adacore.com>
13617         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
13618         prefix type is a discriminated subtype of the type of the formal.
13619         (Analyze_Allocator): Collect all coextensions regardless of the context.
13620         Whether they can be allocated statically is determined in exp_ch4.
13621         (Analyze_Selected_Component): If the prefix is a limited view and the
13622         non-limited view is available, use the non-limited one.
13623         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
13624         therefore illegal), suggest a qualified expression rather than a type
13625         conversion, because a type conversion would be illegal in this context.
13626         (Anayze_Allocator): Trace recursively all nested allocators so that all
13627         coextensions are on the corresponding list for the root. Do no mark
13628         coextensions if the root allocator is within a declaration for a stack-
13629         allocated object, because the access discriminants will be allocated on
13630         the stack as well.
13631         (Analyze_Call): Remove restriction on calls to limited functions for the
13632         cases of generic actuals for formal objects, defaults for formal objects
13633         and defaults for record components.
13634         (Analyze_Allocator): Before analysis, chain coextensions on the proper
13635         element list. Their expansion is delayed until the enclosing allocator
13636         is processed and its finalization list constructed.
13637         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
13638         for an operation with the given name among the primitive operations of
13639         the corresponding record type.
13640         (Analyze_Selected_Component): If the prefix is a task type that
13641         implements an interface, and there is no entry with the given name,
13642         check whether there is another primitive operation (e.g. a function)
13643         with that name.
13644         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
13645         properly the indexing of a function call written in prefix form, where
13646         the function returns an array type, and all parameters of the function
13647         except the first have defaults.
13648         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
13649         the original operands, rather than relocating them, for efficiency and
13650         to work properly when an operand is overloaded.
13651         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
13652         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
13653         (Analyze_Selected_Component): If the prefix is a private extension, only
13654         scan the visible components, not those of the full view.
13655         (Try_Primitive_Operation): If the operation is a procedure, collect all
13656         possible interpretations, as for a function, because in the presence of
13657         classwide parameters several primitive operations of the type can match
13658         the given arguments.
13660 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13661             Robert Dewar  <dewar@adacore.com>
13663         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
13664         tag-indeterminate call to an abstract function, when the left-hand side
13665         is not classwide.
13666         (Analyze_Loop_Statement): Improve detection of infinite loops
13668 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13669             Thomas Quinot  <quinot@adacore.com>
13671         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
13672         out of Analyze_Package_Declaration, because processing must be applied
13673         to package bodies as well, for deferred constants completed by pragmas.
13674         (Analyze_Package_Declaration): When the package declaration being
13675         analyzed does not require an explicit body, call Check_Completion.
13676         (May_Need_Implicit_Body): An implicit body is required when a package
13677         spec contains the declaration of a remote access-to-classwide type.
13678         (Analyze_Package_Body): If the package contains RACWs, append the
13679         pending subprogram bodies generated by exp_dist at the end of the body.
13680         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
13681         Is_Abstract_Subprogram and Is_Abstract_Type.
13682         (Preserve_Full_Attributes): The full entity list is not an attribute
13683         that must be preserved from full to partial view.
13685         * sem_dist.adb (Add_RAS_Dereference_TSS):
13686         Change primitive name to _Call so it cannot clash with any legal
13687         identifier, and be special-cased in Check_Completion.
13688         Mark the full view of the designated type for the RACW associated with
13689         a RAS as Comes_From_Source to get proper view switching when installing
13690         private declarations.
13691         Provite a placeholder nested package body along with the nested spec
13692         to have a place for Append_RACW_Bodies to generate the calling stubs
13693         and stream attributes.
13695 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13696             Robert Dewar  <dewar@adacore.com>
13698         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
13699         that is a limited view, check the non-limited view if available.
13700         (Undefined): Refine error message for missing with of Text_IO
13701         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
13702         to distinguish real missing with cases.
13703         Fix format of all missing with messages
13704         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
13705         renaming as body when renamed entity is abstract.
13707 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13708             Javier Miranda  <miranda@adacore.com>
13710         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
13711         predicate recursive, to handle complex expressions on literals whose
13712         spurious ambiguity comes from the abstract interpretation of some
13713         subexpression.
13714         (Interface_Present_In_Ancestor): Add support to concurrent record
13715         types.
13716         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
13717         Is_Abstract_Subprogram and Is_Abstract_Type.
13719 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13720             Javier Miranda  <miranda@adacore.com>
13722         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
13723         dereference of a local object R created as a reference to another
13724         object O, use the access level of O.
13725         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
13726         rather than local Same_Formal_Type, to check whether protected operation
13727         overrides an inherited one.
13728         (Same_Formal_Type): New predicate, used when matching signatures of
13729         overriding synchronized operations, to handle the case when a formal
13730         has a type that is a generic actual.
13731         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
13732         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
13733         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
13734         syntactic ambiguities involving indexing of function calls that return
13735         arrays.
13736         (Abstract_Interface_List): New subprogram that returns the list of
13737         abstract interfaces associated with a concurrent type or a
13738         concurrent record type.
13739         (Interface_Present_In_Parent): New subprogram used to check if a
13740         given type or some of its parents implement a given interface.
13741         (Collect_Abstract_Interfaces): Add support for concurrent types
13742         with interface types.
13743         (Has_Abstract_Interfaces): Add support for concurrent types with
13744         interface types.
13745         (Is_Parent): New subprogram that determines whether E1 is a parent
13746         of E2. For a concurrent type its parent is the first element of its
13747         list of interface types; for other types this function provides the
13748         same result than Is_Ancestor.
13749         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
13750         (Collect_Synchronized_Interfaces): Removed because the subprogram
13751         Collect_Abstract_Interfaces provides this functionality.
13752         (Collect_Abstract_Interfaces): Minor update to give support to
13753         concurrent types and thus avoid undesired code duplication.
13754         (Get_Subprogram_Entity): Handle entry calls.
13755         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
13756         entry calls.
13757         (Enter_Name): Do not give -gnatwh hiding warning for record component
13758         entities, they never result in hiding.
13760 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
13761             Robert Dewar  <dewar@adacore.com>
13763         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
13764         to chain nested components that are allocators for access discriminants
13765         of the enclosing object.
13766         Add N_Push and N_Pop nodes
13767         New field Exception_Label added
13768         (Local_Raise_Statements): New field in N_Exception_Handler_Node
13769         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
13770         (Is_Coextension): New flag for allocators, to mark allocators that
13771         correspond to access discriminants of dynamically allocated objects.
13772         (N_Block_Statement): Document the fact that the corresponding entity
13773         can be an E_Return_Statement.
13774         (Is_Coextension): New flag for allocators.
13775         Remove all code for DSP option
13777         * sprint.ads, sprint.adb: Display basic information for class_wide
13778         subtypes. Add handling of N_Push and N_Pop nodes
13780 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
13782         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
13783         before propagating exception.
13785 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13787         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
13788         an address always within the call instruction from a return address.
13790 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13791             Eric Botcazou  <botcazou@adacore.com>
13793         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
13794         expression with a COMPOUND_EXPR including the call instead of emitting
13795         the call directly here.
13796         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
13797         high bound is constant and the slice is empty.  Tidy.
13798         (tree_transform, case N_Op_Not): Handle properly the case where the
13799         operation applies to a private type whose full view is a modular type.
13800         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
13801         Address_Clause, use the associated Expression as the GNAT tree
13802         representing the choice value to ensure the corresponding GCC tree is
13803         of the proper kind.
13804         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
13805         instead of just the operands, as the base GCC stabilize_reference does.
13806         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
13807         requested; otherwise fail.
13808         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
13810 2007-04-06  Thomas Quinot  <quinot@adacore.com>
13812         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
13813         implementation of UI_Div.
13814         (UI_Div): Reimplement as a call to UI_Div_Rem.
13815         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
13816         remainder, avoiding the cost of a multiplication and a subtraction.
13817         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
13818         provides both quotient and remainder in a single computation.
13819         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
13820         functions for uint.
13821         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
13822         is undefined if the given n is not inversible.
13824 2007-04-06  Olivier Hainque  <hainque@adacore.com>
13826         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
13827         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
13828         opcodes.
13830 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
13831             Olivier Hainque  <hainque@adacore.com>
13833         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
13834         when updating the contents of the old pointer to an unconstrained array.
13835         (end_subprog_body): Set error_gnat_node to Empty.
13836         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
13837         (unchecked_convert): For subtype to base type conversions, require that
13838         the source be a subtype if it is an integer type.
13839         (builtin_decls): New global, vector of available builtin functions.
13840         (gnat_pushdecl): Add global builtin function declaration nodes to the
13841         builtin_decls list.
13842         (gnat_install_builtins): Adjust comments.
13843         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
13844         calling gnat_pushdecl, so that it knows when it handed a builtin
13845         function declaration node.
13846         (builtin_decl_for): Search the builtin_decls list.
13848 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
13850         * s-stchop-vxworks.adb: 
13851         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
13853 2007-04-06  Robert Dewar  <dewar@adacore.com>
13854             Arnaud Charlet  <charlet@adacore.com>
13856         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
13858         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
13859         of files
13860         Add mention of -Sev (set initialize_scalars option from environment
13861         variable at run time) in gnatbind usage message.
13863         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
13865         * fname-uf.ads: Minor comment fix
13867         * osint.ads: Change pragma Elaborate to Elaborate_All
13869         * par-load.adb: Add documentation.
13871         * sem_cat.ads, sem_cat.adb: Minor code reorganization
13873         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
13875         * s-secsta.ads: Extra comments
13877         * s-soflin.ads: Minor comment fixes
13879         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
13881         * s-wchcon.ads: Minor comment addition
13883         * treepr.adb: Minor change in message
13884         (Print_Name,Print_Node): Make these debug printouts more robust: print
13885         "no such..." instead of crashing on bad input.
13887 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
13889         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
13890         instead of gnat_signed_or_unsigned_type.
13891         * utils.c (gnat_signed_or_unsigned_type): Remove.
13892         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
13893         * gigi.h (gnat_signed_or_unsigned_type): Remove
13895 2007-03-09  Roger Sayle  <roger@eyesopen.com>
13897         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
13898         fold with the result of buildN.
13899         * decl.c (gnat_to_gnu_entity): Likewise.
13900         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
13901         * utils.c (finish_record_type, merge_sizes, max_size, convert):
13902         Likewise.
13903         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
13904         nonbinary_modular_operation, build_binary_op, build_unary_op,
13905         build_cond_expr): Likewise.
13907         * utils.c (convert): Use fold_build1 when casting values to void.
13908         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
13909         fold_convert instead of convert when appropriate.
13911 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
13913         * Make-lang.in: Add install-pdf target as copied from
13914         automake v1.10 rules.
13916 2007-02-28  Andreas Schwab  <schwab@suse.de>
13918         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
13919         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
13920         (doc/gnat-style.info): Likewise.
13922 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
13924         * gnat-style.texi: Standardize title page.
13925         * gnat_rm.texi: Likewise.
13926         * gnat_ugn.texi: Likewise.
13928 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
13930         * decl.c (annotate_value): Adjust for refactoring of tree_map
13931         hierarchy.
13933 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
13935         * decl.c (annotate_value): Adjust for refactoring of tree_map
13936         hierarchy.
13938 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
13940         PR ada/18819
13941         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
13942         untagged derived type, add hidden components to keep discriminant
13943         layout consistent, when a given discriminant of the derived type
13944         constraints several discriminants of the parent type.
13946 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
13947             Sandra Loosemore  <sandra@codesourcery.com>
13949         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
13950         build the call expression.
13951         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
13952         * utils.c (max_size) <tcc_exceptional>: Delete.
13953         <tcc_vl_exp>: New case.
13954         <tcc_expression>: Delete CALL_EXPR subcase.
13955         (build_global_cdtor): Use build_call_nary instead of build3.
13956         * utils2.c (build_call_1_expr): Likewise.
13957         (build_call_2_expr): Likewise.
13958         (build_call_0_expr): Likewise.
13959         (build_call_alloc_dealloc): Likewise.
13961 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
13963         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
13964         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
13965         and _Unwind_SWord with _sleb128_t.
13967 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
13969         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
13970         * decl.c: Include gt-ada-decl.h.
13971         (annotate_value_cache): New.
13972         (annotate_value): Use it instead of TREE_COMPLEXITY.
13974 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
13976         * misc.c, utils2.c: Fix comment typos.
13978 2007-01-24  Roger Sayle  <roger@eyesopen.com>
13980         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
13981         TREE_CONSTANT_OVERFLOW.
13982         (allocatable_size_p, annotate_value): Likewise.
13983         * trans.c (gnat_to_gnu): Likewise.
13984         * utils.c (unchecked_convert): Likewise.
13985         * utils2.c (build_simple_component_ref): Likewise.
13987 2007-01-23  Richard Guenther  <rguenther@suse.de>
13989         PR bootstrap/30541
13990         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
13991         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
13992         (gnatboot3): Likewise.
13993         (GNATBIND): Do not define.
13994         * Makefile.in (GNATBIND): Do not define.
13996 2007-01-08  Richard Guenther  <rguenther@suse.de>
13998         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
13999         * trans.c (gnat_to_gnu): Likewise.
14001 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
14003         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
14004         * adaint.c: Likewise.
14006 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
14008         Merge from gimple-tuples-branch:
14009         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
14011         * ada-tree.h (lang_tree_node): Handle gimple tuples.
14012         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
14013         GIMPLE_MODIFY_STMT.
14015 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
14017         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
14018         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
14019         Fix typos.
14021 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
14023         PR ada/27936
14024         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
14025         if the initializer takes into account the padding.
14027 2006-11-11  Richard Guenther  <rguenther@suse.de>
14029         * trans.c (maybe_stabilize_reference): Remove handling of
14030         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
14032 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
14034         PR ada/29707
14035         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
14036         (To_Target_Priority): New function.
14038 2006-10-31  Robert Dewar  <dewar@adacore.com>
14040         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
14041         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
14042         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
14043         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
14044         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
14045         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
14046         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
14047         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
14048         a-szbzha.adb: Minor reformatting. Fix header.
14050         * a-numaux-x86.adb: Add parentheses for use of unary minus
14051         * a-ngcefu.adb: Supply missing parentheses for unary minus
14052         * a-ngcoty.adb: Add parens for use of unary minus
14053         * a-ngelfu.adb: Add missing parens for unary minus
14054         * a-tifiio.adb: Add parentheses for uses of unary minus
14056 2006-10-31  Robert Dewar  <dewar@adacore.com>
14057             Bob Duff  <duff@adacore.com>
14058             Ed Schonberg  <schonberg@adacore.com>
14060         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
14061         with multiplying operator.
14062         (Expected_Type_Is_Any_Real): New function to determine from the Parent
14063         pointer whether the context expects "any real type".
14064         (Resolve_Arithmetic_Op): Do not give an error on calls to the
14065         universal_fixed "*" and "/" operators when they are used in a context
14066         that expects any real type. Also set the type of the node to
14067         Universal_Real in this case, because downstream processing requires it
14068         (mainly static expression evaluation).
14069         Reword some continuation messages
14070         Add some \\ sequences to continuation messages
14071         (Resolve_Call): Refine infinite recursion case. The test has been
14072         sharpened to eliminate some false positives.
14073         Check for Current_Task usage now includes entry barrier, and is now a
14074         warning, not an error.
14075         (Resolve): If the call is ambiguous, indicate whether an interpretation
14076         is an inherited operation.
14077         (Check_Aggr): When resolving aggregates, skip associations with a box,
14078         which are priori correct, and will be replaced by an actual default
14079         expression in the course of expansion.
14080         (Resolve_Type_Conversion): Add missing support for conversion from
14081         a class-wide interface to a tagged type. Minor code cleanup.
14082         (Valid_Tagged_Converion): Add support for abstact interface type
14083         conversions.
14084         (Resolve_Selected_Component): Call Generate_Reference here rather than
14085         during analysis, and use May_Be_Lvalue to distinguish read/write.
14086         (Valid_Array_Conversion): New procedure, abstracted from
14087         Valid_Conversion, to incorporate accessibility checks for arrays of
14088         anonymous access types.
14089         (Valid_Conversion): For a conversion to a numeric type occurring in an
14090         instance or inlined body, no need to check that the operand type is
14091         numeric, since this has been checked during analysis of the template.
14092         Remove legacy test for scope name Unchecked_Conversion.
14094         * sem_res.ads: Minor reformatting
14096         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
14097         (PE_Current_Task_In_Entry_Body): New exception code
14098         (SE_Restriction_Violation): Removed, not used
14100         * a-except.ads:  Update comments.
14102         * types.h, types.ads: Add definition for Validity_Check
14103         (PE_Current_Task_In_Entry_Body): New exception code
14104         (SE_Restriction_Violation): Removed, not used
14106 2006-10-31  Thomas Quinot  <quinot@adacore.com>
14108         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
14109         error status.
14111 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
14112             Jose Ruiz  <ruiz@adacore.com>
14114         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
14115         part of Ada.Calendar: all subprogram raise Unimplemented.
14116         (Split_W_Offset): Temp function body, raising Unimplemented
14118         * a-calend.ads, a-calend-vms.ads: 
14119         Add imported variable Invalid_TZ_Offset used to designate targets unable
14120         to support time zones.
14121         (Unimplemented): Temporary function raised by the body of new
14122         subprograms below.
14123         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
14124         unit provides handling of leap seconds and is used by the new Ada 2005
14125         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
14126         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
14127         version returns an extra value which is the offset to UTC.
14129         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
14130         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
14131         (Split_W_Offset): New function body.
14132         (Time_Of): When a date is close to UNIX epoch, compute the time for
14133         that date plus one day (that amount is later substracted after
14134         executing mktime) so there are no problems with time zone adjustments.
14136         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
14138         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
14139         a-catizo.ads, a-catizo.adb: New files.
14141         * impunit.adb: Add new Ada 2005 entries
14143         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
14144         Rename all occurences of "__gnat_localtime_r" to
14145         "__gnat_localtime_tzoff".
14146         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
14147         zone data and calculate the GMT offset.
14148         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
14149         Use the field "tm_gmtoff" to extract the GMT offset.
14150         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
14151         the external variable "timezone" to calculate the GMT offset.
14153 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
14154             Jose Ruiz  <ruiz@adacore.com>
14156         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
14157         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
14158         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
14159         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
14160         System.Any_Priority to a POSIX priority on the target.
14162         * system-linux-ia64.ads: 
14163         Extend range of Priority types on Linux to use the whole range made
14164         available by the system.
14166         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
14167         function maps from System.Any_Priority to a POSIX priority on the
14168         target.
14169         (PTHREAD_PRIO_PROTECT): Set real value.
14170         (PTHREAD_PRIO_INHERIT): Now a function.
14171         (SIGCPUFAIL): New signal.
14172         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
14173         are documented as reserved by the OS.
14175         * system-aix.ads: Use the full range of priorities provided by the
14176         system on AIX.
14178         * s-taprop-posix.adb: Call new function To_Target_Priority.
14179         (Set_Priority): Take into account Task_Dispatching_Policy and
14180         Priority_Specific_Dispatching pragmas when determining if Round Robin
14181         must be used for scheduling the task.
14183         * system-linux-x86_64.ads, system-linux-x86.ads, 
14184         system-linux-ppc.ads: Extend range of Priority types on Linux to use
14185         the whole range made available by the system.
14187         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
14188         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
14189         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
14190         when deallocating the TCB in order to avoid potential references to
14191         deallocated data.
14192         (Set_Priority): Take into account Task_Dispatching_Policy and
14193         Priority_Specific_Dispatching pragmas when determining if Round Robin
14194         or FIFO within priorities must be used for scheduling the task.
14196         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
14197         the Thread field (to be used internally by the run-time system) and the
14198         kernel-level task id in the LWP field (to be used by the debugger).
14199         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
14200         instance, and propagate the current task options to the spawned task.
14201         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
14202         (Initialize): Set Round Robin dispatching when the corresponding pragma
14203         is in effect.
14205 2006-10-31  Robert Dewar  <dewar@adacore.com>
14207         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
14208         system-linux-hppa.ads, system-hpux-ia64.ads, 
14209         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
14210         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
14211         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
14212         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
14213         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
14214         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
14215         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
14216         Default_Bit_Order) to kill constant condition warnings for references
14217         to this switch.
14219 2006-10-31  Vincent Celier  <celier@adacore.com>
14220             Eric Botcazou  <ebotcazou@adacore.com>
14222         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
14223         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
14224         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
14225         Ext_To, when building the library file name
14227         * mlib-tgt-vxworks.adb: ditto.
14228         (Get_Target_Suffix): Add support for x86 targets.
14230         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
14232         * mlib-tgt-darwin.adb: 
14233         Use Append_To, instead of Ext_To, when building the library file name
14234         (Flat_Namespace): New global variable.
14235         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
14236         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
14237         (Link_Shared_Libgcc): Delete.
14238         (Build_Dynamic_Library): Adjust for above changes.
14239         Use Opt package.
14240         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
14242 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
14244         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
14245         (Initialize): Add type conversions required by above change.
14247 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
14249         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
14250         (getpid): New body for this function that uses the underlying taskIdSelf
14251         function for VxWorks 5 and VxWorks 6 in kernel mode.
14252         (unsigned_int): New type, modular to allow logical bit operations.
14253         (taskOptionsGet): New imported function.
14255         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
14256         field to be compliant with the type used by the corresponding operating
14257         system primitive.
14259 2006-10-31  Pascal Obry  <obry@adacore.com>
14260             Eric Botcazou  <ebotcazou@adacore.com>
14261             Vincent Celier  <celier@adacore.com>
14263         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
14264         ASCII version of the registry API. This is needed as the GNAT runtime
14265         is now UNICODE by default.
14266         Include version.h.
14267         (get_gcc_version): Do not hardcode the return value.
14268         (__gnat_file_time_name): On Windows properly set the default returned
14269         value to -1 which corresponds to Invalid_Time.
14270         (__gnat_fopen): New routine. A simple wrapper on all plateforms
14271          except on Windows where it does conversion for unicode support.
14272         (__gnat_freopen): Idem.
14273         (__gnat_locate_exec_on_path): If environment variable PATH does not
14274         exist, return a NULL pointer
14276         * adaint.h: (__gnat_fopen): Declare.
14277         (__gnat_freopen): Likewise.
14279         * mingw32.h (_tfreopen): Define this macro here for older MingW
14280         version.
14281         Activate the unicode support on platforms using a MingW runtime
14282         version 3.9 or newer.
14284         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
14285         This is needed for proper unicode support on Windows.
14286         (freopen): Idem.
14288 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
14289             Nicolas Setton  <setton@adacore.com>
14290             Olivier Hainque  <hainque@adacore.com>
14291             Gary Dismukes  <dismukes@adacore.com>
14293         * gigi.h: (tree_code_for_record_type): Declare.
14294         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
14295         (get_global_renaming_pointers): Rename to
14296         invalidate_global_renaming_pointers.
14297         (static_ctors): Delete.
14298         (static_dtors): Likewise.
14299         (gnat_write_global_declarations): Declare.
14300         (create_var_decl): Adjust descriptive comment to indicate that the
14301         subprogram may return a CONST_DECL node.
14302         (create_true_var_decl): Declare new function, similar to
14303         create_var_decl but forcing the creation of a VAR_DECL node.
14304         (get_global_renaming_pointers): Declare.
14305         (add_global_renaming_pointer): Likewise.
14307         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
14309         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
14310         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
14311         processing.
14312         (gnat_to_gnu_entity): Remove From_With_Type from computation for
14313         imported_p.
14314         <E_Access_Type>: Use the Non_Limited_View as the full view of the
14315         designated type if the pointer comes from a limited_with clause.  Make
14316         incomplete designated type if it is in the main unit and has a freeze
14317         node.
14318         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
14319         Underlying_Full_View similarly.  Return earlier if the full view already
14320         has an associated tree.
14321         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
14322         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
14323         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
14324         reference type built for objects with an address clause.
14325         Use create_true_var_decl with const_flag set for
14326         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
14327         TREE_READONLY set.
14328         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
14329         for Character and Wide_Character types. This info is read by the
14330         dwarf-2 writer, and is needed to be able to use the command "ptype
14331         character" in the debugger.
14332         (gnat_to_gnu_entity): When generating a type representing
14333         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
14334         so that debug writers can distinguish it from ordinary integers.
14335         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
14336         addition to TREE_READONLY to assert the constantness of variables for
14337         elaboration purposes.
14338         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
14339         parameters to call new Einfo function First_Formal_With_Extras.
14340         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
14341         protected type with its corresponding discriminant, to obtain a usable
14342         declaration
14343         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
14344         for a multiple elaboration of the "equivalent" type.
14345         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
14346         into record_global_renaming_pointer.
14347         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
14348         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
14349         <E_Array_Subtype>: Likewise.
14350         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
14351         incomplete subtypes and incomplete subtypes of incomplete types visible
14352         through a limited with clause.
14353         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
14354         the base index type for the maximum size of the array only if they are
14355         constant.
14356         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
14357         expression into a SAVE_EXPR if stabilization failed.
14359         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
14360         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
14361         by lower level compilation passes.
14362         (gnat_genericize): New function, lowering a function body to GENERIC.
14363         Turn the type of RESULT_DECL into a real reference type if the decl
14364         has been marked DECL_BY_REFERENCE, and adjust references to the latter
14365         accordingly.
14366         (gnat_genericize_r): New function. Tree walking callback for
14367         gnat_genericize.
14368         (convert_from_reference, is_byref_result): New functions. Helpers for
14369         gnat_genericize_r.
14370         (create_type_decl): Call gnat_pushdecl before calling
14371         rest_of_decl_compilation, to make sure that field TYPE_NAME of
14372         type_decl is properly set before calling the debug information writers.
14373         (write_record_type_debug_info): The heuristics which compute the
14374         alignment of a field in a variant record might not be accurate. Add a
14375         safety test to make sure no alignment is set to a smaller value than
14376         the alignment of the field type.
14377         (make_dummy_type): Use the Non_Limited_View as the underlying type if
14378         the type comes from a limited_with clause. Do not loop on the full view.
14379         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
14380         (dummy_node_table): New global variable, moved from decl.c.
14381         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
14382         (save_gnu_tree): Use above macros.
14383         (get_gnu_tree): Likewise.
14384         (present_gnu_tree): Likewise.
14385         (init_dummy_type): New function, moved from decl.c. Use above macros.
14386         (make_dummy_type): Likewise.
14387         (tree_code_for_record_type): New function extracted from make_dummy_type
14388         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
14389         (static_ctors): Change it to a vector, make static.
14390         (static_dtors): Likewise.
14391         (end_subprog_body): Adjust for above change.
14392         (build_global_cdtor): Moved from trans.c.
14393         (gnat_write_global_declarations): Emit global constructor and
14394         destructor, and call cgraph_optimize before emitting debug info for
14395         global declarations.
14396         (global_decls): New global variable.
14397         (gnat_pushdecl): Store the global declarations in global_decls, for
14398         later use.
14399         (gnat_write_global_declarations): Emit debug information for global
14400          declarations.
14401         (create_var_decl_1): Former create_var_decl, with an extra argument to
14402          state whether the creation of a CONST_DECL is allowed.
14403         (create_var_decl): Behavior unchanged. Now a wrapper around
14404         create_var_decl_1 allowing CONST_DECL creation.
14405         (create_true_var_decl): New function, similar to create_var_decl but
14406         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
14407         (create_field_decl): Do not always mark the field as addressable
14408         if its type is an aggregate.
14409         (global_renaming_pointers): New static variable.
14410         (add_global_renaming_pointer): New function.
14411         (get_global_renaming_pointers): Likewise.
14413         * misc.c (gnat_dwarf_name): New function.
14414         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
14415         (gnat_post_options): Add comment about structural alias analysis.
14416         (gnat_parse_file): Do not call cgraph_optimize here.
14417         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
14419         * trans.c (process_freeze_entity): Don't abort if we already have a
14420         non dummy GCC tree for a Concurrent_Record_Type, as it might
14421         legitimately have been elaborated while processing the associated
14422         Concurrent_Type prior to this explicit freeze node.
14423         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
14424         exception handler volatile if it is of variable size.
14425         (process_type): Remove bypass for types coming from a limited_with
14426         clause.
14427         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
14428         actual, convert the corresponding gnu_actual to the real destination
14429         type when necessary.
14430         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
14431         originally TREE_READONLY but whose elaboration cannot be performed
14432         statically.
14433         Part of fix for F504-021.
14434         (tree_transform, subprogram cases): Change loops on formal parameters to
14435         call new Einfo function First_Formal_With_Extras.
14436         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
14437         stemming from type conversion for the lhs.
14438         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
14439         number of bits per unit for components of records.
14440         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
14441         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
14442         with At_End_Proc after the SJLJ EH cleanup.
14443         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
14444         compilation unit.
14445         (elaborate_all_entities): Do not retest type_annotate_only.
14446         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
14447         result type of an abstract subprogram, which may be an itype associated
14448         with an anonymous access result (related to AI-318-02).
14449         (build_global_cdtor): Move to utils.c.
14450         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
14451         this choice is not a null tree nor an integer constant.
14452         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
14453         on the body of elaboration routines instead of mark_unvisited.
14454         (add_stmt): Do not mark the tree.
14455         (add_decl_expr): Tweak comment.
14456         (mark_unvisited): Delete.
14457         (unshare_save_expr): New static function.
14458         (call_to_gnu): Issue an error when making a temporary around a
14459         procedure call because of non-addressable actual parameter if the
14460         type of the formal is by_reference.
14461         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
14462         after building the elaboration routine.
14464 2006-10-31  Bob Duff  <duff@adacore.com>
14466         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
14467         as finalization-started, so we can raise Program_Error on 'new'.
14469         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
14470         collection has already started.
14472         * s-finimp.ads (Collection_Finalization_Started): Added new special
14473         flag value for indicating that a collection's finalization has started.
14475         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
14476         create a task whose master has already waited for dependent tasks.
14478 2006-10-31  Robert Dewar  <dewar@adacore.com>
14480         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
14482         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
14483         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
14484         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
14485         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
14486         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
14487         a-except-2005.ads: Add pragma Preelaborable_Warning
14489 2006-10-31  Robert Dewar  <dewar@adacore.com>
14490             Jose Ruiz  <ruiz@adacore.com>
14492         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
14494         * ali.adb (Get_Name): Properly handle scanning of wide character names
14495         encoded with brackets notation.
14496         (Known_ALI_Lines): Add S lines to this list.
14497         (Scan_ALI): Acquire S (priority specific dispatching) lines.
14498         New flag Elaborate_All_Desirable in unit table
14500         * ali.ads (Priority_Specific_Dispatching): Add this range of
14501         identifiers to be used for Priority_Specific_Dispatching table entries.
14502         (ALIs_Record): Add First_Specific_Dispatching and
14503         Last_Specific_Dispatching that point to the first and last entries
14504         respectively in the priority specific dispatching table for this unit.
14505         (Specific_Dispatching): Add this table for storing each S (priority
14506         specific dispatching) line encountered in the input ALI file.
14507         New flag Elaborate_All_Desirable in unit table
14509         * bcheck.adb: (Check_Configuration_Consistency): Add call to
14510         Check_Consistent_Dispatching_Policy.
14511         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
14512         verifying that the use of Priority_Specific_Dispatching,
14513         Task_Dispatching_Policy, and Locking_Policy is consistent across the
14514         partition.
14516         * bindgen.adb: (Public_Version_Warning): function removed.
14517         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
14518         required information from ALI files in order to initialize the table
14519         containing the specific dispatching policy.
14520         (Gen_Adainit_Ada): Generate the variables required for priority specific
14521         dispatching entries (__gl_priority_specific_dispatching and
14522         __gl_num_specific_dispatching).
14523         (Gen_Adainit_C): Generate the variables required for priority specific
14524         dispatching entries (__gl_priority_specific_dispatching and
14525         __gl_num_specific_dispatching).
14526         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
14527         pragma entries.
14528         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
14529         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
14530         (Tab_To): Removed.
14531         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
14532         a call to gnat_set_globals.
14533         Generate a string containing settings from
14534         Priority_Specific_Dispatching pragma entries.
14535         (Gen_Object_Files_Options): Do not include the runtime libraries when
14536         pragma No_Run_Time is specified.
14538         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
14539         consistency with s-intman-posix.adb.
14540         (__gnat_error_handler, case FreeBSD): Account for the fact that the
14541         handler is installed with SA_SIGINFO.
14542         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
14543         FreeBSD ZCX support, copied from Linux version.
14544         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
14545         sigfillset, and sigemptyset so the routines defined by MaRTE.
14546         (__gl_priority_specific_dispatching): Add this variable that stores the
14547         string containing priority specific dispatching policies in the
14548         partition.
14549         (__gl_num_specific_dispatching): Add this variable that indicates the
14550         highest priority for which a priority specific dispatching pragma
14551         applies.
14552         (__gnat_get_specific_dispatching): Add this routine that returns the
14553         priority specific dispatching policy, as set by a
14554         Priority_Specific_Dispatching pragma appearing anywhere in the current
14555         partition. The input argument is the priority number, and the result
14556         is the upper case first character of the policy name.
14557         (__gnat_set_globals): Now a dummy function.
14558         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
14559         mechargs instead of sigargs, as the latter can be retrieved from the
14560         former and sigargs is not what we want on ia64.
14561         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
14562         mechargs argument.
14563         (__gnat_adjust_context_for_raise, ia64-vms): New function.
14564         (tasking_error): Remove unused symbol.
14565         (_abort_signal): Move this symbol to the IRIX specific part since this
14566         is the only target that uses this definition.
14567         (Check_Abort_Status): Move this symbol to the IRIX specific part since
14568         this is the only target that uses this definition.
14569         (Lock_Task): Remove unused symbol.
14570         (Unlock_Task): Remove unused symbol.
14572         * lib-writ.adb (Write_ALI): Output new S lines for
14573         Priority_Specific_Dispatching pragmas.
14574         Implement new flag BD for elaborate body desirable
14576         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
14577         (Specific_Dispatching): Add this table for storing the entries
14578         corresponding to Priority_Specific_Dispatching pragmas.
14579         Document new BD flag for elaborate body desirable
14581         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
14582         of known pragmas.
14584 2006-10-31  Javier Miranda  <miranda@adacore.com>
14586         * a-tags.ads, a-tags.adb: 
14587         (Predefined_DT): New function that improves readability of the code.
14588         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
14589         Inherit_DT): Use the new function Predefined_DT to improve code
14590         readability.
14591         (Register_Interface_Tag): Update assertion.
14592         (Set_Interface_Table): Update assertion.
14593         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
14594         determining progenitor interfaces in Tags.
14595         (Inherit_CPP_DT): New subprogram.
14597         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
14598         analysis of the thunk code.
14599         (Expand_Interface_Conversion): Handle run-time conversion of
14600         access to class wide types.
14601         (Expand_Dispatching_Call): When generating the profile for the
14602         subprogram itype for a dispatching operation, properly terminate the
14603         formal parameters chaind list (set the Next_Entity of the last formal
14604         to Empty).
14605         (Collect_All_Interfaces): Removed. This routine has been moved to
14606         sem_util and renamed as Collect_All_Abstract_Interfaces.
14607         (Set_All_DT_Position): Hidden entities associated with abstract
14608         interface primitives are not taken into account in the check for
14609         3.9.3(10); this check is done with the aliased entity.
14610         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
14611         interfacing with CPP by default.
14612         (Expand_Interface_Conversion): Add missing support for static conversion
14613         from an interface to a tagged type.
14614         (Collect_All_Interfaces): Add new out formal containing the list of
14615         abstract interface types to cleanup the subprogram Make_DT.
14616         (Make_DT): Update the code to generate the table of interfaces in case
14617         of abstract interface types.
14618         (Is_Predefined_Dispatching_Alias): New function that returns true if
14619         a primitive is not a predefined dispatching primitive but it is an
14620         alias of a predefined dispatching primitive.
14621         (Make_DT): If the ancestor of the type is a CPP_Class and we are
14622         compiling under full ABI compatibility mode we avoid the generation of
14623         calls to run-time services that fill the dispatch tables because under
14624         this mode we currently inherit the dispatch tables in the IP subprogram.
14625         (Write_DT): Emit an "is null" indication for a null procedure primitive.
14626         (Expand_Interface_Conversion): Use an address as the type of the formal
14627         of the internally built function that handles the case in which the
14628         target type is an access type.
14630 2006-10-31  Robert Dewar  <dewar@adacore.com>
14632         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
14634 2006-10-31  Robert Dewar  <dewar@adacore.com>
14636         * bindusg.ads, bindusg.adb:
14637         Change to package and rename procedure as Display, which
14638         now ensures that it only outputs usage information once.
14640 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
14642         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
14643         using RTPs.
14645         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
14646         when using RTPs.
14648 2006-10-31  Robert Dewar  <dewar@adacore.com>
14649             Ed Schonberg  <schonberg@adacore.com>
14651         * treepr.adb: Use new subtype N_Membership_Test
14653         * checks.ads, checks.adb: Add definition for Validity_Check
14654         (Range_Or_Validity_Checks_Suppressed): New function
14655         (Ensure_Valid): Test Validity_Check suppressed
14656         (Insert_Valid_Check): Test Validity_Check suppressed
14657         (Insert_Valid_Check): Preserve Do_Range_Check flag
14658         (Validity_Check_Range): New procedure
14659         (Expr_Known_Valid): Result of membership test is always valid
14660         (Selected_Range_Checks): Range checks cannot be applied to discriminants
14661         by themselves. Disabling those checks must also be done for task types,
14662         where discriminants may be used for the bounds of entry families.
14663         (Apply_Address_Clause_Check): Remove side-effects if address expression
14664         is non-static and is not the name of a declared constant.
14665         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
14666         Code cleanup and new error messages.
14667         (Enable_Range_Check): Test for some cases of suppressed checks
14668         (Generate_Index_Checks): Suppress index checks if index checks are
14669         suppressed for array object or array type.
14670         (Apply_Selected_Length_Checks): Give warning for compile-time detected
14671         length check failure, even if checks are off.
14672         (Ensure_Valid): Do not generate a check on an indexed component whose
14673         prefix is a packed boolean array.
14674         * checks.adb: (Alignment_Checks_Suppressed): New function
14675         (Apply_Address_Clause_Check): New procedure, this is a completely
14676         rewritten replacement for Apply_Alignment_Check
14677         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
14678         we request a discriminal value only in case of discriminants.
14679         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
14680         assignments where the target subtype is unconstrained and the target
14681         object is a parameter or dereference (other aliased cases are known
14682         to be unconstrained).
14684 2006-10-31  Robert Dewar  <dewar@adacore.com>
14686         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
14687         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
14688         vms_conv.adb: Fix bad table increment values (much too small)
14690         * table.adb (Realloc): Make sure we get at least some new elements
14691         Defends against silly small values for table increment
14693 2006-10-31  Robert Dewar  <dewar@adacore.com>
14694             Ed Schonberg  <schonberg@adacore.com>
14695             Bob Duff  <duff@adacore.com>
14697         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
14698         entities. Move other fields around to make this possible
14699         (Is_Derived_Type): Add missing call to Is_Type.
14700         (Extra_Formals): New function for subprograms, entries, subprogram
14701         types.
14702         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
14703         (First_Formal_With_Extras): New function for subprogs, entries, subp
14704         types.
14705         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
14706         Add node information for E_Return_Statement.
14707         (Elaborate_Body_Desirable): New flag
14708         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
14709         to be Is_Inherently_Limited_Type, because return-by-reference has
14710         no meaning in Ada 2005.
14711         (E_Return_Statement): New entity kind.
14712         (Return_Applies_To): Field of E_Return_Statement.
14713         (Is_Return_Object): New flag in object entities.
14714         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
14715         (Must_Have_Preelab_Init): New flag
14716         (Known_To_Have_Preelab_Init): New flag
14717         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
14718         (Is_Visible_Formal): New flag on entities in formal packages.
14719         (Low_Bound_Known): New flag
14720         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
14721         Incomplete_Kind.
14722         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
14723         output when Id is an incomplete subtype.
14725 2006-10-31  Robert Dewar  <dewar@adacore.com>
14727         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
14728         Avoid abbreviation Creat
14729         (Finalize): List all sources in extended mail source if -gnatl
14730         switch is active.
14731         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
14732         (Finalize): Implement new -gnatl=xxx switch to output listing to file
14733         (Set_Specific_Warning_On): New procedure
14734         (Set_Specific_Warning_Off): New procedure
14735         Add implementation of new insertion \\
14736         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
14737         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
14738         types.
14739         (Error_Msg_Internal): Make sure that we set Last_Killed to
14740         True when a message from another package is suppressed.
14741         Implement insertion character ~ (insert string)
14742         (First_Node): Minor adjustments to get better placement.
14744         * frontend.adb: 
14745         Implement new -gnatl=xxx switch to output listing to file
14747         * gnat1drv.adb: 
14748         Implement new -gnatl=xxx switch to output listing to file
14750         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
14751         (Commands_To_Stdout): New flag
14752         Implement new -gnatl=xxx switch to output listing to file
14753         New switch Dump_Source_Text
14754         (Warn_On_Deleted_Code): New warning flag for -gnatwt
14755         Define Error_Msg_Line_Length
14756         (Warn_On_Assumed_Low_Bound): New switch
14758         * osint.ads, osint.adb
14759         (Normalize_Directory_Name): Fix bug.
14760         Implement new -gnatl=xxx switch to output listing to file
14761         (Concat): Removed, replaced by real concatenation
14762         Make use of concatenation now allowed in compiler
14763         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
14764         we find the 'lib' or 'bin' directory even when the tool has been
14765         invoked with a relative path.
14766         (Executable_Name): New function taking string parameters.
14768         * osint-c.ads, osint-c.adb: 
14769         Implement new -gnatl=xxx switch to output listing to file
14771         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
14773         * switch-c.adb: 
14774         Implement new -gnatl=xxx switch to output listing to file
14775         Recognize new -gnatL switch
14776         (no longer keep in old warning about old style usage)
14777         Use concatenation to simplify code
14778         Recognize -gnatjnn switch
14779         (Scan_Front_End_Switches): Clean up handling of -gnatW
14780         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
14782 2006-10-31  Robert Dewar  <dewar@adacore.com>
14784         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
14785         (Set_Specific_Warning_Off): New procedure
14786         (Warning_Specifically_Suppressed): New function
14787         (Validate_Specific_Warnings): New procedure
14788         (Output_Msg_Text): Complete rewrite to support -gnatjnn
14790         * err_vars.ads: Implement insertion character ~ (insert string)
14792 2006-10-31  Bob Duff  <duff@adacore.com>
14793             Ed Schonberg  <schonberg@adacore.com>
14795         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
14796         the parent part is a build-in-place function call, generate assignments.
14797         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
14798         are build-in-place function calls.
14799         (Replace_Self_Reference): New subsidiary of
14800         Make_OK_Assignment_Statement, to replace an access attribute that is a
14801         self-reference into an access to the appropriate component of the
14802         target object. Generalizes previous mechanism to handle self-references
14803         nested at any level.
14804         (Is_Self_Referential_Init): Remove, not needed.
14805         (Is_Self_Referential_Init): New predicate to simplify handling of self
14806         referential components in record aggregates.
14807         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
14808         check for presence of entity before checking for self-reference.
14809         (Has_Default_Init_Comps): Return True if a component association is a
14810         self-reference to the enclosing type, which can only come from a
14811         default initialization.
14812         (Make_OK_Assignment_Statement): If the expression is of the form
14813         Typ'Acc, where Acc is an access attribute, the expression comes from a
14814         default initialized self-referential component.
14815         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
14816         that has been derived from several abstract interfaces we must also
14817         initialize the tags of the secondary dispatch tables.
14819 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
14820             Thomas Quinot  <quinot@adacore.com>
14821             Javier Miranda  <miranda@adacore.com>
14822             Robert Dewar  <dewar@adacore.com>
14824         * exp_attr.adb: 
14825         (Expand_Access_To_Protected_Op): If the context indicates that an access
14826         to a local operation may be transfered outside of the object, create an
14827         access to the wrapper operation that must be used in an external call.
14828         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
14829         target, pass the Valid attribute applied to a floating-point prefix on
14830         to the back end without expansion.
14831         (Storage_Size): Use the new run-time function Storage_Size to retrieve
14832         the allocated storage when it is specified by a per-object expression.
14833         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
14834         Nothing to do here, the attribute has been rewritten during semantic
14835         analysis.
14836         (Expand_Attribute_Reference): Handle expansion of the new Priority
14837         attribute
14838         (Find_Fat_Info): Handle case of universal real
14839         (Expand_Access_To_Protected_Op): Fix use of access to protected
14840         subprogram from inside the body of a protected entry.
14841         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
14842         'Access and 'Unrestricted_Access, to transform the attribute reference
14843         into a fat pointer.
14844         (Is_Constrained_Aliased_View): New predicate to help determine whether a
14845         subcomponent's enclosing variable is aliased with a constrained subtype.
14846         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
14847         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
14848         an aliased prefix must be known to be constrained in order to use True
14849         for the attribute value, and now it's possible for some aliased views
14850         to be unconstrained.
14852 2006-10-31  Robert Dewar  <dewar@adacore.com>
14854         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
14855         (Expand_Entity_Reference): Correct error of not handling subprogram
14856         formals in current_value processing.
14858 2006-10-31  Javier Miranda  <miranda@adacore.com>
14859             Robert Dewar  <dewar@adacore.com>
14860             Ed Schonberg  <schonberg@adacore.com>
14861             Gary Dismukes  <dismukes@adacore.com>
14863         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
14864         register in the final list objects containing class-wide interfaces;
14865         otherwise we incorrectly register the tag of the interface in the final
14866         list.
14867         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
14868         generate the wrapper if the parent primitive is abstract. This is
14869         required to report the correct error message.
14870         (Expand_N_Subtype_Indication): Do validity checks on range
14871         (Clean_Task_Names): If an initialization procedure includes a call to
14872         initialize a task (sub)component, indicate that the procedure will use
14873         the secondary stack.
14874         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
14875         compatibility for interfacing with CPP by default.
14876         (Expand_N_Object_Declaration): Only build an Adjust call when the
14877         object's type is a nonlimited controlled type.
14878         * exp_ch3.adb: Add with and use of Exp_Ch6.
14879         (Expand_N_Object_Declaration): Check for object initialization that is a
14880         call to build-in-place function and apply Make_Build_In_Place_Call_In_
14881         Object_Declaration to the call.
14882         (Freeze_Type): When the designated type of an RACW was not frozen at the
14883         point where the RACW was declared, validate the primitive operations
14884         with respect to E.2.2(14) when it finally is frozen.
14885         (Build_Initialization_Call,Expand_Record_Controller): Rename
14886         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
14887         return-by-reference has no meaning in Ada 2005.
14888         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
14889         to register tag of the immediate ancestor interfaces in the
14890         run-time structure.
14891         (Init_Secondary_Tags): Moved to the specification to allow the
14892         initialization of extension aggregates with abstract interfaces.
14893         (Build_Master_Renaming): Make public, for use by function declarations
14894         whose return type is an anonymous access type.
14895         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
14896         Insert_List_Before_And_Analyze after the generation of the specs
14897         associated with null procedures.
14898         (Expand_Tagged_Root): Update documentation in its specification.
14899         (Init_Secondary_Tags): Update documentation.
14900         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
14901         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
14902         then generate code to inherit the contents of the dispatch table
14903         directly from the ancestor.
14904         (Expand_Record_Controller): Insert controller component after tags of
14905         implemented interfaces.
14906         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
14907         create null procedure overridings when null procedures are inherited
14908         from interfaces.
14909         (Make_Null_Procedure_Specs): New procedure to generate null procedure
14910         declarations for overriding null primitives inherited from interfaces.
14911         (Is_Null_Interface_Procedure): New function in
14912         Make_Null_Procedure_Specs.
14913         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
14914         immediate ancestor of a tagged type is an abstract interface type we
14915         must generate the specification of the predefined primitives associated
14916         with controlled types (because the dispatch table of the ancestor is
14917         null and hence these entries cannot be inherited). This is required to
14918         elaborate well the dispatch table.
14920 2006-10-31  Javier Miranda  <miranda@adacore.com>
14921             Ed Schonberg  <schonberg@adacore.com>
14922             Bob Duff  <duff@adacore.com>
14923             Gary Dismukes  <dismukes@adacore.com>
14924             Robert Dewar  <dewar@adacore.com>
14926         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
14927         conversion.
14928         (Expand_N_In): Do validity checks on range
14929         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
14930         (Expand_N_Allocator): For "new T", if the object is constrained by
14931         discriminant defaults, allocate the right amount of memory, rather than
14932         the maximum for type T.
14933         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
14934         when the allocator is initialized by a build-in-place call, since the
14935         allocator is already rewritten as a reference to the function result,
14936         and this prevents an unwanted duplication of the function call.
14937         Add with and use of Exp_Ch6.
14938         (Expand_Allocator_Expresssion): Check for an allocator whose expression
14939         is a call to build-in-place function and apply
14940         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
14941         untagged designated types).
14942         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
14943         optimization if source or target is biased.
14944         (Expand_N_Allocator): Add comments for case of an allocator within a
14945         function that returns an anonymous access type designating tasks.
14946         (Expand_N_Allocator): apply discriminant checks for access
14947         discriminants of anonymous access types (AI-402, AI-416)
14949 2006-10-31  Bob Duff  <duff@adacore.com>
14950             Robert Dewar  <dewar@adacore.com>
14951             Gary Dismukes  <dismukes@adacore.com>
14952             Ed Schonberg  <schonberg@adacore.com>
14954         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
14956         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
14957         (Expand_N_Assignment_Statement): Call
14958         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
14959         build-in-place function call. Currently, this can happen only for
14960         assignments that come from aggregates.
14961         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
14962         in order to alleviate the upward compatibility introduced by AI-318.
14963         (Expand_N_Extended_Return_Statement): Add support for handling the
14964         return object as a build-in-place result.
14965         (Expand_Non_Function_Return): Implement simple return statements nested
14966         within an extended return.
14967         (Enable_New_Return_Processing): Turn on the new processing of return
14968         statements.
14969         (Expand_Non_Function_Return): For a return within an extended return,
14970         don't raise Program_Error, because Sem_Ch6 now gives a warning.
14971         (Expand_N_Extended_Return_Statement): Implement AI-318
14972         (Expand_Simple_Function_Return): Ditto.
14973         (Expand_N_If_Statement): Handle new -gnatwt warning
14974         (Expand_N_Case_Statement): Handle new -gnatwt warning
14975         (Expand_N_Assignment): Handle assignment to the Priority attribute of
14976         a protected object.
14977         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
14978         validity checking of assignments to elementary record components.
14979         (Expand_N_Return_Statement): return Class Wide types on the secondary
14980         stack independantly of their controlled status since with HIE runtimes,
14981         class wide types are not potentially controlled anymore.
14983         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
14984         node kind.
14986         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
14987         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
14988         it expects a block, procedure, or task. The return statement will get
14989         turned into a block, and Expand_Cleanup_Actions will happen then.
14991 2006-10-31  Robert Dewar  <dewar@adacore.com>
14992             Ed Schonberg  <schonberg@adacore.com>
14993             Bob Duff  <duff@adacore.com>
14994             Gary Dismukes  <dismukes@adacore.com>
14996         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
14997         capability.
14998         (Expand_Inlined_Call): Tagged types are by-reference types, and
14999         therefore should be replaced by a renaming declaration in the expanded
15000         body, as is done for limited types.
15001         (Expand_Call): If this is a call to a function with dispatching access
15002         result, propagate tag from context.
15003         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
15004         CPP by default.
15005         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
15006         build-in-place when the right-hand side of an assignment is a
15007         build-in-place function call.
15008         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
15009         of the explicit dereference of the allocator to the result subtype of
15010         the build-in-place function. This is needed to satisfy type checking
15011         in cases where the caller's return object is created by an allocator for
15012         a class-wide access type and the type named in the allocator is a
15013         specific type.
15014         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
15015         conversion of the reference to the declared object to the result subtype
15016         of the build-in-place function. This is needed to satisfy type checking
15017         in cases where the declared object has a class-wide type. Also, in the
15018         class-wide case, change the type of the object entity to the specific
15019         result subtype of the function, to avoid passing a class-wide object
15020         without explicit initialization to the back end.
15021         (Register_Interface_DT_Entry): Moved outside the body of
15022         Freeze_Subprogram because this routine is now public; it is called from
15023         Check_Dispatching_Overriding to handle late overriding of abstract
15024         interface primitives.
15025         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
15026         adding an implicit access actual on a call to a build-in-place function.
15027         (Expand_Actuals): Test for an actual parameter that is a call to a
15028         build-in-place function and apply
15029         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
15030         (Is_Build_In_Place_Function): New function to determine whether an
15031         entity is a function whose calls should be handled as build-in-place.
15032         (Is_Build_In_Place_Function_Call): New function to determine whether an
15033         expression is a function call that should handled as build-in-place.
15034         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
15035         calls to build-in-place functions as the initialization of an allocator.
15036         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
15037         handling calls to build-in-place functions in contexts that do not
15038         involve init of a separate object (for example, actuals of subprogram
15039         calls).
15040         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
15041         handling calls to build-in-place functions as the initialization of an
15042         object declaration.
15043         (Detect_Infinite_Recursion): Add explicit parameter Process to
15044         instantiation of Traverse_Body to avoid unreferenced warning.
15045         (Check_Overriding_Inherited_Interfaces): Removed.
15046         (Register_Interface_DT_Entry): Code cleanup.
15047         (Register_Predefined_DT_Entry): Code cleanup.
15048         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
15049         inlined statements if within a transient scope.
15050         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
15051         formal parameters with occurrences of actuals in inlined body, establish
15052         visibility on the proper view of the actual's subtype for the body's
15053         context.
15054         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
15055         compatibility mode and we have an imported CPP subprogram because
15056         for now we assume that imported CPP primitives correspond with
15057         objects whose constructor is in the CPP side (and therefore we
15058         don't need to generate code to register them in the dispatch table).
15059         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
15060         aligned selected component.
15061         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
15062         the actual of an in-mode parameter is a type conversion.
15063         (Expand_Actuals): If the call does not come from source and the actual
15064         is potentially misaligned, let gigi handle it rather than rejecting the
15065         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
15066         Class Wide types as returning by reference independantly of their
15067         controlled status since with HIE runtimes class wide types are not
15068         potentially controlled anymore.
15070 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15072         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
15073         references that are private components of the protected object.
15074         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
15075         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
15076         instantiation to deal with warnings.
15077         (Initialize_Protection): If expression for priority is non-static, use
15078         System_Priority as its expected type, in case the expression has not
15079         been analyzed yet.
15081 2006-10-31  Robert Dewar  <dewar@adacore.com>
15083         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
15084         initialization of Homonym_Len.
15085         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
15086         names from fully qualified name. Fixes problem of duplicate
15087         external names differing only in the presence of such a block name.
15089 2006-10-31  Thomas Quinot  <quinot@adacore.com>
15090             Pablo Oliveira  <oliveira@adacore.com>
15092         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
15093         subprogram Ids, even if they are not yet assigned.
15094         (Build_Subprogram_Id): It is now this function that will take care of
15095         calling Assign_Subprogram_Ids if necessary.
15096         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
15097         should be done only once they are assigned.
15098         (Build_From_Any_Function, case of tagged types): Add missing call to
15099         Allocate_Buffer.
15100         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
15101         type for an RACW type.
15102         (Add_RACW_Features): When processing an RACW declaration for which the
15103         designated type is already frozen, enforce E.2.2(14) rules immediately.
15104         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
15105         special reordering of controlling formals.
15107         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
15108         associated stub type for an RACW type.
15110 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15112         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
15113         fixed-point operations in an integer context, i.e. as operands of a
15114         conversion to an integer type, indicate that result must be rounded.
15116 2006-10-31  Robert Dewar  <dewar@adacore.com>
15118         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
15119         cases, pass the encoding method, since it is now required by the run
15120         time.
15122         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
15123         assumption that Str'First = 1.
15124         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
15125         it on to the Value_Wide_Wide_Character call.
15126         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
15127         properly handles a string of the form quote-encoded_wide_char-quote.
15129         * s-wchcnv.adb: Minor reformatting
15131 2006-10-31  Javier Miranda  <miranda@adacore.com>
15133         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
15134         run-time membership test to ensure that the constructed object
15135         implements the target abstract interface.
15137 2006-10-31  Robert Dewar  <dewar@adacore.com>
15139         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
15140         Machine_Attribute pragma internally to implement the user pragma.
15141         Add processing for pragma Interface so that it is now completely
15142         equivalent to pragma Import.
15144         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
15145         so that it can be applied to all entities, including record components
15146         and enumeration literals.
15147         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
15148         priority ranges are correct, verify compatibility against task
15149         dispatching and locking policies, and if everything is correct an entry
15150         is added to the table containing priority specific dispatching entries
15151         for this compilation unit.
15152         (Delay_Config_Pragma_Analyze): Delay processing
15153         Priority_Specific_Dispatching pragmas because when processing the
15154         pragma we need to access run-time data, such as the range of
15155         System.Any_Priority.
15156         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
15157         Allow pragma Unreferenced as a context item
15158         Add pragma Preelaborable_Initialization
15159         (Analyze_Pragma, case Interface): Interface is extended so that it is
15160         now syntactically and semantically equivalent to Import.
15161         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
15162         insertion characters.
15163         Add handling for Pragma_Wide_Character_Encoding
15164         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
15165         never supercedes a real restriction, and that a real restriction
15166         always supercedes a warning.
15167         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
15168         appropriate form.
15170 2006-10-31  Bob Duff  <duff@adacore.com>
15171             Ed Schonberg  <schonberg@adacore.com>
15172             Robert Dewar  <dewar@adacore.com>
15174         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
15175         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
15176         Is_Inherently_Limited_Type, because return-by-reference has no meaning
15177         in Ada 2005.
15178         (Find_Node_To_Be_Wrapped): Use new method of determining the result
15179         type of the function containing a return statement, because the
15180         Return_Type field was removed. We now use the Return_Applies_To field.
15182         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
15183         (Build_Task_Image_Decl): If procedure is not called from an
15184         initialization procedure, indicate that function that builds task name
15185         uses the sec. stack. Otherwise the enclosing initialization procedure
15186         will carry the indication.
15187         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
15188         N_Object_Declaration instead.
15189         (Kill_Dead_Code): New interface to implement -gnatwt warning for
15190         conditional dead code killed, and change implementation accordingly.
15191         (Insert_Actions): Add N_Return_Object_Declaration case.
15192         Correct comment to mention N_Extension_Aggregate node.
15193         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
15194         attempts to save information for global variables which cannot be
15195         safely tracked.
15196         (Get_Current_Value_Condition): Handle conditions the other way round
15197         (constant on left). Also handle right operand of AND and AND THEN
15198         (Set_Current_Value_Condition): Corresponding changes
15199         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
15200         (Get_Current_Value_Condition): Handle simple boolean operands
15201         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
15202         (Get_Current_Value_Condition): If the variable reference is within an
15203         if-statement, does not appear in the list of then_statments, and does
15204         not come from source, treat it as being at unknown location.
15205         (Get_Current_Value_Condition): Enhance to allow while statements to be
15206         processed as well as if statements.
15207         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
15208         come from source.
15209         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
15210         of loop. This is safe now that we fixed Kill_Current_Values.
15211         (OK_To_Do_Constant_Replacement): Check whether current scope is
15212         Standard, before examining outer scopes.
15214 2006-10-31  Vincent Celier  <celier@adacore.com>
15216         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
15217         When True, apply VMS treatment to children of packages A, G, I and S.
15218         For F320-016
15220         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
15222 2006-10-31  Robert Dewar  <dewar@adacore.com>
15223             Ed Schonberg  <schonberg@adacore.com>
15225         * freeze.adb: Add handling of Last_Assignment field
15226         (Warn_Overlay): Supply missing continuation marks in error msgs
15227         (Freeze_Entity): Add check for Preelaborable_Initialization
15229         * g-comlin.adb: Add Warnings (Off) to prevent new warning
15231         * g-expect.adb: Add Warnings (Off) to prevent new warning
15233         * lib-xref.adb: Add handling of Last_Assignment field
15234         (Generate_Reference): Centralize handling of pragma Obsolescent here
15235         (Generate_Reference): Accept an implicit reference generated for a
15236         default in an instance.
15237         (Generate_Reference): Accept a reference for a node that is not in the
15238         main unit, if it is the generic body corresponding to an subprogram
15239         instantiation.
15241         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
15243         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
15244         -gnatwq/Q.
15245         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
15246         exception handler.
15247         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
15248         use clauses, to avoid messages on packages used to qualify, and also
15249         to avoid messages from obsolescent units.
15250         (Warn_On_Useless_Assignments): Don't generate messages for imported
15251         and exported variables.
15252         (Warn_On_Useless_Assignments): New procedure
15253         (Output_Obsolescent_Entity_Warnings): New procedure
15254         (Check_Code_Statement): New procedure
15256         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
15257         Change name Is_Ada_2005 to Is_Ada_2005_Only
15258         (Last_Assignment): New field for useless assignment warning
15260 2006-10-31  Olivier Hainque  <hainque@adacore.com>
15262         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
15263         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
15265 2006-10-31  Bob Duff  <duff@adacore.com>
15266             Robert Dewar  <dewar@adacore.com>
15267             Ed Schonberg  <schonberg@adacore.com>
15269         * g-awk.adb (Default_Session, Current_Session): Compile this file in
15270         Ada 95 mode, because it violates the new rules for AI-318.
15272         * g-awk.ads: Use overloaded subprograms in every case where we used to
15273         have a default of Current_Session. This makes the code closer to be
15274         correct for both Ada 95 and 2005.
15276         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
15277         code, relying on the fact that the compiler generates a warning
15278         instead of an error in -gnatg mode.
15280         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
15281         E_Return_Statement entity kind.
15282         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
15284         * par.adb (P_Interface_Type_Definition): Addition of one formal to
15285         report an error if the reserved word abstract has been previously found.
15286         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
15288         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
15289         parenthesized range attribute usage
15290         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
15292         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
15293         in the syntax for extended_return_statement. This is not in the latest
15294         RM, but the ARG is expected to issue an AI allowing this.
15295         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
15296         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
15297         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
15298         P_Return_Statement): Parse the new syntax for extended_return_statement.
15300         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
15301         Output_End_Missing): Add error-recovery code for the new
15302         extended_return_statement syntax; that is, the new E_Return entry on
15303         the scope stack.
15305         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
15306         limited to nonlimited, because otherwise we violate the new Ada 2005
15307         rules about returning limited types in function Create_AST_Handler in
15308         s-asthan.adb.
15310         * sem.adb (Analyze): Add cases for new node kinds
15311         N_Extended_Return_Statement and N_Return_Object_Declaration.
15313         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
15314         type is in the same category as type of context before applying check,
15315         to prevent anomalies in instantiations.
15316         (Resolve_Aggregate): Remove test for limited components in aggregates.
15317         It's unnecessary in Ada 95, because if it has limited components, then
15318         it must be limited. It's wrong in Ada 2005, because limited aggregates
15319         are now allowed.
15320         (Resolve_Record_Aggregate): Move check for limited types later, because
15321         OK_For_Limited_Init requires its argument to have been resolved.
15322         (Get_Value): When copying the component default expression for a
15323         defaulted association in an aggregate, use the sloc of the aggregate
15324         and not that of the original expression, to prevent spurious
15325         elaboration errors, when the expression includes function calls.
15326         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
15327         were missing. We also didn't handle qualified expressions. Now also
15328         allow function calls. Use new common routine OK_For_Limited_Init.
15329         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
15330         with space can upper case letter).
15332         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
15333         Has_Static_Discriminants flag
15334         (Record_Type_Declaration): Diagnose an attempt to declare an interface
15335         type with discriminants.
15336         (Process_Range_Expr_In_Decl): Do validity checks on range
15337         (Build_Discriminant_Constraints): Use updated form of
15338         Denotes_Discriminant.
15339         (Process_Subtype): If the subtype is a private subtype whose full view
15340         is a concurrent subtype, introduce an itype reference to prevent scope
15341         anomalies in gigi.
15342         (Build_Derived_Record_Type, Collect_Interface_Primitives,
15343         Record_Type_Declaration):  The functionality of the subprograms
15344         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
15345         is now performed by a single routine.
15346         (Build_Derived_Record_Type): If the type definition includes an explicit
15347         indication of limitedness, then the type must be marked as limited here
15348         to ensure that any access discriminants will not be treated as having
15349         a local anonymous access type.
15350         (Check_Abstract_Overriding): Issue a detailed error message when an
15351         abstract subprogram was not overridden due to incorrect mode of its
15352         first parameter.
15353         (Analyze_Private_Extension_Declaration): Add support for the analysis of
15354         synchronized private extension declarations. Verify that the ancestor is
15355         a limited or synchronized interface or in the generic case, the ancestor
15356         is a tagged limited type or synchronized interface and all progenitors
15357         are either limited or synchronized interfaces.
15358         Derived_Type_Declaration): Check for presence of private extension when
15359         dealing with synchronized formal derived types.
15360         Process_Full_View): Enchance the check done on the usage of "limited" by
15361         testing whether the private view is synchronized.
15362         Verify that a synchronized private view is completed by a protected or
15363         task type.
15364         (OK_For_Limited_Init_In_05): New function.
15365         (Analyze_Object_Declaration): Move check for limited types later,
15366         because OK_For_Limited_Init requires its argument to have been resolved.
15367         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15368         in order to alleviate the upward compatibility introduced by AI-318.
15369         (Constrain_Corresponding_Record): If the constraint is for a component
15370         subtype, mark the itype as frozen, to avoid out-of-scope references to
15371         discriminants in the back-end.
15372         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
15373         this subprogram against wrong sources.
15374         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
15375         discriminant of limited type completed with a protected type, when the
15376         discriminant is used to constrain a private component of the type, and
15377         expansion is disabled.
15378         (Find_Type_Of_Object): Do not treat a return subtype that is an
15379         anonymous subtype as a local_anonymous_type, because its accessibility
15380         level is the return type of the enclosing function.
15381         (Check_Initialization): In -gnatg mode, turn the error "cannot
15382         initialize entities of limited type" into a warning.
15383         (OK_For_Limited_Init): Return true for generated nodes, since it
15384         sometimes violates the legality rules.
15385         (Make_Incomplete_Declaration): If the type for which an incomplete
15386         declaration is created happens to be the currently visible entity,
15387         preserve the homonym chain when removing it from visibility.
15388         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
15389         inherited subprograms.
15390         (Access_Definition): If this is an access to function that is the return
15391         type of an access_to_function definition, context is a type declaration
15392         and the scope of the anonymous type is the current one.
15393         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
15394         incomplete subtype to the set of private dependents of the original
15395         incomplete type.
15396         (Constrain_Discriminated_Type): Emit an error message whenever an
15397         incomplete subtype is being constrained.
15398         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
15399         corresponding subtype of the full view of the original incomplete type.
15400         (Check_Incomplete): Properly detect invalid usage of incomplete types
15401         and subtypes.
15403 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
15405         * g-catiio.ads, g-catiio.adb (Value): New function.
15406         Given an input String, try and parse a valid Time value.
15408 2006-10-31  Vincent Celier  <celier@adacore.com>
15410         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
15411         Integer_Address arithmetic, as in Set_Valid.
15413 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
15414             Robert Dewar  <dewar@adacore.com>
15416         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
15417         handling executable extension manually and duplicating code.
15419         * make.adb: Implement new -S switch
15420         (Gnatmake): Use new function Osint.Executable_Name instead
15421         of handling executable extension manually.
15423         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
15424         is specified, the executable name ends with this suffix.
15425         Take advantage of Osint.Executable_Name instead of duplicating code.
15427         * switch-m.adb: Recognize new gnatmake -S switch
15429         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
15430         variable.
15431         (Get_Target_Parameters): Set Executable_Extension_On_Target if
15432         available.
15434         * makeusg.adb: Add line for gnatmake -S switch
15436 2006-10-31  Vincent Celier  <celier@adacore.com>
15438         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
15439         call it with -static-libgcc, as there are some platforms, such as
15440         Darwin, where one of these two switches is compulsory to link.
15442 2006-10-31  Vincent Celier  <celier@adacore.com>
15444         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
15445         instead of ADA_PROJECT_PATH, for the project path.
15446         (Gnatls): When displaying the project path directories, use host dir
15447         specs.
15449         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
15450         names in the project path, as absolute paths may correspond to
15451         multi-valued VMS logical names.
15453 2006-10-31  Vincent Celier  <celier@adacore.com>
15455         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
15456         absolute path name.
15457         (Locate_Regular_File): Ditto
15458         (Change_Dir): Remove, no longer used
15459         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
15460         on Windows. Get it calling Get_Current_Dir.
15461         (OpenVMS): Remove imported boolean, no longer needed.
15462         (Normalize_Pathname)[VMS]: Do not resolve directory names.
15463         (Pid_To_Integer): New function to convert a Process_Id to  Integer
15465 2006-10-31  Thomas Quinot  <quinot@adacore.com>
15467         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
15468         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
15469         to No_Socket.
15470         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
15471         W_Sig_Socket.
15473 2006-10-31  Robert Dewar  <dewar@adacore.com>
15475         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
15476         initial letter o as a zero.
15478 2006-10-31  Robert Dewar  <dewar@adacore.com>
15480         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
15482 2006-10-31  Robert Dewar  <dewar@adacore.com>
15484         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
15485         variant records
15486         (Layout_Variant_Record): Retrieve the discriminants from the entity
15487         rather than from the type definition, because in the case of a full
15488         type for a private type we need to take the discriminants from the
15489         partial view.
15490         (Layout_Component_List): When applying the Max operator to variants with
15491         a nonstatic size, check whether either operand is static and scale that
15492         operand from bits to storage units before applying Max.
15493         (Layout_Type): In VMS, if a C-convention access type has no explicit
15494         size clause (and does not inherit one in the case of a derived type),
15495         then the size is reset to 32 from 64.
15497 2006-10-31  Vincent Celier  <celier@adacore.com>
15499         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
15500         its file has already been loaded, according to the unit being loaded,
15501         not to the current value of Multiple_Unit_Index.
15503 2006-10-31  Thomas Quinot  <quinot@adacore.com>
15504             Eric Botcazou  <ebotcazou@adacore.com>
15505             Arnaud Charlet  <charlet@adacore.com>
15507         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
15508         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
15509         possible.
15510         (a-except.o): Pass it to the compiler.
15511         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
15512         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
15513         a-calend-mingw.adb version.
15515         * Makefile.rtl: Added s-dsaser.
15516         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
15517         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
15518         Ada.Dispatching.Round_Robin.
15519         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
15521         * Make-lang.in: Remove all references to gt-ada-decl.h.
15522         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
15523         sources.
15524         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
15525         Update dependencies.
15527         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
15529 2006-10-31  Vincent Celier  <celier@adacore.com>
15531         * mlib-utl.adb (Initialized): Remove, no longer used
15532         (Initialize): Remove, no longer used
15533         (Ar): If Ar_Exec is null, get the location of the archive builder and,
15534         if there is one, the archive indexer. Fail if the archive builder cannot
15535         be found.
15536         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
15537         be found.
15539 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15541         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
15542         Process_Body_Clauses): If the context of a body includes a use clause
15543         for P.Q then a with_clause for P in the same body is not redundant,
15544         even if the spec also has a with_clause on P.
15545         Add missing continuation mark to error msg
15546         (Build_Limited_Views): A limited view of a type is tagged if its
15547         declaration includes a record extension.
15548         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
15549         node, even if the subunit has errors. This avoids malfunction by
15550         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
15551         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
15552         generation of obsolescent messages for with statements (cannot do
15553         this too early, or we cannot implement avoiding the messages in the
15554         case of obsolescent units withing obsolescent units).
15555         (Install_Siblings): If the with_clause is on a remote descendant of
15556         an ancestor of the current compilation unit, find whether there is
15557         a sibling child unit that is immediately visible.
15558         (Remove_Private_With_Clauses): New procedure, invoked after completing
15559         the analysis of the private part of a nested package, to remove from
15560         visibility the private with_clauses of the enclosing package
15561         declaration.
15562         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
15563         now centralized in Generate_Reference.
15564         (Install_Limited_Context_Clauses): Remove superfluous error
15565         message associated with unlimited view visible through use
15566         and renamings. In addition, at the point in which the error
15567         is reported, we add the backslash to the text of the error
15568         to ensure that it is reported as a single error message.
15569         Use new // insertion for some continuation messages
15570         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
15571         to create implicit with_clause for parent unit mentioned in original
15572         limited_with_clause.
15573         (Install_Limited_With_Unit): Set entity of parent identifiers if the
15574         unit is a child unit. For ASIS queries.
15575         (Analyze_Subunit): If the subunit appears within a child unit, make all
15576         ancestor child units directly visible again.
15578 2006-10-31  Robert Dewar  <dewar@adacore.com>
15580         * par-ch10.adb (P_Context_Clause): Minor error message fix
15582 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
15583             Javier Miranda  <miranda@adacore.com>
15585         * par-ch12.adb: Grammar update and cleanup.
15586         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
15587         support for synchronized derived type definitions.
15588         Add the new actual Abstract_Present to every call to
15589         P_Interface_Type_Definition.
15590         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
15591         a formal object declaration with an access definition or a subtype mark
15592         with a null exclusion.
15593         (P_Generic_Association): Handle association with box, and others_choice
15594         with box, to support Ada 2005 partially parametrized formal packages.
15596 2006-10-31  Robert Dewar  <dewar@adacore.com>
15597             Javier Miranda  <miranda@adacore.com>
15599         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
15600         (P_Type_Declaration): Remove barrier against the reserved word "limited"
15601         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
15602         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
15603         private extensions.
15604         (P_Type_Declaration): Add the new actual Abstract_Present to every call
15605         to P_Interface_Type_Definition.
15606         (P_Interface_Type_Definition): Addition of one formal to report an error
15607         if the reserved word abstract has been previously found.
15608         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
15609         object renaming declaration with an access definition or subtype mark
15610         with a possible null exclusion.
15612         * par-ch9.adb: Minor error msg fix
15614         * par-load.adb: Add missing continuation mark to error msg
15616         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
15618 2006-10-31  Vincent Celier  <celier@adacore.com>
15620         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
15621         unknown attribute in unknown package or in package that does not need
15622         to be checked.
15623         (Parse_Package_Declaration): Do not issue warning for unknown package in
15624         quiet output.
15626 2006-10-31  Vincent Celier  <celier@adacore.com>
15628         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
15629         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
15630         Packages_To_Check.
15632 2006-10-31  Vincent Celier  <celier@adacore.com>
15634         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
15635         on VMS, change "__" to '.' before checking the name.
15636         (Record_Ada_Source): Always add the source file name in the list of
15637         of sources, even if it is not the first time, as it is for another
15638         source index.
15639         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
15640         dot, instead of replacing only the first '_'.
15642         * prj-part.adb (Parse): Convert project file path to canonical form
15644         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
15645         extended, the project id of the project extending it is recorded in its
15646         data, even when it has already been processed as an imported project.
15648 2006-10-31  Robert Dewar  <dewar@adacore.com>
15650         * repinfo.adb (List_Entities): Don't list entities from renaming
15651         declarations.
15653 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
15654             Robert Dewar  <dewar@adacore.com>
15656         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
15657         only a restriction warning is active for the given restriction. This is
15658         desirable because we do not want to modify code in the case where only
15659         a warning is set.
15660         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
15661         causes overriding of real restrictions.
15662         Take advantage of new No_Restrictions constant.
15664         * raise.h: (__gnat_set_globals): Change profile.
15666 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
15668         * rtsfind.adb: Remove s-polint from comment as it exists no more.
15670         * rtsfind.ads: 
15671         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
15672         Move all the entities in obsolete package System.PolyORB_Interface to
15673         System.Partition_Interface.
15674         (RE_Storage_Size): New function in System.Tasking.
15675         (RE_Get_Ceiling): New entity.
15676         (RE_Set_Ceiling): New entity.
15677         (RO_PE_Get_Ceiling): New entity.
15678         (RO_RE_Set_Ceiling): New entity.
15679         (Inherit_CPP_DT): New entity
15681 2006-10-31  Robert Dewar  <dewar@adacore.com>
15683         * scng.adb (Scan, case of numeric literal): Better msg for identifier
15684         starting with a digit.
15686 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15687             Thomas Quinot  <quinot@adacore.com>
15688             Javier Miranda  <miranda@adacore.com>
15689             Gary Dismukes  <dismukes@adacore.com>
15691         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
15692         properly an attempt to apply Unchecked_Access to a protected operation.
15693         (OK_Self_Reference): New subprogram to check the legality of an access
15694         attribute whose prefix is the type of an enclosing aggregate.
15695         Generalizes previous mechanism to handle attribute references nested
15696         arbitrarily deep within the aggregate.
15697         (Analyze_Access_Attribute): An access attribute whose prefix is a type
15698         can appear in an aggregate if this is a default-initialized aggregate
15699         for a self-referential type.
15700         (Resolve_Attribute, case Access): Ditto.
15701         Add support for new implementation defined attribute Stub_Type.
15702         (Eval_Attribute, case Attribute_Stub_Type): New case.
15703         (Analyze_Attribute, case Attribute_Stub_Type): New case.
15704         (Stream_Attribute_Available): Implement using new subprogram from
15705         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
15706         Has_Specified_Stream_Attribute flag.
15707         Disallow Storage_Size and Storage_Pool for access to subprogram
15708         (Resolve_Attribute, case 'Access et al): Take into account anonymous
15709         access types of return subtypes in extended return statements. Remove
15710         accessibility checks on anonymous access types when Unchecked_Access is
15711         used.
15712         (Analyze_Attribute): Add support for the use of 'Class to convert
15713         a class-wide interface to a tagged type.
15714         Add support for the attribute Priority.
15715         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
15716         whether the designated type is discriminated with a constrained partial
15717         view and require static matching in that case.
15718         Add local variable Des_Btyp. The Designated_Type
15719         of an access to incomplete subtype is either its non-limited view if
15720         coming from a limited with or its etype if regular incomplete subtype.
15722         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
15723         Fix predicate to identify and allow cases of (expander-generated)
15724         references to tag of designated object of a RACW.
15725         (Validate_Static_Object_Name): In Ada 2005, a formal object is
15726         non-static, and therefore cannot appear as a primary in a preelaborable
15727         package.
15728         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
15729         Has_Read_Write_Attributes.
15730         (Has_Read_Write_Attributes): Reimplement in termes of
15731         Has_Stream_Attribute_Definition.
15732         (Missing_Read_Write_Attributes): When checking component types in a
15733         record, unconditionally call Missing_Read_Write_Attributes recursively
15734         (remove guard checking for Is_Record_Type / Is_Access_Type).
15736 2006-10-31  Robert Dewar  <dewar@adacore.com>
15738         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
15739         useless assignments here and conditionalize it on absence of exception
15740         handlers.
15741         (Analyze_Exception_Handlers): Small code reorganization of error
15742         detection code, for new handling of formal packages.
15744 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15745             Hristian Kirtchev  <kirtchev@adacore.com>
15747         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
15748         that has been constant-folded, preserve information of original tree,
15749         for ASIS uses.
15750         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
15751         generated private extension declaration if the formal derived type is
15752         synchronized. Carry synchronized present over to the generated private
15753         extension.
15754         (Validate_Derived_Type_Instance): Ensure that the actual of a
15755         synchronized formal derived type is a synchronized tagged type.
15756         (Instantiate_Formal_Package): When creating the instantiation used to
15757         validate the actual package of a formal declared without a box, check
15758         whether the formal itself depends on a prior actual.
15759         (Instantiate_Formal_Subprogram): Create new entities for the defining
15760         identifiers of the formals in the renaming declaration, for ASIS use.
15761         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
15762         a renaming declaration or a subtype declaration for an actual in an
15763         instance, capture location information of declaration in generic, for
15764         ASIS use.
15765         (Instantiate_Formal_Package): Add comments on needed additional tests.
15766         AI-317 (partial parametrization) is fully implemented.
15767         (Validate_Private_Type_Instance): Add check for actual which
15768         must have preelaborable initialization
15769         Use new // insertion for some continuation messages
15770         (Analyze_Formal_Object_Declaration): Change usage of Expression to
15771         Default_Expression. Add type retrieval when the declaration has an
15772         access definition. Update premature usage of incomplete type check.
15773         (Check_Access_Definition): New subsidiary routine. Check whether the
15774         current compilation version is Ada 05 and the supplied node has an
15775         access definition.
15776         (Instantiate object): Alphabetize local variables. Handle the creation
15777         of new renaming declarations with respect to the kind of definition
15778         used - either an access definition or a subtype mark. Guard against
15779         unnecessary error message in the context of anonymous access types after
15780         they have been resolved. Add check for required null exclusion in a
15781         formal object declaration.
15782         (Switch_View): A private subtype of a non-private type needs to be
15783         switched (the base type can have been switched without its private
15784         dependents because of the last branch of Check_Private_View.
15785         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
15786         value from BT.
15787         (Instantiate_Type): Emit an error message whenever a class-wide type of
15788         a tagged incomplete type is used as a generic actual.
15789         (Find_Actual_Type): Extend routine to handle a component type in a child
15790         unit that is imported from a formal package in a parent.
15791         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
15792         agree on constrainedness, rather than checking against ultimate ancestor
15793         (Instantiate_Subprogram_Body): Create a cross-reference link to the
15794         generic body, for navigation purposes.
15796 2006-10-31  Robert Dewar  <dewar@adacore.com>
15797             Thomas Quinot  <quinot@adacore.com>
15799         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
15800         type.
15801         (New_Stream_Subprogram): When processing an attribute definition clause
15802         for a stream-oriented subprogram, record an entity node occurring at
15803         the point of clause to use for checking the visibility of the clause,
15804         as defined by 8.3(23) as amended by AI-195.
15805         (New_Stream_Subprogram): New procedure, factoring behaviour from both
15806          New_Stream_Function and New_Stream_Procedure.
15807         (New_Stream_Function, New_Stream_Procedure): Removed.
15808         (Analyze_Attribute_Definition_Clause, case Address): Check new
15809         Alignment_Check check
15811 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15812             Javier Miranda  <miranda@adacore.com>
15813             Robert Dewar  <dewar@adacore.com>
15815         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
15816         generate the same errors compiling under -gnatc.
15817         (Try_Object_Operation): If no candidate interpretation succeeds, but
15818         there is at least one primitive operation with the right name, report
15819         error in call rather than on a malformed selected component.
15820         (Analyze_Selected_Component): If the prefix is an incomplete type from
15821         a limited view, and the full view is available, use the full view to
15822         determine whether this is a prefixed call to a primitive operation.
15823         (Operator_Check): Verify that a candidate interpretation is a binary
15824         operation before checking the type of its second formal.
15825         (Analyze_Call): Add additional warnings for function call contexts not
15826         yet supported.
15827         (Analyze_Allocator): Move the check for "initialization not allowed for
15828         limited types" after analyzing the expression. This is necessary,
15829         because OK_For_Limited_Init looks at the structure of the expression.
15830         Before analysis, we don't necessarily know what sort of expression it
15831         is. For example, we don't know whether F(X) is a function call or an
15832         indexed component; the former is legal in Ada 2005; the latter is not.
15833         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
15834         were missing. We also didn't handle qualified expressions. Now also
15835         allow function calls. Use new common routine OK_For_Limited_Init.
15836         (Analyze_Type_Conversion): Do not perform some legality checks in an
15837         instance, because the error message will be redundant or spurious.
15838         (Analyze_Overloaded_Selected_Component): Do not do style check when
15839         setting an entity, since we do not know it is the right entity yet.
15840         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
15841         (Analyze_Overloaded_Selected_Component): Same change
15842         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
15843         since regular incomplete subtypes are transformed into corresponding
15844         subtypes of their full views.
15845         (Complete_Object_Operation): Treat name of transformed subprogram call
15846         as coming from source, for browsing purposes.
15847         (Try_Primitive_Operation): If formal is an access parameter, compare
15848         with base type of object to determine whether it is a primitive
15849         operation.
15850         (Operator_Check): If no interpretation of the operator matches, check
15851         whether a use clause on any candidate might make the operation legal.
15852         (Try_Class_Wide_Operation): Check whether the first parameter is an
15853         access type whose designated type is class-wide.
15855 2006-10-31  Robert Dewar  <dewar@adacore.com>
15856             Ed Schonberg  <schonberg@adacore.com>
15857             Gary Dismukes  <dismukes@adacore.com>
15859         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
15860         warn on infinite loops.
15861         Add \\ to some continuation messages
15862         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
15863         (Process_Bounds): If the bounds are integer literals that result from
15864         constant-folding, and they carry a user-defined type, preserve that type
15865         rather than treating this as an integer range.
15866         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
15867         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
15868         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
15869         left hand side of assignment.
15870         (Analyze_Assignment): Add suport to manage assigments to the attribute
15871         priority of a protected object.
15872         (Check_Possible_Current_Value_Condition): Allow fully qualified names
15873         not just identifiers.
15874         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
15875         or AND THEN for possible tracking.
15876         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
15877         case of while loops so we can track values in the loop body.
15879 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15880             Hristian Kirtchev  <kirtchev@adacore.com>
15881             Bob Duff  <duff@adacore.com>
15883         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
15884         procedure cannot be a protected operation (it is a basic_declaration,
15885         not a subprogram_declaration).
15886         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
15887         Subp. Add logic for entry processing.
15888         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
15889         Determine whether an entry or subprogram of a protected or task type
15890         override an inherited primitive of an implemented interface.
15891         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
15892         Update the actual used in calls to Check_Overriding_Indicator.
15893         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
15894         generate the proper reference to the parent unit, for cross-reference.
15895         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
15896         Is_Formal.
15897         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15898         (Add_Extra_Formal): Revise procedure to allow passing in associated
15899         entity, scope, and name suffix, and handle setting of the new
15900         Extra_Formals field.
15901         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
15902         pass new parameters. Add support for adding the new extra access formal
15903         for functions whose calls are treated as build-in-place.
15904         (Analyze_A_Return_Statement): Correct casing in error message.
15905         Move Pop_Scope to after Analyze_Function_Return, because an extended
15906         return statement really is a full-fledged scope. Otherwise, visibility
15907         doesn't work right. Correct use of "\" for continuation messages.
15908         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
15909         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
15910         the node doesn't get properly marked as analyzed.
15911         (Analyze_Subprogram_Body): If subprogram is a function that returns
15912         an anonymous access type that denotes a task, build a Master Entity
15913         for it.
15914         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
15915         proper usage of null exclusion in a result definition.
15916         (Process_Formals): Code cleanup and new error message.
15917         (Process_Formals): Detect incorrect application of null exclusion to
15918         non-access types.
15919         (Conforming_Types): Handle conformance between [sub]types and itypes
15920          generated for entities that have null exclusions applied to them.
15921         (Maybe_Primitive_Operation): Add an additional type retrieval when the
15922          base type is an access subtype. This case arrises with null exclusions.
15923         (New_Overloaded_Entity): Do not remove the overriden entity from the
15924         homonym chain if it corresponds with an abstract interface primitive.
15925         (Process_Formals): Replace membership test agains Incomplete_Kind with a
15926         call to the synthesized predicate Is_Incomplete_Type.
15927         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
15928         primitives.
15929         (Analyze_Subprogram_Declaration): Check that abstract interface
15930         primitives are abstract or null.
15931         (Analyze_Subprogram_Specification): Remove previous check for abstract
15932         interfaces because it was not complete.
15933         (Has_Interface_Formals): Removed.
15935 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
15936             Javier Miranda  <miranda@adacore.com>
15938         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
15939         of Analyze_Package_Body, to create Itype references for anonymous
15940         access types created in the package declaration, whose designated types
15941         may have only a limited view.
15942         (Analyze_Package_Specification): For the private part of a nested
15943         package, install private_with_clauses of enclosing compilation unit if
15944         we are in its visible part.
15945         (Declare_Inherited_Private_Subprograms): Complete barrier
15946         to ensure that the primitive operation has an alias to some parent
15947         primitive. This is now required because, after the changes done for the
15948         implementation of abstract interfaces, the contents of the list of
15949         primitives has entities whose alias attribute references entities of
15950         such list of primitives.
15951         (Analyze_Package_Specification): Simplify code that handles parent units
15952         of instances and formal packages.
15953         (Uninstall_Declarations): Check the convention consistency among
15954         primitive overriding operations of a tagged record type.
15956 2006-10-31  Robert Dewar  <dewar@adacore.com>
15957             Hristian Kirtchev  <kirtchev@adacore.com>
15958             Javier Miranda  <miranda@adacore.com>
15959             Ed Schonberg  <schonberg@adacore.com>
15961         * sem_ch8.adb: Minor error msg rewording
15962         (Undefined): When checking for misspellings, invert arguments (to get
15963         expected and found set right)
15964         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
15965         (Analyze_Generic_Renaming): Same fix
15966         (Use_One_Package): Do not take into account the internal entities of
15967         abstract interfaces during the analysis of entities that are marked
15968         as potentially use-visible.
15969         (Find_Type): Handle the case of an attribute reference for
15970         implementation defined attribute Stub_Type (simply let the analysis of
15971         the attribute reference rewrite it).
15972         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
15973         type that appears in a Use_Type clause.
15974         (Analyze_Object_Renaming): Add support for renaming of the Priority
15975         attribute.
15976         (Find_Type): In Ada 2005, a task type can be used within its own body,
15977         when it appears in an access definition.
15978         (Analyze_Object_Renaming): Remove warning on null_exclusion.
15979         (Analyze_Object_Renaming): Introduce checks for required null exclusion
15980          in a formal object declaration or in a subtype declaration.
15981         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
15982         (Check_Null_Exclusion): New local routine to
15983         Analyze_Subprogram_Renaming. Check whether the formals and return
15984         profile of a renamed subprogram have required null exclusions when
15985         their counterparts of the renaming already impose them.
15986         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
15987         Determine whether an entity is inside a generic scope.
15988         (In_Open_Scope): First pass of documentation update.
15989         (Find_Expanded_Name): Add support for shadow entities associated with
15990         limited withed packages. This is required to handle nested packages.
15991         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
15992         that makes a renaming of a limited withed package illegal.
15994 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
15995             Ed Schonberg  <schonberg@adacore.com>
15997         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
15998         Check_Overriding_Indicator.
15999         (Analyze_Task_Definition): Ditto.
16000         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
16001         (Check_Overriding_Indicator): To find overridden interface operation,
16002         examine only homonyms that have an explicit subprogram declaration, not
16003         inherited operations created by an unrelated type derivation.
16004         (Check_Overriding_Indicator): When checking for the presence of "null"
16005         in a procedure, ensure that the queried node is a procedure
16006         specification.
16007         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
16008         type when the formal is an access to variable.
16009         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
16010         (Analyze_Task_Type): Same addition
16011         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
16012         provide navigation capabilities for entries.
16014 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
16015             Ed Schonberg  <schonberg@adacore.com>
16016             Javier Miranda  <miranda@adacore.com>
16017             Gary Dismukes  <dismukes@adacore.com>
16019         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
16020         inherited from an interface ancestor by another interface in the
16021         context of an instance as 'late'.
16022         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
16023         of a call to a function that dispatches on access result.
16024         (Check_Dispatching_Operation): In case of late overriding of a primitive
16025         that covers abstract interface subprograms we register it in all the
16026         secondary dispatch tables associated with abstract interfaces.
16027         (Check_Dispatching_Call): Add check that a dispatching call is not made
16028         to a function with a controlling result of a limited type. This is a
16029         current implementation restriction.
16030         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
16031         (Check_Dispatching_Operation): Do no emit a warning if the controlling
16032         argument is an interface type that is a generic formal.
16033         (Is_Interface_Subprogram): Removed.
16034         (Check_Dispatching_Operation): If the subprogram is not a dispatching
16035         operation, check the formals to handle the case in which it is
16036         associated with an abstract interface type.
16038 2006-10-31  Robert Dewar  <dewar@adacore.com>
16039             Ed Schonberg  <schonberg@adacore.com>
16041         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
16042         Add new calls to this procedure during traversal
16043         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
16044         another unit if expansion is disabled.
16046 2006-10-31  Robert Dewar  <dewar@adacore.com>
16048         * sem_eval.adb (Compile_Time_Compare): Make use of information from
16049         Current_Value in the conditional case, to evaluate additional
16050         comparisons at compile time.
16052 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16053             Hristian Kirtchev  <kirtchev@adacore.com>
16054             Javier Miranda  <miranda@adacore.com>
16056         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
16057         subprogram type to provide better diagnostics in case of ambiguity.
16058         (Covers): Handle coverage of formal and actual anonymous access types in
16059         the context of generic instantiation.
16060         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
16061         abstract interface types; this is required to handle concurrent types
16062         with discriminants and abstract interface types.
16063         (Covers): Include type coverage of both regular incomplete subtypes and
16064         incomplete subtypes of incomplete type visibles through a limited with
16065         clause.
16067 2006-10-31  Robert Dewar  <dewar@adacore.com>
16068             Hristian Kirtchev  <kirtchev@adacore.com>
16069             Ed Schonberg  <schonberg@adacore.com>
16071         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
16072         messages for entities in packages which are not used.
16073         (Collect_Synchronized_Interfaces): New procedure.
16074         (Overrides_Synchronized_Primitive): New function.
16075         (Denotes_Discriminant): Extend predicate to apply to task types.
16076         Add missing continuation marks in error msgs
16077         (Unqualify): New function for removing zero or more levels of
16078         qualification from an expression. There are numerous places where this
16079         ought to be used, but we currently only deal properly with zero or one
16080         level.
16081         (In_Instance); The analysis of the actuals in the instantiation of a
16082         child unit is not within an instantiation, even though the parent
16083         instance is on the scope stack.
16084         (Safe_To_Capture_Value): Exclude the case of variables that are
16085         renamings.
16086         (Check_Obsolescent): Removed
16087         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
16088         is an aliased view, even when rewritten as a reference to the target
16089         object in an assignment.
16090         (Get_Subprogram_Entity): New function
16091         (Known_To_Be_Assigned): New function
16092         (Type_Access_Level): Compute properly the access level of a return
16093         subtype that is an anonymous access type.
16094         (Explain_Limited_Type): Correct use of "\" for continuation messages.
16095         (Is_Transfer): The new extended_return_statement causes a transfer of
16096         control.
16097         (Has_Preelaborable_Initialization): New function
16098         (Has_Null_Exclusion): New function. Given a node N, determine whether it
16099         has a null exclusion depending on its Nkind.
16100         Change Is_Lvalue to May_Be_Lvalue
16101         (May_Be_Lvalue): Extensive additional code to deal with subprogram
16102         arguments (IN parameters are not Lvalues, IN OUT parameters are).
16103         (Safe_To_Capture_Value): Extend functionality so it can be used for
16104         the current value condition case.
16105         (Has_Compatible_Alignment): New function
16106         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
16107         objects to handle the Ada 2005 case, where aliasedness no longer implies
16108         that the object is constrained. In particular, for dereferenced names,
16109         the designated object must be assumed to be unconstrained.
16110         (Kill_Current_Values): Properly deal with the case where we encounter
16111         a loop in the scope chain.
16112         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
16113         a value.
16114         (Compile_Time_Constraint_Error): Improve error message in error case
16116         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
16117         associated with entities of abstract interface primitives.
16118         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
16120 2006-10-31  Robert Dewar  <dewar@adacore.com>
16122         * s-osinte-tru64.adb: 
16123         Mark Asm statements Volatile to prevent warnings (seems a
16124         reasonable change anyway)
16125         Fixes new warnings
16127         * s-mastop-irix.adb: Add Volatile to Asm statements
16128         Suppresses warning, and seems appropriate in any case
16130         * s-osinte-vms.adb: Add Volatile to Asm statement
16132         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
16134         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
16135         returned.
16136         Add call to Check_Code_Statement
16138 2006-10-31  Robert Dewar  <dewar@adacore.com>
16139             Ed Schonberg  <schonberg@adacore.com>
16140             Bob Duff  <duff@adacore.com>
16142         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
16143         Synchronized_Present): Add Formal_Derived_Type_Definition and
16144         Private_Extension_Declaration to the list of assertions.
16145         (Is_Entry_Barrier_Function): New flag
16146         (Has_Self_Reference): New flag on aggregates, to indicate that they
16147         contain a reference to the enclosing type, inserted through a default
16148         initialization.
16149         (Next_Rep_Item): Move from Node4 to Node5.
16150         (Entity): Add this field for N_Attribute_Definition_Clause.
16151         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
16152         (N_Return_Object_Declaration): Remove this node kind. We now use
16153         N_Object_Declaration instead.
16154         (Actual_Designated_Subtype): Move to a different place to make room in
16155         N_Extended_Return_Statement.
16156         (Procedure_To_Call): Move to a different place to make room in
16157         N_Extended_Return_Statement.
16158         (Return_Type): Removed this field to make room in return statements
16159         (both kinds).
16160         (Return_Statement_Entity): New field in return statements, in part to
16161         replace Return_Type, and in part to support the fact that return
16162         statements are now pushed on the scope stack during semantic analysis.
16163         (Return_Object_Declarations): New field to support extended return
16164         statements.
16165         (N_Extended_Return_Statement): New node for extended_return_statement
16166         nonterminal.
16167         (N_Return_Object_Declaration): New node for part of
16168         extended_return_statement nonterminal. Needed because all the necessary
16169         fields won't fit in N_Extended_Return_Statement.
16170         Generic_associations now carry the Box_Present flag, to indicate a
16171         default for an actual in a partially parametrized formal package.
16173         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
16174         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
16175         and for the new predefined dispatching policies: EDF_Across_Priorities,
16176         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
16177         Introduce new name Stub_Type for implementation defined attribute.
16178         Add pragma Preelaborable_Initialization
16179         Add entry for Priority attribute.
16180         Add Pragma_Wide_Character_Encoding
16181         (Get_Convention_Name): Given a convention id, this function returns the
16182         corresponding name id from the names table.
16184 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
16185             Robert Dewar  <dewar@adacore.com>
16186             Bob Duff  <duff@adacore.com>
16188         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
16189         print null exclusion twice in the case of an access definition,
16190         Implement new -gnatL switch
16191         Remove N_Return_Object_Declaration. We now use
16192         N_Object_Declaration instead. Implement the case for
16193         N_Extended_Return_Statement. Alphabetize the cases.
16194         Add cases for new nodes N_Extended_Return_Statement and
16195         N_Return_Object_Declaration. The code is not yet written.
16196         Update the output for N_Formal_Object_Declaration
16197         and N_Object_Renaming_Declaration.
16198         (Write_Itype): Account for the case of a modular integer subtype whose
16199         base type is private.
16201 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
16203         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
16204         Remove elaboration code, now done in the binder.
16206         * s-rident.ads: Make this unit Preelaborate.
16207         (No_Restrictions): New constant used to clean up code and follow
16208         preelaborate constraints.
16210         * s-stalib.adb: 
16211         Add System.Restrictions dependence, referenced directly from the
16212         binder generated file.
16214 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
16216         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
16217         True when AAMP extended floating-point is in use (48-bit). Change type
16218         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
16219         the two byte array types on AFloat. Change type of IV_Ilf overlay
16220         variable from Byte8 to ByteLF. Add appropriate initializations of
16221         floating-point overlays for AAMP cases.
16223 2006-10-31  Javier Miranda  <miranda@adacore.com>
16225         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
16226         (Get_Ceiling): New subprogram that returns
16227         the ceiling priority of the protected object.
16228         (Set_Ceiling): New subprogram that sets the new ceiling priority of
16229         the protected object.
16231         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
16233         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
16235 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
16237         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
16238         requeuing to the same protected object to give higher priority tasks
16239         the opportunity to execute.
16241 2006-10-31  Robert Dewar  <dewar@adacore.com>
16243         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
16244         add more precise check for the character sequence that follows '[' to
16245         avoid possible confusion in case if '[' is the last character of a
16246         string literals.
16247         (Scan_Wide): Always allow brackets encoding
16249 2006-10-31  Olivier Hainque  <hainque@adacore.com>
16251         * s-stchop.ads: make this unit preelaborate. This is desirable in
16252         general and made mandatory by the use of this unit by s-taprop which
16253         is itself preelaborate.
16255         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
16256         Td_Events component.
16258 2006-10-31  Vincent Celier  <celier@adacore.com>
16260         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
16261         in file names.
16263 2006-10-31  Vincent Celier  <celier@adacore.com>
16265         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
16267 2006-10-31  Vincent Celier  <celier@adacore.com>
16269         * makegpr.adb (Check_Compilation_Needed): Take into account path names
16270         with spaces.
16271         (Check_Compilation_Needed): When checking a C or C++ source, do not
16272         resolve symbolic links.
16273         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
16274         When not in verbose mode and Ellipse is True, display "..." for the
16275         first argument with Display set to False.
16276         (Build_Global_Archive): Always set Display True for the first object
16277         file. Call Display_Command with Ellipse set to True.
16279 2006-10-31  Matt Heaney  <heaney@adacore.com>
16281         * a-crbtgo.ads: Commented each subprogram
16283         * a-crbtgo.adb: Added reference to book from which algorithms were
16284         adapted.
16286         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
16287         indicate which child.
16288         (Generic_Conditional_Insert): changed parameter name from "Success" to
16289         "Inserted".
16290         (Generic_Unconditional_Insert_With_Hint): improved algorithm
16292         * a-coorse.adb (Replace_Element): changed parameter name in call to
16293         conditional insert operation.
16295         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
16297         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
16298         Generic_Iteration
16300         * a-ciorse.adb (Replace_Element): changed parameter name in call to
16301         conditional insert operation.
16303         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
16304         Generic_Iteration.
16306         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
16307         instead of mode inout.
16309         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
16310         draft
16311         (Generic_Read): preserve existing buckets array if possible
16312         (Generic_Write): don't send buckets array length anymore
16314         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
16315         instead of mode inout.
16317         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
16318         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16320         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
16321         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16322         (Replace_Element): local operation is now an instantiation
16324         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
16325         check current length.
16326         (Generic_Replace_Element): new operation
16328 2006-10-31  Doug Rupp  <rupp@adacore.com>
16330         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
16331         Call TBK$SYMBOLIZE without omitting parameters.
16333 2006-10-31  Vincent Celier  <celier@adacore.com>
16335         * symbols-processing-vms-ia64.adb,
16336         symbols-processing-vms-alpha.adb (Process): Do not include symbols
16337         that come from generic instantiations in bodies.
16339 2006-10-31  Pat Rogers  <rogers@adacore.com>
16341         * a-rttiev.ads, a-rttiev.adb: 
16342         This is a significant redesign primarily for the sake of automatic
16343         timer task termination but also to fix a design flaw.
16344         Therefore we are now using an RTS lock, instead of a protected
16345         object, to provide mutual exclusion to the queue of pending events
16346         and the type Timing_Event is no longer a protected type.
16348 2006-10-31  Robert Dewar  <dewar@adacore.com>
16349             Cyrille Comar  <comar@adacore.com>
16350             Ben Brosgol  <brosgol@adacore.com>
16352         * debug.adb:  Update flags documentation
16354         * gnat_ugn.texi: Add documentation for new -gnatwq switch
16355         Clean up documentation for several other warning switches
16356         Clarify how task stack size can be specified with various
16357         versions of Windows.
16358         Add note that -gnatVo includes ranges including loops
16359         Add documentation for -gnatL switch
16360         Add note on elaboration warning for initializing variables
16361         Add documentation for new -gnatwt warning switch
16362         Document new form of pragma Warnings (On|Off, string)
16363         Add comment on use of pragma Warnings to control warnings
16364         Add documentation for -gnatjnn switch
16365         Modify section on interfacing with C for VMS 64-bit.
16366         Add doc for -gnatVe/E
16367         Add documentation of new warning flags -gnatww/-gnatwW
16368         Add warnings about address clause overlays to list of warnings
16369         (Exception Handling Control): Document that the option --RTS must be
16370         used consistently for gcc and gnatbind.
16371         Clarify that inlining is not always possible
16372         Update documentation on pragma Unchecked_Union.
16374         * gnat_rm.texi: 
16375         Add documentation for new extended version of pragma Obsolescent
16376         Add documentation for implementation defined attribute 'Stub_Type.
16377         Add note on use of Volatile in asm statements
16378         Add documentation on use of pragma Unreferenced in context clause
16379         Document new form of pragma Warnings (On|Off, pattern)
16380         Document pragma Wide_Character_Encoding
16381         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
16382         enforced if code generation is active.
16383         Add section on pragma Suppress to document GNAT specific check
16384         Alignment_Check
16385         Clarify difference between No_Dispatching_Calls & No_Dispatch.
16386         Add documentation for pragma Restrictions (No_Elaboration_Code)
16388         * gnat-style.texi: 
16389         Add comments on layout of subprogram local variables in the
16390         presence of nested subprograms.
16392         * ug_words: Resync.
16394         * elists.ads: Minor reformatting
16395         Node returns Node_Or_Entity_Id (doc change only)
16397         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
16399         * g-arrspl.ads (Create): Update comments.
16401         * sem.ads: Add details on the handling of the scope stack.
16403         * usage.adb: Update documentation.
16405         * validsw.ads, validsw.adb: 
16406         Add definition of Validity_Check_Components and implement -gnatVe/E
16408         * vms_data.ads: Add missing VMS qualifiers.
16410         * s-addope.ads: Add documentation on overflow and divide by zero
16412 2006-10-31  Robert Dewar  <dewar@adacore.com>
16413             Thomas Quinot  <quinot@adacore.com>
16414             Arnaud Charlet  <charlet@adacore.com>
16416         * fmap.adb: Put routines in alpha order
16418         * g-boumai.ads: Remove redundant 'in' keywords
16420         * g-cgi.adb: Minor reformatting
16422         * g-cgi.ads: Remove redundant 'in' keywords
16424         * get_targ.adb: Put routines in alpha order
16426         * prj-attr.ads: Minor reformatting
16428         * s-atacco.ads: Minor reformatting
16430         * scn.adb: Put routines in alpha order
16432         * sinput-l.adb: Minor comment fix
16434         * sinput-p.adb: Minor comment fix
16436         * s-maccod.ads: Minor reformatting
16438         * s-memory.adb: Minor reformatting
16440         * s-htable.adb: Fix typo in comment.
16442         * s-secsta.adb: Minor comment update.
16444         * s-soflin.adb: Minor reformatting
16446         * s-stoele.ads: 
16447         Add comment about odd qualification in Storage_Offset declaration
16449         * s-strxdr.adb: 
16450         Remove unnecessary 'in' keywords for formal parameters.
16452         * treeprs.adt: Minor reformatting
16454         * urealp.adb: Put routines in alpha order
16456         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
16457         taking string.
16459         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16461         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
16463         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
16464         workaround as on other platforms.
16466         * g-eacodu-vms.adb: Remove redundant 'in' keywords
16467         * g-expect-vms.adb: Remove redundant 'in' keywords
16469         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
16470         clear error message if the list-of-files file cannot be opened.
16472         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
16473         equality operator is always visible.
16475         * lang.opt: Woverlength-strings: New option.
16477         * nmake.adt: 
16478         Update copyright, since nmake.ads and nmake.adb have changed.
16480         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
16481         (Binder_Output_Time_Stamps_Set): removed.
16482         (Old_Binder_Output_Time_Stamp): idem.
16483         (New_Binder_Output_Time_Stamp): idem.
16484         (Recording_Time_From_Last_Bind): idem.
16485         (Recording_Time_From_Last_Bind): Make constant.
16487         * output.ads, output.adb (Write_Str): Allow LF characters
16488         (Write_Spaces): New procedure
16490         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
16492         * inline.adb: Minor reformatting
16494         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16496         * s-mastop-vms.adb: Remove redundant 'in' keywords
16498         * s-osprim-vms.adb: Remove redundant 'in' keywords
16500         * s-trafor-default.adb: Remove redundant 'in' keywords
16502         * 9drpc.adb: Remove redundant 'in' keywords
16504         * s-osinte-mingw.ads: Minor reformatting
16506         * s-inmaop-posix.adb: Minor reformatting
16508         * a-direio.ads: Remove quotes from Compile_Time_Warning message
16510         * a-exexda.adb: Minor code reorganization
16512         * a-filico.adb: Minor reformatting
16514         * a-finali.adb: Minor reformatting
16516         * a-nudira.ads: Remove quote from Compile_Time_Warning message
16518         * a-numeri.ads: Minor reformatting
16520         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
16522         * exp_pakd.ads: Fix obsolete comment
16524         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
16525         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
16526         Probably not a bug, but certainly neater and more efficient.
16528         * a-tienio.adb: Minor reformatting
16530         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
16531         Avoid assuming low bound of string is 1.
16533         * gnatbind.adb: Change Bindusg to package and rename procedure as
16534         Display, which now ensures that it only outputs usage information once.
16535         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
16537         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
16538         Table'First.
16540         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
16541         warning.
16542         (Match): Add pragma Assert to ensure that Matches'First is zero
16544         * g-regpat.ads (Match): Document that Matches lower bound must be zero
16546         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
16547         documented preconditions (also kills warnings about bad indexes).
16549         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
16550         is 1.
16551         (Build_Import_Library): Ditto;
16553         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
16555         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
16557         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
16558         lower bound of choice table is 1.
16560         * sem_case.ads (Analyze_Choices): Document that lower bound of
16561         Choice_Table is 1.
16563         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
16564         string is 1.
16566         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
16567         and add appropriate Assert pragma to suppress warnings.
16569         * atree.h, atree.ads, atree.adb
16570         Change Elist24 to Elist25
16571         Add definitions of Field28 and Node28
16572         (Traverse_Field): Use new syntactic parent table in sinfo.
16574         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16576         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16578         * exp_tss.adb: Put routines in alpha order
16580         * fe.h: Remove redundant declarations.
16582 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
16584         * utils.c (builtin_function): Rename to gnat_builtin_function.
16585         Move common code to add_builtin_function.
16586         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
16587         gnat_builtin_function.
16588         * gigi.h (builtin_function): Rename to gnat_builtin_function.
16589         Change the signature.
16591 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
16593         * Makefile.in: Add TEXI2PDF definition.
16594         * Make-lang.in: Add "ada.pdf" target.
16596 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
16598         * decl.c, utils.c: Fix comment typos.
16599         * utils.c: Fix a typo.
16601 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
16603         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
16604         on "pure" Ada subprograms if SJLJ exceptions are used.
16605         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
16606         on the declaration node of JMPBUF_SAVE.
16607         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
16608         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
16609         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
16611 2006-08-20  Laurent Guerby  <laurent@guerby.net>
16613         PR ada/28716
16614         g-socket.adb (Bind_Socket): Call Set_Address.
16616 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
16618         PR ada/15802
16619         * decl.c (same_discriminant_p): New static function.
16620         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
16621         subtype and we have discriminants, fix up the COMPONENT_REFs
16622         for the discriminants to make them reference the corresponding
16623         fields of the parent subtype after it has been built.
16625 2006-09-15  Roger Sayle  <roger@eyesopen.com>
16627         PR ada/18817
16628         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
16629         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
16631 2006-09-13  Olivier Hainque  <hainque@adacore.com>
16633         PR ada/29025
16634         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
16635         of a SAVE_EXPR, just make the operand addressable/not-readonly and
16636         let the common gimplifier code make and propagate a temporary copy.
16637         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
16638         out/in-out actuals and defer setting the addressable/readonly bits
16639         to the gimplifier.
16641 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
16643         PR ada/28591
16644         * decl.c (components_to_record): Defer emitting debug info for the
16645         record type associated with the variant until after we are sure to
16646         actually use it.
16648 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
16650         PR ada/21952
16651         * gigi.h (gnat_internal_attribute_table): Declare.
16652         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
16653         * utils.c (gnat_internal_attribute_table): New global variable.
16654         (builtin_function): Always call decl_attributes on the builtin.
16655         (handle_const_attribute): New static function.
16656         (handle_nothrow_attribute): Likewise.
16658 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
16660         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
16662 2006-06-23  Olivier Hainque  <hainque@adacore.com>
16664         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
16665         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
16667 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
16668             Eric Botcazou  <ebotcazou@adacore.com>
16670         PR ada/18692
16671         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
16672         check-gnat into check-acats.
16674 2006-06-17  Karl Berry  <karl@gnu.org>
16676         * gnat-style.texi (@dircategory): Use "Software development"
16677         instead of "Programming", following the Free Software Directory.
16679 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16681         PR ada/27944
16682         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
16684 2006-06-06  Laurent Guerby  <laurent@guerby.net>
16686         PR ada/27769
16687         mlib-utl.adb: Use Program_Name.
16689 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
16691         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
16692         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
16693         trans.c, utils.c: Fix comment typos.  Follow spelling
16694         conventions.
16695         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
16696         conventions.
16698 2006-05-19  Nicolas Setton  <setton@adacore.com>
16700         * misc.c (gnat_dwarf_name): New function.
16701         (LANG_HOOKS_DWARF_NAME): Define to it.
16703 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16705         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
16706         (ada/misc.o): Likewise.
16707         (ada/utils.o): Likewise.
16709 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
16711         * Makefile.in: Add Ada support for GNU/kFreeBSD.
16712         * s-osinte-kfreebsd-gnu.ads: New file.
16714 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
16716         * Make-lang.in: Rename docdir to gcc_docdir.
16718 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
16720         * gigi.h (get_ada_base_type): Delete.
16721         * utils2.c (get_ada_base_type): Likewise.
16722         * trans.c (convert_with_check): Operate in the real base type.
16724 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16726         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
16728 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
16730         * utils.c (create_var_decl): Use have_global_bss_p when deciding
16731         whether to make the decl common.
16733 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
16735         * Make-lang.in (Ada): Remove.
16736         (.PHONY): Remove Ada
16738 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16740         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
16741         aggregate, check the interpretations of the other operand to find one
16742         that may be a boolean array.
16744         (Analyze_Selected_Component): Fix flow-of-control typo in case where
16745         the prefix is a private extension.
16747 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
16749         PR ada/26315
16750         * utils2.c (find_common_type): If both input types are BLKmode and
16751         have the same constant size, keep using the first one.
16753         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
16755         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
16757         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
16759 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
16761         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
16762         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
16763         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
16764         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
16765         Abort_Defer/Undefer pairs to avoid the possibility of a task being
16766         aborted while owning a lock.
16768 2006-02-17  Javier Miranda  <miranda@adacore.com>
16769             Robert Dewar  <dewar@adacore.com>
16771         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
16772         through an access to class-wide interface we force the displacement of
16773         the pointer to the allocated object to reference the corresponding
16774         secondary dispatch table.
16775         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
16776         if Long_Shifts are supported on the target, even if 64 bit divides
16777         are not supported (configurable run time mode).
16778         (Expand_N_Type_Conversion): Do validity check if validity checks on
16779         operands are enabled.
16780         (Expand_N_Qualified_Expression): Do validity check if validity checks
16781         on operands are enabled.
16783 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16785         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
16786         must be materialized when the renamed expression is an explicit
16787         dereference.
16789 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16791         * freeze.adb (Statically_Discriminated_Components): Return false if
16792         the bounds of the type of the discriminant are not static expressions.
16794         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
16795         the bounds of the discriminant type are not static.
16797 2006-02-17  Robert Dewar  <dewar@adacore.com>
16799         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
16800         then we close To if it is valid.
16802 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
16804         * init.c (facility_resignal_table): new array
16805         (__gnat_default_resignal_p): enhance default predicate to resignal if
16806         VMS condition has one of the predefined facility codes.
16808 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
16810         * Makefile.in: Use VMS64 specialized versions of several units in
16811         Interfaces.C hierarchy to be compatible with HP C default size choices.
16812         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
16814 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16816         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
16817         instantiation, the corresponding entity is the related_instance of the
16818         wrapper package created for the instance.
16820 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16822         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
16823         the current instance is nested within another instance in a child unit.
16825 2006-02-17  Javier Miranda  <miranda@adacore.com>
16826             Ed Schonberg  <schonberg@adacore.com>
16828         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
16829         type we cannot inherit the primitive operations; we inherit the
16830         Corresponding_Record_Type (which has the list of primitive operations).
16831         (Check_Anonymous_Access_Types): When creating anonymous access types for
16832         access components, use Rewrite in order to preserve the tree structure,
16833         for ASIS use.
16834         (Analyze_Object_Declaration): For limited types with access
16835         discriminants with defaults initialized by an aggregate, obtain
16836         subtype from aggregate as for other mutable types.
16837         (Derived_Type_Declaration): If the derived type is a limited interface,
16838         set the corresponding flag (Is_Limited_Record is not sufficient).
16840 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
16842         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
16843         to inline a function that returns an unconstrained type, the return
16844         expression must be the first variable declared in the body of the
16845         function.
16847 2006-02-17  Javier Miranda  <miranda@adacore.com>
16849         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
16850         abstract interface type, the static analysis is not enough to know if
16851         the interface is implemented or not by the source tagged type. Hence
16852         we must pass the work to the expander to generate the required code to
16853         evaluate the conversion at run-time.
16854         (Resolve_Equality_Op): Do not apply previous
16855         transformation if expansion is disasbled, to prevent anomalies when
16856         locating global references in a generic unit.
16858 2006-02-17  Vincent Celier  <celier@adacore.com>
16860         * snames.ads, snames.adb: New standard names for new project attributes:
16861         archive_builder, archive_indexer, compiler_pic_option,
16862         config_body_file_name, config_body_file_name_pattern,
16863         config_file_switches, config_file_unique, config_spec_file_name,
16864         config_spec_file_name_pattern, default_builder_switches,
16865         default_global_compiler_switches, default_language,
16866         dependency_file_kind, global_compiler_switches, include_path,
16867         include_path_file, language_kind, linker_executable_option,
16868         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
16869         roots, runtime_project.
16871 2006-02-17  Matthew Heaney  <heaney@adacore.com>
16873         * a-convec.ads, a-convec.adb: 
16874         (operator "&"): handle potential overflow for large index types
16875         (Insert): removed Contraint_Error when using large index types
16876         (Insert_Space): removed Constraint_Error for large index types
16877         (Length): moved constraint check from Length to Insert
16879         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
16880         as not null access.
16881         Explicit raise statements now include an exception message.
16882         (operator "&"): handle potential overflow for large index types
16883         (Insert): removed Contraint_Error when using large index types
16884         (Insert_Space): removed Constraint_Error for large index types
16885         (Length): moved constraint check from Length to Insert
16887 2006-02-17  Robert Dewar  <dewar@adacore.com>
16889         * s-wchcnv.adb: Document handling of [ on output (we do not change
16890         this to ["5B"] and the new comments say why not.
16892         * gnat_ugn.texi: 
16893         Add note for -gnatVo that this now includes the cases of type
16894         conversions and qualified expressions.
16895         Add comments on handling of brackets encoding for Text_IO
16897 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
16898             Thomas Quinot  <quinot@adacore.com>
16899             Robert Dewar  <dewar@adacore.com>
16900             Javier Miranda  <miranda@adacore.com>
16902         * expander.adb: Fix typo in comment
16904         * exp_pakd.adb: Fix typo
16905         Minor comment reformatting.
16907         * g-dyntab.adb: Minor reformatting
16909         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
16910         aliased subprograms to look for the abstract interface subprogram.
16912 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
16914         * env.c (__gnat_setenv): Use size_t.
16915         (__gnat_unsetenv): Likewise.
16916         (__gnat_clearenv): Likewise.
16918 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
16920         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
16922 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
16924         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
16925         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
16926         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
16927         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
16928         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
16929         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
16930         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
16931         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
16932         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
16933         no longer used.
16935 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
16937         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
16938         protection against race conditions is not needed.
16939         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
16940         fallback handler.
16941         (Set_Specific_Handler): Add mutual exclusive access to the specific
16942         handler.
16943         (Specific_Handler): Add mutual exclusive access for retrieving the
16944         specific handler.
16946         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
16947         back handler.
16949         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
16950         Fall_Back_Handler and Specific_Handler.
16952         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
16953         termination handlers.
16954         Set two different owerflow depending on the maximal stack size.
16956         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
16957         protection against race conditions is not needed when executing the
16958         task termination handler.
16960 2006-02-13  Robert Dewar  <dewar@adacore.com>
16962         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
16963         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
16964         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
16965         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
16966         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
16967         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
16968         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
16969         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
16970         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
16971         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
16972         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
16973         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
16974         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
16975         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
16976         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
16977         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
16978         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
16979         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
16980         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
16981         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
16982         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
16983         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
16984         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
16985         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
16986         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
16987         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
16988         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
16989         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
16990         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
16991         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
16992         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
16993         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
16994         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
16995         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
16996         reformatting.
16998 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
17000         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
17001         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
17002         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
17003         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
17004         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
17005         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
17006         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
17007         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
17008         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
17010 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
17012         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
17013         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
17014         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
17015         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
17016         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
17017         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
17018         replaced by anonymous access type.
17019         (pthread_sigmask): Now take an access sigset_t
17021         * s-osinte-hpux.ads:  Ditto.
17022         (pthread_mutex_t, pthread_cond_t): Update definitions to support
17023         properly 32 and 64 bit ABIs.
17025 2006-02-13  Pascal Obry  <obry@adacore.com>
17027         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
17028         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
17029         s-taprop-linux.adb, s-taprop-solaris.adb,
17030         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
17031         adjustement is already done when calling this routine.
17033 2006-02-13  Pascal Obry  <obry@adacore.com>
17035         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
17036         table to take advantage of the 16 priority levels available on Windows
17037         2000 and XP. On NT4 there are only 7 priority levels, this is properly
17038         supported by this new mapping.
17040 2006-02-13  Nicolas Setton  <setton@adacore.com>
17042         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
17043         (get_encoding): New subprogram. Extracts the encodings from an encoded
17044         Ada name.
17046 2006-02-13  Pascal Obry  <obry@adacore.com>
17047             Nicolas Roche  <roche@adacore.com>
17048             Arnaud Charlet  <charlet@adacore.com>
17050         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
17051         support.
17052         (__gnat_try_lock): Add unicode support by using a specific section on
17053         Windows.
17054         (__gnat_get_current_dir): Idem.
17055         (__gnat_open_read): Idem.
17056         (__gnat_open_rw): Idem.
17057         (__gnat_open_create): Idem.
17058         (__gnat_create_output_file): Idem.
17059         (__gnat_open_append): Idem.
17060         (__gnat_open_new): Idem.
17061         (__gnat_file_time_name): Idem.
17062         (__gnat_set_file_time_name): Idem.
17063         (__gnat_stat): Idem.
17064         (win32_no_block_spawn): Idem.
17065         (__gnat_locate_exec_on_path): Idem.
17066         (__gnat_opendir): New routine.
17067         (__gnat_closedir): Idem.
17068         (__gnat_readdir): Add new parameter length (pointer to int). Update
17069         implementation to use it and add specific Win32 code for Unicode
17070         support.
17071         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
17072         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
17073         (convert_addresses): Do not define this dummy routine on VMS.
17075         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
17076         runtime Unicode support will be activated.
17077         (S2WS): String to Wide-String conversion. This version just copy a
17078         string in non Unicode version.
17079         (WS2S): Wide-String to String conversion. This version just copy a
17080         string in non Unicode version.
17082         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
17083         (Open): Now import __gnat_opendir from adaint.c.
17084         (Read): Change the implementation to support unicode characters. It is
17085         not possible to use strlen() on Windows as this version supports only
17086         standard ASCII characters. So the length of the directory entry is now
17087         returned from the imported __gnat_readdir routine.
17088         Update copyright notice.
17090         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
17091         (opendir): Moved to adaint.c.
17093         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
17094         (Get_Directory): Fix wrong indexing.
17095         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
17096         __gnat_getenv from env.c
17097         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
17098         from env.c
17100         * env.h, env.c: New file.
17102         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
17103         adaint.c by __gnat_getenv from env.c
17105         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
17106         adaint.c by __gnat_getenv from env.c
17108         * Make-lang.in: Add env.o in the list of C object needed by gnat1
17109         and gnatbind.
17110         Update dependencies.
17112 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17113             Olivier Hainque  <hainque@adacore.com>
17114             Eric Botcazou  <ebotcazou@adacore.com>
17116         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
17117         
17118         * gigi.h (value_factor_p): Add prototype and description, now public.
17120         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
17121         promotion for field with rep clause if the associated size was proven
17122         to be in error.
17123         Expand comments describing attempts to use a packable type.
17124         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
17125         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
17126         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
17127         necessary since these are not different types and pointers may
17128         actually designate any subtype in this hierarchy.
17129         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
17130         discriminants but put them into record only if not Unchecked_Union;
17131         pass flag to components_to_record showing Unchecked_Union.
17132         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
17133         components before variants; don't set TYPE_UNCHECKED_UNION_P.
17134         (components_to_record): New argument UNCHECKED_UNION.
17135         Remove special case code for Unchecked_Union and instead use main code
17136         with small changes.
17138         PR ada/26096
17139         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
17140         variable with the expression being built, only its inner field.
17142         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
17143         emit_sequence_entry_statements.
17144         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
17145         (establish_gnat_vms_condition_handler): Move before
17146         Subprogram_Body_to_gnu.
17147         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
17148         for a subprogram if it has a foreign convention or is exported.
17149         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
17150         substituted for a CONST_DECL.
17151         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
17152         Etype to assoc_to_constructor.
17153         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
17154         discriminants of Unchecked_Union.
17155         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
17156         don't need cluttering preprocessor directives.
17157         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
17158         condition handler as current in the compiled function.
17159         (body_with_handlers_p): New function. Tell whether a given sequence of
17160         statements node is attached to a package or subprogram body and involves
17161         exception handlers possibly nested within inner block statements.
17162         (emit_sequence_entry_statements): New function, to emit special
17163         statements on entry of sequences when necessary. Establish GNAT
17164         condition handler in the proper cases for VMS.
17165         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
17166         emit_sequence_entry_statements.
17168         * utils2.c (find_common_type): If both input types are BLKmode and
17169         have a constant size, use the smaller one.
17170         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
17171         the same.
17173         * utils.c (value_factor_p): Make public, to allow uses from other gigi
17174         units.
17175         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
17176         (convert, case UNION_TYPE): Remove special treatment for unchecked
17177         unions.
17179         PR ada/18659
17180         (update_pointer_to): Update variants of pointer types to unconstrained
17181         arrays by attaching the list of fields of the main variant.
17183 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
17184             Robert Dewar  <dewar@adacore.com>
17186         * a-exexpr.adb, a-exexpr-gcc.adb
17187         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
17188         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
17189         Remove code unused for exception propagation for the compiler itself
17190         from a-except.adb and update to still share separate packages.
17192         * a-except.ads, a-except.adb: Ditto.
17193         Add comments that this version is now used only by the compiler and
17194         other basic tools. The full version that includes the Ada 2005 stuff
17195         is in separate files a-except-2005.ads/adb. The reason is that we do
17196         not want to cause bootstrap problems with compilers not recognizing
17197         Wide_Wide_String.
17198         Add exception reason code PE_Implicit_Return
17199         Add new exception reason code (Null Exception_Id)
17201         * a-except-2005.adb, a-except-2005.ads: New files.
17203         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
17205         * s-wchcon.adb: New file.
17207         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
17208         (traceback.o deps): Likewise.
17209         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
17210         Activate build of GMEM instrumentation library on VMS targets.
17211         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
17212         Use a-except-2005.ads/adb for all run-time library builds unless
17213         specified otherwise.
17214         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
17215         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
17216         Use s-parame.adb on all native platforms.
17217         Use s-parame-vxworks.adb on all vxworks platforms.
17218         Add env.c env.h in LIBGNAT_SRCS
17219         Add env.o in LIBGNAT_OBJS
17220         (GNATMAKE_OBJS): Remove ctrl_c.o object.
17221         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
17222         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
17223         supports VxWorks 6 RTPs.
17224         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
17225         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
17227         * types.h, types.ads (Terminate_Program): New exception
17228         Add comment on modifying multiple versions of a-except.adb when the
17229         table of exception reasons is modified.
17230         Add exception reason code PE_Implicit_Return
17231         Add new exception reason code (Null Exception_Id)
17233         * clean.adb (Initialize): Get the target parameters before checking
17234         if target is OpenVMS. Move the OpenVMS specific code here from package
17235         body elaboration code.
17237 2006-02-13  Thomas Quinot  <quinot@adacore.com>
17238             Vincent Celier  <celier@adacore.com>
17239             Robert Dewar  <dewar@adacore.com>
17241         * ali-util.adb (Get_File_Checksum): Update to account for change in
17242         profile of Initialize_Scanner.
17244         * gprep.adb (Gnatprep): Update to account for change in profile of
17245         Initialize_Scanner.
17246         (Process_One_File): Same.
17248         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
17249         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
17250         that behaviour using the new Unit information recorded in the source
17251         files table, rather than going through all units every time.
17252         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
17253         (Get_Source_Unit): Same.
17255         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
17256         change in profile of Initialize_Scanner.
17257         (Prepare_To_Preprocess): Same.
17259         * lib.ads: Fix typo in comment (templace -> template).
17261         * prj-part.adb (Parse_Single_Project): Update to account for change in
17262         profile of Initialize_Scanner.
17264         * scn.adb (Initialize_Scanner): Account for change in profile of
17265         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
17266         Also record the association of the given Source_File_Index to the
17267         corresponding Unit_Number_Type.
17269         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
17270         procedure.
17271         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
17272         Remove Unit formal for generic scanner: this formal
17273         is only relevant to Scn (the scanner instance used to parse Ada source
17274         files), not to other instances. Update comment accordingly.
17275         (Scan): Use new function Snames.Is_Keyword_Name.
17277         * sinfo-cn.adb: Fix typo in comment.
17279         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
17280         Unit.
17282         * sinput.ads (Source_File_Record): New component Unit, used to capture
17283         the unit identifier (if any) associated to a source file.
17285         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
17286         Unit in Source_File_Record.
17288         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
17289         in profile of Initialize_Scanner.
17291         * scans.adb (Initialize_Ada_Keywords): New procedure
17293         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
17294         Ada keywords in the Namet table, without the need to call
17295         Initialize_Scanner.
17297         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
17298         (Is_Keyword_Name): New function
17300         * snames.ads: Add subtype Configuration_Pragma_Names
17301         Add pragma Ada_2005 (synonym for Ada_05)
17302         (Is_Keyword_Name): New function
17304         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
17306 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
17308         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
17309         index.
17311         * a-stwima.adb (To_Set): Add extra check when N = 0.
17313         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
17315 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
17317         * s-parame-mingw.adb, s-parame-linux.adb,
17318         s-parame-solaris.adb: Removed, replaced by s-parame.adb
17320         * s-parame-vxworks.ads: Fix typo.
17322         * s-parame-vxworks.adb: New file.
17324         * s-parame.adb: Version now used by all native platforms.
17325         (Default_Stack_Size): Use 2 megs for default stack size and use
17326         __gl_default_stack_size when available.
17327         (Minimum_Stack_Size): Use 12K.
17329         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
17330         (Create_Task): Refine implementation taking advantage of the XP stack
17331         size support. On XP, we now create the thread using the flag
17332         STACK_SIZE_PARAM_IS_A_RESERVATION.
17334         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
17336         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
17337         XP and 0 on older Windows versions.
17339         * interfac-vms.ads: Removed, no longer used.
17341 2006-02-13  Matthew Heaney  <heaney@adacore.com>
17343         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
17344         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
17345         a-cohase.adb: All explicit raise statements now include an exception
17346         message.
17348         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
17349         (Update_Element_Preserving_Key): renamed op to just Update_Element.
17350         Explicit raise statements now include an exception message
17352         * a-cihase.ads, a-cohase.ads: Removed comment.
17354         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
17355         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
17356         a-szbzha.adb, a-szfzha.ads: New files.
17358 2006-02-13  Matthew Heaney  <heaney@adacore.com>
17360         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
17361         quicksort.
17363 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
17365         * lang.opt: Wvariadic-macros: New option.
17366         Wold-style-definition: Likewise.
17367         Wmissing-format-attribute: Likewise.
17369         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
17370         -Wold-style-definition and -Wmissing-format-attribute.
17372 2006-02-13  Robert Dewar  <dewar@adacore.com>
17374         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
17376         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
17378 2006-02-13  Nicolas Roche  <roche@adacore.com>
17380         * a-envvar.adb, a-envvar.ads: New files.
17382 2006-02-13  Douglas Rupp  <rupp@adacore.com>
17384         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
17386         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
17388 2006-02-13  Pat Rogers  <rogers@adacore.com>
17390         * a-rttiev.adb, a-rttiev.ads: New files.
17392 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
17394         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
17395         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
17397         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
17399 2006-02-13  Robert Dewar  <dewar@adacore.com>
17401         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
17402         sem_case.adb: Minor code reorganization (not Present should be No)
17404 2006-02-13  Geert Bosch  <bosch@adacore.com>
17405             Gary Dismukes  <dismukes@adacore.com>
17407         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
17408         0, since the lower bound of the actual string may be greater than one.
17410         PR ada/20753
17411         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
17412         layout is requested.
17414 2006-02-13  Vincent Celier  <celier@adacore.com>
17416         * back_end.adb (Scan_Compiler_Arguments): Check if
17417         Search_Directory_Present is True and, if it is, add the argument in
17418         the source search directory path.
17420         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
17421         Search_Directory_Present to True.
17423 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
17425         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
17426         volatile, to tell the compiler to preserve this variable at any level
17427         of optimization.
17428         (Gen_Versions_Ada): Temporarily work around codegen bug.
17430 2006-02-13  Vincent Celier  <celier@adacore.com>
17432         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
17433         gcc to link with option -shared-libgcc.
17434         (Gnatlink): Remove duplicate switches -shared-libgcc
17436 2006-02-13  Robert Dewar  <dewar@adacore.com>
17438         * gnatvsn.ads (Current_Year): New constant, used to easily update
17439         copyright on all GNAT tools.
17441         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
17442         copyright notice.
17444 2006-02-13  Robert Dewar  <dewar@adacore.com>
17446         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
17447         after hyphen (small aesthetic change useful for a range of numbers
17448         using ^-^.
17449         Suppress range checks for a couple of assignments which otherwise
17450         cause validity checks with validity checking turned on.
17452         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
17453         Improvement in error message for object.
17454         (Rep_Item_Too_Late): Remove '!' in warning message.
17456 2006-02-13  Robert Dewar  <dewar@adacore.com>
17457             Eric Botcazou  <ebotcazou@adacore.com>
17459         * err_vars.ads: Suppress range checks for a couple of assignments
17460         which otherwise cause validity checks with validity checking turned on.
17461         Update comments.
17463         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
17464         Make message unconditional if it is a warning.
17465         (Error_Msg_NEL): Always output warning messages.
17466         Suppress range checks for a couple of assignments which otherwise
17467         cause validity checks with validity checking turned on.
17469         * errout.ads (Message Insertion Characters): Document that '!' is
17470         implied by '?' in error messages.
17472         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
17473         (Gnat1drv): Use a goto to end of main subprogram instead of
17474         Exit_Program (E_Success) so that finalization can occur normally.
17476 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
17478         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
17479         wrapped around.
17481 2006-02-13  Vincent Celier  <celier@adacore.com>
17483         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
17484         Unchecked_Conversion functions.
17485         (Modification_Time): Use direct conversion of OS_Time to Calendar time
17486         when OpenVMS returns False.
17488         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
17489         a-dirval.adb (OpenVMS): New Boolean function
17491 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17492             Thomas Quinot  <quinot@adacore.com>
17494         * checks.adb (Build_Discriminant_Checks): If the expression being
17495         checks is an aggregate retrieve the values of its discriminants to
17496         generate the check, rather than creating a temporary and a reference
17497         to it.
17498         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
17499         (Install_Null_Excluding_Check): Ditto
17500         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
17501         not for the renamed object, so that the actual itype is attached in the
17502         proper context.
17504 2006-02-13  Robert Dewar  <dewar@adacore.com>
17505             Vincent Celier  <celier@adacore.com>
17507         * debug.adb: Eliminate numeric switches for binder/gnatmake
17509         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
17510         switches for the compiler.
17511         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
17512         (Scan_Make_Switches): When failing with an illegal switch, output an
17513         error message with the full switch.
17514         Eliminate numeric switches for binder/gnatmake
17516         * switch.ads, switch.adb (Bad_Switch): New procedure
17518         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
17519         Remove 0-9 as debug flag character possibilities
17520         -d is now controlling the primary stack size when its value is a
17521         positive. Also add checks against invalid values, and support for kb,
17522         mb. Ditto for -D switch.
17524 2006-02-13  Robert Dewar  <dewar@adacore.com>
17525             Serguei Rybin  <rybin@adacore.com>
17527         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
17528         save/restore routines.
17529         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17530         were not always properly handled previously.
17531         Since we are changing the tree format anyway, also get rid of the
17532         junk obsolete Immediate_Errors flag.
17533         (Tree_Read): Change the way of reading Tree_Version_String - now we
17534         read the version string from the tree even if its length is not the
17535         same as the length of the version string computed from Gnatvsn.
17536         (Search_Directory_Present): New Boolean flag for the compiler.
17537         Define Tree_Version_String as a dynamic string.
17538         (Default_Stack_Size): new variable, used to handle switch -d.
17540         * par-prag.adb: 
17541         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
17542         only for main unit.
17543         Add pragma Ada_2005 (synonym for Ada_05)
17544         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17545         were not always properly handled previously.
17547         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
17548         explicit Ada_95 to Ada_2005.
17550 2006-02-13  Javier Miranda  <miranda@adacore.com>
17551             Robert Dewar  <dewar@adacore.com>
17552             Ed Schonberg  <schonberg@adacore.com>
17554         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
17555         against errors in the source program: a private types for which the
17556         corresponding full type declaration is missing and pragma CPP_Virtual
17557         is used.
17558         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
17559         (Is_Known_Null): New flag
17560         (Has_Pragma_Pure): New flag
17561         (No_Return): Present in all entities, set only for procedures
17562         (Is_Limited_Type): A type whose ancestor is an interface is limited if
17563         explicitly declared limited.
17564         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
17565         entities. Only used for component marked Is_Tag. If present it stores
17566         the Offset_To_Top function used to provide this value in tagged types
17567         whose ancestor has discriminants.
17569         * exp_ch2.adb: Update status of new Is_Known_Null flag
17571         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
17573         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
17574         the categorization sense if Is_Pure was set by pragma Pure_Function.
17576 2006-02-13  Quentin Ochem  <ochem@adacore.com>
17577             Olivier Hainque  <hainque@adacore.com>
17579         * bindusg.adb: Updated documentation for -d and -D switches.
17581         * raise.h (__gnat_set_globals): added new parameter for
17582         Default_Stack_Size.
17584         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
17585         (__gnat_handle_vms_condition): Adjust context before raise.
17586         (__gnat_install_handler): Restore the global vector setup for GCC
17587         versions before 3.4, as the frame based circtuitry is not available
17588         in this case.
17589         (__gnat_set_globals): added a parameter default_stack_size
17590         (__gl_default_stack_size): new variable.
17592 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17594         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
17595         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
17596         does not exist in the Ada RM.
17597         (Compatible_Int_Bounds): Determine whether two integer range bounds
17598         are of equal length and have the same start and end values.
17599         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
17600         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
17601         aggregate when it is part of an object declaration.
17602         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
17603         constrains discriminants of its parent, add explicitly the discriminant
17604         constraints of the ancestor by retrieving them from the
17605         stored_constraint of the parent.
17607 2006-02-13  Robert Dewar  <dewar@adacore.com>
17609         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
17610         attribute Mechanism_Code is applied to renamed subprogram, modify
17611         prefix to point to base subprogram.
17612         Max/Min attributes now violate Restriction No_Implicit_Conditionals
17614         * sinfo.ads: Document that Mechanism_Code cannot be applied to
17615         renamed subprograms so that the front-end must replace the prefix
17616         appropriately.
17618 2006-02-13  Javier Miranda  <miranda@adacore.com>
17619             Gary Dismukes  <dismukes@adacore.com>
17621         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
17622         availability of RE_Interface_Tag.
17623         (Build_Initialization_Call): Fix wrong access to the discriminant value.
17624         (Freeze_Record_Type): Do not generate the tables associated with
17625         timed and conditional dispatching calls through synchronized
17626         interfaces if compiling under No_Dispatching_Calls restriction.
17627         When compiling for Ada 2005, for a nonabstract
17628         type with a null extension, call Make_Controlling_Function_Wrappers
17629         and insert the wrapper function declarations and bodies (the latter
17630         being appended as freeze actions).
17631         (Predefined_Primitive_Bodies): Do not generate the bodies of the
17632         predefined primitives associated with timed and conditional
17633         dispatching calls through synchronized interfaces if we are
17634         compiling under No_Dispatching_Calls.
17635         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
17636         service is available before generating a call.
17637         (Make_Controlling_Function_Wrappers): New procedure.
17638         (Expand_N_Full_Type_Declaration): Create a class-wide master for
17639         access-to-limited-interfaces because they can be used to reference
17640         tasks that implement such limited interface.
17641         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
17642         procedure spec and body of the Offset_To_Top function that is generated
17643         when the parent of a type with discriminants has secondary dispatch
17644         tables.
17645         (Init_Secondary_Tags): Handle the case in which the parent of the type
17646         containing secondary dispatch tables has discriminants to generate the
17647         correct arguments to call Set_Offset_To_Top.
17648         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
17650         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
17651         Add Wide_[Wide_]Expanded_Name.
17652         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
17653         the same functionality of Get_Prim_Op_Address but applied to predefined
17654         primitive operations because the pointers to the predefined primitives
17655         are now saved in a separate table.
17656         (Parent_Size): Modified to get access to the separate table of primitive
17657         operations or the parent type.
17658         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
17659         functionality of Set_Prim_Op_Address but applied to predefined primitive
17660         operations.
17661         (Set_Signature): New subprogram used to store the signature of a DT.
17662         (Displace): If the Offset_To_Top value is not static then call the
17663         function generated by the expander to get such value; otherwise use
17664         the value stored in the table of interfaces.
17665         (Offset_To_Top): The type of the actual has been changed to Address to
17666         give the correct support to tagged types with discriminants. In this
17667         case this value is stored just immediately after the tag field.
17668         (Set_Offset_To_Top): Two new formals have been added to indicate if the
17669         offset_to_top value is static and hence pass this value to the run-time
17670         to store it in the table of interfaces, or else if this value is dynamic
17671         and then pass to the run-time the address of a function that is
17672         generated by the expander to provide this value for each object of the
17673         type.
17675         * rtsfind.ads (Default_Prin_Op_Count): Removed.
17676         (Default_Prim_Op_Count): New entity
17677         (Get_Predefined_Prim_Op_Address): New entity
17678         (Set_Predefined_Prim_Op_Address): New entity
17679         (RE_Set_Signature): New entity
17681 2006-02-13  Thomas Quinot  <quinot@adacore.com>
17682             Ed Schonberg  <schonberg@adacore.com>
17684         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
17685         Make_Adjust_Call done for a newly-allocated object.
17687         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
17688         in a subprogram are wrapped in a cleanup block, indicate that the
17689         subprogram contains an inner block with an exception handler.
17690         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
17691         Adjust call is for a newly-allocated object. In that case we must not
17692         assume that the finalization list chain pointers are correct (since they
17693         come from a bit-for-bit copy of the original object's pointers) so if
17694         the attach level would otherwise be zero (no change), we set it to 4
17695         instead to cause the pointers to be reset to null.
17697         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
17698         reset chain pointers to null.
17700 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17702         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
17703         string, and the context requires a loop for the assignment (e.g.
17704         because the left-hand side is packed), generate a unique name for the
17705         temporary that holds the string, to prevent spurious name clashes.
17707 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17708             Javier Miranda  <miranda@adacore.com>
17709             Robert Dewar  <dewar@adacore.com>
17710             Gary Dismukes  <dismukes@adacore.com>
17712         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
17713         return unconstrained arrays.
17714         Update comments.
17715         (Expand_Call):  An indirect call through an access parameter of a
17716         protected operation is not a protected call.
17717         Add circuit to raise CE in Ada 2005 mode following call
17718         to Raise_Exception.
17719         (Register_DT_Entry): Do nothing if
17720         the run-time does not give support to abstract interfaces.
17721         (Freeze_Subprogram): In case of dispatching operations, do not generate
17722         code to register the operation in the dispatch table if the source
17723         is compiled with No_Dispatching_Calls.
17724         (Register_Predefined_DT_Entry): Generate code that calls the new
17725         run-time subprogram Set_Predefined_Prim_Op_Address instead of
17726         Set_Prim_Op_Address.
17728         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
17729         on array assignments if the right-hand side is a function call that has
17730         been inlined. Check is performed on the assignment in the block.
17731         (Process_Bounds): If bounds and range are overloaded, apply preference
17732         rule for root operations to disambiguate, and diagnose true ambiguity.
17733         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
17734         a tag-indeterminate right-hand side even when Expander_Active is True.
17735         Needed to ensure that dispatching calls to T'Input are allowed and
17736         get the tag of the target class-wide object.
17738         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
17739         an inherited primitive operation that already overrides several
17740         abstract interface primitives. For transitivity, the new entity must
17741         also override all the abstract interface primitives covered by the
17742         inherited overriden primitive.
17743         Emit warning if new entity differs from homograph in same scope only in
17744         that one has an access parameter and the other one has a parameter of
17745         a general access type with the same designated type, at the same
17746         position in the signature.
17747         (Make_Inequality_Operator): Use source locations of parameters and
17748         subtype marks from corresponding equality operator when creating the
17749         tree structure for the implicit declaration of "/=". This does not
17750         change anything in behaviour except that the decoration of the
17751         components of the subtree created for "/=" allows ASIS to get the
17752         string images of the corresponding identifiers.
17753         (Analyze_Return_Statement): Remove '!' in warning message.
17754         (Check_Statement_Sequence): Likewise.
17755         (Analyze_Subprogram_Body): For an access parameter whose designated type
17756         is an incomplete type imported through a limited_with clause, use the
17757         type of the corresponding formal in the body.
17758         (Check_Returns): Implicit return in No_Return procedure now raises
17759         Program_Error with a compile time warning, instead of beging illegal.
17760         (Has_Single_Return):  Function returning unconstrained type cannot be
17761         inlined if expression in unique return statement is not an identifier.
17762         (Build_Body_To_Inline): It is possible to inline a function call that
17763         returns an unconstrained type if all return statements in the function
17764         return the same local variable. Subsidiary procedure Has_Single_Return
17765         verifies that the body conforms to this restriction.
17767         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
17768         same type, and  one of them is of an anonymous access type, convert
17769         the other operand to it, so that this is a valid binary operation for
17770         gigi.
17771         (Resolve_Type_Conversion): Handle subtypes of protected types and
17772         task types when accessing to the corresponding record type.
17773         (Resolve_Allocator): Add '\' in 2-line warning message.
17774         Remove '!' in warning message.
17775         (Resolve_Call): Add '\' in 2-line warning message.
17776         (Valid_Conversion): Likewise.
17777         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
17778         resulting type may be an access type with an implicit dereference.
17779         Obtain the proper component from the designated type.
17780         (Make_Call_Into_Operator): Handle properly a call to predefined equality
17781         given by an expanded name with prefix Standard, when the operands are
17782         of an anonymous access type.
17783         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
17784         Explicit_Dereference and Resolve_Selected_Component, to verify that the
17785         prefix of the expression is not of an incomplete type. Allows full
17786         diagnoses of all semantic errors.
17787         (Resolve_Actuals): If the actual is an allocator whose directly
17788         designated type is a class-wide interface we build an anonymous
17789         access type to use it as the type of the allocator. Later, when
17790         the subprogram call is expanded, if the interface has a secondary
17791         dispatch table the expander will add a type conversion to force
17792         the displacement of the pointer.
17793         (Resolve_Call): If a function that returns an unconstrained type is
17794         marked Inlined_Always and inlined, the call will be inlined and does
17795         not require the creation of a transient scope.
17796         (Check_Direct_Boolean_Op): Removed
17797         (Resolve_Comparison_Op): Remove call to above
17798         (Resolve_Equality_Op): Remove call to above
17799         (Resolve_Logical_Op): Inline above, since this is only call.
17800         (Valid_Conversion): Handle properly conversions between arrays of
17801         convertible anonymous access types.
17803         PR ada/25885
17804         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
17805         the literal in an unchecked conversion, because GCC 4.x needs a static
17806         value for a string bound.
17808 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17809             Hristian Kirtchev  <kirtchev@adacore.com>
17811         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
17812         components of the corresponding record, take into account component
17813         definitions that are access definitions.
17814         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
17815         procedure is not considered a dispatching call and will be expanded
17816         properly.
17818 2006-02-13  Javier Miranda  <miranda@adacore.com>
17820         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
17821         controlling argument of the dispatching call is an abstract interface
17822         class-wide type then we use it directly.
17823         Check No_Dispatching_Calls restriction.
17824         (Default_Prim_Op_Position): Remove the code that looks for the last
17825         entity in the list of aliased subprograms. This code was wrong in
17826         case of renamings.
17827         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
17828         when the source is compiled with the No_Dispatching_Calls restriction.
17829         (Init_Predefined_Interface_Primitives): No need to inherit primitives
17830         if we are compiling with restriction No_Dispatching_Calls.
17831         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
17832         subprograms if we are compiling under No_Dispatching_Calls restriction.
17833         (Make_DT): Generate a dispatch table with a single dummy entry if
17834         we are compiling with the No_Dispatching_Calls restriction. In
17835         addition, in this case we don't generate code that calls to the
17836         following run-time subprograms: Set_Type_Kind, Inherit_DT.
17837         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
17838         of this subprogram if compiling with the No_Dispatching_Calls
17839         restriction.
17840         (Expand_Type_Conversion): Instead of using the actual parameter,
17841         the argument passed as parameter to the conversion function was
17842         erroneously referenced by the expander.
17843         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
17844         Set_Predefined_Primitive_Op_Address and Set_Signature.
17845         (Expand_Dispatching_Call): Generate call to
17846         Get_Predefined_Prim_Op_Address for predefined primitives.
17847         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
17848         predefined primitives.
17849         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
17850         primitives we reserve one dummy entry to ensure that the tag does not
17851         point to some memory that is associated with some other object. In
17852         addition, remove all the old code that generated the assignments
17853         associated with the signature of the dispatch table and replace them
17854         by a call to the new subprogram Set_Signature.
17855         (Set_All_DT_Position): Change the algorithm because now we have a
17856         separate dispatch table associated with predefined primitive operations.
17857         (Expand_Interface_Conversion): In case of non-static offset_to_top
17858         add explicit dereference to get access to the object after the call
17859         to displace the pointer to the object.
17860         (Expand_Interface_Thunk): Modify the generation of the actual used
17861         in the calls to the run-time function Offset_To_Top to fulfil its
17862         new interface.
17863         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
17865 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17867         * exp_dist.adb (Copy_Specification): For access parameters, copy
17868         Null_Exclusion flag, which will have been set for stream subprograms
17869         in Ada2005 mode.
17871 2006-02-13  Pascal Obry  <obry@adacore.com>
17873         * expect.c (__gnat_expect_portable_execvp): New implementation. The
17874         previous implementation was using the C runtime spawnve routine but
17875         the corresponding wait was using directly the Win32 API. This was
17876         causing some times a lock when waiting for an event using
17877         WaitForSingleObject in __gnat_waitpid. This new implementation uses
17878         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
17879         API fixes this problem.
17881 2006-02-13  Robert Dewar  <dewar@adacore.com>
17883         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
17884         call.
17886 2006-02-13  Thomas Quinot  <quinot@adacore.com>
17888         * exp_pakd.ads: Fix typos in comments.
17890         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
17891         array reference that is an explicit dereference, mark the converted
17892         (packed) array reference as analyzed to prevent a forthcoming
17893         reanalysis from resetting its type to the original (non-packed) array
17894         type.
17896 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17897             Javier Miranda  <miranda@adacore.com>
17898             Eric Botcazou  <ebotcazou@adacore.com>
17900         * exp_util.ads, exp_util.adb (Find_Prim_Op,
17901         Is_Predefined_Primitive_Operation): When
17902         searching for the predefined equality operator, verify that operands
17903         have the same type.
17904         (Is_Predefined_Dispatching_Operation): Remove the code that looks
17905         for the last entity in the list of aliased subprograms. This code
17906         was wrong in case of renamings.
17907         (Set_Renamed_Subprogram): New procedure
17908         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
17909         Exp_Type constant computed when entering this subprogram.
17910         (Known_Null): New function
17911         (OK_To_Do_Constant_Replacement): New function
17912         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
17913         (Side_Effect_Free): An attribute reference 'Input is not free of
17914         side effect, unlike other attributes that are functions. (from code
17915         reading).
17916         (Remove_Side_Effects): Expressions that involve packed arrays or records
17917         are copied at the point of reference, and therefore must be marked as
17918         renamings of objects.
17919         (Is_Predefined_Dispatching_Operation): Return false if the operation is
17920         not a dispatching operation.
17922         PR ada/18819
17923         (Remove_Side_Effects): Lift enclosing type conversion nodes for
17924         elementary types in all cases.
17926 2006-02-13  Javier Miranda  <miranda@adacore.com>
17928         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
17929         task types when accessing to the corresponding record type.
17930         Remove '!' in warning message.
17932 2006-02-13  Olivier Hainque  <hainque@adacore.com>
17934         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
17935         to avoid useless and space inefficient overalignments on targets where
17936         Max_Alignment is larger than 16.
17938 2006-02-13  Pascal Obry  <obry@adacore.com>
17940         * g-catiio.adb (Sec_Number): New type used to compute the number of
17941         seconds since 1-1-1970.
17942         (Image) [Natural]: The parameter was an Integer, as we can't deal with
17943         negative numbers (years, months...) it is better to have a Natural here.
17944         Code clean-up.
17945         (Image) [Number]: Change parameter from Long_Integer to Number.
17946         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
17947         overflow for dates past year 2038.
17949 2006-02-13  Matthew Heaney  <heaney@adacore.com>
17951         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
17952         Constraint_Error.
17954 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
17956         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
17957         native platforms.
17958         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
17959         finalization can occur normally.
17961 2006-02-13  Vincent Celier  <celier@adacore.com>
17963         * gnatcmd.adb (Rules_Switches): New table
17964         (Add_To_Rules_Switches): New procedure
17965         (GNATCmd): For command CHECK, put all options following "-rules" in the
17966         Rules_Switches table. Append these -rules switches after the -cargs
17967         switches.
17969 2006-02-13  Robert Dewar  <dewar@adacore.com>
17971         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
17972         These two cases were generating incorrect output, and if this unit
17973         was built with checks on, generated a discriminant mismatch constraint
17974         error.
17976 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
17977             Robert Dewar  <dewar@adacore.com>
17979         * lib-xref.adb (Get_Type_Reference): For a private type whose full
17980         view is an array type, indicate the component type as well, for
17981         navigation purposes.
17982         (Generate_Reference): Don't consider array ref on LHS to be a case
17983         of violating pragma Unreferenced.
17984         Do not give Ada 2005 warning except on real reference.
17986 2006-02-13  Vincent Celier  <celier@adacore.com>
17988         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
17989         main source, add switch -mdebug-main=_ada_ so that the executable can
17990         be debugged by the standard VMS debugger.
17991         (Gnatmake): Set No_Main_Subprogram to True when there is no main
17992         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
17993         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
17994         of the last source, as the binding and linking phases are never
17995         performed.
17996         Set all executable obsolete when rebuilding a library.
17998         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
17999         options.
18001 2006-02-13  Javier Miranda  <miranda@adacore.com>
18003         PR ada/23973
18004         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
18005         code to improve the error message reported when the program has
18006         declarations of abstract interface types and it is not compiled with
18007         the -gnat05 switch.
18008         (P_Access_Definition): Reorganize the code to improve the error
18009         message reported when the new Ada 2005 syntax for anonymous
18010         access types is used and the program is not compiled with the
18011         -gnat05 switch.
18013 2006-02-13  Robert Dewar  <dewar@adacore.com>
18015         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
18016         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
18017         (MODE_IN)
18019 2006-02-13  Javier Miranda  <miranda@adacore.com>
18021         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
18022         against source containing syntax errors.
18024 2006-02-13  Vincent Celier  <celier@adacore.com>
18026         * prj.adb (Reset): Initialize the first element of table Namings with
18027         the standard naming data.
18029 2006-02-13  Vincent Celier  <celier@adacore.com>
18031         * prj.ads (Error_Warning): New enumeration type
18033         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
18034         unknown, use the location of the project to report the error.
18035         (When_No_Sources): New global variable
18036         (Report_No_Ada_Sources): New procedure
18037         (Check): New parameter When_No_Sources. Set value of global variable
18038         When_No_Sources,
18039         (Find_Sources): Call Report_No_Ada_Sources when appropriate
18040         (Get_Sources_From_File): Ditto
18041         (Warn_If_Not_Sources): Better warning messages indicating the unit name
18042         and the file name.
18044         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
18045         Call Prj.Proc.Process with parameter When_No_Sources.
18047         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
18048         Call Recursive_Check with parameter When_No_Sources.
18049         (Recursive_Check): New parameter When_No_Sources. Call itself and
18050         Prj.Nmsc.Check with parameter When_No_Sources.
18051         (Process): New parameter When_No_Sources. Call Check with parameter
18052         When_No_Sources.
18053         (Copy_Package_Declarations): New procedure to copy renamed parameters
18054         and setting the location of the declared attributes to the location
18055         of the renamed package.
18056         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
18057         packages.
18059 2006-02-13  Vincent Celier  <celier@adacore.com>
18061         * prj-makr.adb (Make): Preserve the comments from the original project
18062         file.
18063         When removing nodes (attributes Source_Dirs, Source_Files,
18064         Source_List_File and package Naming), save the comments and attach the
18065         saved comments to the newly created nodes.
18066         Do not add a with clause for the naming package if one already exists.
18068 2006-02-13  Javier Miranda  <miranda@adacore.com>
18069             Gary Dismukes  <dismukes@adacore.com>
18070             Robert Dewar  <dewar@adacore.com>
18072         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
18074         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
18075         aliased entities to look for the overriden abstract interface
18076         subprogram.
18077         (Is_Interface_Subprogram): Complete documentation.
18078         (Check_Dispatching_Operation): Do not generate code to register the
18079         operation in the dispatch table if the source is compiled with
18080         restriction No_Dispatching_Calls.
18081         (Override_Dispatching_Operation): Check for illegal attempt to override
18082         No_Return procedure with procedure that is not No_Return
18083         (Check_Dispatching_Call): Suppress the check for an abstract operation
18084         when the original node of an actual is a tag-indeterminate attribute
18085         call, since the attribute, which must be 'Input, can never be abstract.
18086         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
18087         call to the Input attribute (even when rewritten).
18088         (Propagate_Tag): Augment comment to indicate the possibility of a call
18089         to an Input attribute.
18091         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
18092         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
18094         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
18095         No_Wide_Characters is no longer partition-wide
18096         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
18097         rather than GNAT
18099 2006-02-13  Douglas Rupp  <rupp@adacore.com>
18101         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
18103 2006-02-13  Javier Miranda  <miranda@adacore.com>
18105         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
18106         handles default-initialized components to keep separate the management
18107         of this feature but also avoid the unrequired resolution and
18108         expansion of components that do not have partially initialized
18109         values.
18110         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
18111         (Check_Bounds): Likewise.
18112         (Check_Length): Likewise.
18114 2006-02-13  Javier Miranda  <miranda@adacore.com>
18115             Ed Schonberg  <schonberg@adacore.com>
18117         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
18118         abstract interface type call analyze_and_resolve to expand the type
18119         conversion into the corresponding displacement of the
18120         reference to the base of the object.
18121         (Eval_Attribute, case Width): For systems where IEEE extended precision
18122         is supported, the maximum exponent occupies 4 decimal digits.
18123         (Accessibility_Message): Add '\' in 2-line warning message.
18124         (Resolve_Attribute): Likewise.
18125         (case Attribute_Access): Significantly revise checks
18126         for illegal access-to-subprogram Access attributes to properly enforce
18127         the rules of 3.10.2(32/2).
18128         Diagnose use of current instance with an illegal attribute.
18130         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
18131         to a Node_Id.
18132         (Enclosing_Generic_Unit): New function to return a node's innermost
18133         enclosing generic declaration node.
18134         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
18135         (Type_Access_Level): The accessibility level of anonymous acccess types
18136         associated with discriminants is that of the current instance of the
18137         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
18138         (Compile_Time_Constraint_Error): Handle case of conditional expression.
18139         (Kill_Current_Values_For_Entity): New function
18140         (Enter_Name): Change formal type to Entity_Id
18142 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
18143             Ed Schonberg  <schonberg@adacore.com>
18144             Gary Dismukes  <dismukes@adacore.com>
18146         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
18147         Analyze_Compilation_Unit.
18148         Detect and warn on redundant with clauses detected in a package spec
18149         and/or body when -gnatwr is used.
18150         (Analyze_Context): Analyze config pragmas before other items
18151         (Install_Context_Items): Don't analyze config pragmas here
18152         (Install_Limited_Withed_Unit): Set limited entity of package in
18153         with_clause so that cross-reference information or warning messages on
18154         unused packages can be properly generated
18155         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
18156         has Error_Posted set. Prevent infinite loops in illegal programs.
18157         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
18158         to the point of the error test requiring the current unit to be private.
18159         This ensures that private with clauses are not exempted from the basic
18160         checking for being a descendant of the same library unit parent as a
18161         withed private descendant unit.
18162         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
18163         handle private with clauses properly, as well as to account for cases
18164         where the withed unit is a public descendant of a private ancestor
18165         (in which case the current unit must be a descendant of the private
18166         ancestor's parent). The spec comments were updated accordingly. Also,
18167         the old error message in this subprogram was replaced with error
18168         messages that mirror the errors tested and reported by
18169         Check_Private_Child_Unit.
18170         Parameter and variable names improved for readability.
18171         (Install_Limited_Context_Clauses): Remove test for a withed unit being
18172         private as the precondition for calling
18173         Check_Private_Limited_Withed_Unit since that subprogram has been
18174         revised to test public units as well as private units.
18176 2006-02-13  Thomas Quinot  <quinot@adacore.com>
18177             Robert Dewar  <dewar@adacore.com>
18178             Ed Schonberg  <schonberg@adacore.com>
18179             Javier Miranda  <miranda@adacore.com>
18181         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
18182         that Scope_Stack.First = 1.
18183         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18184         were not always properly handled previously.
18185         (Formal_Entity): Complete rewrite, to handle properly some complex case
18186         with multiple levels of parametrization by formal packages.
18187         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
18188         to the corresponding derived type declaration for proper semantics.
18190         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
18191         (Check_Component): Enforce restriction on components of
18192         unchecked_unions: a component in a variant cannot contain tasks or
18193         controlled types.
18194         (Unchecked_Union): Allow nested variants and multiple discriminants, to
18195         conform to AI-216.
18196         Add pragma Ada_2005 (synonym for Ada_05)
18197         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18198         were not always properly handled previously.
18199         Document that pragma Propagate_Exceptions has no effect
18200         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
18201         (Set_Convention_From_Pragma): Check that if a convention is
18202         specified for a dispatching operation, then it must be
18203         consistent with the existing convention for the operation.
18204         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
18205         longer required to specify an vtable-ptr component in the record. For
18206         compatibility reasons we leave the support for the previous definition.
18207         (Analyze_Pragma, case No_Return): Allow multiple arguments
18209         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
18210         non-overrideen inherited operation with a controlling result as
18211         illegal only its implicit declaration comes from the derived type
18212         declaration of its result's type.
18213         (Check_Possible_Deferred_Completion): Relocate the object definition
18214         node of the subtype indication of a deferred constant completion rather
18215         than directly analyzing it. The analysis of the generated subtype will
18216         correctly decorate the GNAT tree.
18217         (Record_Type_Declaration): Check whether this is a declaration for a
18218         limited derived record before analyzing components.
18219         (Analyze_Component_Declaration): Diagnose record types  not explicitly
18220         declared limited when a component has a limited type.
18221         (Build_Derived_Record_Type): Code reorganization to check if some of
18222         the inherited subprograms of a tagged type cover interface primitives.
18223         This check was missing in case of a full-type associated with a private
18224         type declaration.
18225         (Constant_Redeclaration): Check that the subtypes of the partial and the
18226         full view of a constrained deferred constant statically match.
18227         (Mentions_T): A reference to the current type in an anonymous access
18228         component declaration  must be an entity name.
18229         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
18230         class_wide type to refer to full type, not to the incomplete one.
18231         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
18232         available. Required to give support to the certified run-time.
18233         (Analyze_Component_Declaration): In case of anonymous access components
18234         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
18235         (Process_Discriminants): For an access discriminant, use the
18236         discriminant specification as the associated_node_for_itype, to
18237         simplify accessibility checks.
18239 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18240             Javier Miranda  <miranda@adacore.com>
18242         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
18243         abstract interpretations on an operator, remove interpretations that
18244         yield Address or a type derived from it, if one of the operands is an
18245         integer literal.
18246         (Try_Object_Operation.Try_Primitive_Operation,
18247         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
18248         location when creating the new reference to a primitive or class-wide
18249         operation as a part of rewriting a subprogram call.
18250         (Try_Primitive_Operations): If context requires a function, collect all
18251         interpretations after the first match, because there may be primitive
18252         operations of the same type with the same profile and different return
18253         types. From code reading.
18254         (Try_Primitive_Operation): Use the node kind to choose the proper
18255         operation when a function and a procedure have the same parameter
18256         profile.
18257         (Complete_Object_Operation): If formal is an access parameter and prefix
18258         is an object, rewrite as an Access reference, to match signature of
18259         primitive operation.
18260         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
18261         by an expanded name with prefix Standard, when the operands are of an
18262         anonymous access type.
18263         (Remove_Abstract_Operations): If the operation is abstract because it is
18264         inherited by a user-defined type derived from Address, remove it as
18265         well from the set of candidate interpretations of an overloaded node.
18266         (Analyze_Membership_Op): Membership test not applicable to cpp-class
18267         types.
18269 2006-02-13  Bob Duff  <duff@adacore.com>
18271         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
18272         redundant use clauses.
18273         In particular, if the scope of two use clauses overlaps, but one is not
18274         entirely included in the other, we should not warn.  This can happen
18275         with nested packages.
18276         (Analyze_Subprogram_Renaming): Protect the compiler against previously
18277         reported errors. The bug was reported when the compiler was built
18278         with assertions enabled.
18279         (Find_Type): If the node is a 'Class reference and the prefix is a
18280         synchronized type without a corresponding record, return the type
18281         itself.
18283 2006-02-13  Javier Miranda  <miranda@adacore.com>
18285         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
18286         if this is the full-declaration associated with a private declaration
18287         that implement interfaces, then the private type declaration must be
18288         limited.
18289         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
18290         as aliased. The use of the 'access attribute is not available for such
18291         object (for this purpose the object should be explicitly marked as
18292         aliased, but being an anonymous type this is not possible).
18294 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18295             Robert Dewar  <dewar@adacore.com>
18297         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
18298         compilation unit is an elaboration scope.
18299         (Add_Task_Proc): Add '\' in 2-line warning message.
18300         (Activate_All_Desirable): Deal with case of unit with'ed by parent
18302 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18303             Javier Miranda  <miranda@adacore.com>
18305         * sem_type.adb (Write_Overloads): Improve display of candidate
18306         interpretations.
18307         (Add_One_Interp): Do not add to the list of interpretations aliased
18308         entities corresponding with an abstract interface type that is an
18309         immediate ancestor of a tagged type; otherwise we have a dummy
18310         conflict between this entity and the aliased entity.
18311         (Disambiguate): The predefined equality on universal_access is not
18312         usable if there is a user-defined equality with the proper signature,
18313         declared in the same declarative part as the designated type.
18314         (Find_Unique_Type): The universal_access equality operator defined under
18315         AI-230 does not cover pool specific access types.
18316         (Covers): If one of the types is a generic actual subtype, check whether
18317         it matches the partial view of the other type.
18319 2006-02-13  Thomas Quinot  <quinot@adacore.com>
18321         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
18322         line. This is necessary to allow In_Extended_Main_Unit to provide
18323         correct results for itypes while writing out expanded source.
18324         (Close_File): No need to update the source_index_table here since it's
18325         now done for each line.
18327 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
18328             Robert Dewar  <dewar@adacore.com>
18330         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
18331         preserve the source unit where the itype is declared, and prevent a
18332         backend abort.
18333         (Note_Implicit_Run_Time_Call): New procedure
18334         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
18335         E_Subprogram_Type)
18337         * sprint.ads: Document use of $ for implicit run time routine call
18339 2006-02-13  Quentin Ochem  <ochem@adacore.com>
18341         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
18342         task name.
18344 2006-02-13  Bob Duff  <duff@adacore.com>
18346         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
18347         Scan_Unsigned, so we do not scan leading blanks and sign twice.
18348         Integer'Value("- 5") and Integer'Value("-+5") now correctly
18349         raise Constraint_Error.
18351         * s-vallli.adb (Scan_Long_Long_Integer): Call
18352         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
18353         do not scan leading blanks and sign twice.
18354         Integer'Value("- 5") and Integer'Value("-+5") now correctly
18355         raise Constraint_Error.
18357         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
18358         Scan_Long_Long_Unsigned): Split out most of the processing from
18359         Scan_Long_Long_Unsigned out into
18360         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
18361         This prevents scanning leading blanks and sign twice.
18362         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
18363         See RM-3.5(44).
18365         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
18366         out most of the processing from Scan_Unsigned out into
18367         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
18368         This prevents scanning leading blanks and sign twice.
18370         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
18371         use with Modular'Value attribute.
18372         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
18373         attribute.
18375 2006-02-13  Robert Dewar  <dewar@adacore.com>
18377         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
18379 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
18381         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
18382         (PPC VxWorks): Likewise.
18383         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
18384         (forced_callee): Make non-inlinable and non-pure.
18385         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
18387 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
18388             Ben Brosgol  <brosgol@adacore.com>
18389             Robert Dewar  <dewar@adacore.com>
18391         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
18392         support.
18393         Document that gnatbind -M option is for cross environments only.
18394         Added description of using gnatmem to trace gnat rtl allocs and deallocs
18395         Add note on use of $ to label implicit run time calls
18396         Add documentation for -gnatyI (check mode IN)
18397         Updated chapter on compatibility with HP Ada
18398         VMS-oriented edits.
18399         Ran spell and corrected errors
18400         Add documentation for gnatbind -d and rework documentation of -D
18401         at the same time.
18402         Add subprogram/data elimination section.
18403         Minor editing of annex A.
18404         Add section for gnatcheck.
18405         Add documentation for restriction No_Dispatching_Calls
18406         Add documentation for pragma Ada_2005
18407         Remove mention of obsolete pragma Propagate_Exceptions
18408         Document that pragma Unreferenced can appear after DO in ACCEPT
18409         Clarify Pure_Function for library level units
18410         Mention Max/Min in connection with No_Implicit_Conditionals
18411         No_Wide_Characters restriction is no longer partition-wide
18412         Add a nice example for Universal_Literal_String attribute
18413         Document that pragma No_Return can take multiple arguments
18415         * ug_words: Added entry for gnatcheck
18417         * g-ctrl_c.ads (Install_Handler): Enhance comments
18419         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
18421         * g-trasym.ads: Add documentation on how to do off line symbolic
18422         traceback computation.
18424         * s-fatgen.adb: Add comments for Unaligned_Valid
18426         * stand.ads: Fix typo in comment
18428 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18430         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
18432 2006-02-06  Roger Sayle  <roger@eyesopen.com>
18434         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
18436 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18438         PR target/25926
18439         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
18440         implementation that calls __main.
18442 2006-01-25  Peter O'Gorman  <peter@pogma.com>
18444         PR bootstrap/25859
18445         * Makefile.in (GCC_LINK): Remove quotes.
18446         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
18447         or $(GCC_LINK).
18449         (powerpc-darwin): Pass -shared-libgcc when building shared library.
18451 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18453         PR ada/24533
18454         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
18456 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18458         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
18460 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
18462         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
18463         needed.
18465 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
18467         * Make-lang.in: Update dependencies
18469 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
18471         * Make-lang.in: Add rule for ada/exp_sel.o
18473 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
18475         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
18477 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
18479         * gnatvsn.ads (Library_Version): Bump to version 4.2
18480         (ASIS_Version_Number): Bumped.
18482 2005-12-09  Doug Rupp  <rupp@adacore.com>
18484         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
18485         Ada bind file prefix on VMS from b$ to b__.
18486         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
18487         __init.
18489         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
18490         Targparm.OpenVMS_On_Target.
18491         (Object_Suffix): Initialize with target object suffix.
18492         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
18494         * butil.adb: Change some Hostparm.OpenVMS checks to
18495         Targparm.OpenVMS_On_Target.
18497         * clean.adb: Change some Hostparm.OpenVMS checks to
18498         Targparm.OpenVMS_On_Target.
18499         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
18500         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
18501         Ada bind file prefix on VMS from b$ to b__.
18503         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
18504         --GCC so that Get_Target_Parameters can find system.ads.
18505         (Gnatlink): Call Get_Target_Parameters in mainline.
18506         Initialize standard packages for Targparm.
18507         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
18508         (Process_Args): Also Check for object files with target object
18509         extension.
18510         (Make_Binder_File_Names): Create with target object extension.
18511         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
18512         to b__.
18514         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
18515         Targparm.OpenVMS_On_Target.
18516         ({declaration},Build_Library,Check_Library): Change Ada bind file
18517         prefix on VMS from b$ to b__.
18519         * osint-b.adb: Change some Hostparm.OpenVMS checks to
18520         Targparm.OpenVMS_On_Target.
18521         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
18522         b__.
18524         * targext.c: New file.
18526         * Makefile.in: add support for vxworks653 builds
18527         (../../vxaddr2line): gnatlink with targext.o.
18528         (TOOLS_LIBS): Move targext.o to precede libgnat.
18529         (init.o, initialize.o): Minor clean up in dependencies.
18530         (GNATLINK_OBJS): Add targparm.o, snames.o
18531         Add rules fo building targext.o and linking it explicitly with all
18532         tools.
18533         Also add targext.o to gnatlib.
18535         * Make-lang.in: Add rules for building targext.o and linking it in
18536         with gnat1 and gnatbind.
18537         Add entry for exp_sel.o.
18539         * osint.adb Change some Hostparm.OpenVMS checks to
18540         Targparm.OpenVMS_On_Target.
18541         (Object_File_Name): Use target object suffix.
18543         * osint.ads (Object_Suffix): Remove, no longer used.
18544         (Target_Object_Suffix): Initialize with target object suffix.
18546         * rident.ads: Add special exception to license.
18548         * targparm.adb (Get_Target_Parameters): Set the value of
18549         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
18550         value.
18551         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
18552         
18553         * targparm.ads: Add special exception to license.
18555         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
18556         function.
18557         (Copy_File): Make sure from file is closed if error on to file
18558         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
18560         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
18561         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
18563         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
18564         target object suffix.
18566 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
18567             Quentin Ochem  <ochem@adacore.com>
18568             Florian Villoing  <villoing@adacore.com>
18570         * a-taster.ads, a-taster.adb: New files.
18572         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
18573         link to the version that does nothing. This way the task termination
18574         routine is not executed twice for the environment task when finishing
18575         because of an unhandled exception.
18577         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
18578         handler because of an unhandled exception.
18580         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
18581         System.Tasking.Utilities instead of that in System.Tasking.Stages.
18583         * s-finimp.adb (initialization code): Modify the soft link for the
18584         finalization of the global list instead of Adafinal.
18586         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
18587         non-tasking version of the soft link for task termination. We do
18588         nothing since if we are using the non-tasking version it
18589         means that the task termination functionality is not used.
18590         (Null_Finalize_Global_List): Add this null version for the procedure
18591         in charge of finalizing the global list for controlled objects.
18592         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
18593         instead for handling run-time termination in a more flexible way.
18594         (Adafinal_NT): This new procedure will take care of finalizing the
18595         global list for controlled objects if needed, but no tasking
18596         finalization.
18598         * s-tarest.adb (Task_Lock): Do not try to lock again the
18599         Global_Task_Lock if we already own it. Otherwise, we get blocked in
18600         some run-time operations.
18601         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
18602         until all nested locks have been released.
18603         (Task_Wrapper): Call the fall-back task termination handler. It
18604         applies to all tasks but the environment task.
18605         (Finalize_Global_Tasks): Add the call for the task termination
18606         procedure for the environment task.
18607         (Task_Wrapper): suppress warnings around declaration of
18608         Secondary_Stack_Address.
18610         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
18611         moved to the Common_ATCB record.
18612         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
18613         Common_ATCB record.
18614         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
18615         Common_ATCB record.
18617         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
18618         Fall_Back_Handler, and Specific_Handler.
18620         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
18621         defined in Ada.Task_Termination, to avoid circular dependencies.
18622         (Termination_Handler): Redefine this type here, alredy defined in
18623         Ada.Task_Termination, for avoiding circular dependencies.
18624         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
18625         for storing task termination handlers. In addition,
18626         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
18627         Common_ATCB because it is used by both the regular and the restricted
18628         run times.
18629         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
18630         Common_ATCB because it is used by both the regular and the restricted
18631         run times.
18632         (Common_ATCB): Added a dynamic task analyzer field.
18634         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
18635         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
18636         (Task_Wrapper): Call the task termination handler. It applies to all
18637         tasks but the environment task.
18638         (Finalize_Global_Tasks): Call the task termination procedure for the
18639         environment task. The call to Finalize_Global_List is now performed
18640         using the soft links mechanism.
18641         (Task_Wrapper): added dynamic stack analysis.
18643         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
18644         potentially blocking operations has been moved from
18645         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
18646         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
18647         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
18648         this run-time check.
18650         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
18651         of task termination procedure.
18652         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
18653         link for the task termination procedure.
18655         * bindusg.adb: (Bindusg): Added documentation for -u option.
18657         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
18658         (Get_Main_C): Add handling of dynamic stack analysis.
18659         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
18661         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
18662         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
18663         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
18665         * opt.ads: Added flags used by dynamic stack measurement.
18666         (Max_Line_Length): Remove (not used anymore)
18668         * s-io.ads, s-io.adb (Standard_Error): new subprogram
18669         (Standart_Output): new subprogram
18670         (Set_Output): new subprogram
18671         (Put): now uses the value of Current_Out to know if the output has to be
18672         send to stderr or stdout.
18673         
18674         * s-stausa.ads: Complete implementation.
18676         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
18677         
18678         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
18679         list of Ada 05 files.
18680         (GNAT Library Units): Add AltiVec files.
18682         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
18683         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
18684         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
18686 2005-12-09  Nicolas Setton  <setton@adacore.com>
18688         * adaint.c (__gnat_locate_regular_file): Return immediately if
18689         file_name is empty.
18691 2005-12-09  Javier Miranda  <miranda@adacore.com>
18692             Hristian Kirtchev  <kirtchev@adacore.com>
18694         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
18695         to the specification because the frontend generates code that uses this
18696         subprogram.
18697         (Set_Interface_Table): Add missing assertion.
18698         Update documentation describing the run-time structure.
18699         (Displace): New subprogram that displaces the pointer to the object
18700         to reference one of its secondary dispatch tables.
18701         (IW_Membership): Modified to use the new table of interfaces.
18702         (Inherit_TSD): Modified to use the new table of interfaces.
18703         (Register_Interface_Tag): Use the additional formal to fill the
18704         contents of the new table of interfaces.
18705         (Set_Interface_Table): New subprogram that stores in the TSD the
18706         pointer to the table of interfaces.
18707         (Set_Offset_To_Top): Use the additional formal to save copy of
18708         the offset value in the table of interfaces.
18709         Update structure of GNAT Primary and Secondary dispatch table diagram.
18710         Add comment section on GNAT dispatch table prologue.
18711         (Offset_To_Signature): Update the constant value of the Signature field.
18712         (Dispatch_Table): Update comment on hidden fields in the prologue.
18713         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
18714         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
18715         the type of formal parameter T to Tag, introduce additional assertions.
18716         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
18717         conversion.
18718         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
18720         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
18721         in all the calls to Expand_Interface_Thunk. Instead of referencing the
18722         record component containing the tag of the secondary dispatch table we
18723         have to use the Offset_To_Top run-time function to get this information;
18724         otherwise if the pointer to the base of the object has been displace
18725         we get a wrong value if we use the 'position attribute.
18727         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
18728         all the calls to Expand_Interface_Thunk.
18729         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
18730         interfaces; hence the call to Set_Interface_Table was clearly wrong.
18731         (Collect_All_Interfaces): Modify the internal subprogram Collect to
18732         ensure that the interfaces implemented by the ancestors are placed
18733         at the header of the generated list.
18734         (Expand_Interface_Conversion): Handle the case in which the displacement
18735         associated with the interface conversion is not statically known. In
18736         this case we generate a call to the new run-time subprogram Displace.
18737         (Make_DT): Generate and fill the new table of interfaces.
18738         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
18739         Get_Tagged_Kind and Set_Tagged_Kind.
18740         (Tagged_Kind): New function that determines the tagged kind of a type
18741         with respect to limitedness and concurrency and returns a reference to
18742         RE_Tagged_Kind.
18743         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
18744         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
18745         primary dispatch table for a type.
18746         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
18747         secondary dispatch table respectively of a tagged type.
18749         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
18750         (Expand_Interface_Conversion): New subprogram to indicate if the
18751         displacement of the type conversion is statically known.
18752         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
18754         * rtsfind.ads (RE_Offset_To_Top): New entity
18755         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
18756         accessible to users.
18757         (Re_Displace): New entity
18758         (RE_Interface_Data): New entity
18759         (RE_Set_Interface_Data): New_Entity
18760         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
18761         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
18762         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
18763         RE_TK_Tagged, RE_TK_Task.
18765         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
18766         Init_Secondary_Tags_Internal to allow its use with interface types and
18767         also to generate the code for the new additional actual required
18768         by Set_Offset_To_Top.
18769         (Build_Init_Statements): In case of components associated with abstract
18770         interface types there is no need to generate a call to its IP.
18771         (Freeze_Record_Type): Generate Select Specific Data tables only for
18772         concurrent types.
18773         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
18774         the bodies and specifications of the predefined primitive operations
18775         dealing with dispatching selects and abort, 'Callable, 'Terminated only
18776         for concurrent types.
18778         * exp_sel.ads, exp_sel.adb: New files.
18780         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
18781         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
18782         properly protected objects and attach handler in the case of the
18783         restricted profile.
18784         Move embeded package Select_Expansion_Utilities into a separate external
18785         package.
18786         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
18787         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
18788         (Build_K, Build_S_Assignment): New subprograms, part of the select
18789         expansion utilities.
18790         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
18791         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
18792         where the trigger is a dispatching procedure of a limited tagged type.
18794 2005-12-09  Olivier Hainque  <hainque@adacore.com>
18796         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
18797         pointer initialization values. Make a SAVE_EXPR instead. Add comments
18798         about the use and expansion of SAVE_EXPRs in the various possible
18799         renaming handling cases.
18800         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
18801         abusing DECL_FCONTEXT.
18803 2005-12-09  Matthew Heaney  <heaney@adacore.com>
18805         * a-convec.adb (Merge): Added assertions to check whether vector params
18806         are sorted.
18808         * a-coinve.adb (Merge): Added assertions to check whether vector params
18809         are sorted.
18811         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
18812         draft.
18813         (Cursor'Read): raises PE
18815         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
18816         to its default value.
18818         * a-cihama.adb: Manually check whether cursor's key and elem are
18819         non-null
18821         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
18822         (Merge): Assert that target and source lists are in order
18823         (Swap): Declare non-const temporaries, to pass to Splice
18825         * a-cdlili.ads: (Splice): Changed param name and param mode
18827         * a-cdlili.adb: (Splice): Changed param name and param mode
18828         (Merge): Assert that target and source lists are in order
18829         (Swap): Declare non-const temporaries, to pass to Splice
18831         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
18832         (Write): declare Stream param as not null
18834         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
18835         an exception message.
18837 2005-12-09  Thomas Quinot  <quinot@adacore.com>
18838             Robert Dewar  <dewar@adacore.com>
18840         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
18841         which is the absolute maximum length we can support.
18843         * frontend.adb: For the processing of configuration pragma files,
18844         remove references to Opt.Max_Line_Length, which is not checked anymore.
18846         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
18847         length.
18849         * scn.adb, scng.adb: 
18850         Always check line length against the absolute supported maximum,
18851         Hostparm.Max_Line_Length.
18853         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
18854         value for the maximum line length is Max_Line_Length (not
18855         Column_Number'Last).
18856         Minor error msg update
18857         (Set_Style_Check_Options): New interface returning error msg
18858         Minor code reorganization (processing for 'M' was out of alpha order)
18860         * switch-c.adb: New interface for Set_Style_Check_Options
18862         * stylesw.ads (Set_Style_Check_Options): New interface returning error
18863         msg.
18865 2005-12-09  Javier Miranda  <miranda@adacore.com>
18867         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
18868         with IP subprogram were only supported if there were limited types.
18870         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
18871         records with IP subprogram were only supported if there were limited
18872         types.
18874 2005-12-09  Olivier Hainque  <hainque@adacore.com>
18875             Eric Botcazou  <ebotcazou@adacore.com>
18877         * trans.c (tree_transform, emit_check): Adjust calls to
18878         build_call_raise, passing the now expected GNAT_NODE argument.
18880         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
18881         source line information than what the current global locus indicates
18882         when appropriate.
18884         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
18885         field has overflowed.
18886         (build_call_raise): Add a GNAT_NODE argument to convey better source
18887         line information than what the current global locus indicates when
18888         appropriate.
18889         (build_component_ref): Adjust call to build_call_raise.
18891 2005-12-09  Pascal Obry  <obry@adacore.com>
18893         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
18894         the iterator is quitting iteration on parent directory.
18896 2005-12-09  Javier Miranda  <miranda@adacore.com>
18898         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
18899         and the assignment to a class-wide object, before the assignment we
18900         generate a run-time check to ensure that the tag of the Target is
18901         covered by the tag of the source.
18903 2005-12-09  Robert Dewar  <dewar@adacore.com>
18905         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
18906         parameter in call to Image_Wide_Character.
18908         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
18909         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
18910         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
18911         annoying FFFE/FFFF inconsistency.
18913 2005-12-09  Robert Dewar  <dewar@adacore.com>
18914             Javier Miranda  <miranda@adacore.com>
18915             Ed Schonberg  <schonberg@adacore.com>
18917         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
18918         of type conversion.
18919         (Find_Interface): New subprogram that given a tagged type and one of its
18920         component associated with the secondary table of an abstract interface
18921         type, return the entity associated with such abstract interface type.
18922         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
18923         base type to create anonymous subtype, because entity may be a locally
18924         declared subtype or generic actual.
18925         (Find_Interface): New subprogram that given a tagged type and one of its
18926         component associated with the secondary table of an abstract interface
18927         type, return the entity associated with such abstract interface type.
18929         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
18930         conversion cannot be handled at compile time. In this case we pass this
18931         information to the expander to generate the appropriate code.
18933 2005-12-09  Robert Dewar  <dewar@adacore.com>
18934             Ed Schonberg  <schonberg@adacore.com>
18935             Gary Dismukes  <dismukes@adacore.com>
18936             Javier Miranda  <miranda@adacore.com>
18937             Hristian Kirtchev  <kirtchev@adacore.com>
18939         * einfo.adb (Itype_Printed): New flag
18940         (Is_Limited_Type): Derived types do not inherit limitedness from
18941         interface progenitors.
18942         (Is_Return_By_Reference_Type): Predicate does not apply to limited
18943         interfaces.
18945         * einfo.ads (Itype_Printed): New flag
18946         Move Is_Wrapper_Package to proper section
18947         Add missing Inline for Is_Volatile
18949         * output.ads, output.adb (Write_Erase_Char): New procedure
18950         (Save/Restore_Output_Buffer): New procedures
18951         (Save/Restore_Output_Buffer): New procedures
18953         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
18954         Add missing support for anonymous access type
18955         (Write_Id): Insert calls to Write_Itype
18956         (Write_Itype): New procedure to output itypes
18958         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
18959         use of "limited" in declaration.
18961         * sinfo.ads, sinfo.adb: 
18962         Formal derived types can carry an explicit "limited" indication.
18964         * sem_ch3.adb: Add with and use of Targparm.
18965         (Create_Component): If Frontend_Layout_On_Target is True and the
18966         copied component does not have a known static Esize, then reset
18967         the size and positional fields of the new component.
18968         (Analyze_Component_Declaration): A limited component is
18969         legal within a protected type that implements an interface.
18970         (Collect_Interfaces): Do not add to the list the interfaces that
18971         are implemented by the ancestors.
18972         (Derived_Type_Declaration): If the parent of the full-view is an
18973         interface perform a transformation of the tree to ensure that it has
18974         the same parent than the partial-view. This simplifies the job of the
18975         expander in order to generate the correct object layout, and it is
18976         needed because the list of interfaces of the full-view can be given in
18977         any order.
18978         (Process_Full_View): The parent of the full-view does not need to be
18979         a descendant of the parent of the partial view if both parents are
18980         interfaces.
18981         (Analyze_Private_Extension_Declaration): If declaration has an explicit
18982         "limited" the parent must be a limited type.
18983         (Build_Derived_Record_Type): A derived type that is explicitly limited
18984         must have limited ancestor and progenitors.
18985         (Build_Derived_Type): Ditto.
18986         (Process_Full_View): Verify that explicit uses of "limited" in partial
18987         and full declarations are consistent.
18988         (Find_Ancestor_Interface): Remove function.
18989         (Collect_Implemented_Interfaces): New procedure used to gather all
18990         implemented interfaces by a type.
18991         (Contain_Interface): New function used to check whether an interface is
18992         present in a list.
18993         (Find_Hidden_Interface): New function used to determine whether two
18994         lists of interfaces constitute a set equality. If not, the first
18995         differing interface is returned.
18996         (Process_Full_View): Improve the check for the "no hidden interface"
18997         rule as defined by AI-396.
18999 2005-12-09  Robert Dewar  <dewar@adacore.com>
19001         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
19002         types, not on record subtypes.
19003         (Freeze_Entity): Code cleanup. Add barrier to the loop
19004         that generates the references for primitive operations. This allows to
19005         remove an unnecessary exception handler.
19006         Code reformatting and comment clean ups.
19008 2005-12-09  Vincent Celier  <celier@adacore.com>
19010         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
19011         If GNAT CHECK is called with a project file, but with no
19012         source on the command line, call gnatcheck with all the compilable
19013         sources of the project.
19014         Take into account the new command Check, for gnatcheck. Treat as for
19015         other ASIS tools: take into account project, specific package Check and
19016         Compiler switches.
19017         For ASIS tools, add the switches in package Compiler for
19018         the invocation of the compiler.
19020         * prj-attr.adb: Add package Check and its attributes
19022         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
19024         * vms_conv.adb (Initialize): Change Params of command Check to
19025         unlimited files.
19026         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
19027         Add data for new command Check
19029         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
19030         ELIM.
19031         Add qualifiers for Check command options
19032         (Command_Type): New command Check
19034 2005-12-09  Thomas Quinot  <quinot@adacore.com>
19036         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
19037         command line switch overruns the output buffer.
19039 2005-12-09  Robert Dewar  <dewar@adacore.com>
19041         * sem_prag.adb: Processing for new pragma Complete_Representation
19042         (Analyze_Pragma, case Debug): Implement two argument form.
19044         * par-prag.adb: Entry for new pragma Complete_Representation
19045         (Prag, case Debug): Recognize two argument form of pragma Debug
19046         New interface for Set_Style_Check_Options.
19048         * sem_ch13.adb: Implement new pragma Complete_Representation.
19050         * snames.adb, snames.ads, snames.h: Entry for new pragma
19051         Complete_Representation.
19053 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
19055         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
19056         available user-specified stream attributes on limited parameters to
19057         also test the type directly rather than only its underlying type (for
19058         Ada 95) and, in the case of Ada 2005, to check that the user-specified
19059         attributes are visible at the point of the subprogram declaration.
19060         For Ada 2005, the error message is modified to indicate that the
19061         type's stream attributes must be visible (again, only for -gnat05).
19063 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
19065         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
19066         anonymous access types.
19068         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
19069         matching of anonymous access types and anonymous access to subprogram
19070         types. 'R'M 4.9.1 (2/2).
19072 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
19074         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
19075         rule prematurely when operands are universal, remaining ambiguities
19076         will be removed during resolution.
19077         Code cleanup.
19079         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
19080         that are Ada 2005 functions.
19081         (Has_Abstract_Interpretation): Subsidiary to
19082         Remove_Conversions, to remove ambiguities caused by abstract operations
19083         on numeric types when operands are universal.
19085 2005-12-09  Robert Dewar  <dewar@adacore.com>
19087         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
19088         for case where spec is categorized.
19090 2005-12-09  Javier Miranda  <miranda@adacore.com>
19092         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
19093         types use the corresponding record type. This was not needed before
19094         the implementation of Ada 2005 synchronized types because
19095         concurrent types were never tagged types in Ada 95.
19097 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
19099         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
19100         first subtype of the type of the expression to verify that it is a
19101         legal Time type.
19103 2005-12-09  Robert Dewar  <dewar@adacore.com>
19105         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
19106         decoded names.
19108 2005-12-09  Quentin Ochem  <ochem@adacore.com>
19109             Robert Dewar  <dewar@adacore.com>
19110             Ed Falis  <falis@adacore.com>
19111             Florian Villoing  <villoing@adacore.com>
19112             Thomas Quinot  <quinot@adacore.com>
19113             Arnaud Charlet  <charlet@adacore.com>
19115         * gnat_ugn.texi: Created section "Stack Related Tools"
19116         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
19117         "Stack Related Tools"
19118         Added subsection "Static Stack Usage Analysis"
19119         Added subsection "Dynamic Stack Usage Analysis"
19120         Include documentation of itypes in sprint listing (-gnatG)
19121         Documented gnatbind -D switch (default sec stack size for fixed sec
19122         stacks).
19123         Added Interrupt_State and Persistent_BSS to list of configuration
19124         pragmas.
19125         Add missing doc for maximum value of nnn in -gnatyMnnn
19127         * gnat_rm.texi: Document the AltiVec binding.
19128         Add documentation for pragma Complete_Representation
19129         Shortened an overly long line (> 79 chars)
19130         Clarify documentation of unchecked conversion in implementation
19131         defined cases.
19132         Document two argument form of pragma Debug
19134         * types.ads (Column_Number): Update documentation.
19136         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
19137         library level Finalize_Storage_Only objects (these are not attached to
19138         any finalization list).
19140         * system-mingw.ads: (Underlying_Priorities): Update comment.
19142 2005-12-09  Robert Dewar  <dewar@adacore.com>
19144         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
19145         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
19146         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
19147         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
19148         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
19149         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
19150         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
19151         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
19152         reformatting.
19154 2005-12-09  Robert Dewar  <dewar@adacore.com>
19156         * s-vaflop-vms-alpha.adb: (Ne_F): New function
19157         (Ne_G): New function
19159         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
19160         for tag assignment.
19161         (Rewrite_Comparison): Handle case where operation is not a comparison
19162         and ignore, and also handle type conversion case.
19164 2005-12-09  Thomas Quinot  <quinot@adacore.com>
19166         * exp_aggr.ads: Fix typo in comment.
19167         ???-mark Convert_Aggr_In_Assignment as needing documentation.
19169 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
19171         * layout.adb: Replace various uses of byte by storage unit throughout.
19172         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
19173         static size, convert to storage units before returning, to conform to
19174         spec.
19176 2005-12-09  Matthew Gingell  <gingell@adacore.com>
19178         * g-exctra.ads: Fix typo in comment.
19180 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19182         * utils.c: Minor reformatting.
19184 2005-12-09  Robert Dewar  <dewar@adacore.com>
19186         * g-soccon.ads: 
19187         Further comment fixes to make the status of the default file clear
19189         * s-bitops.adb: Clarify comment for Bits_Array
19191 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19193         * Make-lang.in (ada.install-normal): Remove.
19195 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
19197         * Make-lang.in: Remove all dependencies on s-gtype.
19199 2005-12-05  Richard Guenther  <rguenther@suse.de>
19201         * utils.c (convert): Use fold_convert where appropriate.
19203 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
19205         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
19206         a period is meant.
19208 2005-12-02  Richard Guenther  <rguenther@suse.de>
19210         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
19212 2005-12-01  Roger Sayle  <roger@eyesopen.com>
19214         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
19215         nodes.
19217 2005-11-23  Laurent Guerby  <laurent@guerby.net>
19219         * mlib-prj.adb (Build_Library): Initialize Delete.
19221 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
19223         * socket.c: Add extern int h_errno for rtems since networking header
19224         files are not available at this point in a tool bootstrap. Newlib
19225         only has basic C library header files.
19227 2005-11-19  Richard Guenther  <rguenther@suse.de>
19228         Roger Sayle  <roger@eyesopen.com>
19230         PR ada/23717
19231         * misc.c (internal_error_function): Don't use vsprintf to format
19232         the error message text, instead use pp_format_text and the new
19233         pretty printer APIs.  This allows handling of %qs, %w, etc.
19235 2005-11-18  Laurent Guerby  <laurent@guerby.net>
19237         PR ada/24857
19238         * Makefile.in: Use s-auxdec-empty for RTEMS.
19240 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19242         PR ada/22333
19243         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
19244         a temporary if taking the address of something that is neither
19245         reference, declaration, or constant, since the gimplifier
19246         can't handle that case.
19248 2005-11-17  Laurent Guerby  <laurent@guerby.net>
19250         PR ada/24857
19251         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
19253 2005-11-16  Richard Guenther  <rguenther@suse.de>
19255         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
19257 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
19259         PR ada/24855
19260         * raise-gcc.c: Add missing stdarg.h include.
19262 2005-11-16  Richard Guenther  <rguenther@suse.de>
19264         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
19265         (ada/misc.o): Likewise.
19267 2005-11-14  Thomas Quinot  <quinot@adacore.com>
19269         * g-soccon.ads: Minor reformatting. Update comments.
19271         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
19272         gain visibility on the declaration of struct timeval.
19274         * g-soccon-freebsd.ads,
19275         g-soccon-darwin.ads,
19276         g-soccon-tru64.ads,
19277         g-soccon-aix.ads,
19278         g-soccon-irix.ads,
19279         g-soccon-hpux.ads,
19280         g-soccon-solaris.ads,
19281         g-soccon-vms.ads,
19282         g-soccon-mingw.ads,
19283         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
19285         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
19286         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
19287         g-soccon-linux-x86.ads: New files.
19289         * g-socthi-mingw.adb: 
19290         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
19292         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
19293         (time_t, suseconds_t): New types constructed to match the tv_sec
19294         and tv_usec fields of C struct timeval.
19295         (Timeval): Construct structure in terms of the new types.
19296         (Host_Errno): New function (imported from socket.c), returns last hosts
19297         database error.
19299         * g-socthi-vxworks.adb:  Add error handling circuitry.
19301         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
19302         components of struct timeval.
19303         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
19304         (Check_Selector): In error conditions, clear internal socket sets to
19305         avoid a memory leak.
19306         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
19307         Send_Timeout, Receive_Timeout.
19309         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
19310         the tv_sec and tv_usec fields of C struct timeval.
19311         (Timeval): Construct structure in terms of the new types.
19312         (Host_Errno): New function (imported from socket.c), returns last hosts
19313         database error.
19315         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
19316         hosts database last error code.
19318         * gen-soccon.c: Complete value expansion should not be performed on
19319         TARGET, as it has the form of a math expression, and some components
19320         may be platform-defined macros.
19321         For VxWorks, generate the OK and ERROR values.
19322         New constants giving the sizes of the components of C struct timeval.
19324 2005-11-14  Robert Dewar  <dewar@adacore.com>
19325             Ed Schonberg  <schonberg@adacore.com>
19327         PR ada/18434
19328         * types.ads: Include All_Checks in Suppress_Array
19330         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
19331         not(a=b), since we no longer do this rewriting, and hence it is not
19332         needed.
19333         (Elaboration_Checks_Suppressed): Add special casing to
19334         deal with different cases of static and dynamic elaboration checks (all
19335         checks does not count in the first case, but does in the second).
19336         (Expr_Known_Valid): Do not assume that the result of any arbitrary
19337         function call is valid, since this is not the case.
19338         (Ensure_Valid): Do not apply validity check to a real literal
19339         in a universal or fixed context
19341         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
19342         elementary types using the operator in standard. It is cleaner not to
19343         modify the programmers intent, especially in the case of floating-point.
19344         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
19345         it did not matter because we always rewrote a/=b to not(a=b).
19346         (Expand_Allocator_Expression): For an allocator expression whose nominal
19347         subtype is an unconstrained packed type, convert the expression to its
19348         actual constrained subtype.
19349         Implement warning for <= or >= where < or > not possible
19350         Fix to Vax_Float tests (too early in many routines, causing premature
19351         Vax_Float expansions.
19353         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
19354         to be used with packages and generic packages as well as with
19355         subprograms.
19356         (Suppress): Set All_Checks, but not Elaboration_Check, for case
19357         of pragma Suppress (All_Checks)
19358         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
19359         a string literal for precise control over warnings.
19360         Avoid raise of pragma in case of unrecognized pragma and just return
19361         instead.
19363         * sem_prag.ads: Minor reformatting
19365         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
19366         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
19367         Switch. Do not handle any exception.
19368         Include -gnatwx as part of -gnatg (warn on redundant parens)
19369         Allow optional = after -gnatm
19370         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
19371         longer sets Elaboration_Checks.
19372         Code to set warning mode moved to Sem_Warn
19373         so that it can be shared by pragma processing.
19375         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
19376         statement.
19378         * s-taprop-solaris.adb: 
19379         Change some <= to =, to avoid new warning
19381         * a-exexda.adb, prj-proc.adb: 
19382         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
19383         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
19385 2005-11-14  Robert Dewar  <dewar@adacore.com>
19387         * exp_vfpt.adb: Handle /= case
19388         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
19389         so that we do not get duplicate scaling for fixed point conversions.
19391         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
19393 2005-11-14  Matthew Gingell  <gingell@adacore.com>
19395         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
19396         Increase default priority on Lynx from 15 to 17, and meet the Ada
19397         requirement that Default_Priority be ((Priority'First +
19398         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
19400 2005-11-14  Vincent Celier  <celier@adacore.com>
19402         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19403         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
19404         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
19405         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
19406         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
19407         mlib-tgt-lynxos.adb (DLL_Prefix): New function
19409 2005-11-14  Doug Rupp  <rupp@adacore.com>
19411         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
19412         private part.
19414 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
19416         * s-traces-default.adb, s-trafor-default.ads,
19417         s-tratas-default.adb: Fix compilation errors.
19419 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
19421         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
19422         raising the exception so the memory used is freed.
19424 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
19426         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
19427         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
19428         (convert_address): Update comments and list of platforms using this.
19430         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
19431         no longer used.
19433 2005-11-14  Pascal Obry  <obry@adacore.com>
19434             Vincent Celier  <celier@adacore.com>
19436         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
19437         GNAT.Command_Line.
19439         * memroot.adb: Remove redundant with/use clause on
19440         System.Storage_Elements.
19442 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
19444         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
19445         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
19446         related code to a-exexpr.adb
19447         (Save_Occurrence_And_Private): Move GCC EH related code to
19448         a-exexpr-gcc.adb
19449         (Raise_Current_Excep): Add new variable Id with pragma
19450         volatile, to ensure that the variable lives on stack.
19452         * a-exexpr-gcc.adb, raise-gcc.c: New file.
19454         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
19455         from a-except.adb.
19456         Move GCC EH related code to a-exexpr-gcc.adb
19458         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
19459         64-bit Solaris
19460         Split the Linux version of g-soccon into separate variants for 32 and 64
19461         bit platforms.
19462         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
19463         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
19464         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
19465         of host variable $(RANLIB_FLAGS).
19466         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
19467         Code clean up: remove unused/obsolete targets.
19468         (EH_MECHANISM): New variable introduced to differenciate between the
19469         two EH mechanisms statically.
19470         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
19471         (LIBGNAT_OBJS): Add raise-gcc.o
19472         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
19473         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19474         supports VxWorks 6 RTPs.
19475         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
19476         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19478         * raise.c: Move all GCC EH-related routines to raise-gcc.c
19480 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
19482         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
19483         deferral level, when abort is not allowed, to a later stage (the
19484         Task_Wrapper).
19485         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
19486         it will not get changed by the generated code. It was previously done
19487         in Create_Task.
19489 2005-11-14  Thomas Quinot  <quinot@adacore.com>
19490             Olivier Hainque  <hainque@adacore.com>
19491             Eric Botcazou  <ebotcazou@adacore.com>
19493         * decl.c:
19494         Factor common code to build a storage type for an unconstrained object
19495         from a fat or thin pointer type and a constrained object type.
19496         (annotate_value): Handle BIT_AND_EXPR.
19497         (annotate_rep): Don't restrict the back annotation of inherited
19498         components to the type_annotate_only case.
19499         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
19500         we are not defining the type.
19501         <E_Record_Type>: Likewise.
19502         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
19503         to get advantage of the new maybe_stabilize_reference interface, to
19504         ensure that what we reference is indeed stabilized instead of relying
19505         on assumptions on what the stabilizer does.
19506         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
19507         type imported through a limited_with clause, use its non-limited view.
19508         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
19509         differentiation.
19510         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
19511         of #if sections + explicit comparisons of convention identifiers.
19512         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
19513         before early-returning for certain types when code generation is
19514         disabled.
19515         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
19516         nullification of gnu_expr we do for objects with address clause and
19517         that we are not defining.
19518         (elaborate_expression_1): Do not create constants when creating
19519         variables needed by the debug info: the dwarf2 writer considers that
19520         CONST_DECLs is used only to represent enumeration constants, and emits
19521         nothing for them.
19522         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
19523         object with an address clause into an indirect reference, drop the
19524         initializing expression.
19525         Include "expr.h".
19526         (STACK_CHECK_BUILTIN): Delete.
19527         (STACK_CHECK_PROBE_INTERVAL): Likewise.
19528         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
19529         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
19530         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
19531         corresponding to the renamed object as ignored for debugging purposes.
19533         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
19534         related): For a prefix that is a dereference of a fat or thin pointer,
19535         if there is an actual subtype provided by the front-end, use that
19536         subtype to build an actual type with bounds template.
19537         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
19538         is provided by the front-end, use that subtype to compute the size of
19539         the deallocated object.
19540         (gnat_to_gnu): When adding a statement into an elaboration procedure,
19541         check for a potential violation of a No_Elaboration_Code restriction.
19542         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19543         with extra arguments to control whether to recurse through non-values
19544         and to let the caller know if the stabilization has succeeded.
19545         (gnat_stabilize_reference): Now a simple wrapper around
19546         maybe_stabilize, for common uses without restriction on lvalues and
19547         without need to check for the success indication.
19548         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
19549         pass false instead of 0 as the FORCE argument which is a bool.
19550         (Identifier_to_gnu): Remove checks ensuring that an renamed object
19551         attached to a renaming pointer has been properly stabilized, as no such
19552         object is attached otherwise.
19553         (call_to_gnu): Invoke create_var_decl to create the temporary when the
19554         function uses the "target pointer" return mechanism.
19555         Reinstate conversion of the actual to the type of the formal
19556         parameter before any other specific treatment based on the passing
19557         mechanism. This turns out to be necessary in order for PLACEHOLDER
19558         substitution to work properly when the latter type is unconstrained.
19560         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
19561         common pattern.
19562         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19563         with extra arguments to control whether to recurse through non-values
19564         and to let the caller know if the stabilization has succeeded.
19566         * utils2.c (gnat_build_constructor): Only sort the fields for possible
19567         static output of record constructor if all the components are constant.
19568         (gnat_build_constructor): For a record type, sort the list of field
19569         initializers in increasing bit position order.
19570         Factor common code to build a storage type for an unconstrained object
19571         from a fat or thin pointer type and a constrained object type.
19572         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
19573         types variants, and process special cases of VIEW_CONVERT expressions
19574         as their NOP_EXPR counterpart to ensure we get to the
19575         CORRESPONDING_VARs associated with CONST_DECls.
19576         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
19577         on the right-hand side.
19579         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
19580         a common pattern.
19581         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
19582         are converting back to its original type.
19583         (convert) <JM input>: Fallthrough regular conversion code instead of
19584         extracting the object if converting to a type variant.
19585         (create_var_decl): When a variable has an initializer requiring code
19586         generation and we are at the top level, check for a potential violation
19587         of a No_Elaboration_Code restriction.
19588         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
19589         SIZE and SIZE_UNIT which we need for later back-annotations.
19590         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
19591         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
19592         is an unchecked union.
19593         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
19594         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
19595         main variant, just replace the VIEW_CONVERT_EXPR.
19596         <UNION_TYPE>: Revert 2005-03-02 change.
19598         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
19600         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
19602 2005-11-14  Matthew Heaney  <heaney@adacore.com>
19604         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
19605         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
19606         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
19607         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
19608         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
19609         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
19610         Compiles against the spec for ordered maps described in sections
19611         A.18.6 of the most recent (August 2005) AI-302 draft.
19613 2005-11-14  Olivier Hainque  <hainque@adacore.com>
19615         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
19616         to ensure bias adjustments take place when need be and to prevent
19617         occurrences of intermediate overflows.
19619 2005-11-14  Matthew Gingell  <gingell@adacore.com>
19620             Olivier Hainque  <hainque@adacore.com>
19622         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
19623         ia64 HP-UX.
19625         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
19626         tracebacks on ia64 HP-UX and provide explanatory comment.
19627         Enable backtraces on ia64 GNU/Linux.
19628         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
19629         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
19631 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
19632             Javier Miranda  <miranda@adacore.com>
19634         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
19635         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
19636         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
19637         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
19639         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
19640         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
19641         assertions).
19643         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
19644         subprogram that generates the external name associated with a
19645         secondary dispatch table.
19646         (Get_Secondary_DT_External_Name): New subprogram that generates the
19647         external name associated with a secondary dispatch table.
19649 2005-11-14  Emmanuel Briot  <briot@adacore.com>
19651         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
19652         line in the ALI file to include both an instantiation reference, and a
19653         returned value.
19655 2005-11-14  Vincent Celier  <celier@adacore.com>
19657         * clean.adb (Check_Project): Look for Ada code in extending project,
19658         even if Ada is not specified as a language.
19659         Use new function DLL_Prefix for DLL_Name
19660         (Clean_Interface_Copy_Directory): New procedure
19661         (Clean_Library_Directory): New procedure
19662         (Clean_Directory): Remove procedure, no longer used
19663         (Clean_Project): Do not delete any file in an externally built project
19665         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
19666         directory of an extending project, even when there are no Ada source
19667         present.
19668         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
19669         (Set_Ada_Paths.Add.Recursive_Add): Ditto
19671         * mlib-prj.adb (Check_Library): For all library projects, get the
19672         library file timestamp.
19673         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
19674         (Build_Library): Use new function DLL_Prefix for the DLL_Name
19675         (Clean): Remove procedure, no longer used
19676         (Ultimate_Extension_Of): New function
19677         (Build_Library): When cleaning the library directory, only remove an
19678         existing library file and any ALI file of a source of the project.
19679         When cleaning the interface copy directory, remove any source that
19680         could be a source of the project.
19682         * prj.ads, prj.adb (Project_Empty): Add values of new components
19683         Library_TS and All_Imported_Projects.
19684         (Project_Empty): Add values for new components of Project_Data:
19685         Library_ALI_Dir and Display_Library_ALI_Dir
19687         * prj-attr.adb: New project level attribute name Library_ALI_Dir
19689         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
19690         attribute Library_ALI_Dir.
19691         (Check_Library_Attributes): The library directory cannot be the same as
19692         any source directory of the project tree.
19693         (Check_Stand_Alone_Library): The interface copy directory cannot be
19694         the same as any source directory of the project tree.
19696         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
19697         all temporary files.
19699 2005-11-14  Robert Dewar  <dewar@adacore.com>
19700             Ed Schonberg  <schonberg@adacore.com>
19702         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19703         (Check_Elab_Call): A call within a protected body is never an
19704         elaboration call, and does not require checking.
19705         (Same_Elaboration_Scope): Take into account protected types for both
19706         entities.
19707         (Activate_Elaborate_All_Desirable): New procedure
19709         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
19710         desirable
19712         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
19713         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
19715         * lib-writ.ads, lib-writ.adb: 
19716         Implement new AD/ED for Elaborate_All/Elaborate desirable
19717         Use new Elaborate_All_Desirable flag in N_With_Clause node
19719         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
19720         N_Free_Statement nodes.
19721         Define new class N_Subprogram_Instantiation
19722         Add Elaborate_Desirable flag to N_With_Clause node
19723         Add N_Delay_Statement (covering two kinds of delay)
19725         * debug.adb: Introduce d.f flag for compiler
19726         Add -da switch for binder
19728 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
19729             Cyrille Comar  <comar@adacore.com>
19731         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
19732         for task component, in the case of a limited aggregate. The enclosed
19733         object declaration will create it earlier. Otherwise, in the case of a
19734         nested aggregate, the object may appear in the wrong scope.
19735         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
19736         (Gen_Assign): If the component being assigned is an array type and the
19737         expression is itself an aggregate, wrap the assignment in a block to
19738         force finalization actions on the temporary created for each row of the
19739         enclosing object.
19740         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
19741         structures are initialized after all discriminants are set so that
19742         they can be accessed even when their offset is dynamic.
19744 2005-11-14  Robert Dewar  <dewar@adacore.com>
19745             Hristian Kirtchev  <kirtchev@adacore.com>
19747         * sem_attr.adb: Implement Machine_Rounding attribute
19748         (Analyze_Access_Attribute): The access attribute may appear within an
19749         aggregate that has been expanded into a loop.
19750         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
19751         'Terminated whenever the prefix is of a task interface class-wide type.
19752         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
19753         the prefix is of a task interface class-wide type.
19755         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
19756         to avoid warnings.
19758         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
19759         Remove pragma Inline for [Unaligned_]Valid.
19760         Add comments that Valid routines do not work for Vax_Float
19762         * exp_attr.adb: Implement Machine_Rounding attribute
19764         * snames.h: Add entry for Machine_Rounding attribute
19766 2005-11-14  Javier Miranda  <miranda@adacore.com>
19767             Robert Dewar  <dewar@adacore.com>
19768             Hristian Kirtchev  <kirtchev@adacore.com>
19770         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
19771         and related): For a prefix that is an explicit dereference of an
19772         access to unconstrained packed array type, annotate the dereference
19773         with an actual subtype so GIGI can make a correct size computation.
19774         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
19775         'Unrestricted_Access, if the designated type is an interface we
19776         add a type conversion to force the displacement of the pointer
19777         to the secondary dispatch table.
19778         Use Universal_Real instead of Long_Long_Float when we need a high
19779         precision float type for the generated code (prevents gratuitous
19780         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
19781         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
19782         'Terminated for task interface class-wide objects. Generate a call to
19783         the predefined dispatching routine used to retrieve the _task_id from
19784         a task corresponding record.
19785         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
19787         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19788         (Check_Dispatching_Operation): Protect the frontend againts
19789         previously detected errors.
19791         * Makefile.rtl: Add new instantiations of system.fat_gen
19793         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
19794         Change name of instantiated package for better consistency
19795         with newly added system.fat_gen instantiations.
19797         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
19798         s-fvagfl.ads: New files.
19800 2005-11-14  Cyrille Comar  <comar@adacore.com>
19801             Thomas Quinot  <quinot@adacore.com>
19803         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
19804         assignment of a value of a tagged type that has been rewritten to a
19805         block statement, it is known by construction that no checks are
19806         necessary for the statements within the block: analyze it with checks
19807         suppressed.
19808         (Expand_N_If_Statement): When killing a dead then-branch in an
19809         if-statement that has elsif_parts, recompute the Current_Value node
19810         for any entity whose value is known from the condition of the first
19811         elsif_part.
19812         (Expand_N_Return_Statement): When returning a mutable record, convert
19813         the return value into its actual subtype in order to help the backend
19814         to return the actual size instead of the maximum. This is another
19815         aftermath of not returning mutable records on the sec-stack anymore.
19817         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
19818         handling of error msg for suspicious reverse range iteration.
19819         (Check_Possible_Current_Value_Condition): Move declaration from body to
19820         spec, to allow this subprogram to be called from exp_ch5.
19822 2005-11-14  Thomas Quinot  <quinot@adacore.com>
19824         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
19825         generate a set of nested array aggregates instead of a single flat
19826         aggregate for multi-dimensional arrays.
19828 2005-11-14  Pascal Obry  <obry@adacore.com>
19830         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
19831         by spawnve is a process handle, no need to convert. Add a parameter
19832         close to control wether the process handle must be closed.
19833         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
19834         a process handle, not need to convert.
19835         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
19837         * g-expect.adb: (Kill): Document the new close parameter.
19838         (Close): Do not release the process handle in the kill there as
19839         waitpid() is using it.
19840         (Send_Signal): Release the process handle.
19842 2005-11-14  Robert Dewar  <dewar@adacore.com>
19844         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
19845         need a high precision float type for the generated code (prevents
19846         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19847         used).
19849         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
19850         need a high precision float type for the generated code (prevents
19851         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19852         used).
19853         (Expand_Width_Attribute): In configurable run-time, the attribute is not
19854         allowed on non-static enumeration subtypes. Force a load error to emit
19855         the correct diagnostic.
19857 2005-11-14  Thomas Quinot  <quinot@adacore.com>
19858             Robert Dewar  <dewar@adacore.com>
19859             Ed Schonberg  <schonberg@adacore.com>
19861         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
19862         subtype to compute the size of the designated object at run-time,
19863         create such a subtype and store it in the Actual_Designated_Subtype
19864         attribute of the N_Free_Statement.
19865         Generate itype for classwide designated object in both cases of
19866         user-specified storage pool: specific and class-wide, not only in the
19867         specific case.
19868         Raise CE when trying to set a not null access type object to null.
19869         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
19870         an explicit loop, because freeze nodes make its position variable.
19872         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
19873         null object.
19875 2005-11-14  Javier Miranda  <miranda@adacore.com>
19877         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
19878         Build_Stream_Procedure): Add the null-excluding attribute to the first
19879         formal.
19880         This has no semantic meaning under Ada95 mode but it is a
19881         requirement under Ada05 mode.
19883         * par-ch3.adb (P_Access_Definition): Addition of warning message if
19884         the null exclusion is used under Ada95 mode
19885         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
19886         (P_Access_Definition): Remove assertion that forbids the use of
19887         the null-exclusion feature in Ada95.
19889 2005-11-14  Robert Dewar  <dewar@adacore.com>
19891         * impunit.adb: Exclude container helper units not intended for use by
19892         users.
19894 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
19896         * freeze.adb (Freeze_Entity): For an access formal that is an access
19897         to subprogram, freeze the anonymous subprogram type at the same time,
19898         to prevent later freezing in the wrong scope, such as the enclosing
19899         subprogram body.
19900         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
19901         subprogram whenever available.
19903 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
19905         PR ada/23732
19906         * gnatvsn.ads (Library_Version): Bump to 4.1
19908 2005-11-14  Robert Dewar  <dewar@adacore.com>
19910         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
19911         Storage_Offset to avoid wrap around causing invalid results.
19913 2005-11-14  Pascal Obry  <obry@adacore.com>
19915         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
19916         cross-compiler.
19917         (Scan_Bind_Arg): Fail with an error message if -M option is used
19918         on a native compiler.
19920 2005-11-14  Robert Dewar  <dewar@adacore.com>
19921             Vincent Celier  <celier@adacore.com>
19923         * gprep.adb: Implement -C switch to scan comments
19925         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
19927         * scans.ads: Comment updates (including new use of Tok_Comment in
19928         preprocessing)
19930         * opt.ads: Add documentation for flags that are used by gprmake,
19931         currently and in the next version of gprmake.
19932         (Verbosity_Level): New variable
19933         Add Replace_In_Comments switch
19935         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
19936         and -vm.
19937         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
19939 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
19941         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
19942         message, friendlier.
19944 2005-11-14  Robert Dewar  <dewar@adacore.com>
19946         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
19948 2005-11-14  Doug Rupp  <rupp@adacore.com>
19950         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
19952 2005-11-14  Robert Dewar  <dewar@adacore.com>
19954         * interfac.ads: Change declarations of IEEE float types so that we no
19955         longer need a separate version of this package for VMS.
19957 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
19959         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
19960         internal entity created for the declaration of a child subprogram body
19961         with no spec as coming from source, to generate proper cross-reference
19962         information.
19964 2005-11-14  Vincent Celier  <celier@adacore.com>
19966         * make.adb (Compile_Sources): Change verbose message to minimum
19967         verbosity level High for "is in an Ada library", "is a read-only
19968         library" and "is an internal library",
19969         (Create_Binder_Mapping_File): Path name of ALI file for library project
19970         must include the library directory, not the object directory.
19971         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
19972         for new switches -vl, -vm and -vh.
19973         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
19974         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
19975         (Compile_Sources): Do not attempt to compile if an ALI file is missing
19976         in a project that is externally built.
19977         (Compute_All_Imported_Projects): New procedure
19978         (Gnatmake): Check if importing libraries should be regenerated because
19979         at least an imported library is more recent.
19980         (Initialize): For each project compute the list of the projects it
19981         imports directly or indirectly.
19982         (Add_Library_Search_Dir): New procedure, used in place of
19983         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
19984         put in the search paths.
19985         (Add_Source_Search_Dir): New procedure, used in place of
19986         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
19987         put in the search paths.
19988         (Mark_Directory): Resolve the absolute path the directory before marking
19989         it.
19991         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
19992         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
19993         Switch. Do not handle any exception.
19994         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
19995         so that the switch is recognized as valid.
19996         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
19998 2005-11-14  GNAT Script  <nobody@adacore.com>
20000         * Make-lang.in: Makefile automatically updated
20002 2005-11-14  Pascal Obry  <obry@adacore.com>
20004         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
20005         used.
20006         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
20007         In both cases the last argument was dropped.
20009 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
20011         * namet.h: (Column_Numbe): New type.
20012         (Get_Column_Number): Define to sinput__get_column_number.
20013         (Instantiation): Define to sinput__instantiation.
20014         (Get_Column_Number): Declare.
20015         (Instantiation): Likewise.
20017 2005-11-14  Robert Dewar  <dewar@adacore.com>
20019         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
20020         syntax, which could cause compiler hangs.
20022 2005-11-14  Vincent Celier  <celier@adacore.com>
20024         * prj-ext.adb: Take into account new environment variable
20025         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
20026         are defined.
20027         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
20028         normalize its path name, making it absolute and resolving symbolic
20029         links, and replace the original if resolved path is different.
20031 2005-11-14  Vincent Celier  <celier@adacore.com>
20033         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
20034         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
20036 2005-11-14  Emmanuel Briot  <briot@adacore.com>
20038         * prj-pp.adb (Print): Do not output the with statement if the
20039         associated name is empty, which happens for virtual extending projects.
20040         (Print): Preserve the "extends all" attribute when printing the project.
20042         * prj-tree.ads (String_Value_Of): Add comment about returned value for
20043         a virtual extending project.
20045 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
20047         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
20048         rhs of an assignment even if the type is unconstrained, when the
20049         context is non-expanding.
20050         In an inlined body, if the context type is private,
20051         resolve with its full view, which must be a composite type.
20053 2005-11-14  Robert Dewar  <dewar@adacore.com>
20054             Ed Schonberg  <schonberg@adacore.com>
20056         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20057         Do not give obsolescent warning on with of subprogram (since we
20058         diagnose calls)
20059         (Analyze_With_Clause): Add test for obsolescent package
20060         (Install_Context_Clauses): If the unit is the body of a child unit, do
20061         not install twice the private declarations of the parents, to prevent
20062         circular lists of Use_Clauses in a parent.
20063         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
20064         compiling body of child unit.
20065         Use new class N_Subprogram_Instantiation
20066         (Expand_With_Clause): If this is a private with_clause for a child unit,
20067         appearing in the context of a package declaration, then the implicit
20068         with_clauses generated for parent units are private as well.
20069         (License_Check): Do not generate message if with'ed unit is internal
20071 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
20072             Ed Schonberg  <schonberg@adacore.com>
20073             Thomas Quinot  <quinot@adacore.com>
20075         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
20076         names are internal, because they will not have a corresponding partner
20077         in the actual package.
20078         (Analyze_Formal_Package): Move the setting of the formal package spec's
20079         Generic_Parent field so that it occurs prior to analyzing the package,
20080         to allow proper operation of Install_Parent_Private_Declarations.
20081         (Analyze_Package_Instantiation): Set the instantiated package entity's
20082         Package_Instantiation field.
20083         (Get_Package_Instantiation_Node): Move declaration to package spec.
20084         Retrieve the N_Package_Instantiation node when the Package_Instantiation
20085         field is present.
20086         (Check_Generic_Child_Unit): Within an inlined call, the only possible
20087         instantiation is Unchecked_Conversion, for which no parents are needed.
20088         (Inline_Instance_Body): Deinstall and record the use_clauses for all
20089         parent scopes of a scope being removed prior to inlining an instance
20090         body.
20091         (Analyze_Package_Instantiation): Do not perform front-end inlining when
20092         the current context is itself an instance within a non-instance child
20093         unit, to prevent scope stack errors.
20094         (Save_References): If the node is an aggregate that is an actual in a
20095         call, rewrite as a qualified expression to preserve some type
20096         information, to resolve possible ambiguities in the instance.
20097         (Instance_Parent_Unit): New global variable to record the ultimate
20098         parent unit associated with a generic child unit instance (associated
20099         with the existing Parent_Unit_Visible flag).
20100         (type Instance_Env): New component Instance_Parent_Unit for stacking
20101         parents recorded in the global Instance_Parent_Unit.
20102         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
20103         stack.
20104         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
20105         it's not a top-level unit, and only do this if Instance_Parent_Unit is
20106         not already set. Replace test of Is_Child_Unit with test of parent's
20107         scope against package Standard. Add comments and a ??? comment.
20108         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
20109         on a child instance parent to test that the parent equals
20110         Instance_Parent rather than simply checking that the unit is not a
20111         child unit.
20112         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
20113         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
20114         a formal interface are ancestors of the corresponding actual.
20115         (Validate_Formal_Interface_Type): Additional legality checks.
20116         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
20117         interface types with ancestors.
20118         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
20119         to diagnose attempts to use generic within its own declaration.
20121 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
20122             Javier Miranda  <miranda@adacore.com>
20124         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
20125         discriminant.
20126         (Build_Private_Derived_Type): The entity of the created full view of the
20127         derived type does not come from source. If after installing the private
20128         declarations of the parent scope the parent is still private, use its
20129         full view to construct the full declaration of the derived type.
20130         (Build_Derived_Record_Type): Relax the condition that controls the
20131         execution of the check that verifies that the partial view and
20132         the full view agree in the set of implemented interfaces. In
20133         addition, this test now only takes into account the progenitors.
20134         (Derive_Interface_Subprograms): No need to derive subprograms
20135         of ancestors that are interfaces.
20136         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
20137         associated code.
20138         Change name Is_Package to Is_Package_Or_Generic_Package
20139         (Complete_Subprograms_Derivation): Handle the case in which the full
20140         view is a transitive derivation of the ancestor of the partial view.
20141         (Process_Full_View): Rename local subprogram Find_Interface_In_
20142         Descendant to Find_Ancestor_Interface to leave the code more clear.
20143         Remove wrong code that avoids the generation of an error message
20144         when the immediate ancestor of the partial view is an interface.
20145         In addition some minor reorganization of the code has been done to
20146         leave it more clear.
20147         (Analyze_Type_Declaration): If type has previous incomplete tagged
20148         partial view, inherit properly its primitive operations.
20149         (Collect_Interfaces): Make public, for analysis of formal
20150         interfaces.
20151         (Analyze_Interface_Declaration): New procedure for use for regular and
20152         formal interface declarations.
20153         (Build_Derived_Record_Type): Add support for private types to the code
20154         that checks if a tagged type implements abstract interfaces.
20155         (Check_Aliased_Component_Type): The test applies in the spec of an
20156         instance as well.
20157         (Access_Type_Declaration): Clean up declaration of malformed type
20158         declared as an access to its own classwide type, to prevent cascaded
20159         crash.
20160         (Collect_Interfaces): For private extensions and for derived task types
20161         and derived protected types, the parent may be an interface that must
20162         be included in the interface list.
20163         (Access_Definition): If the designated type is an interface that may
20164         contain tasks, create Master_Id for it before analyzing the expression
20165         of the declaration, which may be an allocator.
20166         (Record_Type_Declaration): Set properly the interface kind, for use
20167         in allocators, the creation of master id's for task interfaces, etc.
20169 2005-11-14  Javier Miranda  <miranda@adacore.com>
20170             Ed Schonberg  <schonberg@adacore.com>
20172         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
20173         omitted in case of stream attribute subprograms.
20174         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
20175         appear immediately after a subprogram body, when there is no previous
20176         subprogram declaration.
20177         Change name Is_Package to Is_Package_Or_Generic_Package
20178         (Process_Formals): A non null qualifier on a non null named access
20179         type is not an error, and is a warning only if Redundant_Constructs
20180         are flagged.
20182 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
20183             Ed Schonberg  <schonberg@adacore.com>
20185         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
20186         nested within Analyze_Package_Specification to install the private
20187         declarations and use clauses within each of the parent units of a
20188         package instance of a generic child package.
20189         (Analyze_Package_Specification): When entering a private part of a
20190         package associated with a generic instance or formal package, the
20191         private declarations of the parent must be installed (by calling new
20192         procedure Install_Parent_Private_Declarations).
20193         Change name Is_Package to Is_Package_Or_Generic_Package
20194         (Preserve_Full_Attributes): For a synchronized type, the corresponding
20195         record is absent in a generic context, which does not indicate a
20196         compiler error.
20198 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
20200         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
20201         not try to rewrite a renamed stream attribute, because the operations
20202         on the type may not have been generated.
20203         Handle properly a renaming_as_body generated for a stream operation
20204         whose default is abstract because the object type itself is abstract.
20205         (Find_Type): If the type is incomplete and appears as the prefix of a
20206         'Class reference, it is tagged, and its list of primitive operations
20207         must be initialized properly.
20208         (Chain_Use_Clauses): When chaining the use clauses that appear in the
20209         private declaration of a parent unit, prior to compiling the private
20210         part of a child unit, find on the scope stack the proper parent entity
20211         on which to link the use clause.
20212         (Note_Redundant_Use): Emit a warning when a redundant use clause is
20213         detected.
20214         (Analyze_Object_Renaming): An attribute reference is not a legal object
20215         if it is not a function call.
20217 2005-11-14  Robert Dewar  <dewar@adacore.com>
20218             Ed Schonberg  <schonberg@adacore.com>
20220         * sem_eval.adb: Implement d.f flag
20221         (Subtype_Statically_Match): A generic actual type has unknown
20222         discriminants when the corresponding actual has a similar partial view.
20223         If the routine is called to validate the signature of an inherited
20224         operation in a child instance, the generic actual matches the full view,
20226 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
20227             Ed Schonberg  <schonberg@adacore.com>
20228             Robert Dewar  <dewar@adacore.com>
20229             Thomas Quinot  <quinot@adacore.com>
20231         * sem_res.adb (Resolve_Call): Provide a better error message whenever
20232         a procedure call is used as a select statement trigger and is not an
20233         entry renaming or a primitive of a limited interface.
20234         (Valid_Conversion): If the operand has a single interpretation do not
20235         remove address operations.
20236         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
20237         statement to inhibit warning.
20238         (Resolve_Unary_Op): Do not produce a warning when
20239         processing an expression of the form -(A mod B)
20240         Use Universal_Real instead of Long_Long_Float when we need a high
20241         precision float type for the generated code (prevents gratuitous
20242         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
20243         (Resolve_Concatenation_Arg): Improve error message when argument is an
20244         ambiguous call to a function that returns an array.
20245         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
20246         there is an implicit operator in the given scope if we are within an
20247         instance: legality check has been performed on the generic.
20248         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
20249         after resolving operand, to avoid false warnings on overloaded calls.
20251 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
20252             Javier Miranda  <miranda@adacore.com>
20254         PR ada/15604
20255         * sem_type.adb (Covers): In an inlined body, a composite type matches
20256         a private type whose full view is a composite type.
20257         (Interface_Present_In_Ancestor): Protect the frontend against
20258         previously detected errors to ensure that its compilation
20259         with assertions enabled gives the same output that its
20260         compilation without assertions.
20261         (Interface_Present_In_Ancestor): Add support for private types.
20262         Change name In_Actual to In_Generic_Actual (clean up)
20263         (Disambiguate): New predicate In_Actual, to recognize expressions that
20264         appear in the renaming declaration generated for generic actuals, and
20265         which must be resolved in the outer context.
20267 2005-11-14  Robert Dewar  <dewar@adacore.com>
20268             Thomas Quinot  <quinot@adacore.com>
20269             Hristian Kirtchev  <kirtchev@adacore.com>
20270             Ed Schonberg  <schonberg@adacore.com>
20272         * sem_util.ads, sem_util.adb: Change name Is_Package to
20273         Is_Package_Or_Generic_Package.
20274         (Check_Obsolescent): New procedure.
20275         (Set_Is_Public): Remove obsolete junk test.
20276         (Set_Public_Status): Do not set Is_Public on an object whose declaration
20277         occurs within a handled_sequence_of_statemets.
20278         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
20279         for a parameterless procedure.
20280         (Enter_Name): Recognize renaming declarations created for private
20281         component of a protected type within protected operations, so that
20282         the source name of the component can be used in the debugger.
20284 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
20285             Robert Dewar  <dewar@adacore.com>
20287         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
20288         of a generic subprogram are not visible outside the body.
20289         (Set_Warning_Switch): New procedure (code to set warning mode moved
20290         here from Switch.C so that it can be shared by pragma processing.
20291         (Check_References): Special case warning for non-modified non-imported
20292         volatile objects.
20293         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
20294         form with a string literal argument
20296 2005-11-14  Javier Miranda  <miranda@adacore.com>
20298         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
20299         anonymous access.
20300         (Write): Addition of "not null" to the anonymous access.
20301         (Read): Addition of "not null" to the anonymous access.
20302         (Write): Addition of "not null" to the anonymous access.
20304         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
20305         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
20306         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
20307         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
20308         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
20309         "not null" to the anonymous access.
20311 2005-11-14  Robert Dewar  <dewar@adacore.com>
20313         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
20314         offset values
20316 2005-11-14  Vincent Celier  <celier@adacore.com>
20318         * switch.adb (Bad_Switch): New procedure
20319         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
20320         message when in error.
20322         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
20323         Too_Many_Output_Files): Remove declarations, no longer used.
20324         (Scan_Nat): New parameter Switch
20325         (Scan_Pos): Ditto
20326         (Bad_Switch): New procedure
20328         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
20329         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
20330         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
20331         to Osint.Fail. Do not handle any exception.
20333 2005-11-14  Vincent Celier  <celier@adacore.com>
20335         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
20336         designates a non existent directory.
20338 2005-11-14  Robert Dewar  <dewar@adacore.com>
20340         * xgnatugn.adb: Replace invalid membership test by 'Valid
20342 2005-11-14  Vincent Celier  <celier@adacore.com>
20344         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
20345         there is no object directory.
20347 2005-11-14  Robert Dewar  <dewar@adacore.com>
20349         * usage.adb: Minor adjustment to output format, use nn instead of nnn
20350         (so that -gnateInnn does not run into next column)
20352 2005-11-14  Ed Falis  <falis@adacore.com>
20354         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
20355         "constrained"
20357 2005-11-14  Cyrille Comar  <comar@adacore.com>
20359         * s-chepoo.ads: Add comments on Dereference.
20360         Remove unnecessary inherited abstract primitives.
20361         Cosmetic cleanup.
20363 2005-11-14  Robert Dewar  <dewar@adacore.com>
20365         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
20366         node parameter, not needed, since it is available as Declaration_Node.
20368 2005-11-14  Geert Bosch  <bosch@adacore.com>
20370         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
20371         grammatically correct.
20373 2005-11-14  Vincent Celier  <celier@adacore.com>
20375         * s-fileio.ads: Correct spelling error in comment
20377 2005-11-14  Cyrille Comar  <comar@adacore.com>
20378             Robert Dewar  <dewar@adacore.com>
20379             Vincent Celier  <celier@adacore.com>
20380             Ben Brosgol  <brosgol@adacore.com>
20381             Jose Ruiz  <ruiz@adacore.com>
20382             Pascal Obry  <obry@adacore.com>
20384         * gnat_ugn.texi: 
20385         Document that -fstack-check is needed for strict compliance with the
20386         Ada 95 Reference Manual.
20387         Correct reference to VAX systems to meet HP guidelines
20388         Add documentation for new gnatmake switches -vl, -vm and -vh
20389         Replace DEC Ada by HP Ada
20390         Replace DIGITAL by HP
20391         Remove empty section on tools in compatibility section
20392         Clarify the Windows convention semantics.
20393         Document the Win32 calling convention.
20394         The Stdcall, Win32 and DLL convention are synonyms.
20395         Add a note in -gnatR description about zero size record components
20396         Note on new >= and <= warnings for -gnatwc
20397         Document that equal sign after -gnatm is optional.
20398         Note that strip is working fine on DLL built with a Library
20399         Project. The restriction apply only to DLL built with gnatdll.
20400         Update section about the way to debug a DLL.
20401         Update information about the DLL convention.
20402         Document -C switch for gnatprep
20403         Document new attribute Library_ALI_Dir
20404         Update elaboration doc to include implicit Elaborate pragmas now
20405         generated for subprogram instantiations.
20406         Document limitation on executable names that include spaces for --GCC,
20407         --GNATBIND, and --GNATLINK switches.
20408         Document that -w causes -gnatws to be added at start of gcc switches
20410         * gnat_rm.texi: Document that -mieee is needed for generating infinite
20411         and NaN values in case of overflow on machines that are not fully
20412         compliant with the IEEE floating-point standard.
20413         Create a section describing the set of compiler options needed for
20414         strict compliance with the Ada 95 Reference Manual.
20415         Add documentation for pragma Obsolescent applied to a package
20416         Clarify potential issues of mixed language programs related to the
20417         I/O buffering enabling in the elaboration of the GNAT runtime.
20418         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
20419         This documentation only patch adds extra documentsion for pragma
20420         Restrictions (No_Elaboration_Code), explaining why it is not possible
20421         to document this restriction in terms of allowed source constructs.
20422         Document string literal form of pragma Warnings
20423         Document new attribute Library_ALI_Dir
20424         Add documentation on stable attributes in project files that was missing
20426         * gnat-style.texi: Indicate that paragraphs within a single comment
20427         should be separated by empty comment lines
20429         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
20430         /05 respectively)
20432         * bindusg.adb: Minor cleanup, put -m before -M for consistency
20434 2005-11-14  Robert Dewar  <dewar@adacore.com>
20436         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
20437         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
20438         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
20439         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
20440         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
20441         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
20442         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
20443         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
20444         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
20445         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
20446         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
20447         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
20448         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
20449         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
20450         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
20451         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
20452         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
20453         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
20454         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
20455         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
20456         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
20457         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
20458         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
20459         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
20460         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
20461         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
20462         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
20463         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
20464         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
20465         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
20466         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
20467         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
20468         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
20469         system-interix.ads, system-solaris-sparc.ads,
20470         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
20471         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
20472         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
20473         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
20474         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
20475         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
20476         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
20477         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
20478         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
20479         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
20480         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
20481         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
20482         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
20483         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
20484         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
20485         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
20486         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
20487         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
20488         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
20489         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
20490         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
20491         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
20492         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
20493         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
20494         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
20495         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
20496         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
20497         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
20498         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
20499         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
20500         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
20501         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
20502         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
20503         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
20504         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
20505         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
20506         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
20507         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
20508         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
20509         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
20510         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
20511         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
20512         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
20513         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
20514         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
20515         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
20516         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
20517         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
20518         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
20519         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
20520         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
20521         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
20522         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
20523         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
20524         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
20525         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
20526         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
20527         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
20528         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
20529         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
20530         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
20531         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
20532         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
20533         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
20534         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
20535         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
20536         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
20537         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
20538         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
20539         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
20540         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
20541         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
20542         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
20543         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
20544         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
20545         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
20546         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
20547         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
20548         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
20549         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
20550         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
20551         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
20552         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
20553         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
20554         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
20555         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
20556         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
20557         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
20558         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
20559         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
20560         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
20561         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
20562         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
20563         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
20564         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
20565         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
20566         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
20567         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
20568         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
20569         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
20570         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
20571         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
20572         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
20573         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
20574         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
20575         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
20576         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
20577         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
20578         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
20579         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
20580         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
20581         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
20582         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
20583         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
20584         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
20585         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
20586         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
20587         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
20588         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
20589         a-numaux-darwin.ads, a-numaux-darwin.adb,
20590         a-swuwha.ads, a-stunha.ads: Minor reformatting
20592 2005-11-14  Robert Dewar  <dewar@adacore.com>
20594         PR ada/18434
20595         * osint-m.adb: Add pragma Elaborate_All for Osint
20597 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
20599         PR ada/23995
20600         * trans.c (call_to_gnu): Restore statement lost in translation.
20602 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
20604         * init.c: Use the Linux-specific section for the IA-64/Linux target.
20605         (__gnat_adjust_context_for_raise): Add conditional code so that the
20606         IA-64 is also supported.
20608 2005-11-03  James E Wilson  <wilson@specifix.com>
20610         PR ada/23427
20611         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
20612         TREE_OVERFLOW check.
20614 2005-09-21  Olivier Hainque  <hainque@adacore.com>
20616         PR ada/22418
20617         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
20618         as we create them to store a size in bits.
20620 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
20622         PR ada/21937
20623         PR ada/22328
20624         PR ada/22381
20625         PR ada/22383
20626         PR ada/22419
20627         PR ada/22420
20628         * utils2.c (build_return_expr): New helper function.
20629         * gigi.h (build_return_expr): Declare it.
20630         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
20631         of manually building the RETURN_EXPR tree.
20632         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
20633         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
20634         build_binary_op for the "target pointer" case.  Use build_return_expr
20635         instead of manually building the RETURN_EXPR tree.
20637 2005-09-16  Laurent Guerby  <laurent@guerby.net>
20639         PR ada/23788
20640         * s-tpinop.ads: Make this unit Preelaborate.
20642 2005-09-16  Andreas Jaeger  <aj@suse.de>
20644         * socket.c: Add string.h for memcpy.
20646 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
20648         * dec-io.ads, dec-io.adb: Removed, no longer used.
20650 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
20652         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
20654         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
20655         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
20656         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
20657         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
20658         dependent units are Preelaborate.
20659         (Initialize): Call Interrupt_Managemeent.Initialize and
20660         OS_Primitives.Initialize to ensure proper initialization of this unit.
20661         Remove use of System.Soft_Links
20662         Make this unit Preelaborate.
20664         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
20665         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
20666         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
20667         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
20668         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
20669         s-tratas.ads, s-tasinf.ads: Minor reformatting.
20670         Add pragma Preelaborate, since these packages are suitable for this
20671         categorization.
20672         Update comments.
20674         * s-traent-vms.ads, s-intman-dummy.adb,
20675         s-taprop-dummy.adb: Make this unit Preelaborate.
20677         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
20678         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
20679         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
20680         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
20681         s-intman-solaris.adb, s-intman-irix-athread.adb,
20682         s-intman-irix.adb: Mark this unit Preelaborate.
20683         (Initialize): New procedure.
20684         Update comments.
20686         * s-taspri-linux.ads: Removed.
20688         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
20689         as done by other implementations (e.g. posix).
20691         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
20692         responsible for deferring abort.
20693         Mark this unit Preelaborate.
20695         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
20696         proper initialization of the tasking run-time.
20698         * s-tasdeb.ads: Mark this unit Preelaborate.
20699         (Known_Tasks): Add explicit default value to avoid elaboration code.
20701         * s-inmaop-vms.adb (Elaboration code): Add call to
20702         Interrupt_Management.Initialize since the elaboration code depends on
20703         proper initialization of this package.
20705         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
20706         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
20707         s-osprim-posix.adb: Make this unit Preelaborate.
20709         * a-calend.adb: Add call to OS_Primitives.Initialize
20711         * a-elchha.adb: Update use of Except.Id.Full_Name.
20712         Minor reformatting.
20713         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
20715         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
20716         Move with clauses outside Warnings Off now that dependent units are
20717         Preelaborate.
20718         Use raise xxx with "..."; Ada 2005 form.
20720         * a-taside.ads, a-taside.adb:
20721         Remove some dependencies, to make it easier to make this unit truly
20722         Preelaborate.
20723         Rewrite some code to be conformant with Preelaborate rules.
20725         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
20726         marked Preelaborate in the future.
20728         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
20729         these units Preelaborate.
20731         * s-exctab.adb: Update use of Except.Id.Full_Name.
20733         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
20734         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
20735         Set_Exc_Stack_Addr): Removed, no longer used.
20736         Remove reference to *Machine_State_Addr*, no longer needed.
20738         * s-stalib.ads: Mark this unit as Preelaborate[_05].
20739         (Exception_Data): Full_Name is now a System.Address so that this unit
20740         can be made Preelaborate.
20741         Clean up/simplify code thanks to Full_Name being a System.Address.
20742         Remove obsolete pragma Suppress (All_Checks), no longer needed.
20744         * s-taskin.ads, s-taskin.adb:
20745         Move with clauses outside Warnings Off now that dependent units are
20746         Preelaborate.
20747         Make this unit Preelaborate.
20748         (Initialize): New proceduure, replace elaboration code and makes the
20749         set up of the tasking run-time cleaner.
20750         (Detect_Blocking): Now a function instead of a deferred boolean, to
20751         obey Preelaborate rules.
20753         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
20754         soft links, no longer used.
20756         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
20757         packages are suitable for this categorization.
20759         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
20760         since we compile run-time sources in Ada 2005 mode.
20761         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
20762         avoid having s-taprop*.adb depend on s-soflin and to avoid code
20763         duplication.
20764         Remove reference to *Machine_State_Addr*, no longer needed.
20766 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
20768         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
20769         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20770         Remove reference to System.Exceptions.
20772         * s-mastop-x86.adb: Removed, no longer used.
20774         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
20776         * a-excach.adb: Minor reformatting.
20778         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
20779         instead fix new warnings that were hidden by this change.
20780         (AAA, ZZZ): Removed, replaced by...
20781         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
20782         are used instead of constants, to help make Ada.Exception truly
20783         preelaborate.
20784         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
20785         Raise_Storage_Error): File is now a System.Address, to simplify code.
20786         (Elab code): Removed, no longer used.
20787         (Null_Occurrence): Remove Warnings Off and make this construct
20788         preelaborate.
20789         Remove code related to front-end zero cost exception handling, since
20790         it is no longer used.
20791         Remove -gnatL/-gnatZ switches.
20793         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
20794         Update use of Except.Msg.
20796         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
20797         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
20798         to front-end zero cost exception handling, since it is no longer used.
20799         Remove -gnatL/-gnatZ switches.
20801         * lib-writ.ads: Minor reformatting
20802         Remove doc of UX
20804         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
20806         * Make-lang.in: Remove references to s-except.ads
20808         * s-except.ads: Removed, no longer used.
20810         * s-mastop.ads, s-mastop.adb:
20811         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20812         Remove reference to System.Exceptions.
20814         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
20815         switch-b.adb: Remove code related to front-end zero cost exception
20816         handling, since it is no longer used.
20817         Remove -gnatL/-gnatZ switches.
20819 2005-09-01  Robert Dewar  <dewar@adacore.com>
20820             Gary Dismukes  <dismukes@adacore.com>
20821             Javier Miranda  <miranda@adacore.com>
20823         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
20824         type by valid test and generate warning.
20825         (Tagged_Membership): Generate call to the run-time
20826         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
20827         Change formal name Subtype_Mark to Result_Definition in several calls to
20828         Make_Function_Specification.
20829         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
20830         check for proper accessibility of the operand of a class-wide allocator.
20831         The check can be left out if checks are suppressed or if the expression
20832         has a specific tagged type whose level is known to be safe.
20834         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
20835         generates the run-time check associated with null-excluding entities.
20836         (Expand_N_Return_Statement): Add tests to determine if the accessibility
20837         check on the level of the return expression of a class-wide function
20838         can be elided. The check usually isn't needed if the expression has a
20839         specific type (unless it's a conversion or a formal parameter). Also
20840         add a test for whether accessibility checks are suppressed. Augment
20841         the comments to describe the conditions for performing the check.
20843 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
20844             Javier Miranda  <miranda@adacore.com>
20845             Gary Dismukes  <dismukes@adacore.com>
20846             Ed Schonberg  <schonberg@adacore.com>
20848         * a-tags.adb (IW_Membership): Give support to
20849         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
20850         subprogram has been extended to look for the tag in the ancestors tag
20851         table.
20852         Update the structure of the GNAT Dispatch Table to reflect the
20853         additional two tables used in dispatching selects.
20854         Introduce appropriate array types and record components in
20855         Type_Specific_Data to reflect the two tables.
20856         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
20857         the TSD of a tag, indexed by position.
20858         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
20859         operation kind in the TSD of a tag, indexed by position.
20861         * a-tags.ads: Introduce an enumeration type to capture different
20862         primitive operation kinds. Define a constant reflecting the number of
20863         predefined primitive operations.
20864         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
20865         of an entry wrapper.
20866         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
20867         callable entity of a primitive operation.
20869         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
20870         primitive operations used in dispatching selects for limited
20871         interfaces, limited tagged, task and protected types what implement a
20872         limited interface.
20873         (Freeze_Type): Generate the bodies of the primitive operations used in
20874         dispatching selects for limited tagged, task and protected types that
20875         implement a limited interface. Generate statements to populate the two
20876         auxiliary tables used for dispatching in select statements.
20877         (Freeze_Record_Type): Add call to initialize the dispatch table entries
20878         associated with predefined interface primitive operations.
20879         (Build_Dcheck_Function): Change Set_Subtype_Mark to
20880         Set_Result_Definition.
20881         (Build_Variant_Record_Equality): Change Subtype_Mark to
20882         Result_Definition.
20883         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
20884         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
20885         (Build_Assignment): Simplify the code that adds the run-time-check.
20886         (Expand_N_Object_Declaration): Code cleanup.
20888         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
20889         entries when there is a protected type that implements a limited
20890         interface.
20892         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
20893         common routines used in expansion of dispatching selects.
20894         (Add_Private_Declarations): Select the appropriate protection type when
20895         there is a protected type that implements a limited interface.
20896         (Build_Parameter_Block): Generate a wrapped parameter block.
20897         (Build_Protected_Subprogram_Body): Select the appropriate type for
20898         locking entries when there is a protected type that implements a
20899         limited interface.
20900         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
20901         classified as entry wrappers.
20902         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
20903         asynchronous selects.
20904         (Expand_N_Conditional_Entry_Call): Add support for expansion of
20905         dispatching conditional selects.
20906         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
20907         protection when there is a protected type that implements limited
20908         interfaces.
20909         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
20910         timed selects.
20911         (Extract_Dispatching_Call): Extract the entity of the name of a
20912         dispatching call, the object parameter, actual parameters and
20913         corresponding formals.
20914         (Make_Initialize_Protection): Correct logic of protection initialization
20915         when there is a protected type that implements a limited interface.
20916         (Parameter_Block_Pack): Populate a wrapped parameter block with the
20917         values of actual parameters.
20918         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
20919         block and assign them to the original actual parameters.
20921         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
20922         (Build_Protected_Sub_Specification): Change the type and name of the
20923         last formal to account for the increased variety of protection modes.
20925         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
20926         entities. Used to save the value of the Is_Hidden attribute when the
20927         limited-view is installed.
20928         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
20929         the attribute of procedures classified as entry wrappers.
20930         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
20931         entity of a primitive wrapper.
20932         (Write_Entity_Flags): Output the name and value of the
20933         Is_Primitive_Wrapper attribute.
20934         (Write_Field27_Name): Output the name and entity of the field Wrapped_
20935         Entity.
20936         (Underlying_Type): If we have an incomplete entity that comes from
20937         the limited view then we return the Underlying_Type of its non-limited
20938         view if it is already available.
20939         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
20940         including operators.
20941         (Write_Field26_Name): Add entry for Overridden_Operation
20942         (Overridden_Operation): New attribute of functions and procedures.
20944         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
20945         predefined position in the dispatch table for the primitive operations
20946         used in dispatching selects.
20947         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
20948         predefined primitive operations and replace it with
20949         Default_Prim_Op_Count.
20950         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
20951         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
20952         the names of the generated primitive operations used in dispatching
20953         selects.
20954         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
20955         case of abstract interface types. They will be inherit by the objects
20956         implementing the interface.
20957         (Make_DT): There is no need to inherit the dispatch table of the
20958         ancestor interface for the elaboration of abstract interface types.
20959         The dispatch table will be inherited by the object implementing the
20960         interface.
20961         (Copy_Secondary_DTs): Add documentation.
20962         (Validate_Position): Improve this static check in case of
20963         aliased subprograms because aliased subprograms must have
20964         the same position.
20965         (Init_Predefined_Interface_Primitives): New subprogram that initializes
20966         the entries associated with predefined primitives of all the secondary
20967         dispatch tables.
20968         (Build_Anonymous_Access_Type): Removed.
20969         (Expand_Interface_Actuals): With the previous cleanup there is no need
20970         to build an anonymous access type. This allows further cleanup in the
20971         code generated by the expander.
20972         (Expand_Interface_Conversion): If the actual is an access type then
20973         build an internal function to handle the displacement. If the actual
20974         is null this function returns null because no displacement is
20975         required; otherwise performs a type conversion that will be
20976         expanded in the code that returns the value of the displaced actual.
20977         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
20978         conversions that have no effect in the generated code because no
20979         displacement is required. Code cleanup; use local variables to
20980         avoid repeated calls to the subprogram directly_designated_type().
20982         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
20983         Classify the primitive operations used in dispatching selects as
20984         predefined.
20985         (Implements_Limited_Interface): Determine whether some type either
20986         directly implements a limited interface or extends a type that
20987         implements a limited interface.
20988         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
20989         (Expand_Subtype_From_Expr): Do not build actual subtype if the
20990         expression is limited.
20991         (Find_Interface_Tag): Add code to handle class-wide types and
20992         entities from the limited-view.
20994         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
20995         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
20996         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
20997         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
20998         Set_Prim_Op_Kind.
21000         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
21001         of procedure name or prefix that appears as a trigger in a triggering
21002         alternative.
21004         * uintp.ads: Introduce constants Uint_11 and Uint_13.
21006 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
21008         * s-tataat.adb, a-tasatt.adb:
21009         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
21011         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
21012         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
21013         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
21014         longer used.
21016 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
21017             Jose Ruiz  <ruiz@adacore.com>
21019         * s-taprop-vxworks.adb:
21020         Move with clauses outside Warnings Off now that dependent units are
21021         Preelaborate.
21022         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
21023         initialization of this unit.
21024         (Specific): Add new procedures Initialize and Delete so that this
21025         package can be used for VxWorks 5.x and 6.x
21026         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
21027         differences between VxWorks 5.x and 6.x
21028         Minor reformatting.
21029         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
21030         caller.
21031         Use only Preelaborate-compatible constructs.
21033         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
21034         Primitives.Operations.
21035         (Delete, Initialize): New procedures.
21037         * s-osinte-vxworks.adb: Body used to handle differences between
21038         VxWorks 5.x and 6.x
21039         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
21041         * s-osinte-vxworks.ads: Minor reformatting.
21042         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
21043         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
21044         and 6.
21045         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
21046         between Vxworks 5 and 6.
21047         (taskLock, taskUnlock): Removeed, no longer used.
21049         * adaint.c: The wait.h header is not located in the sys directory on
21050         VxWorks when using RTPs.
21051         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
21052         using RTPs.
21053         (__gnat_dup): dup is available on Vxworks when using RTPs.
21054         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
21056         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
21058         * expect.c: The wait.h header is not located in the sys directory on
21059         VxWorks when using RTPs.
21061 2005-09-01  Thomas Quinot  <quinot@adacore.com>
21063         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
21065         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
21067         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
21068         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21069         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
21070         g-soccon-freebsd.ads: Add new constants:
21071          IP_MULTICAST_IF
21072          SO_RCVTIMEO/SO_SNDTIMEO
21073          IOV_MAX
21075         * gen-soccon.c:
21076         Move all target-specific file inclusions and macro definitions to
21077         gsocket.h, in order to ensure that any C code in socket.c will see a
21078         set of constants that is consistent with the contents of g-soccon.ads.
21080         * gsocket.h: Code imported from gen-soccon.c:
21081         Move all target-specific file inclusions and macro definitions to
21082         gsocket.h, in order to ensure that any C code in socket.c will see a set
21083         of constants that is consistent with the contents of g-soccon.ads.
21084         This change also makes gen-soccon self-contained (removing dependencies
21085         upon GCC internal headers).
21087         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
21088         iovecs at a time.
21089         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
21091         * socket.c: Minor reformatting.
21093 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21094             Thomas Quinot  <quinot@adacore.com>
21096         * fname-sf.adb, mlib-tgt.ads,
21097         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
21098         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
21099         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
21100         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
21101         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
21102         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
21103         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
21104         makegpr.adb: Remove redundant use_clauses.
21106 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
21108         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
21109         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
21110         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
21111         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
21112         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
21113         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
21114         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
21115         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
21116         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
21117         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
21118         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
21119         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
21120         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
21121         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
21122         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
21123         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
21124         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
21125         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
21126         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
21127         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
21128         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
21129         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
21130         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
21131         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
21132         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
21133         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
21134         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
21135         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
21136         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
21137         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
21138         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
21139         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
21140         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
21141         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
21142         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
21143         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
21144         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
21145         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
21146         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
21147         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
21148         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
21149         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
21150         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
21151         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
21152         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
21153         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
21154         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
21155         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
21156         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
21157         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
21158         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
21159         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
21160         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
21161         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
21162         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
21163         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
21164         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
21165         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
21166         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
21167         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
21168         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
21169         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
21170         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
21171         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
21172         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
21173         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
21174         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
21175         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
21176         and always use the no parameter form for consistency.
21178         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
21180 2005-09-01  Robert Dewar  <dewar@adacore.com>
21182         * binde.adb: Minor reformatting
21183         (Find_Elab_Order): Output warning if -p used with static elab order
21185 2005-09-01  Robert Dewar  <dewar@adacore.com>
21187         * checks.adb (Check_Needed): New procedure, deals with removing checks
21188         based on analysis of short-circuited forms. Also generates warnings for
21189         improper use of non-short-circuited forms.
21190         Code clean ups.
21192 2005-09-01  Robert Dewar  <dewar@adacore.com>
21194         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
21195         with 'Valid tests.
21197 2005-09-01  Robert Dewar  <dewar@adacore.com>
21199         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
21200         spec.
21201         Implement new insertion char < (conditional warning)
21202         * errutil.adb, erroutc.adb: Implement new insertion char <
21203         (conditional warning).
21204         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
21205         (Error_Msg_Warn): New variable for < insertion char.
21206         * prj-nmsc.adb: Implement new errout insertion char < (conditional
21207         warning).
21208         (Check_For_Source): Change value of Source_Id only after the current
21209         source has been dealt with.
21211 2005-09-01  Robert Dewar  <dewar@adacore.com>
21212             Doug Rupp  <rupp@adacore.com>
21214         * exp_attr.adb: Handle vax fpt for 'Valid attribute
21215         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
21216         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
21217         (Valid_D, Valid_F, Valid_G): New functions
21219 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21220             Hristian Kirtchev  <kirtchev@adacore.com>
21221             Javier Miranda  <miranda@adacore.com>
21223         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
21224         from object notation, the original node is unanalyzed and carries no
21225         semantic information, so that accessiblity checks must be performed on
21226         the type of the actual itself.
21227         (Expand_N_Subprogram_Declaration): Change last actual parameter for
21228         compatibility with Build_Protected_Sub_Specification.
21229         (Check_Overriding_Inherited_Interfaces): Add suport to handle
21230         overloaded primitives.
21231         (Register_Interface_DT_Entry): Use the new name of the formal
21232         the the calls to Expand_Interface_Thunk
21234         * exp_dbug.ads: Augment comments on encoding of protected types to
21235         include the generation of dispatching subprograms when the type
21236         implements at least one interface.
21238         * lib.ads: Extend information in Load_Stack to include whether a given
21239         load comes from a Limited_With_Clause.
21241         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
21242         whether a potential circularity is harmless, because it includes units
21243         loaded through a limited_with clause. Extends previous treatment which
21244         did not handle properly arbitrary combinations of limited and
21245         non-limited clauses.
21247 2005-09-01  Nicolas Setton  <setton@adacore.com>
21249         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
21250         to be encoded as typ___XBLU_lowerbound__upperbound instead of
21251         typ___XB_lowerbound__upperbound.
21253 2005-09-01  Thomas Quinot  <quinot@adacore.com>
21255         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
21256         dummy access formal for RACW/RAS TypeCode TSS.
21257         (Build_TypeCode_Call): Do not generate dummy null access actual for
21258         calls to the TypeCode TSS.
21260 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21262         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
21263         fully qualified name, to distinguish instances with the same local name.
21265         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
21266         fully qualified.
21268 2005-09-01  Robert Dewar  <dewar@adacore.com>
21270         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
21271         packed arrays.
21273 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
21275         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
21276         (Free): New deallocation procedure for filter elements
21277         (Close): Deallocate any existing filter for the concerned connection
21279 2005-09-01  Laurent Pautet  <pautet@adacore.com>
21281         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
21282         position set is provided, we compute one in order to reduce the maximum
21283         length of the keys.  This computation first selects a character
21284         position between 1 and the minimum length of the keys in order to
21285         avoid reducing one of the keys to an empty string.
21286         (Initialize, Compute): When the ratio V to K is too low, the algorithm
21287         does not converge. The initialization procedure now comes with a
21288         maximum number of iterations such that when exceeded, an exception is
21289         raised in Compute. The user can initialize this ratio to another value
21290         and try again
21291         Reformating and updated headers.
21293 2005-09-01  Javier Miranda  <miranda@adacore.com>
21295         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
21296         that given an entity T creates and returns an Itype that duplicates the
21297         contents of T. The returned Itype has the null-exclusion
21298         attribute set to True, and its Etype attribute references T
21299         to keep the association between the two entities.
21300         Update copyright notice
21302         * sem_aggr.adb (Check_Can_Never_Be_Null,
21303         Aggregate_Constraint_Checks, Resolve_Aggregate,
21304         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
21306         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
21308 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
21309             Robert Dewar  <dewar@adacore.com>
21310             Hristian Kirtchev  <kirtchev@adacore.com>
21312         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
21313         Result_Definition.
21315         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
21316         function specs.
21317         Call Set_Result_Definition instead of Set_Subtype_Mark.
21318         (P_Subprogram_Specification): Add parsing of anonymous access result
21319         plus null exclusions. Call Set_Result_Definition instead of
21320         Set_Subtype_Mark.
21322         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21323         (P_Access_Type_Definition): Add parsing for an anonymous access result
21324         subtype, plus parsing for null exclusions. Call Set_Result_Definition
21325         instead of Set_Subtype_Mark.
21327         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21328         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
21329         (Result_Definition): New function for N_Function_Specifications.
21330         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
21331         N_Function_Specification.
21332         (Set_Null_Exclusion_Present): Allow this flag for
21333         N_Function_Specification.
21334         (Set_Result_Definition): New procedure for N_Function_Specifications.
21335         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
21336         and N_Function_Specification.
21338         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
21339         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
21340         Add support for LIMITED NEW for Ada 2005 AI-419
21341         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
21342         syntax for anonymous access results.
21343         Replace Subtype_Mark field by Result_Definition in
21344         N_Function_Specification and N_Access_Definition specs.
21345         Add Null_Exclusion_Present to spec of N_Function_Specification.
21346         (Result_Definition): New function for N_Function_Specification and
21347         N_Access_Function_Definition.
21348         (Set_Result_Definition): New procedure for N_Function_Specification and
21349         N_Access_Function_Definition.
21351         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
21352         Result_Definition for cases of N_Access_Function_Definition and
21353         N_Function_Specification.
21354         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
21356 2005-09-01  Vincent Celier  <celier@adacore.com>
21358         * lib-writ.adb: Update Copyright notice
21359         (Write_With_Lines): On platforms where file names are case-insensitive,
21360         record the file names in lower case.
21361         (Write_ALI): For D lines, on platforms where file names are
21362         case-insensitive, record the file names in lower case.
21364 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21365             Emmanuel Briot  <briot@adacore.com>
21367         * lib-xref.adb (Output_Overridden_Op): Display information on
21368         overridden operation.
21370         * lib-xref.ads: Add documentation on overridden operations.
21372         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
21373         information.
21375         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
21376         overriding entity information.
21378 2005-09-01  Vincent Celier  <celier@adacore.com>
21380         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
21381         including those that are inherited.
21383 2005-09-01  Robert Dewar  <dewar@adacore.com>
21385         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
21387         * par-prag.adb: Implement new pragma Debug_Policy
21389         * sem_prag.adb Implement new pragma Debug_Policy
21390         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
21391         Component_Size attribute specification. Give warning for ignored pragma
21392         Pack.
21394         * snames.h, snames.ads, snames.adb: Introduce entries in
21395         Preset_Names for Name_Disp_Asynchronous_Select,
21396         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
21397         Name_Disp_Timed_Select.
21398         New pragma Debug_Policy
21400         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
21401         explicitly.
21402         Switch -gnata also sets Debug_Pragmas_Enabled
21404         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
21405         handle an explicit -gnata when compiling predefined files.
21407 2005-09-01  Vincent Celier  <celier@adacore.com>
21409         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
21410         directories of projects that have no Ada sources.
21412 2005-09-01  Robert Dewar  <dewar@adacore.com>
21414         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
21415         (makes a difference for wide characters)
21417         * widechar.adb, widechar.ads:
21418         Add Wide_Char_Byte_Count feature to count chars vs bytes
21420 2005-09-01  Thomas Quinot  <quinot@adacore.com>
21421             Ed Schonberg  <schonberg@adacore.com>
21422             Robert Dewar  <dewar@adacore.com>
21424         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
21425         'Address attribute reference with an overloaded prefix, use the
21426         location of the prefix (not the location of the attribute reference) as
21427         the error location.
21428         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
21429         a function renaming thereof, is a valid prefix for 'Size (where it is
21430         intepreted as a function call).
21431         (Statically_Denotes_Entity): New predicate to determine whether the
21432         prefix of an array attribute can be considered static.
21434         PR ada/9087
21435         (Eval_Attr): Fix failure to evaluate Component_Size for
21436         unconstrained arrays (resulted in wrong value in packed case, since
21437         back end cannot handle this case)
21439 2005-09-01  Robert Dewar  <dewar@adacore.com>
21441         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
21442         error msgs for most common cases.
21443         Use new errout insertion char < (conditional warning)
21445 2005-09-01  Javier Miranda  <miranda@adacore.com>
21446             Ed Schonberg  <schonberg@adacore.com>
21448         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
21449         become local to the whole package.
21450         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
21451         the package was already analyzed the new algorithm "replaces" the
21452         real entities by the shadow ones. This is required to ensure that
21453         the order of these entities in the homonym chains does not change;
21454         otherwise we can have undefined references at linking time because
21455         in case of conflicts the external name of the entities will have
21456         a suffix that depends on the order of the entities in the chain.
21457         (Remove_Limited_With_Clause): Complementary code that completes the
21458         new algorithm and replaces the shadow entities by the real ones.
21459         (Install_Limited_Withed_Unit): When unchaining entities before the
21460         installation of the shadow entities, only regular entities of the
21461         public part must be taken into account. This is required to
21462         keep this routine in synch with the work done by Remove_Limited_
21463         With_Clause
21464         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
21465         even if unit is analyzed, because the analysis of the unit is
21466         idempotent in any case, and the limited view of the unit may have to
21467         be installed for proper visibility.
21468         (Expand_Limited_With_Clause): Even if the unit in the implicit
21469         with_clause has been analyzed already, a limited view of the package
21470         must be built for the current context, if it does not exist yet.
21472 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21473             Javier Miranda  <miranda@adacore.com>
21474             Gary Dismukes  <dismukes@adacore.com>
21476         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
21477         defining entity for the instance body, make a new defining identifier
21478         rather than copying the entity of the spec, to prevent accidental
21479         sharing of the entity list.
21480         (Check_Private_View): When exchanging views of private types, build the
21481         list of exchanged views as a stack, to ensure that on exit the exchanges
21482         are undone in the proper order.
21483         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
21484         Restore the compilation environment in case of instantiation_error.
21485         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
21486         for an anonymous access result.
21487         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
21488         (Formal_Entity): Handle properly the case of a formal package that
21489         denotes a generic package renaming.
21491 2005-09-01  Thomas Quinot  <quinot@adacore.com>
21493         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
21494         clause if the array aggregate is surrounded by parentheses.
21496 2005-09-01  Cyrille Comar  <comar@adacore.com>
21497             Gary Dismukes  <dismukes@adacore.com>
21498             Ed Schonberg  <schonberg@adacore.com>
21499             Javier Miranda  <miranda@adacore.com>
21501         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
21502         underlying type
21503         to check if a type is Constrained in cases related to code generation
21504         (rather than semantic checking) since otherwise we do not generate
21505         similar code for mutable private types depending if their
21506         discriminants are visible or not.
21507         (Check_Abstract_Overriding): Do not complain about failure to override
21508         the primitive operations used in dispatching selects since they will
21509         always be overriden at the freeze point of the type.
21510         (Access_Definition): Separate out handling for resetting the scope
21511         of an anonymous access function result type. Retrieve the scope
21512         of the associated function rather than using Current_Scope, which
21513         does not have a consistent value (depends on whether we're in the
21514         middle of analyzing formal parameters). Add ??? comment about
21515         finding a cleaner way to handle the special cases of scope setting.
21516         (Process_Incomplete_Dependents): A protected operation is never a
21517         dispatching operation (only its wrapper may be).
21518         (Build_Derived_Record_Type): In case of tagged private types that
21519         implement interfaces add derivation of predefined primitive
21520         operations.
21521         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
21522         by two parameters that are used in case of derivation from abstract
21523         interface types: No_Predefined_Prims is used to avoid the derivation
21524         of predefined primitives from the interface, and Predefined
21525         Prims_Only is used to complete the derivation predefined primitives
21526         in case of private tagged types implementing interfaces.
21527         Fix typo in comments
21528         (Find_Interface_In_Descendant): Protect the frontend against
21529         wrong code with large circularity chains.
21530         (Is_Private_Overriding): Add support for entities overriding interface
21531         subprograms. The test failed because Entities associated with overriden
21532         interface subprograms are always marked as hidden (and used to build
21533         the secondary dispatch table); in this case the overriden entity is
21534         available through the field abstract_interface_alias (cf. override_
21535         dispatching_operation)
21536         (Access_Definition): Set the scope of the type to Current_Scope for the
21537         case of a function with an anonymous access result type.
21538         (Access_Subprogram_Declaration): Handle creation of the type entity for
21539         an access-to-function type with an anonymous access result.
21540         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
21541         in handling for N_Access_Function_Definition.
21542         (Analyze_Subtype_Declaration): Modify the text of error message.
21543         (Derived_Type_Declaration): Modify the text of error message.
21544         (Process_Subtype): Modify the text of error message plus cleanup
21545         of one redundant error message.
21546         (Analyze_Component_Declaration): Code cleanup.
21547         (Analyze_Object_Declaration): Code cleanup.
21548         (Analyze_Subtype_Declaration): Propagate the null-exclusion
21549         attribute in case of access types. Code cleanup.
21550         (Array_Type_Declaration): Code cleanup.
21551         (Process_Discriminants): Create the new null-excluding itype
21552         if required. Code cleanup.
21553         (Process_Subtype): Create the new null-excluding itype if
21554         required. Code cleanup.
21555         (Build_Derived_Record_Type): Code cleanup to avoid calling
21556         twice the subprogram derive_subprograms in case of private
21557         types that implement interfaces. In this particular case the
21558         subprogram Complete_Subprograms_Derivation already does the
21559         job associated with the second call.
21561         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
21562         conversion to the full view when generating an operation for a
21563         discriminant whose type may currently be private.
21565 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21566             Javier Miranda  <miranda@adacore.com>
21568         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
21569         V (Obj.F), the rewriting does not involve the indexed component, but
21570         only the selected component itself.
21571         Do not apply the transformation if the analyzed node is an actual of a
21572         call to another subprogram.
21573         (Complete_Object_Operation): Retain the entity of the
21574         dispatching operation in the selector of the rewritten node. The
21575         entity will be used in the expansion of dispatching selects.
21576         (Analyze_One_Call): Improve location of the error message associated
21577         with interface.
21578         (Analyze_Selected_Component): No need to resolve prefix when it is a
21579         function call, resolution is done when parent node is resolved, as
21580         usual.
21581         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
21582         when attempting to resolve a call transformed from its object notation.
21583         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
21584         of the argument list for each interpretation of the operation.
21585         (Try_Object_Operation): The designated type of an access parameter may
21586         be an incomplete type obtained through a limited_with clause, in which
21587         case the primitive operations of the type are retrieved from its full
21588         view.
21589         (Analyze_Call): If this is an indirect call, and the return type of the
21590         access_to_subprogram is incomplete, use its full view if available.
21592 2005-09-01  Javier Miranda  <miranda@adacore.com>
21593             Gary Dismukes  <dismukes@adacore.com>
21595         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
21596         access types the null-exclusion and access-to-constant attributes must
21597         also match.
21598         (Analyze_Return_Statement): When the result type is an anonymous access
21599         type, apply a conversion of the return expression to the access type
21600         to ensure that appropriate accessibility checks are performed.
21601         (Analyze_Return_Type): For the case of an anonymous access result type,
21602         generate the Itype and set Is_Local_Anonymous_Access on the type.
21603         Add ??? placeholder for check to disallow returning a limited object
21604         in Ada 2005 unless it's an aggregate or a result of a function call.
21605         Change calls from Subtype_Mark to Result_Definition.
21606         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
21607         Result_Definition in call to Make_Function_Specification.
21608         (Build_Body_To_Inline): Change Set_Subtype_Mark to
21609         Set_Result_Definition.
21610         (Make_Inequality_Operator): Change formal Subtype_Mark to
21611         Result_Definition in call to Make_Function_Specification.
21612         (Process_Formals): Create the new null-excluding itype if required.
21613         (New_Overloaded_Entity): For an entity overriding an interface primitive
21614         check if the entity also covers other abstract subprograms in the same
21615         scope. This is required to handle the general case, that is, overriding
21616         other interface primitives and overriding abstract subprograms inherited
21617         from some abstract ancestor type.
21618         (New_Overloaded_Entity): For an overriding entity that comes from
21619         source, note the operation that it overrides.
21620         (Check_Conformance, Type_Conformant): Addition of one new formal
21621         to skip controlling formals in the analysis. This is used to
21622         handle overloading of abstract interfaces.
21623         (Base_Types_Match): Add missing case for types imported from
21624         limited-with clauses
21625         (New_Overloaded_Entity): Add barrier to protect the use of
21626         the "alias" attribute.
21628 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21630         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
21631         verify that the procedure and the entry are mode conformant.
21632         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
21633         as a different operator, which is often a cut-and-paste error.
21635 2005-09-01  Javier Miranda  <miranda@adacore.com>
21636             Ed Schonberg  <schonberg@adacore.com>
21638         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
21639         used in controlling parameters exclude null because it is necessary to
21640         read the tag to dispatch, and null has no tag.
21641         (Override_Dispatching_Operation): If the previous operation is inherited
21642         from an interface, it becomes hidden  and does not participate in later
21643         name resolution.
21645 2005-09-01  Javier Miranda  <miranda@adacore.com>
21646             Ed Schonberg  <schonberg@adacore.com>
21647             Gary Dismukes  <dismukes@adacore.com>
21649         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
21650         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
21651         the expander will generate the corresponding run-time check to evaluate
21652         the expression.
21653         (Resolve_Call): Check for legal type of procedure name or prefix that
21654         appears as a trigger in a triggering alternative.
21655         (Valid_Conversion): If expression is ambiguous and the context involves
21656         an extension of System, remove System.Address interpretations.
21657         (Resolve_Qualified_Expression): Reject the case of a specific-type
21658         qualification applied to a class-wide argument. Enhance comment
21659         to explain checking of Original_Node.
21660         (Resolve_Type_Conversion): The location of the error message was not
21661         general enough to handle the general case and hence it has been removed.
21662         In addition, this patch improves the text of the message.
21663         (Resolve_Type_Conversion): Add missing support for access to interface
21664         types.
21665         (Resolve_Type_Conversion): If the target is a class-wide interface type,
21666         do not expand if the expression is the actual in a call, because proper
21667         expansion will take place when the call itself is expanded.
21668         (Resolve_Allocator): If the context is an unchecked conversion, the
21669         allocator inherits its storage pool, if any, from the target type of
21670         the conversion.
21672 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21673             Javier Miranda  <miranda@adacore.com>
21675         * sem_type.adb (Add_One_Interp): If a candidate operation is an
21676         inherited interface operation that has an implementation, use the
21677         implementation to avoid spurious ambiguities.
21678         (Interface_Present_In_Ancestor): In case of concurrent types we can't
21679         use the Corresponding_Record_Typ attribute to look for the interface
21680         because it is set by the expander (and hence it is not always
21681         available). For this reason we traverse the list of interfaces
21682         (available in the parent of the concurrent type).
21683         (Interface_Present_In_Ancestor): Handle entities from the limited view
21685 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21687         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
21688         from the list of required components.
21689         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
21690         primitive procedure of a limited interface with a controlling first
21691         parameter.
21692         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
21693         of an entry.
21694         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
21695         capture if it is generated in the second operand of a short-circuit
21696         operation.
21697         Do not capture values for variables with address clauses.
21698         (Is_Object_Reference): Treat a function call as an object reference only
21699         if its type is not Standard_Void_Type.
21701 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
21703         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
21704         to a variable that is statically known to be constant.
21706 2005-09-01  Geert Bosch  <bosch@adacore.com>
21707             Robert Dewar  <dewar@adacore.com>
21709         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
21710         (VAXGF_Safe_First): Idem.
21712 2005-09-01  Robert Dewar  <dewar@adacore.com>
21713             Arnaud Charlet  <charlet@adacore.com>
21715         * g-dirope.ads: Minor reformatting
21716         Document that bounds of result of Base_Name match the input index
21717         positions.
21718         Add documentation on environment variable syntax for Expand_Path
21720         * gnat_ugn.texi: Update documentation to include mention of -m switches
21721         Document new treatment of wide characters in max line length
21722         style check.
21723         Remove -gnatL/-gnatZ switches, no longer used.
21724         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
21725         of -gnata switch.
21727         * gnat_rm.texi: Add doc for two argument form of pragma
21728         Float_Representation.
21729         Add documentation for pragma No_Strict_Aliasing
21730         Add note that explicit component clause overrides pragma Pack.
21731         Add documentation of pragma Debug_Policy
21733 2005-09-01  Matthew Heaney  <heaney@adacore.com>
21735         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
21736         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
21737         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
21738         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
21739         draft (Draft 13, August 2005) of Ada Amendment 1.
21741 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
21743         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
21744         Note that the platform-specific version of g-soccon.ads for VMS is now
21745         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
21746         really is a package spec).
21747         Replace s-taspri-linux.ads by s-taspri-posix.ads
21748         Remove references to s-mastop-x86.adb
21750         * system-vxworks-xscale.ads: Removed, no longer used.
21751         * s-vxwork-xscale.ads: Removed, no longer used.
21753 2005-09-01  Robert Dewar  <dewar@adacore.com>
21755         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
21756         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
21757         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
21758         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
21759         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
21760         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
21761         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
21762         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
21763         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
21764         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
21765         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
21766         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
21767         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
21768         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
21769         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
21770         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
21771         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
21772         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
21773         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
21774         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
21775         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
21777 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
21779         PR ada/23187
21780         * adaint.c
21781         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
21783 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
21784             Doug Rupp  <rupp@adacore.com>
21786         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
21787         when needed.
21788         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
21789         this code in the GNAT run-time.
21791         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
21793         PR ada/21053
21794         * init.c (__gnat_error_handler [many]): Mark "msg" as const
21795         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
21797         (__gnat_inside_elab_final_code): Moved here from
21798         Standard_Library and only defined for the compiler.
21799         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
21800         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
21801         using RTPs because directly vectored Interrupt routines are not
21802         supported on this configuration.
21803         (getpid): Do not redefine this function on VxWorks when using RTPs
21804         because this primitive is well supported by the RTP libraries.
21805         (copy_msg): Correct the code that checks for buffer overflow.
21806         Discovered during code reading.
21808 2005-08-29  Olivier Hainque  <hainque@adacore.com>
21810         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
21811         a library level mutable variable with an initializer, tell
21812         build_allocator to ignore the initializer's size. It may not be large
21813         enough for all the values that might be assigned to the variable later
21814         on.
21816 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
21817             Eric Botcazou  <ebotcazou@adacore.com>
21819         * trans.c: Protect < in error msg with quote
21820         Replace GCC_ZCX by Back_End_Exceptions.
21821         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
21822         has been sufficiently aligned in the record.
21824 2005-08-15  James E. Wilson  <wilson@specifix.com>
21826         * system-linux-alpha.ads: Change ia64 to alpha.
21828 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
21830         * decl.c, utils.c: Fix comment typos.
21832 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
21834         * decl.c, init.c, initialize.c: Fix comment typos.
21836 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
21838         Make CONSTRUCTOR use VEC to store initializers.
21839         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
21840         CONSTRUCTOR_ELTS.
21841         * trans.c (extract_values): Likewise.
21842         * utils.c (convert, remove_conversions): Likewise.
21843         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
21844         gnat_build_constructor): Likewise.
21846 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
21848         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
21849         DECL_SECTION_NAME.
21850         (compare_field_bitpos): Likewise.
21852 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
21854         * utils.c (create_var_decl): Only set DECL_COMMON on
21855         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
21856         VAR_OR_FUNCTION_DECL_P.
21858 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
21860         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
21861         removed.
21863 2005-07-07  Pascal Obry  <obry@adacore.com>
21865         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
21866         returned type on Windows.
21868         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
21869         routine.
21871         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
21872         exception in this case.
21873         Simplify the code as "Image (Image'Range)" = "Image".
21875 2005-07-07  Vincent Celier  <celier@adacore.com>
21877         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
21878         the destructor/constructor attributes for <lib>final/<lib>init.
21880         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
21882 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
21884         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
21885         type if the parameter is not passed by copy but reference by default.
21887 2005-07-07  Javier Miranda  <miranda@adacore.com>
21889         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
21890         Reimplementation of the support for abstract interface types in order
21891         to leave the code more clear and easy to maintain.
21893         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
21894         abstract interface types in order to leave the code clearer and easier
21895         to maintain.
21897         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
21898         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
21899         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
21900         appropriate entry of the secondary dispatch table.
21901         (Make_DT): Add code to inherit the secondary dispatch tables of
21902         the ancestors.
21904         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
21905         implementing both functionalities by means of a common routine, each
21906         routine has its own code.
21908 2005-07-07  Javier Miranda  <miranda@adacore.com>
21910         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
21912         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
21913         types:
21914         --
21915           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
21916         --
21918         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
21919         use of tag incomplete types.
21921         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
21922         give support to tagged incomplete types.
21924         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
21925         expression is a discriminant reference and its type is private, as can
21926         happen within a stream operation for a mutable record, use the full
21927         view of the type to resolve the case alternatives.
21928         (Analyze_Assignment): Check wrong dereference of incomplete types.
21930         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
21931         types.
21933         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
21934         incomplete types.
21936         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
21937         N_Incomplete_Type_Declaration nodes.
21939         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
21940         Tag_Present to give support to tagged incomplete types:
21941         --
21942           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
21943         --
21945 2005-07-07  Olivier Hainque  <hainque@adacore.com>
21947         PR ada/22301
21948         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
21949         definitions for the Unwind wrappers in the compiler case.
21951 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
21952             Javier Miranda  <miranda@adacore.com>
21954         * par-load.adb (Load): If a child unit is loaded through a limited_with
21955         clause, each parent must be loaded as a limited unit as well.
21957         * sem_ch10.adb (Previous_Withed_Unit): Better name for
21958         Check_Withed_Unit. Return true if there is a previous with_clause for
21959         this unit, whether limited or not.
21960         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
21961         the current unit.
21962         (Is_Visible_Through_Renamings): New local subprogram of install_limited
21963         _withed_unit that checks if some package installed through normal with
21964         clauses has a renaming declaration of package whose limited-view is
21965         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
21966         of the current Draft document for Ada 2005.
21967         (Analyze_Context): Complete the list of compilation units that
21968         are allowed to contain limited-with clauses. It also contains
21969         checks that were previously done by Install_Limited_Context_Clauses.
21970         This makes the code more clear and easy to maintain.
21971         (Expand_Limited_With_Clause) It is now a local subprogram of
21972         Install_Limited_Context_Clauses, and contains the code that adds
21973         the implicit limited-with clauses for parents of child units.
21974         This functionality was prevously done by Analyze_Context.
21976         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
21977         incomplete type.
21979         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
21980         been erroneously named in a limited-with clause of its own context.
21981         In this case the error has been previously notified by Analyze_Context.
21983 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
21985         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
21986         generic package that contains local declarations with the same name.
21987         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
21989 2005-07-07  Bernard Banner  <banner@adacore.com>
21991         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
21992         ia64 platform only on platforms that you the GCC unwind library
21993         rather than the system unwind library.
21995 2005-07-07  Thomas Quinot  <quinot@adacore.com>
21997         * expect.c: Minor reformatting
21999 2005-07-07  Sergey Rybin  <rybin@adacore.com>
22001         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
22002         --no-separate-is
22004         * gnat_ugn.texi: Add description for new gnatpp option
22005         (--no-separate-is)
22007 2005-07-04  Thomas Quinot  <quinot@adacore.com>
22009         * g-expect-vms.adb, g-expect.ads, g-expect.adb
22010         (Get_Command_Output): New subprogram to launch a process and get its
22011         standard output as a string.
22013 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
22014             Olivier Hainque  <hainque@adacore.com>
22016         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
22017         fetch a code-range descriptor associated with the machine state. On
22018         failure set the machine state's PC to 0; on success, pass the
22019         descriptor to exc_virtual_unwind.
22021         * init.c (Tru64 section): New function __gnat_set_code_loc.
22023 2005-07-04  Vincent Celier  <celier@adacore.com>
22025         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22026         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22027         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
22028         Remove all auto-initialization code, as this is now done through the
22029         constructor mechanism.
22031         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
22032         __gnat_sals_init_using_constructors): New functions.
22034         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
22035         Linker_Constructor and Linker_Destructor when switch -a is used.
22037         * bindusg.adb: Add line for new switch -a
22039         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
22040         (Gnatbind): When switch -a is used, check if it is allowed
22042         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
22044 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
22046         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
22047         This prevents us from hitting a limitation during the debug info
22048         generation when using stabs.
22049         (Prims_Ptr): Likewise.
22051 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
22052             Ed Schonberg  <schonberg@adacore.com>
22053             Javier Miranda  <miranda@adacore.com>
22055         * checks.adb (Null_Exclusion_Static_Checks): In the case of
22056         N_Object_Declaration, only perform the checks if the Object_Definition
22057         is not an Access_Definition.
22059         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
22060         where the parent of an the access definition is an N_Object_Declaration
22061         when determining the Associated_Node_For_Itype and scope of an
22062         anonymous access-to-subprogram type.
22064         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
22065         Corresponding_Spec on the body created for a null procedure. Add ???
22066         comment. Remove New_Copy_Tree call on body argument to
22067         Set_Body_To_Inline.
22069         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
22070         discriminants, use the type of the actual as well, because the
22071         discriminants may be read by the called subprogram.
22073         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
22074         access type we do not need to handle non-limited views.
22075         (Build_Derived_Record_Type): Additional check to check that in case of
22076         private types, interfaces are only allowed in private extensions.
22078 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
22080         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
22081         <Pragma_Linker_Destructor>: Likewise.
22083         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
22084         Pragma_Linker_Destructor.
22086         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
22087         ATTR_LINK_DESTRUCTOR.
22088         (static_ctors, static_dtors): New variables.
22090         * misc.c (gnat_expand_body): Output current function as constructor
22091         and destructor if requested.
22093         * par-prag.adb: Add processing for pragma Linker_Constructor and
22094         Linker_Destructor.
22096         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
22097         extracted from Check_Interrupt_Or_Attach_Handler.
22098         (Check_Interrupt_Or_Attach_Handler): Invoke it.
22099         Implement pragma Linker_Constructor and Linker_Destructor with the
22100         help of Find_Unique_Parameterless_Procedure.
22101         Replace Name_Alias with Name_Target for pragma Linker_Alias.
22103         * snames.h, snames.ads, snames.adb:
22104         Add Name_Linker_Constructor and Name_Linker_Destructor.
22105         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
22106         * snames.adb: Remove Name_Alias.
22108         * trans.c: Include cgraph.h.
22109         (build_global_cdtor): New function.
22110         (Compilation_Unit_to_gnu): Build global constructor and destructor if
22111         needed.
22112         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
22113         of objects too.
22114         (addressable_p) <COMPONENT_REF>: Unconditionally test
22115         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
22117         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
22118         variable if it is external.
22120         (static_ctors, static_dtors): New global variables.
22121         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
22122         <ATTR_LINK_DESTRUCTOR>: Likewise.
22123         (end_subprog_body): Chain function as constructor and destructor
22124         if requested.
22126         * exp_util.adb (Force_Evaluation): Unconditionally invoke
22127         Remove_Side_Effects with Variable_Ref set to true.
22128         (Remove_Side_Effects): Handle scalar types first. Use a renaming
22129         for non-scalar types even if Variable_Ref is true and for class-wide
22130         expressions.
22132 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22134         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
22135         to prevent spurious warnings.
22137 2005-07-04  Thomas Quinot  <quinot@adacore.com>
22139         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
22140         Itypes. Itypes are really unexpected there.
22141         (Build_TypeCode_Function): Generalise special processing for Itypes to
22142         handle the case of numeric implicit base types as well as enumerated
22143         ones.
22145 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22147         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
22148         controlled, indicate the expected type of the dereference that is
22149         created for the call to Deep_Finalize, to prevent spurious errors when
22150         the designated type is private and completed with a derivation from
22151         another private type.
22153 2005-07-04  Vincent Celier  <celier@adacore.com>
22155         * make.adb (Change_To_Object_Directory): When unable to change the
22156         current dir to the object directory, output the full path of the
22157         directory.
22159 2005-07-04  Matthew Gingell  <gingell@adacore.com>
22161         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
22163         * indepsw-linux.adb: Replace by...
22165         * indepsw-gnu.adb: ...this new file
22167 2005-07-04  Vincent Celier  <celier@adacore.com>
22169         * mlib-prj.adb (Auto_Initialize): New constant String
22170         (SALs_Use_Constructors): New Boolean function
22171         (Build_Library): Call gnatbind with Auto_Initialize switch when
22172         SALs_Use_Constructors returns True.
22174         * mlib-tgt.ads: Minor reformatting
22176         * mlib-utl.ads: Minor reformatting
22178         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
22180 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22182         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
22183         single protected declarations can have an interface list.
22184         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
22185         with seriously malformed entry declarations, and lead to compilation
22186         abandoned messages.
22188 2005-07-04  Javier Miranda  <miranda@adacore.com>
22190         * par-load.adb: Load the context items in two rounds.
22192 2005-07-04  Robert Dewar  <dewar@adacore.com>
22194         * scng.adb: Do not consider Mod used as an attribute to be a keyword
22196 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22197             Javier Miranda  <miranda@adacore.com>
22199         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
22200         type extension needs a limited view.
22201         Remove previous restriction on private types available through the
22202         limited-view (only tagged private types were previously allowed).
22203         (Install_Withed_Unit): In the code that implements the
22204         legality rule given in AI-377, exclude a child unit with the name
22205         Standard, because it is a homonym of the Standard environment package.
22207 2005-07-04  Thomas Quinot  <quinot@adacore.com>
22209         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
22210         overloaded function call, carry interpretations from the original tree
22211         to the copy.
22213 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22215         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
22216         types check whether some designated type is a limited view, and use
22217         the non-limited view if available.
22219 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
22221         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
22222         constraint of full view of a private view T1 if present, when T2 is a
22223         discriminated full view.
22225 2005-07-04  Thomas Quinot  <quinot@adacore.com>
22227         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
22228         actual that is a view conversion of a bit packed array reference.
22230 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22232         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
22233         present before checking whether an interface type covers a synchronized
22234         type.
22236 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
22238         * sem_util.adb (Is_Object_Reference): An indexed or selected component
22239         whose prefix is an implicit dereference is an object reference. Removes
22240         spurious errors when compiling with -gnatc.
22242 2005-07-04  Robert Dewar  <dewar@adacore.com>
22244         PR ada/22039
22245         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
22247 2005-07-04  Matthew Gingell  <gingell@adacore.com>
22249         * tracebak.c: Enable tracebacks on ia64 platforms
22251 2005-07-04  Vincent Celier  <celier@adacore.com>
22253         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
22254         the GNAT BIND command, as gnatbind accepts multiples ALI files with
22255         the -L or -n switches.
22257 2005-07-04  Vincent Celier  <celier@adacore.com>
22259         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
22260         correctly computed and the main project data is not modified while
22261         doing so.
22262         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
22263         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
22264         c++linker as this does not work on some platforms.
22266 2005-07-04  Matthew Heaney  <heaney@adacore.com>
22268         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
22269         was changed.
22270         * a-coinve.adb: Perform constraint checks explicitly.
22272 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22273             Thomas Quinot  <quinot@adacore.com>
22275         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
22276         new target gen-soccon.
22278 2005-07-04  Robert Dewar  <dewar@adacore.com>
22280         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
22282 2005-07-04  Thomas Quinot  <quinot@adacore.com>
22284         * g-socket.ads (Check_Selector): Minor rewording of comment.
22286 2005-07-04  Vincent Celier  <celier@adacore.com>
22288         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
22290 2005-07-04  Thomas Quinot  <quinot@adacore.com>
22292         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
22294 2005-07-04  Sergey Rybin  <rybin@adacore.com>
22296         * gnat_ugn.texi: Add description of --eol gnatpp option
22298 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
22299             Thomas Quinot  <quinot@adacore.com>
22301         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
22302         if the user wants all calls of a subprogram to be flagged,
22303         independently of whether they are made from within the same unit or
22304         another unit.
22305         Mention restriction for pragma Linker_Alias on some platforms.
22306         Document pragma Linker_Constructor and Linker_Destructor.
22307         Rewrite documentation of Weak_External, Linker_Section and
22308         Linker_Alias pragmas.
22310 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
22312         * s-stausa.ads, s-stausa.adb: New files.
22314 2005-06-30  Kelley Cook
22316         * all files:  Update FSF address in copyright headers.
22317         * gen-soccon.co (main): Output new FSF address in generated files.
22319 2005-06-28  Paul Brook  <paul@codesourcery.com>
22321         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
22323 2005-06-14  Olivier Hainque  <hainque@adacore.com>
22324             Eric Botcazou  <ebotcazou@adacore.com>
22326         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
22327         exc_unwind, now that we are generating proper .debug_frame output for
22328         that target.
22330         * tracebak.c: Remove the mips-irix section, as we are now using the
22331         s-mastop based unwinder again.
22332         Under SPARC/Solaris, take into account the stack bias to compute the
22333         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
22334         ABI.
22336 2005-06-14  Doug Rupp  <rupp@adacore.com>
22338         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
22340         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
22342 2005-06-14  Pascal Obry  <obry@adacore.com>
22344         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
22345         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
22346         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
22347         package name).
22349         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
22350         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
22351         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
22352         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22353         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
22354         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
22355         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
22356         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
22357         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
22358         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
22359         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
22360         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
22361         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
22362         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
22363         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
22364         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
22365         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
22366         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
22367         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
22368         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
22369         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
22370         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
22371         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
22372         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
22373         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
22374         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
22375         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
22376         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
22377         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
22378         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
22379         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
22380         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
22381         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
22382         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
22383         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
22384         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
22385         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
22386         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
22387         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
22388         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
22389         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
22390         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
22391         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
22392         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
22393         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
22394         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
22395         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
22396         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
22397         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
22398         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
22399         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22400         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
22401         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
22402         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
22403         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
22404         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22405         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
22406         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
22407         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
22408         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
22409         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
22410         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
22411         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
22412         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
22413         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
22414         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
22415         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
22416         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
22417         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
22418         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
22419         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
22420         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
22421         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
22422         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
22423         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
22424         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
22425         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
22426         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
22427         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
22428         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
22429         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
22430         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
22431         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
22432         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
22433         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
22434         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
22435         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
22436         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
22437         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
22438         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
22439         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
22440         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
22441         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
22442         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
22443         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
22444         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
22445         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
22446         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
22447         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
22448         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
22449         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
22450         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
22451         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
22452         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
22453         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
22454         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
22455         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
22456         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
22457         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
22458         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
22459         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
22460         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
22461         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
22462         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
22463         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
22464         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
22465         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
22466         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
22467         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
22468         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
22469         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
22470         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
22471         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
22472         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
22473         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
22474         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
22475         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
22476         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
22477         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
22478         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
22479         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
22480         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
22481         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
22483 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
22484             Arnaud Charlet  <charlet@adacore.com>
22486         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
22487         longer protected objects. They have been replaced by lower-level
22488         suspension objects made up by a mutex and a condition variable (or
22489         their equivalent given a particular OS) plus some internal data to
22490         reflect the state of the suspension object.
22491         (Initialize, Finalize): Add this initialization procedure for
22492         Suspension_Object, which is a controlled type.
22493         (Finalize): Add the finalization procedure for Suspension_Object,
22494         which is a controlled type.
22496         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
22497         Ada.Synchronous_Task_Control because there is no longer a need for a
22498         VxWorks specific version of this package. Target dependencies
22499         has been moved to System.Task_Primitives.Operations.
22501         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
22502         longer needed.
22503         (InitializeCriticalSection, EnterCriticalSection,
22504         LeaveCriticalSection, DeleteCriticalSection): Replace the type
22505         pCriticalSection by an anonymous access type so that we avoid problems
22506         of accessibility to local objects.
22508         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
22509         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
22510         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
22511         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
22512         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
22513         set the environment task mask here.
22514         (Current_State): Add this function that returns the state of the
22515         suspension object.
22516         (Set_False): Add this procedure that sets the state of the suspension
22517         object to False.
22518         (Set_True): Add this procedure that sets the state of the suspension
22519         object to True, releasing the task that was suspended, if any.
22520         (Suspend_Until_True): Add this procedure that blocks the calling task
22521         until the state of the object is True. Program_Error is raised if
22522         another task is already waiting on that suspension object.
22523         (Initialize): Add this procedure for initializing the suspension
22524         object. It initializes the mutex and the condition variable which are
22525         used for synchronization and queuing, and it sets the internal state
22526         to False.
22527         (Finalize): Add this procedure for finalizing the suspension object,
22528         destroying the mutex and the condition variable.
22530         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
22531         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
22532         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
22533         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
22534         which provides a low-level abstraction (using operating system
22535         primitives) for Ada.Synchronous_Task_Control.
22536         This object is made up by a mutex (for ensuring mutual exclusion), a
22537         condition variable (for queuing threads until the condition is
22538         signaled), a Boolean (State) indicating whether the object is open,
22539         and a Boolean (Waiting) reflecting whether there is a task already
22540         suspended on this object.
22542         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
22543         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
22544         s-intman-vms.ads, s-intman-mingw.adb,
22545         (Initialize_Interrupts): Removed, no longer used.
22547         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
22548         (Setup_Interrupt_Mask): New procedure.
22550         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
22552         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
22554         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
22555         this is no longer done in the body of s-taprop
22556         (Server_Task): Explicitely test for Pending_Action in case
22557         System.Parameters.No_Abort is True.
22559         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
22560         is no longer done in the body of s-taprop
22562 2005-06-14  Robert Dewar  <dewar@adacore.com>
22564         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
22565         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
22566         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22567         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
22568         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
22569         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
22570         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
22571         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
22572         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
22573         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
22574         system-linux-hppa.ads, system-vms_64.ads,
22575         system-vxworks-alpha.ads: Minor comment update for
22576         AI-362 (unit is Pure).
22578         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
22579         Add pragma Pure_05 for AI-362
22580         Make remaining conversion functions obsolescent in Ada 95
22582         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22583         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
22584         Add entries for a-wichun and a-zchuni
22585         Add a-widcha a-zchara for AI-395
22586         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
22588         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22589         Add entries for a-wichun.o and a-zchuni.o
22590         Entries for a-widcha.o and a-zchara.o
22591         Add entry for a-chacon.o
22593         * a-ztenau.adb: Add with of Ada.Characters.Conversions
22595         * a-chacon.ads, a-chacon.adb: New files.
22597         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
22598         categorization violations.
22600         * a-strmap.ads: Add pragma Pure_05 for AI-362
22601         * a-strmap.ads: Add note on implicit categorization for AI-362
22603         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
22605         * par-prag.adb: Dummy entry for pragma Persistent_BSS
22606         Set Ada_Version_Explicit, for implementation of AI-362
22607         Add processing for pragma Pure_05 and Preelaborate_05
22608         Add entry for Assertion_Policy pragma
22610         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
22611         when needed for proper processing of categorization stuff
22613         * sem_cat.adb:
22614         For several cases, make errors in preealborate units warnings,
22615         instead of errors, if GNAT_Mode is set. For AI-362.
22617         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
22618         preelaborate unit is now warning if in GNAT mode
22620         * s-stoele.ads: Document AI-362 for pragma preelaborate
22622 2005-06-14  Doug Rupp  <rupp@adacore.com>
22624         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
22625         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
22626         Default_Exception_Msg_Max_Length: new parameter.
22628         * a-except.ads: (Exception_Msg_Max_Length): Set to
22629         System.Parameters.Default_Exception_Msg_Max_Length
22630         Add pragma Preelaborate_05 for AI-362
22631         Add warnings off to allow categorization violations for AI-362
22633 2005-06-14  Vincent Celier  <celier@adacore.com>
22635         * gnatsym.adb: Adapt to modification of package Symbols: procedure
22636         Process is now in package Processing.
22638         * symbols.ads, symbols.adb:
22639         (Processing): New package, containing procedure Process
22641         * symbols-vms-alpha.adb:
22642         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
22644         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
22645         symbols-processing-vms-ia64.adb: New files.
22647 2005-06-14  Pascal Obry  <obry@adacore.com>
22649         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
22650         implementation. This new version generates the proper DllMain routine
22651         to initialize the SAL. The DllMain is generated in Ada and compiled
22652         before being added as option to the library build command.
22654 2005-06-14  Doug Rupp  <rupp@adacore.com>
22655             Pascal Obry  <obry@adacore.com>
22657         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
22658         call to decc$translate_vms.
22659         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
22660         need to remove those quotes before catenating the filename.
22661         (__gnat_locate_exec_on_path): improvements to the Win32 section:
22662         * avoid allocating the memory twice for better efficiency;
22663         * allocate 32K buffer for environment expansion as suggested by MSDN;
22664         * prepend ".;" to the path so that current directory is searched too.
22666 2005-06-14  Robert Dewar  <dewar@adacore.com>
22668         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
22669         instead of raising CE (AI-241)
22670         Add warnings off to allow categorization violations for AI-362
22672 2005-06-14  Robert Dewar  <dewar@adacore.com>
22674         * ali-util.adb, gnatbind.adb: Remove references to
22675         Force_RM_Elaboration_Order.
22677         * switch-b.adb: Remove recognition of -f switch
22679 2005-06-14  Pascal Obry  <obry@adacore.com>
22681         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
22682         implementation which is slightly more efficient.
22684 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
22685             Javier Miranda  <miranda@adacore.com>
22686             Ed Schonberg  <schonberg@adacore.com>
22687             Hristian Kirtchev  <kirtchev@adacore.com>
22689         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
22690         allocator's designated type is a class-wide type, and compiling for
22691         Ada 2005, emit a run-time check that the accessibility level of the
22692         type given in the allocator's expression is not deeper than the level
22693         of the allocator's access type.
22695         (Tagged_Membership): Modified to gives support to abstract interface
22696         types.
22698         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
22699         Access_Level.
22700         (Descendant_Tag): New predefined function
22701         (Is_Descendant_At_Same_Level): New predefined function
22702         (Get_Access_Level): New private function
22703         (Set_Access_Level): New private procedure
22704         (IW_Membership): New function. Given the tag of an object and the tag
22705         associated with an interface, evaluate if the object implements the
22706         interface.
22707         (Register_Interface_Tag): New procedure used to initialize the table of
22708         interfaces used by the IW_Membership function.
22709         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
22710         of the dispatch table.
22711         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
22712         table of interfaces of the parent.
22713         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
22714         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
22715         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
22716         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
22717         Ada 2005 semantics for the new predefined function.
22719         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
22720         call to Descendant_Tag rather than Internal_Tag.
22721         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
22722         the accessibility level of the attribute's Item parameter is not deeper
22723         than the level of the attribute's prefix type. Tag_Error is raised if
22724         the check fails. The check is only emitted for Ada_05.
22725         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
22726         requested stream attribute, use it.
22727         (Expand_N_Attribute_Reference): If the designated type is an interface
22728         then rewrite the referenced object as a conversion to force the
22729         displacement of the pointer to the secondary dispatch table.
22730         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
22731         is a dereference of an object with a constrained partial view.
22733         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
22734         type is a class-wide type, emit a run-time check that the accessibility
22735         level of the returned object is not deeper than the level of the
22736         function's master (only when compiling for Ada 2005).
22738         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
22739         Action_Nb_Arg): Add entries for new Get_Access_Level and
22740         Set_Access_Level routines in these tables.
22741         (Make_DT): Generate a call to set the accessibility level of the
22742         tagged type in its TSD.
22743         (Make_DT): Code cleanup. The functionality of generating all the
22744         secondary dispatch tables has been moved to freeze_record_type.
22745         (Make_Abstract_Interface_DT): Minor code cleanup.
22746         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
22747         this subprogram implements a new algorithm that provides the
22748         same functionality and it is more clear in case of primitives
22749         associated with abstract interfaces.
22750         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
22751         clean up, the functionality of this subprogram is now provided
22752         by Set_All_DT_Position.
22753         (Write_DT): New subprogram: a debugging procedure designed to be called
22754         within gdb to display the dispatch tables associated with a tagged
22755         type.
22756         (Collect_All_Interfaces): New subprogram that collects the whole list
22757         of interfaces that are directly or indirectly implemented by a tagged
22758         type.
22759         (Default_Prim_Op_Position): New subprogram that returns the fixed
22760         position in the dispatch table of the default primitive operations.
22761         (Expand_Interface_Actuals): New subprogram to generate code that
22762         displaces all the actuals corresponding to class-wide interfaces to
22763         reference the interface tag of the actual object.
22764         (Expand_Interface_Conversion): New subprogram. Reference the base of
22765         the object to give access to the interface tag associated with the
22766         secondary dispatch table.
22767         (Expand_Interface_Thunk): New subprogram that generates the code of the
22768         thunk. This is required for compatibility with the C+ ABI.
22769         (Make_Abstract_Interface_DT): New subprogram that generate the
22770         declarations for the secondary dispatch tables associated with an
22771         abstract interface.
22772         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
22773         attribute for each primitive operation covering interface subprograms
22774         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
22775         These subprograms were upgraded to give support to abstract interfaces
22777         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
22778         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
22779         RE_Set_Access_Level.
22780         (RE_Unit_Table): Add entries for new Ada.Tags operations.
22781         Add support to call the followig new run-time subprograms:
22782         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
22784         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
22785         match its full declaration when both have an access definition with
22786         statically matching designated subtypes.
22787         (Analyze_Component_Declaration): Delete commented out code that was
22788         incorrectly setting the scope of an anonymous access component's type.
22789         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
22790         an access discriminant when the containing type is nonlimited.
22791         (Make_Incomplete_Type_Declaration): Create an incomplete type
22792         declaration for a record type that includes self-referential access
22793         components.
22794         (Check_Anonymous_Access_Types): Before full analysis of a record type
22795         declaration, create anonymous access types for each self-referential
22796         access component.
22797         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
22798         an access component in this context is a Local_Anonymous_Access, for
22799         proper accessibility checks.
22800         (Access_Definition): Set properly the scope of the anonymous access type
22801         created for a stand-alone access object.
22802         (Find_Type_Of_Object): An object declaration may be given with an access
22803         definition.
22804         (Complete_Subprograms_Derivation): New subprogram used to complete
22805         type derivation of private tagged types implementing interfaces.
22806         In this case some interface primitives may have been overriden
22807         with the partial-view and, instead of re-calculating them, they
22808         are included in the list of primitive operations of the full-view.
22809         (Build_Derived_Record_Type): Modified to give support to private
22810         types implemening interfaces.
22811         (Access_Definition): Reject ALL on anonymous access types.
22812         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
22813         type derivation to occur at a deeper accessibility level than the
22814         parent type.
22815         For the case of derivation within a generic body however, disallow the
22816         derivation if the derived type has an ancestor that is a formal type
22817         declared in the formal part of an enclosing generic.
22818         (Analyze_Object_Declaration): For protected objects, remove the check
22819         that they cannot contain interrupt handlers if not declared at library
22820         level.
22821         (Add_Interface_Tag_Components): New subprogram to add the tag components
22822         corresponding to all the abstract interface types implemented by a
22823         record type or a derived record type.
22824         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22825         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22826         Process_Full_View, Record_Type_Declaration): Modified to give
22827         support to abstract interface types
22828         (Collect_Interfaces): New subprogram that collects the list of
22829         interfaces that are not already implemented by the ancestors
22830         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
22831         when partial view has no discriminants and full view has defaults.
22832         (Constrain_Access): Reject a constraint on a general access type
22833         if the discriminants of the designated type have defaults.
22834         (Access_Subprogram_Declaration): Associate the Itype node with the inner
22835         full-type declaration or subprogram spec. This is required to handle
22836         nested anonymous declarations.
22837         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22838         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22839         Process_Full_View, Record_Type_Declaration): Modified to give
22840         support to abstract interface types
22841         (Derive_Subprograms): Addition of a new formal to indicate if
22842         we are in the case of an abstact-interface derivation
22843         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
22844         to the specification because it is requied to analyze all the
22845         identifiers found in a list of interfaces
22847         * debug.adb: Complete documentation of flag "-gnatdZ"
22849         * exp_ch3.adb: Implement config version of persistent_bss pragma
22850         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
22851         testing for TSS presence to properly enforce visibility rules.
22852         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
22853         Make_Abstract_Interfaces_DT to generate the secondary tables
22854         associated with abstract interfaces.
22855         (Build_Init_Procedure): Modified to initialize all the tags
22856         corresponding.
22857         (Component_Needs_Simple_Initialization): Similar to other tags,
22858         interface tags do not need initialization.
22859         (Freeze_Record_Type): Modified to give support to abstract interface
22860         types.
22861         (Expand_N_Object_Declaration): Do not generate an initialization for
22862         a scalar temporary marked as internal.
22864         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
22865         in-out parameter that is a component in an initialization procedure,
22866         whose constraint might depend on discriminants, and that may be
22867         misaligned because of packing or representation clauses.
22868         (Is_Legal_Copy): New predicate to determine whether a possibly
22869         misaligned in-out actual can actually be passed by copy/return. This
22870         is an error in case the type is by_reference, and a warning if this is
22871         the consequence of a DEC import pragma on the subprogram.
22872         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
22873         interface types
22874         (Expand_Inlined_Call): Mark temporary generated for the return value as
22875         internal, so that no useless scalar normalization is generated for it.
22876         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
22877         null procedure can always be inlined.
22878         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
22879         procedure, generate an explicit empty body for it.
22881         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
22882         Given a type implementing an interface, returns the corresponding
22883         access_disp_table value.
22884         (Find_Interface_Tag): New subprogram. Given a type implementing an
22885         interface, returns the record component containing the tag of the
22886         interface.
22887         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
22888         previous ones that return the corresponding tag and access_disp_table
22889         entities.
22890         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
22891         is a predefined primitive operation.
22892         (Expand_Subtype_From_Expr): If the expression is a selected component
22893         within an initialization procedure, compute its actual subtype, because
22894         the component may depend on the discriminants of the enclosing record.
22896         * i-cpp.ads, i-cpp.adb:
22897         This package has been left available for compatibility with previous
22898         versions of the frontend. As part of the new layout this is now a
22899         dummy package that uses declarations available at a-tags.ads
22901         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
22902         "constant access" and "aliased [constant] access" when not compiling
22903         with -gnat05.
22904         Suppress Ada 2005 keyword warning if -gnatwY used
22905         (P_Identifier_Declarations): Add support for object declarations with
22906         access definitions.
22907         (Private_Extension_Declaration): Complete the documentation
22908         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
22909         attribute in case of private extension declaration
22910         (P_Type_Declaration): Mark as "abstract" the type declarations
22911         corresponding with protected, synchronized and task interfaces
22912         (P_Declarative_Items): "not" and "overriding" are overriding indicators
22913         for a subprogram or instance declaration.
22915         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
22916         instantiation that is a dispatching operation has controlling access
22917         parameters that are null excluding.
22918         Save and restore Ada_Version_Explicit, for implementation of AI-362
22919         (Validate_Derived_Type_Instance): Add check for abstract interface
22920         types.
22921         (Analyze_Formal_Package): Establish Instantiation source for the copy of
22922         the generic that is created to represent the formal package.
22923         (Analyze_Package_Instantiation): Instantiate body immediately if the
22924         package is a predefined unit that contains inlined subprograms, and
22925         we are compiling for a Configurable_Run_Time.
22926         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
22927         If the program has a null default, generate an empty body for it.
22929         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
22930         error message condition, null procedures are correctly detected now.
22931         (New_Overloaded_Entity): Bypass trivial overriding indicator check
22932         for subprograms in the context of protected types. Instead, the
22933         indicator is examined in Sem_Ch9 while analysing the subprogram
22934         declaration.
22935         (Check_Overriding_Indicator): Check consistency of overriding indicator
22936         on subprogram stubs as well.
22937         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
22938         the library level.
22939         (Analize_Subprogram_Specification): When analyzing a subprogram in which
22940         the type of the first formal is a concurrent type, replace this type
22941         by the corresponding record type.
22942         (Analyze_Subprogram_Body): Undo the previous work.
22943         (Analyze_Procedure_Call): If the call has the form Object.Op, the
22944         analysis of the prefix ends up analyzing the call itself, after which
22945         we are done.
22946         (Has_Interface_Formals): New subprogram subsidiary to analyze
22947         subprogram_specification that returns true if some non
22948         class-wide interface subprogram is found
22949         (New_Overloaded_Entity): Modified to give support to abstract
22950         interface types
22951         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
22952         access to subprograms must be recursive.
22953         (Is_Unchecked_Conversion): Improve the test that recognizes
22954         instantiations of Unchecked_Conversion, and allows them in bodies that
22955         are to be inlined by the front-end. When the body comes from an
22956         instantiation, a reference to Unchecked_Conversion will be an
22957         Expanded_Name, even though the body has not been analyzed yet.
22958         Replace Is_Overriding and Not_Overriding in subprogram_indication with
22959         Must_Override and Must_Not_Override, to better express intent of AI.
22960         (Analyze_Subprogram_Body): If an overriding indicator is given, check
22961         that it is consistent with the overrinding status of the subprogram
22962         at this point.
22963         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
22964         always inlined.
22965         If the subprogram is a null procedure, indicate that it does not need
22966         a completion.
22968         * sem_disp.adb (Check_Controlling_Type): Give support to entities
22969         available through limited-with clauses.
22970         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
22971         allowed as the last primitive of a tagged type if it has no previous
22972         spec.
22973         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
22974         to give support to abstract interface types
22976         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
22977         in the case where the target type is an anonymous access type of an
22978         object or component (that is, when Is_Local_Anonymous_Access is true).
22979         Prevent the special checks for conversions of access discriminants in
22980         the case where the discriminant belongs to a nonlimited type, since
22981         such discriminants have their accessibility level defined in the same
22982         way as a normal component of an anonymous access type.
22983         (Resolve_Allocator): When an allocator's designated type is a class-wide
22984         type, check that the accessibility level of type given in the
22985         allocator's expression or subtype indication is not statically deeper
22986         than the level of the allocator's access type.
22987         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
22988         name in a discriminant constraint of a record component.
22989         (Resolve_Explicit_Dereference): Do not check whether the type is
22990         incomplete when the dereference is a use of an access discriminant in
22991         an initialization procedure.
22992         (Resolve_Type_Conversion): Handle conversions to abstract interface
22993         types.
22994         (Valid_Tagged_Conversion): The conversion of a tagged type to an
22995         abstract interface type is always valid.
22996         (Valid_Conversion): Modified to give support to abstract interface types
22997         (Resolve_Actuals): Enable full error reporting on view conversions
22998         between unrelated by_reference array types.
22999         The rule for view conversions of arrays with aliased components is
23000         weakened in Ada 2005.
23001         Call to obsolescent subprogram is now considered to be a violation of
23002         pragma Restrictions (No_Obsolescent_Features).
23003         (Check_Direct_Boolean_Operator): If the boolean operation has been
23004         constant-folded, there is nothing to check.
23005         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
23006         check on possible violation of restriction No_Direct_Boolean_Operators
23007         until after expansion of operands, to prevent spurious errors when
23008         operation is constant-folded.
23010         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
23011         Has_Compatible_Type): Modified to give support to abstract interface
23012         types.
23013         (Interface_Present_In_Ancestor): New function to theck if some ancestor
23014         of a given type implements a given interface
23016         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
23017         prefix is a parameterless function that returns an access_to_procedure.
23018         (Transform_Object_Operation): Handle properly function calls of the
23019         form Obj.Op (X), which prior to analysis appear as indexed components.
23020         (Analyze_One_Call): Complete the error notification to help new Ada
23021         2005 users.
23022         (Analyze_Allocator): For an allocator without an initial value, where
23023         the designated type has a constrained partial view, a discriminant
23024         constraint is illegal.
23026 2005-06-14  Robert Dewar  <dewar@adacore.com>
23028         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
23029         do with treatment of Set_Col when positioned at end of line character.
23031 2005-06-14  Robert Dewar  <dewar@adacore.com>
23033         * atree.adb: (Elist*): Protect against uninitialized field
23035 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23037         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
23038         for an attribute reference that returns an access type.
23039         (Apply_Discriminant_Check): No need for check if (designated) type has
23040         constrained partial view.
23042         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
23043         both bound checks, rather than a conjunction.
23044         (Insert_Valid_Check): If the expression is an actual that is an indexed
23045         component of a bit-packed array, force expansion of the packed element
23046         reference, because it is specifically inhibited elsewhere.
23048 2005-06-14  Vincent Celier  <celier@adacore.com>
23050         * clean.adb (Clean_Project): Correctly delete executable specified as
23051         absolute path names.
23053         * make.adb (Gnatmake): Allow relative executable path names with
23054         directory information even when project files are used.
23055         (Change_To_Object_Directory): Fail gracefully when unable to change
23056         current working directory to object directory of a project.
23057         (Gnatmake): Remove exception handler that could no longer be exercized
23058         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
23059         may be deallocated by Normalize_Arguments.
23060         (Collect_Arguments): Eliminate empty arguments
23062         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
23063         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
23064         (Check_Project): Return False when Project is No_Project. Return True
23065         when All_Projects is True.
23066         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
23067         All_Projects to True.
23068         Minor reformatting
23070 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23071             Javier Miranda  <miranda@adacore.com>
23072             Thomas Quinot  <quinot@adacore.com>
23073             Robert Dewar  <dewar@adacore.com>
23074             Hristian Kirtchev  <kirtchev@adacore.com>
23075             Gary Dismukes  <dismukes@adacore.com>
23077         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
23078         anonymous access types, to indicate that the accessibility level of
23079         the type is determined by that of the enclosing declaration.
23080         (Has_Persistent_BSS): New flag
23081         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
23082         of this attribute with functions.
23083         (Is_Primitive_Wrapper): Remove the barrier.
23084         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
23085         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
23086         New subprograms.
23087         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
23088         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
23089         New subprograms.
23090         (Is_Pure_Unit_Access_Type): New flag
23091         (Abstract_Interfaces): Complete the assertion to cover all usages.
23092         (Set_Is_Interface): Complete the assertion to cover all usages.
23093         (Is_Primitive_Wrapper): New attribute.
23094         (Is_Obsolescent): Now applies to all entities (though it is only set
23095         for subprograms currently)
23096         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
23097         which solves various problems concerning access subtypes.
23098         (Has_Persistent_BSS): New flag
23099         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
23100         Remove these subprograms because this attribute is currently
23101         not used.
23102         New entity flags:
23103         Has_Specified_Stream_Input (Flag190)
23104         Has_Specified_Stream_Output (Flag191)
23105         Has_Specified_Stream_Read (Flag192)
23106         Has_Specified_Stream_Write (Flag193)
23107         Present in all type and subtype entities. Set for a given view if the
23108         corresponding stream-oriented attribute has been defined by an
23109         attribute definition clause. When such a clause occurs, a TSS is set
23110         on the underlying full view; the flags are used to track visibility of
23111         the attribute definition clause for partial or incomplete views.
23112         (Is_Pure_Unit_Access_Type): New flag
23113         Clarify use of Is_Internal.
23114         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
23115         internally generated to wrap the invocation of tasks and protected
23116         types that implement interfaces.
23117         (Implementation_Base_Type): Documentation correction
23118         (Is_Obsolescent): Now applies to all entities (though it is only set
23119         for subprograms currently)
23120         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
23121         which solves various problems concerning access subtypes.
23123         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
23124         for examined parameters. Identify unequal parameter list lengths as
23125         non-conformant parameters.
23126         (Overriding_Possible): Do not check for "All" qualifier in declaration
23127         of controlling access parameter, following prescription of AI-404.
23128         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
23129         that build the procedure body that wraps an entry invocation
23130         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
23131         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
23132         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
23133         give support to abstract interface types
23135         * freeze.adb (Freeze_Entity): Issue error message if
23136         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
23137         type has no storage pool (Ada 2005) AI-366.
23138         Also modified to give support to abstract interface types
23139         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
23140         Inline_Always pragma.
23142         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
23143         now begin an entry declaration.
23144         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
23145         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
23146         a subprogram declaration preceded by an overriding indicator.
23147         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
23148         declarations or subprogram declarations preceded by reserved words
23149         "not" or "overriding".
23150         (P_Entry_Declaration): Update comment. Parse and check overriding
23151         indicator, set semantic flags of entry declarations.
23152         (P_Task): New error message in case of private applied
23153         to a task type declaration.
23154         (P_Protected): New error message in case of private applied
23155         to a task type declaration.
23157         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
23158         in which the full view of a type implementing an interface is a
23159         concurrent type.
23160         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
23161         Declare_Inherited_Private_Subprograms): If an explicit operation
23162         overrides an operation that is inherited in the private part, mark the
23163         explicit one as overriding, to enable overriding indicator checks.
23164         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
23165         full view to partial view, to simplify handling in back-end.
23167         * sprint.adb: Print interface lists where needed: derived types,
23168         protected types, task types.
23169         output "is null" for null procedures. Part of implementation of
23171         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
23172         relaxation of rules for access types in pure, shared passive partitions.
23174         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
23175         first read discriminants into temporary objects, performing checks on
23176         the read values, then possibly performing discriminant checks on the
23177         actual (if it is constrained), and only finally reading the components
23178         into a constrained temporary object.
23179         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
23180         case of reading discriminants of a mutable record type to recognize
23181         the new form of the code generated by
23182         Build_Mutable_Record_Read_Procedure.
23184         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
23185         of a simple call to Make_TSS_Name.
23186         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
23187         buffer, in order for Is_TSS to work correctly on local TSS names.
23189         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
23190         Is_Local_Anonymous_Access to check legaliy of attributes in the
23191         context of  access components and stand-alone access objects.
23192         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
23193         treated as available for a limited private type if there is an
23194         attribute_definition_clause that applies to its full view, but not in
23195         other cases where the attribute is available for the full view
23196         (specifically, the sole fact that the full view is non-limited does not
23197         make the attribute available for the partial view).
23198         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
23199         non-overloaded intrinsic subprogram.
23200         (Check_Stream_Attribute): Reject an attribute reference for an
23201         unavailable stream attribute even if the prefix is not a limited type
23202         (case of a 'Input attribute reference for an abstract, non-classwide
23203         type)
23204         (Stream_Attribute_Available): New function to determine whether a stream
23205         attribute is available at a place.
23206         (Check_Attribute): Use Stream_Attribute_Available instead of just
23207         testing for TSS presence on the implementation base type.
23208         (Analyze_Attribute): Modified to give support to task interfaces.
23209         (Analyze_Access_Attribute): Add error check for use of an Access (or
23210         Unrestricted_Access) attribute with a subprogram marked as
23211         Inline_Always.
23212         (Analyze_Attribute, case Attribute_Address): Add error check for use of
23213         an Address attribute with a subprogram marked as Inline_Always.
23214         Update Eval_Attribute to handle new value of Width from AI-395
23216         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
23217         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
23218         Factor common code across the stream-oriented attribute circcuits into
23219         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
23220         processing is functionally identical to the previous duplicated one,
23221         except that an expression that denotes an abstract subprogram will now
23222         be rejected, as mandated by AI-195 item 5.
23224         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
23225         Is_Local_Anonymous_Access to apply accessibility checks to access
23226         components and stand-alone access objects.
23227         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
23228         elsewhere.
23229         (Is_Potentially_Persistent_Type): New function
23230         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
23231         a heap-object whose type has a constrained partial view, the object is
23232         unconstrained and the component may depend on a discriminant, making its
23233         renaming illegal.
23235         * sinfo.ads, sinfo.adb
23236         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
23237         (Must_Override): Flag applicable to N_Entry_Declaration.
23238         Indicate that interface_list can appear in single task and single
23239         protected declarations.
23240         Replace Is_Overriding and Not_Overriding with Must_Override and
23241         Must_Not_Override, to better express intent of AI.
23242         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
23243         of an overriding indicator in a subprogram or instance.
23244         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
23245         Add the overriding indicator [[not] overriding] construct to the
23246         following grammar productions:
23247          ENTRY_DECLARATION
23248          GENERIC_INSTANTIATION
23249          SUBPROGRAM_SPECIFICATION
23251         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
23252         can start with an overriding indicator.
23254         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
23255         flags accordingly on subrogram specifications or instances.
23257         * sem_ch8.adb:
23258         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
23259         overriding_indicator, if present, is consistent with status of spec.
23260         Improve error message for null-excluding checks on controlling access
23261         parameters.
23262         (Check_In_Previous_With_Clause): Protect the frontend against
23263         previously reported critical errors in the context clauses.
23264         Save and restore Ada_Version_Explicit, for implementation of AI-362
23265         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
23266         operation verify that controlling formals of the renamed entity that
23267         are access parameters are explicitly non-null.
23268         (Find_Expanded_Name): Improve error message when prefix is an illegal
23269         reference to a private child unit.
23271         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
23272         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
23273         Rewrite to correspond to new wide character names in AI-395
23275         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
23276         default procedures.
23278 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23279             Robert Dewar  <dewar@adacore.com>
23281         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
23282         code, not on the bodies of predefined operations, to cut down on
23283         spurious noise.
23285 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23287         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
23288         be expanded in place. The size computation does not require a
23289         subtraction, which would raise an exception on a compiler built with
23290         assertions when the upper bound is Integer'first.
23291         (Flatten): For an array of composite components, take into account the
23292         size of the components to determine whether it is safe to expand the
23293         array into a purely positional representation.
23295 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23297         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
23298         denoting a formal parameter into account.
23300 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23302         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
23303         the entry_call alternative of a conditional entry call, wrap the
23304         conditional entry call itself.
23306 2005-06-14  Nicolas Setton  <setton@adacore.com>
23307             Ed Schonberg  <schonberg@adacore.com>
23309         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
23310         the "simple_choice" member in a variant record, in accordance with the
23311         description in the package spec: the information output for a constant
23312         should be "S number", not "SS number".
23313         (Get_Encoded_Name): Return at once if not generating code. Avoids name
23314         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
23316 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23318         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
23319         RACW without any primitives, do not generate the if statement for
23320         dispatching by name in the PolyORB/DSA case, as it would be malformed
23321         (it would have an Elsif_Parts list that is not No_List, but with a
23322         length of 0).
23324 2005-06-14  Robert Dewar  <dewar@adacore.com>
23326         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
23328 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
23330         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
23331         can determine whether pragma Suppress_Exception_Locations is in effect.
23333         * utils2.c (build_call_raise): Do not pass the file name to the
23334         exception handler if pragma Suppress_Exception_Locations is in effect.
23335         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
23337 2005-06-14  Emmanuel Briot  <briot@adacore.com>
23339         * g-debpoo.adb (Deallocate, Dereference): Improve output.
23341 2005-06-14  Nicolas Roche  <roche@adacore.com>
23343         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
23344         to ""
23345         (Next_Level): Fix minor bug in handling of ../dir case
23346         (Read): Add dir separator to Directory name so that "" is understood as
23347          "/"
23349 2005-06-14  Pascal Obry  <obry@adacore.com>
23351         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
23352         releasing the items.
23354 2005-06-14  Vincent Celier  <celier@adacore.com>
23355             Cyrille Comar  <comar@adacore.com>
23357         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
23358         with output file descriptor and with output file name.
23359         (Dup, Dup2): Now global procedures as they are used by two subprograms
23360         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
23362 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23364         PR ada/6717
23365         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
23366         broadcast address.
23367         (Create_Selector): Bind listening socket used to create the signalling
23368         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
23369         Set listen backlog to 1 to ensure that we detect socket theft by a
23370         failure of our own connect(2) call.
23371         (Check_Selector): Improve documentation of the selector mechanism.
23372         (Broadcast_Inet_Addr): New constant.
23374 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
23376         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
23377         type which turns out to be an incomplete and incorrect fix.
23378         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
23379         of the type is declared in a record (for determination of insertion
23380         type).
23381         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
23382         a private type and ensure that the primary entity is used for the type
23383         of the newly created function's V formal by taking the Etype of the
23384         view.
23386 2005-06-14  Javier Miranda  <miranda@adacore.com>
23387             Jose Ruiz  <ruiz@adacore.com>
23388             Robert Dewar  <dewar@adacore.com>
23389             Ed Schonberg  <schonberg@adacore.com>
23391         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
23392         that indicates if we are parsing a compilation unit found in a
23393         limited-with clause.
23394         It is use to avoid the circularity check.
23396         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
23397         we are parsing a compilation unit found in a limited-with clause. This
23398         is use to avoid the circularity check.
23400         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
23401         unit as a consequence of parsing a limited-with clause. This is used
23402         to avoid the circularity check.
23404         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
23405         (Analyze_Context): Limited-with clauses are now allowed
23406         in more compilation units.
23407         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
23408         againts previously reported critical errors in context clauses
23409         (Install_Limited_Withed_Unit): Code cleanup plus static detection
23410         of two further errors: renamed subprograms and renamed packages
23411         are not allowed in limited with clauses.
23412         (Install_Siblings): Do not install private_with_clauses on the package
23413         declaration for a non-private child unit.
23414         (Re_Install_Parents): When a parent of the subunit is reinstalled,
23415         reset visibility of child units properly.
23416         (Install_Withed_Unit): When a child unit appears in a with_clause of its
23417         parent, it is immediately visible.
23419 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23420             Emmanuel Briot  <briot@adacore.com>
23422         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
23423         declared within an inlined body as referenced, to prevent spurious
23424         warnings.
23425         (Output_One_Ref): If an entity renames an array component, indicate in
23426         the ALI file that this aliases (renames) the array. Capture as well
23427         function renamings that rename predefined operations.
23428         Add information about generic parent for package and subprogram
23429         instances.
23430         (Get_Type_Reference): For a subtype that is the renaming of an actual in
23431         an instantiation, use the first_subtype to ensure that we don't generate
23432         cross-reference information for internal types.
23433         For objects and parameters of a generic private type, retain the '*'
23434         indicator to distinguish such an entity from its type.
23436         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
23437         to store information about instantiated entities.
23439         * ali.adb (Scan_ALI): Add support for parsing the reference to the
23440         generic parent
23442         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
23443         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
23444         information.
23446 2005-06-10  Doug Rupp  <rupp@adacore.com>
23447             Arnaud Charlet  <charlet@adacore.com>
23448             Olivier Hainque  <hainque@adacore.com>
23449             Jose Ruiz  <ruiz@adacore.com>
23451         * Make-lang.in: Add initialize.o when needed.
23452         Remove obsolete references to RT_FLAGS.
23453         Add missing dependencies for sdefault.o
23455         * initialize.c: New file.
23457         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
23458         [VMS] cond_signal_table: Fix problem in declaration.
23459         [VMS] __gnat_error_handler: rewrite.
23460         Move all __gnat_initialize() routines to initialize.c
23461         Specialize the former "hpux" section to "hppa hpux", as this is what the
23462         section really is here for and we now have other hpux ports that need
23463         different contents.
23464         (__gnat_adjust_context_for_raise) i386-linux: First version of this
23465         function for this target. Adjust PC by one in the machine context. This
23466         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
23467         it is more reliable to do that in the signal handler itself.
23468         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
23469         flags, so that the handler is passed the context structure to adjust
23470         prior to the raise.
23471         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
23472         SA_SIGINFO sigaction should look like. Call
23473         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
23474         Machine_State_Operations stuff.
23475         Add conditional code so that the x86_64 is also supported.
23477 2005-06-14  Pascal Obry  <obry@adacore.com>
23479         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
23480         the library name.
23482 2005-06-14  Robert Dewar  <dewar@adacore.com>
23484         * opt.ads, opt.adb: New flags for persistent_bss mode
23485         Add Ada_Version_Explicit, for implementation of AI-362
23486         Add Assertions_Enabled_Config and associated handling
23487         Needed since setting can be changed with Assertion_Policy pragma
23488         Add new flag Warn_On_Ada_2005_Compatibility
23490         * switch-c.adb: Recognize -gnatwy/Y
23491         Set Ada_Version_Explicit, for implementation of AI-362
23492         The -gnatg switch now includes -gnatyu
23494         * usage.adb: Add -gnatwy/Y
23495         Remove wrong asterisk on -gnatwX line
23496         Add line for -gnatyu switch
23498 2005-06-14  Vincent Celier  <celier@adacore.com>
23500         * osint.adb (Add_Default_Search_Dirs): Put source and object
23501         directories of project files before directories coming from
23502         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
23504 2005-06-14  Robert Dewar  <dewar@adacore.com>
23506         PR ada/15613
23507         * par-ch2.adb (Scan_Pragma_Argument): New procedure
23508         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
23510 2005-06-14  Vincent Celier  <celier@adacore.com>
23512         * prep.adb (Preprocess): Ignore error when scanning the first token of
23513         a line.
23515 2005-06-14  Vincent Celier  <celier@adacore.com>
23517         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
23518         (Check_Stand_Alone_Library): If the specified reference symbol file does
23519         not exist, only issue a warning when the symbol policy is not
23520         Controlled. And, when symbol policy is Compliant, set the symbol
23521         policy to Autonomous.
23523 2005-06-14  Vincent Celier  <celier@adacore.com>
23525         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
23526         when the project file in a with clause is not the last one, that is the
23527         project file name is followed by a comma.
23528         * prj-pp.adb: (First_With_In_List): New Boolean global variable
23529         (Print): Issue list of project files separated by commas in with clauses
23530         according to the values returned by Is_Not_Last_In_List.
23531         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
23532         (Set_Is_Not_Last_In_List): New procedure
23534 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
23536         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
23538 2005-06-14  Robert Dewar  <dewar@adacore.com>
23540         * scng.adb: Add call to new Check_EOF routine
23541         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
23542         Add some comments regarding wide character handling
23544         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
23546         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
23548         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
23549         characters are now considered graphic characters and hence yield false
23550         in this call.
23552         * nmake.adt: Modify header so that xnmake does not generate output
23553         files with multiple blank lines.
23555         * treeprs.adt: Remove a blank line so that output from xtreeprs does
23556         not have an extra blank line
23558 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
23560         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
23561         expression when the component type is an anonymous access type to
23562         ensure that appropriate accessibility checks are done.
23564         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
23565         expression of an assignment when the target object is of an anonymous
23566         access type. This ensures that required accessibility checks are done.
23567         (One_Bound): Move the check for type Universal_Integer to
23568         Process_Bounds.
23569         (Process_Bounds): Check whether the type of the preanalyzed range is
23570         Universal_Integer, and in that case set Typ to Integer_Type prior
23571         to setting the type of the original range and the calls to One_Bound.
23573 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23575         * sem_case.adb (Expand_Others_Choice): Improve warning.
23577 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23579         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
23580         constraint of full view if present, when other type is discriminated.
23581         (Eval_Relational_Op): Recognize tests of pointer values against Null,
23582         when the pointer is known to be non-null, and emit appropriate warning.
23584 2005-06-14  Robert Dewar  <dewar@adacore.com>
23585             Ed Schonberg  <schonberg@adacore.com>
23587         PR ada/10671
23588         * sem_prag.adb: Implement pragma Persistent_BSS
23589         Remove obsolete pragma Persistent_Data, Persistent_Object
23590         Set Ada_Version_Explicit, for implementation of AI-362
23591         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
23592         Add processing for pragma Pure_05 and Preelaborate_05
23593         Add processing for Assertion_Policy pragma
23594         Add pragma identifiers for Assert
23595         (Analyze_Pragma, case Assert): Check number of arguments
23596         (Process_Inline): Additional guard against an illegal program, where the
23597         argument of the pragma is undefined, and warnings on redundant
23598         constructs are enabled.
23599         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
23600         Ada_05 to this pragma, specifying that the pragma is only active in
23601         Ada_05 mode.
23602         (Check_Arg_Order): New procedure
23603         Add appropriate calls to this procedure throughout
23604         Also throughout, check entity name before doing any other checks
23606         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
23607         Remove obsolete pragma Persistent_Data, Persistent_Object
23608         Add entries for pragma Pure_05 and Preelaborate_05
23609         Add entries for Assertion_Policy pragma and associated names
23610         Add some names for pragma argument processing
23612         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
23614 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
23616         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
23617         appears within a negation (either from source or as a rewriting of
23618         inequality) adjust text of warning accordingly.
23620 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23622         * s-strxdr.adb: Follow AI95-00132
23624 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
23626         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
23628 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
23629             Jose Ruiz  <ruiz@adacore.com>
23631         * s-tposen.adb, s-tpobop.adb
23632         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
23633         the exception id.
23634         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
23635         there is no violation of the Max_Entry_Queue_Length restriction (if it
23636         has been set); Program_Error is raised otherwise.
23637         (Requeue_Call): Before requeuing the task on the target entry queue we
23638         check that there is no violation of the Max_Entry_Queue_Length
23639         restriction (if it has been set); Program_Error is raised otherwise.
23641 2005-06-14  Robert Dewar  <dewar@adacore.com>
23643         * styleg.adb: Fix several remaining problems in -gnatyu switch
23644         Blank line count not reset at start
23645         Scanning outside source buffer in some cases
23646         Confusing message for blanks at end of file
23647         Non-empty blank lines not recognized
23649         * nmake.adt: Modify header so that xnmake does not generate output
23650         files with multiple blank lines.
23652         * treeprs.adt: Remove a blank line so that output from xtreeprs does
23653         not have an extra blank line
23655 2005-06-14  Sergey Rybin  <rybin@adacore.com>
23657         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
23659 2005-06-14  Doug Rupp  <rupp@adacore.com>
23660             Vincent Celier  <celier@adacore.com>
23662         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
23663         Update copyright.
23665         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23666         Remove "Library" command.
23667         Change keyword for style check -gnatyd from NOCRLF to
23668         DOS_LINE_ENDINGS.
23669         Remove useless second style check keyword NONE
23670         Remove help documentation for inexistent style check keyword
23671         RM_COLUMN_LAYOUT.
23672         Add help documentation for style check keywords DOS_LINE_ENDINGS,
23673         UNNECESSARY_BLANK_LINES and XTRA_PARENS
23674         Add UNNECESSARY_BLANK_LINES for -gnatyu
23675         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
23677         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23679 2005-06-14  Vincent Celier  <celier@adacore.com>
23681         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
23682         gprmake was invoked with -d.
23683         (Compile_Sources): If -d was used, output the "completed ..." message
23684         for each compilation.
23685         (Scan_Arg): Recognize new switch -d
23686         When -c and at least one main is specified, set
23687         Unique_Compile to True to guarantee that no other sources will be
23688         compiled.
23690 2005-06-14  Matthew Heaney  <heaney@adacore.com>
23692         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
23693         * a-swuwha.ads, a-swuwha.adb: New files
23695         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
23696         * a-szuzha.ads, a-szuzha.adb: New files.
23698         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
23699         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
23700         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
23701         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
23702         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
23703         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
23704         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
23705         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
23706         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
23707         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
23708         Ada 2005 RM.
23710 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
23711             Olivier Hainque  <hainque@adacore.com>
23712             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23713             Pascal Obry  <obry@adacore.com>
23715         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
23717         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
23718         making a temporary around a procedure call because of non-addressable
23719         actual parameter.
23720         (process_freeze_entity): If entity is a private type, capture size
23721         information that may have been computed for the full view.
23722         (tree_transform, case N_Allocator): If have initializing expression,
23723         check type for Has_Constrained_Partial_View and pass that to
23724         build_allocator.
23725         (tree_transform, case N_Return_Statement): Pass extra arg to
23726         build_allocator.
23728         * decl.c (annotate_value): Remove early return if -gnatR is not
23729         specified.
23730         (gnat_to_gnu_field): Don't make a packable type for a component clause
23731         if the position is byte aligned, the field is aliased, and the clause
23732         size isn't a multiple of the packable alignment. It serves no useful
23733         purpose packing-wise and would be rejected later on.
23734         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
23736         PR ada/20515
23737         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
23738         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
23739         instead.
23740         (create_concat_name): Idem.
23742 2005-06-10  Robert Dewar  <dewar@adacore.com>
23743             Eric Botcazou  <ebotcazou@adacore.com>
23744             Ben Brosgol  <brosgol@adacore.com>
23745             Cyrille Comar  <comar@adacore.com>
23746             Sergey Rybin  <rybin@adacore.com>
23747             Pascal Obry  <obry@adacore.com>
23749         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
23750         Document second argument (Ada_05) of pragma Obsolescent
23751         Add note that call to subprogram marked with pragma Obsolescent
23752         is now considered to be a violation of program Restrictions
23753         (No_Obsolescent_Features).
23754         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
23755         that only machine-dependent attributes are supported.
23757         * gnat_ugn.texi:
23758         Commented out menu lines and empty section for gnatclean examples
23759         Document -gnatwy/Y
23760         Fix some over long lines
23761         Clarify and enhance documentation of ADA_PROJECT_PATH.
23762         Rework section 2.11.2(3) about linking with a non-GNU compiler.
23763         Mention new switch -fcallgraph-info.
23764         Mention new switch -fstack-usage.
23765         For gnatpp, replace '-notab' with '-N' and add this option to Index
23766         Corrected VMS example.
23767         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
23768         Minor reformatting
23769         Add documentation for -gnatyu switch (unnecessary blank lines)
23770         Document new switch -U for GNAT PRETTY and GNAT METRIC
23771         Add note about Stdcall being handled as C convention on non Windows OS.
23772         Remove some junk typo in description of gnatbind -S switch
23773         Remove reference to Extensions_Allowed pragma
23774         Document the new order of the directories to be searched (source and
23775         object directories of project files before directories in ADA_*_PATH
23776         environment variables.
23778         * g-trasym.ads: Document that IRIX is supported
23780 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
23782         * Makefile.in: Add initialize.o when needed.
23783         Adapt to new VMS package body Symbols and subunits
23784         No specialized version of a-sytaco is needed for VxWorks.
23786         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
23787         * a-zchara.ads, a-widcha.ads: New files.
23789         * system-hpux-ia64.ads: New file.
23791         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
23792         is imported from the VxWorks kernel.
23794 2005-06-14  Robert Dewar  <dewar@adacore.com>
23796         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
23797         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
23798         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
23799         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
23800         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
23801         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
23802         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
23803         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
23804         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
23805         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
23806         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
23807         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
23809 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23811         * xeinfo.adb: Fix typo in comment
23813 2005-06-14  Javier Miranda  <miranda@adacore.com>
23815         * repinfo.ads: Fix typo in comment
23817 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
23819         * s-finimp.adb (Parent_Tag): Delete this imported function (function
23820         Parent_Tag is now in the visible part of Ada.Tags).
23821         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
23822         using imported function.
23824 2005-06-14  Bernard Banner  <banner@adacore.com>
23826         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
23827         also apply for handling support for VxSim 653.
23829 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
23831         * xsnames.adb: Add automatic generation of snames.h.
23833 2005-06-14  Thomas Quinot  <quinot@adacore.com>
23835         * gen-soccon.c: Add IP_MULTICAST_IF constant
23836         Minor reformatting and adjustments to prevent warnings.
23838 2005-06-14  Pascal Obry  <obry@adacore.com>
23840         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
23842 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
23844         * trans.c (gnat_gimplify_expr): Call
23845         recompute_tree_invarant_for_addr_expr when we change
23846         the operand of the ADDR_EXPR.
23848 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23850         * misc.c: Don't include errors.h.
23852 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23854         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
23856 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
23858         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
23859         comment typos.
23860         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
23862 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
23864         PR ada/20270
23865         * Makefile.in: Make TGT_LIB behave correctly.
23867 2005-04-23  DJ Delorie  <dj@redhat.com>
23869         * misc.c: Adjust warning() callers.
23871 2005-04-16  Laurent Guerby  <laurent@guerby.net>
23873         PR ada/18847
23874         * a-nudira.adb (Value): Check for valid string.
23875         * a-nuflra.adb (Value): Likewise.
23877 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
23879         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
23881 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
23883         * adaint.c, init.c, tracebak.c: Fix comment typos.
23884         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
23886 2005-04-07  Laurent Guerby  <laurent@guerby.net>
23887             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23889         * Makefile.in: Add make ifeq define for hppa linux tasking support.
23890         * system-hpux.ads: Define Signed_Zeros to be True.
23891         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
23893 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
23895         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
23896         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
23897         typos.
23899 2005-03-30  Tom Tromey  <tromey@redhat.com>
23901         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
23903 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
23905         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
23907 2005-03-29  Robert Dewar  <dewar@adacore.com>
23909         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
23910         fixed-point expression has value that is not a multiple of the Small
23911         value.
23913         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
23915         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
23916         nanoseconds.
23918         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
23920 2005-03-29  Vincent Celier  <celier@adacore.com>
23922         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
23923         (Build_Dynamic_Library.Version_String): Return the empty string when
23924         Lib_Version is empty or when the symbol policy is not Autonomous.
23926         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
23927         a symbol is not in the reference symbol file, increase the Major ID
23928         and set the Minor ID to 0.
23929         Use gsmatch=lequal instead of gsmatch=equal
23931 2005-03-29  Doug Rupp  <rupp@adacore.com>
23933         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
23934         name and translate.
23936 2005-03-29  Javier Miranda  <miranda@adacore.com>
23938         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
23939         (Inherit_DT): The first formal has been redefined as a Tag.
23940         This allows us the removal of the subprogram Get_TSD.
23941         (TSD): Replace the call to Get_TSD by the actual code.
23943         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
23944         (Make_DT): Upgrade the call to Inherit_TSD according to the
23945         new interface: the first formal is now a Tag.
23947         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
23948         redefined as a Tag.
23949         This change allows us to remove the subprogram Get_TSD.
23950         (CPP_Get_TSD): Subprogram removed.
23951         (TSD): Replace the call to CPP_Get_TSD by the actual code.
23953         * rtsfind.ads: Remove support to call the run-time
23954         subprogram Get_TSD
23956 2005-03-29  Robert Dewar  <dewar@adacore.com>
23958         * errutil.adb, errout.adb:
23959         Minor comment updates on Line_Terminator references
23961         * par-ch10.adb: Add ??? comment about line terminator
23963         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
23964         (check dos line terminator).
23965         (Check_Line_Max_Length): New procedure, split off from the existing
23966         Check_Line_Terminator routine. Separating this out allows -gnatyf to
23967         be properly recognized.
23969         * styleg.adb: Add ??? comment for line terminator reference
23971         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
23972         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
23974         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
23975         (check dos line terminator).
23976         (Check_Line_Max_Length): New procedure, split off from the existing
23977         Check_Line_Terminator routine. Separating this out allows -gnatyf to
23978         be properly recognized.
23980         * stylesw.ads, stylesw.adb:
23981         Add handling for new -gnatyd switch (check dos line terminator)
23983         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
23984         Recognize -gnatwb/-gnatwB switches
23985         Include Warn_On_Bad_Fixed_Value for -gnatg
23987         * usage.adb:
23988         Add line for new -gnatyd switch (check dos line terminator)
23990         * usage.adb: Add lines for -gnatwb/-gnatwB
23992         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
23994         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
23996         * gnat_ugn.texi: Fix overlong lines
23997         Document new -gnatyd switch
23998         Document new -gnatwb/-gnatwB switches
24000 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
24002         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
24003         order to retrieve the component list of the type, before examining
24004         individual components.
24006         * sem_type.adb (Covers): Types are compatible if one is the base type
24007         of the other, even though their base types might differ when private
24008         views are involved.
24010 2005-03-29  Thomas Quinot  <quinot@adacore.com>
24012         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
24013         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
24014         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
24015         analyzed if expansion is disabled (which could otherwise cause spurious
24016         error messages if expansion has been disabled due to previous
24017         (unrelated) errors).
24019         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
24020         is disabled, the entity denoted by the argument is the access type
24021         itself, not an underlying record type, so there is no need to go back
24022         to the Corresponding_Remote_Type.
24024 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
24025             Robert Dewar  <dewar@adacore.com>
24027         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
24028         expand a call to an instance of
24029         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
24030         Constructor actual of the instance. A class-wide membership
24031         check is also generated, to ensure that the tag passed to the instance
24032         denotes a type in the class.
24033         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
24034         of Name_Generic_Dispatching_Constructor.
24036         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
24037         05 unit for AI-260-02).
24039         * a-tgdico.ads: New file.
24041         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
24042         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
24044         * snames.ads, snames.adb (Preset_Names): Add entry for
24045         Generic_Dispatching_Constructor.
24047         PR ada/20300
24048         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
24049         character type cases.
24050         (Analyze_Subprogram_Renaming): Add special handling for
24051         the case of renaming of stream attributes when the renaming denotes a
24052         generic formal subprogram association for an abstract formal subprogram.
24053         Check that the attribute is a primitive stream attribute (and not
24054         a class-wide stream attribute) and then rewrite the attribute name
24055         as the name of the appropriate compiler-generated stream primitive.
24057 2005-03-29  Robert Dewar  <dewar@adacore.com>
24059         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
24060         recursive calls.
24061         (Is_Possibly_Unaligned_Object): Correct typo that
24062         resulted in inaccurate result for unaligned scalars within records.
24064 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
24066         * freeze.adb (Freeze_Record_Type): If the type of the component is an
24067         itype whose parent is controlled and not yet frozen, do not create a
24068         freeze node for the itype if expansion is disabled.
24070 2005-03-29  Vincent Celier  <celier@adacore.com>
24072         * make.adb (Gnatmake): Don't fail if the main project file is declared
24073         as having no Ada sources. Do not display message "no sources to
24074         compile" in quiet output.
24076 2005-03-29  Doug Rupp  <rupp@adacore.com>
24078         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
24079         extra tools.
24081 2005-03-29  Robert Dewar  <dewar@adacore.com>
24083         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
24084         child.
24086 2005-03-29  Robert Dewar  <dewar@adacore.com>
24088         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
24089         missing TYPE Improve the error message generated when compiling a
24090         limited interface in Ada83 or Ada95 mode.
24092 2005-03-29  Robert Dewar  <dewar@adacore.com>
24094         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
24095         rather than proceed ahead using a junk attribute name.
24097 2005-03-29  Vincent Celier  <celier@adacore.com>
24099         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
24101         * prj-part.adb (Parse_Single_Project): Set the location of a project
24102         on its defining identifier, rather than on the reserved word "project".
24104         * prj-proc.adb (Expression): Adapt to the fact that default of external
24105         references may be string expressions, not always literal strings.
24106         (Recursive_Process): Set Display_Name equal to Name
24107         when Location is No_Location, that is when there is no actual file.
24108         Get the Display_Name of the project from the source, when it is not a
24109         virtual project.
24110         (Process): Use the Display_Name in error messages
24112         * prj-strt.adb (External_Reference): Allow default to be string
24113         expressions, not only literal strings.
24115 2005-03-29  Vincent Celier  <celier@adacore.com>
24117         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
24118         file and the reference symbol file to be the same file.
24120 2005-03-29  Thomas Quinot  <quinot@adacore.com>
24122         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
24123         forbid conversion of a local access-to-subprogram type to a remote one.
24125         * sem_util.adb (Wrong_Type): For a record type that is the expanded
24126         equivalent type for a remote access-to-subprogram type, go back to the
24127         original RAS entity when displaying an error message, so the casing is
24128         the original source casing.
24130 2005-03-29  Robert Dewar  <dewar@adacore.com>
24132         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
24133         on param update.
24135 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
24137         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
24138         subtype if code is being pre-analyzed, to prevent un-expanded
24139         references to protected formals, among others.
24140         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
24141         interpretation that can be a call, include the result of the call as a
24142         possible interpretation of the dereference.
24144         * sem_ch5.adb (Process_Bounds): Determine type of range by
24145         pre-analyzing a copy of the original range, and then analyze the range
24146         with the expected type.
24148         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
24149         with an overloaded prefix where not all interpretations yield an
24150         access to subprogram, do not rewrite node as a call.
24151         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
24152         the node as a call once the context identifies the interpretation of
24153         the prefix whose call yields the context type.
24154         (Valid_Conversion): For the case of a conversion between
24155         local access-to-subprogram types, check subtype conformance using
24156         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
24157         detailed error message.
24159 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
24161         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
24162         indicator, indicate that the formal can never be null.
24163         (Process_Formals): If a formal has a non_null indicator, insert the
24164         resulting subtype immediately before the enclosing subprogram decl,
24165         and not at the beginning of the corresponding declarative part, to
24166         prevent access before elaboration (Ada2005).
24168 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24170         PR ada/19956
24171         * utils.c (finish_record_type): Use variable_size when setting sizes.
24173 2005-03-29  Robert Dewar  <dewar@adacore.com>
24175         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
24176         guarantee Unix style line terminators for the output files, even when
24177         running on windows.
24179 2005-03-29  Robert Dewar  <dewar@adacore.com>
24181         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
24182         buffer if an exception is raised.
24184 2005-03-29  Ed Falis  <falis@adacore.com>
24186         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
24187         VxWorks 653 1.4
24189 2005-03-29  Robert Dewar  <dewar@adacore.com>
24191         * sem_util.ads: Minor reformatting
24192         * gnat_rm.texi: Minor editing.
24194 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
24196         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
24197         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
24199 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
24201         * adaint.c (__gnat_portable_spawn): Adjust cast.
24203 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
24205         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
24207 2005-03-17  Pascal Obry  <obry@adacore.com>
24209         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
24210         used.
24212         * expect.c (__gnat_waitpid): Moved here from adaint.c.
24213         Reimplement under Win32 using Win32 API.
24215         (__gnat_kill) [Win32]: Properly close the process handle before leaving
24216         this routine.
24218 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
24220         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
24221         (DECL_RENAMED_OBJECT): New accessor macro.
24222         (SET_DECL_RENAMED_OBJECT): New setter macro.
24224         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
24225         object in all cases.  Attach the renamed object to the VAR_DECL.
24226         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
24227         field is not prescribed.
24229         * misc.c (gnat_handle_option): Handle -gnatO separately.
24230         (gnat_print_decl) <VAR_DECL>: New case.
24231         Print the DECL_RENAMED_OBJECT node.
24233         * lang.opt:  Declare separate -gnatO option.
24235         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
24236         pointer, replace it with the renamed object.
24237         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
24238         pointer type if the source is not a fat pointer type whose underlying
24239         array has the same non-zero alias set as that of the destination array.
24241 2005-03-17  Javier Miranda  <miranda@adacore.com>
24243         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
24244         (Get_Inheritance_Depth): Removed.
24245         (Set_Inheritance_Depth): Removed.
24247         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
24248         subprogram Get_Expanded_Name because it is not referenced by the
24249         frontend.
24251         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
24252         (CPP_Get_Inheritance_Depth): Removed.
24253         (CPP_Set_Inheritance_Depth): Removed.
24255         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
24257 2005-03-17  Robert Dewar  <dewar@adacore.com>
24259         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
24260         3, since we now expect GCC 3 to do all the work.
24262 2005-03-17  Javier Miranda  <miranda@adacore.com>
24264         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
24265         of one barrier to avoid wrong usage of this attribute.
24267         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
24268         First_Private_Entity.
24270         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
24271         the subprogram against wrong usage.
24272         Adapt the code to traverse the entities in the
24273         scope of a record_type because in addition to its usage regarding
24274         packages, this subprogram is also called by Expand_N_Freeze_Entity
24275         to install the visible declarations of the enclosing scope of a
24276         record_type_with_private to establish the proper visibility before
24277         freezing the entity and related subprograms.
24279 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
24281         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
24282         entry formals.
24284 2005-03-17  Thomas Quinot  <quinot@adacore.com>
24286         * exp_ch3.adb (Check_Attr): New subprogram.
24287         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
24288         into a new Check_Attr subprogram, in order to provide a more
24289         explanatory error message (including the name of the missing attribute).
24290         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
24291         subprogram determines whether a default implementation exists for a
24292         given stream attribute.
24293         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
24294         Determine whether to generate a default implementation for each stream
24295         attribute separately, as this depends on the specific attribute.
24297         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
24298         limited extension where a stream attribute is missing for a limited
24299         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
24300         generate a bogus reference to the missing attribute to prevent
24301         cascaded errors. Instead, generate a null statement.
24303         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
24304         available for a limited type if it has been specified for an ancestor
24305         of the type.
24307 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
24309         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
24310         entity is an operator.
24312 2005-03-17  Thomas Quinot  <quinot@adacore.com>
24314         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24315         spec, to make this predicate available to other units.
24317         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
24318         reimplementing it.
24320         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
24321         when no distribution runtime library is available.
24323         * sem_res.adb, sem_dist.adb: Disable expansion of remote
24324         access-to-subprogram types when no distribution runtime library is
24325         available.
24326         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
24327         predicate available to other units.
24329         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24330         spec, to make this predicate available to other units.
24332 2005-03-17  Vincent Celier  <celier@adacore.com>
24334         * make.adb (Insert_Project_Sources): Make sure the Q is always
24335         initialized.
24337         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
24338         the default for the tree, not the global default naming.
24340         * prj-proc.adb (Recursive_Process): No need to put the default naming
24341         in the project data, it's already there.
24343 2005-03-17  Doug Rupp  <rupp@adacore.com>
24345         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
24347         * 5xcrtl.ads: Renamed to...
24348         * s-crtl-vms64.ads: ...this new file
24350 2005-03-17  Robert Dewar  <dewar@adacore.com>
24352         PR ada/19519
24353         * namet.adb (Copy_One_Character): Set proper wide character encoding
24354         for upper half character if we have upper half encoding.
24356 2005-03-17  Robert Dewar  <dewar@adacore.com>
24358         * par.adb (Par): Improved msg for attempt to recompile predefined unit
24360 2005-03-17  Thomas Quinot  <quinot@adacore.com>
24362         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
24363         tagged limited type, the TSS is a newly built renaming declaration:
24364         insert it using Set_TSS, not Copy_TSS.
24366 2005-03-17  Javier Miranda  <miranda@adacore.com>
24368         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
24369         Try_Object_Operation): Analyze the object that is accessible
24370         through the prefix of the subprogram call before we apply
24371         the transformation of the object-operation notation.
24373 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
24375         * s-taprob.adb (Initialize_Protection): Initialize the protected
24376         object's owner to Null_Task.
24377         (Lock): If pragma Detect_Blocking is in effect and the caller of this
24378         procedure is already the protected object's owner then Program_Error
24379         is raised. In addition the protected object's owner is updated.
24380         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
24381         of this procedure is already the protected object's owner then
24382         Program_Error is raised.
24383         In addition the protected object's owner is updated.
24384         (Unlock): Remove the ownership of the protected object.
24386         * s-taprob.ads (Protection): Add the field Owner, used to store the
24387         protected object's owner.
24388         This component is needed for detecting one type of potentially blocking
24389         operations (external calls on a protected subprogram with the same
24390         target object as that of the protected action). Document the rest of
24391         the components.
24393         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
24394         Initialize the protected object's owner to Null_Task.
24395         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
24396         caller of this procedure is already the protected object's owner then
24397         Program_Error is raised.
24398         Do not raise Program_Error when this procedure is called from a
24399         protected action.
24400         (Unlock_Entries): Remove the ownership of the protected object.
24401         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
24402         of this procedure is already the protected object's owner then
24403         Program_Error is raised.
24404         Do not raise Program_Error when this procedure is called from
24405         a protected action.
24407         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
24408         used to store the protected object's owner.
24410         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
24411         effect and this procedure (a potentially blocking operation) is called
24412         from whithin a protected action, Program_Error is raised.
24413         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
24414         and this procedure (a potentially blocking operation) is called from
24415         whithin a protected action, Program_Error is raised.
24417 2005-03-17  Vincent Celier  <celier@adacore.com>
24418             Nicolas Setton  <setton@adacore.com>
24420         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
24421         switch, not supported by the linker on Darwin. Add '_' before
24422         <library>init, as this character is added unconditionally by the
24423         compiler.
24424         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
24425         correct one ".dylib". This fixes detection of the archive files when
24426         building library projects.
24428 2005-03-17  Vincent Celier  <celier@adacore.com>
24430         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
24431         -gnat83, -gnat95 and -gnat05.
24433 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
24435         * gnat_ugn.texi: Document gnatmem restriction
24437 2005-03-17  Thomas Quinot  <quinot@adacore.com>
24439         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
24440         cleanup
24442 2005-03-17  Robert Dewar  <dewar@adacore.com>
24444         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
24445         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
24446         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
24448         * casing.adb: Comment improvements
24450 2005-03-17  Pascal Obry  <obry@adacore.com>
24452         * g-expect.adb: Minor reformatting.
24454 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
24456         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
24457         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
24458         to dependencies.
24460 2005-03-15  Vincent Celier  <celier@adacore.com>
24462         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
24463         Add new parameter In_Tree to specify the project tree: needed
24464         by the project manager. Adapt to changes in project manager
24465         using new parameter In_Tree.
24467 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
24469         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
24470         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
24471         ada/bldtools to avoid make -jN failures.
24473 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
24475         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
24476         to NULL_TREE on entry.
24478 2005-03-15  Robert Dewar  <dewar@adacore.com>
24480         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
24481         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
24482         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24483         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
24484         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
24485         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
24486         system-interix.ads, system-solaris-sparc.ads,
24487         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
24488         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
24489         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
24490         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
24491         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
24492         Compiler_System_Version to be False.
24494         * opt.ads: Add new flag Opt.Address_Is_Private
24496         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
24497         Add new parameter Compiler_System_Version to avoid checking for
24498         completeness of parameters when compiler is compiling itself.
24499         Allows old versions of GNAT to be compiled with new compiler.
24501 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
24503         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
24504         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
24505         calling thread.
24506         (Stack_Base_Available): New flag.
24507         (Get_Page_Size): New overloaded functions imported from C.
24508         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
24509         PROT_ON, PROT_OFF): New constants.
24510         (mprotect): New function imported from C.
24511         (pthread_teb_t): New record type.
24513         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
24514         (Create_Task): Account for the Yellow Zone and the guard page.
24516 2005-03-15  Vincent Celier  <celier@adacore.com>
24518         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24519         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24520         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
24521         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
24522         Library_File_Name_For): Add new parameter In_Tree
24523         to specify the project tree: needed by the project manager.
24524         Adapt to changes in project manager using new parameter In_Tree.
24525         Remove local imports, use functions in System.CRTL.
24527         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
24528         to use the project manager.
24530         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
24531         In_Tree to designate the project tree. Adapt to changes in the project
24532         manager, using In_Tree.
24534         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
24535         Copy_Interface_Sources): Add new parameter In_Tree to specify the
24536         project tree: needed by the project manager.
24537         (Build_Library): Check that Arg'Length >= 6 before checking if it
24538         contains "--RTS=...".
24540         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
24541         Library_File_Name_For): Add new parameter In_Tree to specify the
24542         project tree: needed by the project manager.
24544         * prj.ads, prj.adb: Major modifications to allow several project trees
24545         in memory at the same time.
24546         Change tables to dynamic tables and hash tables to dynamic hash
24547         tables. Move tables and hash tables from Prj.Com (in the visible part)
24548         and Prj.Env (in the private part). Move some constants from the visible
24549         part to the private part. Make other constants deferred.
24550         (Project_Empty): Make it a variable, not a function
24551         (Empty_Project): Add parameter Tree. Returns the data with the default
24552         naming data of the project tree Tree.
24553         (Initialize): After updating Std_Naming_Data, copy its value to the
24554         component Naming of Project Empty.
24555         (Register_Default_Naming_Scheme): Use and update the default naming
24556         component of the project tree, instead of the global variable
24557         Std_Naming_Data.
24558         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
24559         Tree is not defaulted, return the default naming data of the Tree.
24560         (Initial_Buffer_Size): Constant moved from private part
24561         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
24562         variables initialized in procedure Initialize.
24563         (Add_To_Buffer): Add two in out parameters to replace global variables
24564         Buffer and Buffer_Last.
24565         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
24566         functions.
24567         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
24568         hash tables.
24569         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24570         for the project tree.
24571         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
24572         constant at the beginning of the package spec, so that they cane be used
24573         in subprograms before their full declarations.
24574         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
24575         (Empty_Project): Add parameter of type Project_Node_Ref
24576         (Private_Project_Tree_Data): Add component Default_Naming of type
24577         Naming_Data.
24578         (Buffer, Buffer_Last): remove global variables
24579         (Add_To_Buffer): Add two in out parameters to replace global variables
24580         Buffer and Buffer_Last.
24581         (Current_Packages_To_Check): Remove global variable
24582         (Empty_Name): Move to private part
24583         (No-Symbols): Make it a constant
24584         (Private_Project_Tree_Data): New type for the private part of the
24585         project tree data.
24586         (Project_Tree_Data): New type for the data of a project tree
24587         (Project_Tree_Ref): New type to designate a project tree
24588         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24589         for the project tree.
24591         * prj-attr.ads: Add with Table; needed, as package Prj no longer
24592         imports package Table.
24594         * prj-com.adb: Remove empty, no longer needed body
24596         * prj-com.ads: Move most of the content of this package to package Prj.
24598         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
24599         designate the project node tree and Packages_To_Check to replace
24600         global variable Current_Packages_To_Check.
24601         Add new parameters In_Tree and Packages_To_Check to local subprograms,
24602         when needed. Adapt to changes in project manager with project node tree
24603         In_Tree.
24605         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
24606         project tree to most subprograms. Move tables and hash tables to
24607         private part of package Prj.
24608         Adapt to changes in project manager using project tree In_Tree.
24610         * prj-makr.adb (Tree): New constant to designate the project node tree
24611         Adapt to change in project manager using project node tree Tree
24613         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
24614         display the Library_Src_Dir and the Library_Dir.
24615         Add new parameter In_Tree to designate the project node tree to most
24616         subprograms. Adapt to changes in the project manager, using project tree
24617         In_Tree.
24618         (Check_Naming_Scheme): Do not alter the casing on platforms where
24619         the casing of file names is not significant.
24620         (Check): Add new parameter In_Tree to designate the
24622         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
24623         designate the project tree.
24624         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
24626         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
24627         to replace those that were in the private part of package Prj.
24628         Add new parameter In__Tree to designate the project node tree to most
24629         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24630         (Post_Parse_Context_Clause): When specifying the project node of a with
24631         clause, indicate that it is a limited with only if there is "limited"
24632         in the with clause, not necessarily when In_Limited is True.
24633         (Parse): Add new parameter In_Tree to designate the project node tree
24635         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
24636         designate the project node tree. Adapt to change in Prj.Tree with
24637         project node tree In_Tree.
24639         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
24640         tree In_Tree in the call to function Empty_Process to give its initial
24641         value to the project data Processed_Data.
24642         Add new parameters In_Tree to designate the project tree and
24643         From_Project_Node_Tree to designate the project node tree to several
24644         subprograms. Adapt to change in project manager with project tree
24645         In_Tree and project node tree From_Project_Node_Tree.
24647         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
24648         to replace those that were in the private part of package Prj.
24649         Add new parameter In_Tree to designate the project node tree to most
24650         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24652         * prj-tree.ads, prj-tree.adb: Add new parameter of type
24653         Project_Node_Tree_Ref to most subprograms.
24654         Use this new parameter to store project nodes in the designated project
24655         node tree.
24656         (Project_Node_Tree_Ref): New type to designate a project node tree
24657         (Tree_Private_Part): Change table to dynamic table and hash tables to
24658         dynamic hash tables.
24660         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
24661         the project tree to most subprograms. Adapt to changes in project
24662         manager using project tree In_Tree.
24664         * makegpr.adb (Project_Tree): New constant needed to use project
24665         manager.
24667 2005-03-15  Olivier Hainque  <hainque@adacore.com>
24669         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
24670         for sigactions with SA_SIGINFO set. Call
24671         __gnat_adjust_context_for_raise before raising, to perform the
24672         potentially required adjustments to the machine context for the GCC
24673         unwinder.
24675         * raise.h (__gnat_adjust_context_for_raise): New prototype.
24677         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
24678         Adjust PC by one in the provided machine context.
24679         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
24680         so that the handler is passed the context structure to adjust prior to
24681         the raise.
24682         (__gnat_error_handler) HPUX: Adjust the signature to match what an
24683         SA_SIGINFO sigaction should look like. Call
24684         __gnat_adjust_context_for_raise before actually raising.
24685         (__gnat_adjust_context_for_raise): Default noop to help PC
24686         adjustments before raise from signal handlers.
24687         (__gnat_error_handler): Indirectly call a predicate function to
24688         determine if a condition should be resignaled or not.
24689         (__gnat_set_resignal_predicate): User interface to modify the predicate.
24690         (__gnat_default_resignal_p): Default GNAT predicate.
24692 2005-03-15  Doug Rupp  <rupp@adacore.com>
24694         * adaint.c: Prefix #include of VMS system header files with vms/
24695         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
24696         Do not define a dummy function "convert_addresses" under Darwin,
24697         not needed.
24699         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
24700         with vms/
24702 2005-03-15  Nicolas Setton  <setton@adacore.com>
24704         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
24705         PPC/AIX.
24707 2005-03-15  Robert Dewar  <dewar@adacore.com>
24709         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
24710         AI-386.
24712         * a-retide.ads: Minor comment changes
24714 2005-03-15  Robert Dewar  <dewar@adacore.com>
24716         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
24717         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
24718         Realloc_For_Chunk to private part of package.
24719         New subprograms for AI-301
24721         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
24722         Get_Line procedure.
24723         Avoid unnecessary use of Get/Set_Wide_String
24725 2005-03-15  Robert Dewar  <dewar@adacore.com>
24727         PR ada/13470
24728         * a-stunau.ads, a-stunau.adb:
24729         Change interface to allow efficient (and correct) implementation
24730         The previous changes to allow extra space in unbounded strings had
24731         left this interface a bit broken.
24733         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
24735         * g-spipat.ads, g-spipat.adb: New interface for Get_String
24736         Minor reformatting (function specs)
24738         * g-spitbo.adb: New interface for Get_String
24740         * g-spitbo.ads: Minor reformatting
24742         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
24744         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
24746 2005-03-15  Javier Miranda  <miranda@adacore.com>
24747             Robert Dewar  <dewar@adacore.com>
24748             Thomas Quinot  <quinot@adacore.com>
24749             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24751         * atree.ads, atree.adb: Add support for Elist24 field
24753         * atree.h: Fix wrong definition of Field27
24754         Add support for Elist16 field
24755         Add support for Elist24 field
24757         * einfo.ads, einfo.adb (Abstract_Interfaces,
24758         Set_Abstract_Interfaces): New subprograms.
24759         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
24760         subprograms.
24761         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
24762         entities rather than a single node.
24763         (Is_Interface, Set_Is_Interface): New subprogram
24764         (First_Tag_Component): New syntesized attribute
24765         (Next_Tag_Component): New synthesized attribute
24766         (Write_Entity_Flags): Upgraded to write Is_Interface
24767         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
24768         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
24769         (Task_Body_Procedure): New subprogram to read this attribute.
24770         (Set_Task_Body_Procedure): New subprogram to set this attribute.
24771         (Has_Controlled_Component): Now applies to all entities.
24772         This is only a documentation change, since it always worked to apply
24773         this to other than composite types (yielding false), but now this is
24774         official.
24775         Update documentation on Must_Be_Byte_Aligned for new spec
24777         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
24778         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
24779         uses of the Access_Disp_Table attribute to reference the first dispatch
24780         table associated with a tagged type. As
24781         part of the implementation of abstract interface types,
24782         Access_Disp_Table has been redefined to contain a list of dispatch
24783         tables (rather than a single dispatch table).
24784         Similarly, upgrade all the references to Tag_Component by the
24785         new attribute First_Tag_Component.
24786         (Find_Inherited_TSS): Moved to exp_tss.
24787         Clean up test in Expand_N_Object_Declaration for cases
24788         where we need to do a separate assignment of the initial value.
24789         (Expand_N_Object_Declaration): If the expression in the
24790         declaration of a tagged type is an aggregate, no need to generate an
24791         additional tag assignment.
24792         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
24793         is to be deleted.
24794         Bit packed array ops are only called if operands are known to be
24795         aligned.
24796         (Component_Equality): When returning an N_Raise_Program_Error statement,
24797         ensure that its Etype is set to Empty to avoid confusing GIGI (which
24798         expects that only expressions have a bona fide type).
24799         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
24800         determine the amount of data to be copied.
24802         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
24803         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
24804             INTERFACE_TYPE_DEFINITION ::=
24805               [limited | task | protected | synchronized] interface
24806                 [AND interface_list]
24808         * par-ch3.adb (P_Type_Declaration): Modified to give support to
24809         interfaces.
24810         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
24811         interfaces.
24812         (P_Interface_Type_Definition): New subprogram that parses the new
24813         syntax rule of Ada 2005 interfaces
24814         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
24815         messages by the correct RENAMES (quotes removed).
24817         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
24818         attribute First_Tag_Component.
24820         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
24821         (Interface_List, Set_Interface_List): New subprograms.
24822         (Interface_Present, Set_Interface_Present): New subprograms.
24823         (Limited_Present, Set_Limited_Present): Available also in derived
24824         type definition nodes.
24825         (Protected_Present, Set_Protected_Present): Available also in
24826         record type definition and
24827         derived type definition nodes.
24828         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
24829         (Task_Present, Set_Task_Present): New subprogram.
24830         (Task_Body_Procedure): Removed.
24831         (Set_Task_Body_Procedure): Removed.
24832         These subprogram have been removed because the attribute
24833         Task_Body_Procedure has been moved to the corresponding task type
24834         or task subtype entity to leave a field free to store the list
24835         of interfaces implemented by a task (for AI-345)
24836         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
24837         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
24838         expression flag Do_Range_Check
24839         (Exception_Junk): Change to Flag7 to accomodate above change
24840         (Box_Present, Default_Name, Specification, Set_Box_Present,
24841         Set_Default_Name, Set_Specification): Expand the expression
24842         "X in N_Formal_Subprogram_Declaration" into the corresponding
24843         two comparisons. Required to use the csinfo tool.
24845         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
24846         "with string" given.
24848         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
24849         expression given.
24851         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
24852         in 2005 mode
24854         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
24855         attribute Task_Body_Procedure rather than the old semantic field that
24856         was available in the task_type_declaration node.
24858         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
24859         interface type definitions.
24860         (P_Formal_Derived_Type_Definition): Modified to handle the list of
24861         interfaces.
24863         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
24864         task type declaration.
24865         (P_Protected): Modified to handle the list of interfaces in a
24866         protected type declaration.
24868 2005-03-15  Doug Rupp  <rupp@adacore.com>
24869             Vincent Celier  <celier@adacore.com>
24871         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
24872         (Gen_Output_File_C): Likewise.
24873         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
24875 2005-03-15  Thomas Quinot  <quinot@adacore.com>
24877         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
24878         is an N_Raise_Constraint_Error node, create a new copy of it without
24879         going through a call to Duplicate_Subexpr.
24881 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
24882             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24883             Nicolas Setton  <setton@adacore.com>
24884             Ed Schonberg  <schonberg@adacore.com>
24886         PR ada/19900
24887         PR ada/19408
24888         PR ada/19140
24889         PR ada/20255
24890         * decl.c (gnat_to_gnu_field): Reject aliased components with a
24891         representation clause that prescribes a size not equal to the rounded
24892         size of their types.
24893         (gnat_to_gnu_entity, case E_Component): Always look at
24894         Original_Record_Component if Present and not the entity.
24895         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
24896         of tagged extension types by not making field for components that are
24897         inside the parent.
24898         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
24899         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
24900         expression to the type of the object when the object is constant.
24901         Reverse defer_debug_incomplete_list before traversing it, so that trees
24902         are processed in the order at which they were added to the list. This
24903         order is important when using the stabs debug format.
24904         If we are deferring the output of debug information, also defer this
24905         output for a function return type.
24906         When adding fields to a record, prevent emitting debug information
24907         for incomplete records, emit the information only when the record is
24908         complete.
24909         (components_to_record): New parameter defer_debug.
24910         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
24911         (gnat_to_gnu_field_decl): New function.
24912         (substitution_list, annotate_rep): Call it.
24913         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
24914         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
24915         No longer update discriminants to not be a COMPONENT_REF.
24916         (copy_alias_set): Strip padding from input type; also handle
24917         unconstrained arrays properly.
24919         * gigi.h (write_record_type_debug_info): New function.
24920         Convert to use ANSI-style prototypes. Remove unused
24921         declarations for emit_stack_check, elab_all_gnat and
24922         set_second_error_entity.
24923         (gnat_to_gnu_field_decl): New decl.
24925         * utils.c (write_record_type_debug_info): New function.
24926         (finish_record_type): Delegate generation of debug information to
24927         write_record_type_debug_info.
24928         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
24929         (update_pointer_to): Fix pasto.
24930         (convert) <UNION_TYPE>: Accept slight type variations when
24931         converting to an unchecked union type.
24933         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
24934         replace the N_Freeze_Entity with a null statement.
24936         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
24937         within a constrained subcomponent of an enclosing record, place the
24938         freeze nodes in the scope stack entry for the enclosing record.
24939         (Undelay_Type): New Subprogram.
24940         (Set_Small_Size): Pass T, the type to modify; all callers changed.
24941         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
24942         within records; allow them to have freeze nodes if their base types
24943         aren't frozen yet.
24945         * exp_util.adb (Remove_Side_Effects): Properly test for
24946         Expansion_Delayed and handle case when it's inside an
24947         N_Qualified_Expression.
24949         * sem_ch3.adb (Derived_Type_Declaration): New predicate
24950         Comes_From_Generic, to recognize accurately that the parent type in a
24951         derived type declaration can be traced back to a formal type, because
24952         it is one or is derived from one, or because its completion is derived
24953         from one.
24954         (Constrain_Component_Type): If component comes from source and has no
24955         explicit constraint, no need to constrain in in a subtype of the
24956         enclosing record.
24957         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
24958         Minor change to propagate Is_Ada_2005 flag
24960         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
24961         Expansion_Delayed is False.
24962         (assoc_to_constructor): Ignore fields that have a
24963         Corresponding_Discriminant.
24964         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
24965         function returns "by target", dereference the target pointer using the
24966         type of the actual return value.
24967         <all>: Be prepared for a null gnu_result.
24968         (processed_inline_subprograms): Check flag_really_no_inline
24969         instead of flag_no_inline.
24970         (set_second_error_entity): Remove unused function.
24971         (gnat_to_gnu, case N_Selected_Component): Call
24972         gnat_to_gnu_field_decl.
24973         (assoc_to_constructor): Likewise.
24975 2005-03-15  Robert Dewar  <dewar@adacore.com>
24976             Ed Schonberg  <schonberg@adacore.com>
24977             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24979         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
24980         Must_Be_Byte_Aligned for cases where we do not need to use a
24981         System.Pack_nn unit.
24983         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
24984         as procedures.
24985         Needed now that we do some processing for IN parameters as well. This
24986         may well fix some unrelated errors.
24987         (Expand_Call): Handle case of unaligned objects (in particular those
24988         that come from packed arrays).
24989         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
24990         renamed entity is an inherited operation, re-expand the call using the
24991         original operation, which is the one to call.
24992         Detect attempt to inline parameterless recursive subprogram.
24993         (Represented_As_Scalar): Fix to work properly with private types
24994         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
24995         accurate estimate. Yields True in far fewer cases than before,
24996         improving the quality of code that depends on this test.
24998         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
24999         over both visible and private declarations to remove them from tree,
25000         and mark subprograms declared in package as eliminated, to prevent
25001         spurious use in subsequent compilation of generic units in the context.
25003         * exp_util.ads: Minor cleanup in variable names
25005         * sem_eval.ads, sem_eval.adb: Minor reformatting
25006         (Compile_Time_Known_Bounds): New function
25008 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
25010         * exp_ch7.adb (Convert_View): Use base types of underlying types when
25011         determining whether an unchecked conversion is needed for the argument
25012         of an initialization call.
25014 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
25016         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
25017         that appears in the instantiation rather than the internal subtype
25018         generated in the wrapper package, to avoid anomalies in gigi when the
25019         target is derived from a private type whose full view is an access type.
25021 2005-03-15  Robert Dewar  <dewar@adacore.com>
25023         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
25024         not needed.
25025         Add documentation to replace the use of this flag
25026         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
25027         the x86_64.
25029 2005-03-15  Thomas Quinot  <quinot@adacore.com>
25031         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
25032         here from exp_attr so it can be shared between exp_attr and exp_dist.
25033         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
25034         all TSS names, not a subset thereof, and the previous name introduced
25035         an unnecessarily confusion that a distinction might exist between
25036         "OK" TSS names and some "not OK" TSS names.
25038 2005-03-15  Doug Rupp  <rupp@adacore.com>
25040         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
25041         Command_Name.
25043 2005-03-15  Pascal Obry  <obry@adacore.com>
25044             Eric Botcazou  <ebotcazou@adacore.com>
25046         PR ada/20226
25047         PR ada/20344
25048         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
25049         when IN_RTS. This is to work around a bootstrap path problem.
25051         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
25052         table and pass it to __gnat_install_SEH_handler().
25053         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
25055         * lang.opt: Fix specification of -fRTS=.
25057 2005-03-15  Doug Rupp  <rupp@adacore.com>
25058             Bernard Banner  <banner@adacore.com>
25059             Vincent Celier  <celier@adacore.com>
25060             Arnaud Charlet  <charlet@adacore.com>
25062         PR ada/6852
25063         This change works fine when gnatlib is built from the gcc directory,
25064         but does not work when using the libada Makefile, since GCC_FOR_TARGET
25065         is not passed to ada/Makefile.in, so more work is needed by a
25066         Makefile/configure expert.
25068         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
25069         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
25070         Setup gnatlink switch -M for x86_64 linux, as it is already setup
25071         for Linux x86.
25072         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
25073         Run ranlib on libgccprefix.a
25074         Define PREFIX_OBJS for Darwin, to build libgccprefix.
25075         (ADA_INCLUDE_SRCS): Split Ada packages.
25077 2005-03-15  Robert Dewar  <dewar@adacore.com>
25079         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
25081         * impunit.adb: Add GNAT.UTF_32
25083         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
25085         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
25086         now uses GNAT.UTF_32).
25088         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
25089         capabilities for categorizing characters using Unicode categories
25091 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
25093         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
25094         instantiation that has been rewritten as a package body, retrieve spec
25095         to generate proper name for implicit_with_clause.
25096         (Install_Parents): Recognize a parent that is an instantiation but has
25097         been rewritten as a package declaration during analysis.
25099 2005-03-15  Javier Miranda  <miranda@adacore.com>
25100             Ed Schonberg  <schonberg@adacore.com>
25102         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
25103         parameter reported some error we immediately return. This improves the
25104         behaviour of the frontend in case of errors.
25105         (Install_Parent, Remove_Parent): Introduce new flag
25106         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
25107         ancestor of a generic child unit, when the child is being instantiated.
25108         (Inline_Instance_Body): If we are compiling the private
25109         part or the body of a child unit, restore the proper visibility of the
25110         parents after compiling the instance body.
25112 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
25113             Javier Miranda  <miranda@adacore.com>
25115         PR ada/15608
25116         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
25117         of a private type, in which case it is underlying_type that denotes
25118         the proper task. Also modified to use the new entity attribute
25119         that is directly available in the task type and task subtype entities
25120         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
25121         arrays when other dimensions than the first are constrained by
25122         discriminants of an enclosing record.
25123         (Insert_Explicit_Dereference): If the prefix is an indexed component or
25124         a combination of indexed and selected components, find ultimate entity
25125         and generate the appropriate reference for it, to suppress spurious
25126         warnings.
25127         (Note_Possible_Modification): If an entity name has no entity, return.
25128         (Is_Variable): A function call never denotes a variable.
25129         (Requires_Transient_Scope): For record types, recurse only on
25130         components, not on internal subtypes that may have been generated for
25131         constrained components.
25133 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
25135         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
25136         Eliminated as candidates for resolution. Both efficient, and avoids
25137         anomalies with operators declared in deleted code.
25138         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
25139         expansion is disabled (as when compiling a generic) to prevent spurious
25140         warnings on prefixes of selected components.
25142 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
25144         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
25145         attached to a list before checking whether it appears in the private
25146         declarations of the current package.
25147         (Make_Inequality_Operator): Insert declaration in proper declarative
25148         list rather than just setting the Parent field, so that
25149         Is_Private_Declaration can handle it properly.
25151 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
25153         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
25154         a renaming a body, check that the renamed subprogram in not intrinsic.
25155         (Find_Direct_Name): If several use_visible entities hide
25156         each other, and the context is a predefined file compiled through
25157         rtsfind, keep only the entity that comes from a predefined file.
25159 2005-03-15  Geert Bosch  <bosch@adacore.com>
25161         * s-fatgen.adb (Valid): Extend special exceptions to account for long
25162         long float padding to also cover AMD64 and IA64.
25164 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
25166         * s-imgwch.adb: Add with and use of Interfaces.
25167         (Img_Wide_Character): Change type of Val to Unsigned_16.
25168         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
25170 2005-03-15  Matthew Gingell  <gingell@adacore.com>
25172         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
25174 2005-03-15  Robert Dewar  <dewar@adacore.com>
25176         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
25178         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
25180         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
25182 2005-03-15  Robert Dewar  <dewar@adacore.com>
25184         * s-bitops.adb, s-bitops.ads,
25185         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
25186         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
25187         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
25188         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
25189         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
25190         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
25191         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
25192         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
25193         reformatting.
25195 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
25197         * utils2.c (build_binary_op): Fix typo.
25199 2005-03-15  Doug Rupp  <rupp@adacore.com>
25201         * s-crtl.ads (popen,pclose): New imports.
25203 2005-03-15  Cyrille Comar  <comar@adacore.com>
25205         * comperr.adb (Compiler_Abort): remove references to obsolete
25206         procedures in the bug boxes for various GNAT builds.
25208 2005-03-15  Vincent Celier  <celier@adacore.com>
25210         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
25212 2005-03-15  Geert Bosch  <bosch@adacore.com>
25213             Arnaud Charlet  <charlet@adacore.com>
25214             Robert Dewar  <dewar@adacore.com>
25215             Cyrille Comar  <comar@adacore.com>
25216             Sergey Rybin  <rybin@adacore.com>
25218         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
25219         too specific and long-winded to be appropriate for the GNAT User's
25220         Guide.
25221         Warn about use of GCC switches not documented in the GNAT User's Guide,
25222         as these may cause generated code to not conform to Ada semantics.
25223         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
25224         Add documentation for -gnat95 and -gnat05 switches
25225         Remove paragraph documenting obsolete way to refer to third party
25226         libraries.
25227         Add a few references to Ada_05 that were missing.
25228         Update documentation on -gnatZ/-gnatL.
25229         Document limitation when using -m64 under Solaris.
25230         Change the "Name Casing" subsection of the pretty-printer section
25231         according to the changes in the dictionary processing.
25233         * gnat_rm.texi: Document the Ada_05 pragma.
25234         Section on record representation clauses describes the new more
25235         relaxed rules about placement of large packed bit array components.
25236         Add documentation of GNAT.UTF_32
25238 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
25240         * misc.c (gnat_post_options): Turn off structural
25241         aliasing for now.
25243 2005-03-08  Laurent Guerby  <laurent@guerby.net>
25245         * system-linux-sparc.ads: Fix typo in previous commit.
25247 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
25248             Laurent Guerby  <laurent@guerby.net>
25250         PR ada/20035
25251         * system-linux-sparc.ads: New.
25252         * Makefile.in: Add sparc linux entry.
25254 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
25256         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
25257         parameters as unused.
25259 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
25260         Partial merge from libada-gnattools-branch:
25262         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
25263         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
25264         into code in gnattools/Makefile.in.  Remove direct dependencies on
25265         stamp-tools by tools clauses.
25266         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
25267         * config-lang.in: Add gnattools to $lang_dirs.
25269 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
25271         PR ada/19942
25272         * utils.c (gnat_type_for_mode): Return null instead of ICE because
25273         we asked for an unknown mode.
25275 2005-02-12  Richard Henderson  <rth@redhat.com>
25277         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
25278         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
25280 2005-02-10  Andreas Jaeger  <aj@suse.de>
25282         * init.c (__gnat_initialize): Mark parameter as unused.
25284 2005-02-09  Doug Rupp  <rupp@adacore.com>
25286         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
25287         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
25289 2005-02-09  Doug Rupp  <rupp@adacore.com>
25291         * gnatchop.adb (dup, dup2),
25292         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
25294         * gnatlbr.adb (mkdir),
25295         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
25297         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
25299 2005-02-09  Doug Rupp  <rupp@adacore.com>
25301         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
25303 2005-02-09  Robert Dewar  <dewar@adacore.com>
25304             Thomas Quinot  <quinot@adacore.com>
25305             Javier Miranda  <miranda@adacore.com>
25306             Pascal Obry  <obry@adacore.com>
25307             Ed Schonberg  <schonberg@adacore.com>
25308             Doug Rupp  <rupp@adacore.com>
25309             Gary Dismukes  <dismukes@adacore.com>
25310             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25312         * g-zstspl.ads: New file.
25314         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
25316         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
25317         Ada 95 mode
25318         Add definition of Wide_Wide_Space for AI-285
25320         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
25321         interface (to support Ada 95 and Ada 2005 units).
25322         Add Unbounded_IO files
25323         Add entries for Wide_Wide packages for AI-285
25324         Add list of containers packages to Ada 2005 unit list
25326         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
25327         support new Unbounded_IO package cleanly.
25329         * g-utf_32.ads, g-utf_32.adb: New files.
25331         * Makefile.rtl: Add entry for g-utf_32
25332         Add new files for Unbounded_IO
25333         Adjust make file for new AI-285 wide wide packages
25334         Add AI-302 containers to the run time.
25336         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
25337         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
25338         subprograms for AI-301.
25340         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
25342         * a-stunau.ads: Minor comment correction
25344         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
25345         etc.
25346         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
25347         (Check_RPC): Update to match changes in expanded code.
25348         Clean up unused entity.
25350         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
25351         was not taken into account.
25352         This includes proper initialization with Normalize_Scalars.
25353         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
25354         normalize scalars cases (particularly the latter) to do a better job
25355         of finding invalid representations.
25357         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
25359         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
25360         used
25362         * exp_dist.adb: Add support for wide wide character type
25363         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
25364         private part, generate stub bodies at the end of the private part,
25365         not the visible part.
25366         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
25367         PolyORB support.
25368         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
25369         generic wrapper to execute final processing after completing the
25370         expansion of the RPC receiver for an RACW.
25372         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
25373         packages and attributes.
25374         (Preset_Names): Addition of the new reserved words of Ada 2005,
25375         that is interface, overriding and synchronized.
25376         (Get_Pragma_Id): Give support to the use of the new reserved word
25377         "interface" as a pragma name.
25378         (Is_Pragma_Name): Give support to the use of the new reserved word
25379         "interface" as a pragma name.
25380         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
25381         attribute implementation.
25383         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
25384         checks to entities that are output parameters of Asm operations.
25385         Handle the Stream_Size attribute.
25386         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
25388         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
25390         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
25391         for second parameter being 0.0.
25392         Add support for wide wide character type.
25393         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
25395         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
25396         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
25397         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
25398         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
25399         for wide wide character cases.
25401         * cstand.adb: Create entities for Wide_Wide_Character and
25402         Wide_Wide_String.
25404         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
25405         accordance with AI-258.
25406         Add new declarations for 16/32 bit C character types (Part of AI285)
25408         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
25409         (Obsolescent_Warning): New field
25410         (Rep_Clause): New local subprogram used to share code. Returns the rep
25411         clause for which the name is given in parameter.
25412         (Has_Stream_Size_Clause): New routine.
25413         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
25414         (Address_Clause): Implementation is now using Rep_Clause.
25415         (Alignment_Clause): Idem.
25416         (Size_Clause): Idem.
25418         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
25419         entity in non-Ada 2005 mode and generate warning.
25421         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
25422         (Prag): Code cleanup. Remove old gnat pragma "overriding"
25424         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
25425         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
25426         on the named unit if the pragma is not in the current compilation unit,
25427         so that elaboration calls in the current unit can set up an elaboration
25428         dependency on the named unit, as needed.
25429         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
25430         subprogram as well as for subprograms declared within a package.
25431         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
25432         pragma overriding.
25434         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
25435         to z) to avoid some instances of duplication for Wide_Wide packages.
25437         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
25438         characters.
25440         * scn.adb: Char_Literal_Value field is now a Uint
25442         * scng.adb: Significant rewrite to handle new Ada 2005 features
25443         allowing wide and wide wide characters in program text, e.g. for
25444         identifiers, as described in AI-285.
25445         (Set_Reserved): New procedure, makes setting up keywords cleaner.
25446         (Initialize_Scanner): Register the new reserved words of Ada 2005.
25447         (Scan): Give support to the new reserved words.
25449         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
25450         warning notifying that interface, overriding, and synchronized are
25451         new reserved words.
25452         (P_Pragma): Allow the use of the new reserved word "interface" as
25453         a pragma name.
25455         * gnatls.adb, gnatbind.adb,
25456         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
25457         identifiers named "interface" to "SAL_Interface".
25459         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
25460         (Structured Exception handling).
25461         (Gen_Main_C): Idem.
25463         * bindgen.adb:
25464         (Gen_Main_Ada): Set the default exit code if specified.
25465         (Gen_Main_C): Likewise.
25466         Part of *DC20-006.
25467         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
25468         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
25470         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
25471         new -Xnnn switch.
25473         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
25474         has a collision with the new Ada 2005 "interface" reserved word.
25476         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
25477         generate a warning notifying that interface, overriding, and
25478         synchronized are new reserved words.
25480         * scans.ads (Token_Type): Addition of the tokens corresponding to the
25481         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
25482         and Tok_Synchronized.
25484         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
25485         "dispatching" rather than "primitive" operations, since dispatching
25486         calls are now allowed to abstract formal subprograms (which are not
25487         primitive).
25488         Char_Literal_Value field is now a Uint
25489         (Resolve_Slice): If the prefix is an access to an unconstrained array,
25490         compute the actual subtype of the designated object to impose the proper
25491         index constraints.
25492         (Resolve_Selected_Component): Do not insert an access check if the
25493         prefix is an access type: such a node is expanded into an explicit
25494         dereference, on which the access check is performed anyway. Removes
25495         expensive duplicate checks.
25496         (Resolve_Call): Use new flag Is_Obsolescent and field
25497         Obsolescent_Warning so that pragma Obsolescent works on library
25498         subprograms.
25499         Add support for wide wide character type
25500         (Resolve_Allocator): Replace the error message on wrong null-exclusion
25501         value by a warning message.
25502         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
25503         as fixed-point, and one of the operands is non-static and universal, it
25504         can only be an illegal exponentiation operation, in which case there is
25505         no real value to retrieve.
25507         * exp_strm.adb: Add support for wide wide character type
25508         (Build_Elementary_Input_Call): Compute the size of the stream element by
25509         querying the rep chain to find the Stream_Attribute attribute value.
25510         (Build_Elementary_Write_Call): Ditto.
25512         * sem_aggr.adb: Char_Literal_Value field is now a Uint
25513         Add support for wide wide character type
25514         Replace the error messages on wrong null-exclusion value by warnings
25515         as described in Ada 2005.
25516         (Resolve_Extension_Aggregate): Document the fact that the error
25517         message on class-wide expressions in extensions aggregates.
25519         * sem_case.adb: Add support for wide wide character type
25521         * sem_ch13.adb: Add support for wide wide character type
25522         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
25524         * sem_ch3.adb: Add support for wide wide character type
25525         (Process_Subtype): If constraint is illegal for the type, set Ekind of
25526         now-useless Itype, to prevent cascaded errors on a compiler built
25527         without -gnatp.
25529         * sem_ch8.adb: Add with and use of Sem_Disp.
25530         (Analyze_Subprogram_Renaming): Replace unclean uses of
25531         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
25532         of Corresponding_Spec to Empty).
25533         (Attribute_Renaming): Replace use of Corresponding_Spec with
25534         Corresponding_ Formal_Spec and simplify condition.
25535         (Use_One_Package): Check that scope of homonym of identifier is defined,
25536         before checking whether it is a wrapper package.
25537         Add support for wide wide character type
25539         * sem_eval.adb: Add support for wide wide character type.
25540         (Eval_Arithmetic_Op): Check for compile time known signed integer
25541         overflow in the non-static case.
25542         (Subtypes_Statically_Match): A formal scalar type and its base type do
25543         not statically match.
25545         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
25546         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
25547         subtype).
25548         (Unit_Declaration_Node): Ditto.
25549         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
25550         has a packed array type, the prefix has been rewritten into a type
25551         conversion. Determine variable-ness from the converted expression.
25552         Handle wide wide character cases.
25554         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
25556         * stringt.ads, stringt.adb: Handle full UTF-32 range.
25557         Remove ["0A"] from comment, since it can look like a line terminator.
25558         Currently we don't permit this, but this is under discussion by the
25559         ARG, and it is easy enough to use a different example.
25561         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
25562         handling UTF-32 encoding for wide wide character.
25563         Implement new brackets coding ["hhhhhhhh"]
25564         Add UTF-8 encodings for full UTF-32 range
25566         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
25568         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
25569         bit range Add full UTF-32 support.
25570         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
25571         notify that constraint error will be raised at run-time
25572         because a null value is assigned to a null-excluding object.
25573         Remove some obsolete declarations and make Char_Code
25574         unsigned.
25576         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
25577         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
25578         Rcheck subprograms.
25580         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
25581         wrong null-exclusion value by a warning message.
25582         (Enable_Range_Check): Do range check if the prefix is an
25583         explicit dereference whose designated object is an unconstrained array.
25584         Current algorithm for removing duplicate checks is over-eager in this
25585         case.
25587         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
25588         null-exclusion value by a warning message
25590         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
25591         completely. Add support for Uint2 field
25593         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
25594         exp_prag.adb: Char_Literal_Value field is now a Uint.
25596         * exp_util.adb (Insert_Actions): Replace
25597         N_Formal_Subprogram_Declaration by
25598         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
25599         Char_Literal_Value field is now a Uint.
25601         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
25602         defined for subprogram renaming declarations. When set, the field
25603         indicates the defining entity of a corresponding formal subprogram
25604         when the renaming corresponds to a formal subprogram association in an
25605         instantiation.
25606         (Set_Corresponding_Formal_Spec): New procedure to return
25607         Corresponding_Formal_Spec field.
25608         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
25609         (which is now a subtype).
25610         Char_Literal_Value field is now a Uint
25612         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
25613         pointer to the base of the dispatch table.
25614         Minor changes to comments.
25615         (Controlling_Type): New function for determining the tagged type
25616         associated with a tagged primitive subprogram.
25617         (Expand_Dispatching_Call): Add support for a controlling actual that is
25618         directly a value of type Ada.Tag rather than a tagged object.
25620         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
25621         describing the new layout.
25622         (Dispatch_Table): The expander computes the actual array size, allocates
25623         the Dispatch_Table record accordingly, and generates code that displaces
25624         the base of the record after the Typeinfo_Ptr component. The access to
25625         these components is done by means of local functions.
25626         (Offset_To_Top): New function.
25627         (Typeinfo_Ptr): New function.
25628         (Get_TSD): Modified to access the new position of the TSD.
25629         (Set_TSD): Modified to save the TSD in its new position.
25631         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
25632         case of formal abstract subprograms. Add check and message for -gnat05.
25633         Update comments.
25635         * sem_ch12.adb: Add with and use for Sem_Disp.
25636         (Analyze_Associations): Minor change from "=" to "in" for use of
25637         N_Formal_Subtype_Declaration (which is now a subtype).
25638         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
25639         N_Formal_Subtype_Declaration (which is now a subtype).
25640         (Analyze_Formal_Subprogram): Add handling for
25641         N_Formal_Abstract_Subprogram, marking the formal as abstract and
25642         dispatching, setting the controlling status of the formal parameters
25643         and result, and issuing an error if there is no controlling type for
25644         the formal subprogram.
25645         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
25646         which is an unclean use of that field, we set the new field
25647         Corresponding_Formal_Spec to make the formal subprogram available to
25648         processing in Analyze_Subprogram_Declaration.
25649         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
25650         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
25651         Constrained, so that it is is does not statically match its anonymous
25652         base type.
25654         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
25655         abstract formal subprograms in error check for functions returning
25656         abstract types. Set scope of new designator for
25657         a parameterless subprogram, so that it is available when checking the
25658         body for nested subprograms, before full analysis of said body.
25659         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
25660         subprogram only if inner one comes from source.
25661         (Analyze_Function_Call): If the call is given in object notation, the
25662         analysis of the name rewrites the node and analyzes it with the proper
25663         argument list. After analyzing the name, if the call has been rewritten
25664         and the result type is set, no further analysis is needed.
25665         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
25666         mark in function specification, in a context where the formals are
25667         visible and hide outer homographs.
25669         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
25670         as the tagged type for the cases of abstract formal subprograms and
25671         renamings of those.  Clean up spec comments.
25672         (Check_Dispatching_Context): Add error message to indicate "abstract
25673         procedure", covering the case of a call to a formal abstract procedure
25674         that has statically tagged operands.
25675         (Check_Dispatching_Call): Check for the case of an actual given by
25676         a tag-indeterminate function call whose type is an ancestor of the
25677         containing call's associated tagged type. This situation can occur
25678         for inherited primitives with function defaults. In this case we
25679         use the tagged type's tag directly as the controlling argument for
25680         the calls.
25681         (Expand_Call): Name change on call to Expand_Dispatch_Call.
25683         * sprint.adb (Sprint_Node_Actual): Split
25684         N_Formal_Subprogram_Declaration into two alternatives for the new
25685         cases N_Formal_Abstract_Subprogram_Declaration and
25686         N_Formal_Concrete_Subprogram_Declaration.
25687         Char_Literal_Value field is now a Uint.
25689         * trans.c: Get rid of junk Uint2 reference.
25690         Char_Literal_Value field is now a Uint.
25691         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
25692         (gigi): Correct third arg to gimplify_body.
25694         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
25695         (TYPE_LANG_FLAG_0): Check for record or union.
25697         * treepr.adb: Char_Literal_Value field is now a Uint
25699         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
25700         UI_From_CC.
25702         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
25703         Add full UTF-32 support
25704         Char_Code is now 32 bits
25706         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
25707         wide character UTF_32 line terminators.
25708         Initialize Main_Source_File to avoid error when no main
25709         source is loaded.
25711         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
25712         (Main_Source_File) when no main source has been loaded, to avoid
25713         potential crash.
25715 2005-02-09  Robert Dewar  <dewar@adacore.com>
25717         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
25718         Fix name of Set routine
25720         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
25721         fixed packages.
25723         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
25724         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
25725         fixed packages
25727         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
25728         forms of Get_Line subprograms for AI-301.
25730         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25731         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
25732         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
25733         a-stwima.ads: Minor reformatting.
25735 2005-02-09  Doug Rupp  <rupp@adacore.com>
25736             Thomas Quinot  <quinot@adacore.com>
25738         * adaint.c, adaint.h
25739         [VMS] (to_ptr32): New function.
25740         (MAYBE_TO_PTR32): New macro.
25741         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
25742         for pointer size.
25743         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
25744         [VMS] (#define fork()): Remove since unneccessary.
25745         (__gnat_set_close_on_exec): New routine to support
25746         GNAT.OS_Lib.Set_Close_On_Exec.
25748         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
25749         the parent side as close-on-exec so that they are not inherited by the
25750         child.
25752         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
25753         set or clear the FD_CLOEXEC flag on a file descriptor.
25755 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
25756             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25758         PR ada/19386
25759         * decl.c:
25760         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
25761         on the field if Pragma Component_Alignment (Storage_Unit).
25762         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
25763         side-effects as if it were a constant; also make SAVE_EXPR to protect
25764         side-effects.
25765         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
25766         UNION_TYPE.
25767         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
25768         (components_to_record): Test it.
25769         Fix improper usage of REFERENCE_CLASS_P.
25771         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
25772         RECORD_TYPE.
25774         * utils2.c: Minor reformatting.
25776         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
25777         handle other cases like RECORD_TYPE.
25779         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
25781 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
25783         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
25784         component of an array of arrays in an assignment context, and the
25785         aggregate has component associations that require sliding on
25786         assignment, force reanalysis of the aggregate to generate a temporary
25787         before the assignment.
25788         (Must_Slide): Make global to the package, for use in Gen_Assign.
25790 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
25792         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
25793         unchecked union with no inferable discriminants, return a
25794         Raise_Program_Error node, rather than inserting it at the point the
25795         type is frozen.
25796         (Expand_Record_Equality, Component_Equality): Handle properly the case
25797         where some subcomponent is an unchecked union whose generated equality
25798         code raises program error.
25800 2005-02-09  Doug Rupp  <rupp@adacore.com>
25802         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
25803         [VMS] (#define exit hack): Remove.
25805 2005-02-09  Pascal Obry  <obry@adacore.com>
25806             Arnaud Charlet  <charlet@adacore.com>
25808         * init.c (__gnat_initialize): Add a new parameter eh which contains the
25809         address of the exception registration. The Win32 version of this
25810         routine calls __gnat_install_SEH_handler() to initialize the SEH
25811         (Structured Exception Handling) handler.
25812         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
25813         SEH (Structured Exception Handling) now.
25814         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
25815         (__gnat_initialize for ppc-vxworks): Adjust comments and the
25816         preprocessor condition protecting the call to the extra eh setup
25817         subprogram, which is only available for the ppc target.
25818         (__gnat_clear_exception_count): replaced reference to
25819         variable taskIdCurrent by call to taskIdSelf(), cleaner.
25821         * seh_init.c: New file.
25823         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
25824         (GNATBIND_OBJS): Idem.
25826         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
25827         routine takes a new parameter (a pointer to the exception registration
25828         for the SEH (Structured Exception Handling) support.
25830         * raise.h: (__gnat_install_SEH_handler): New prototype.
25831         Update copyright notice.
25833         * s-tassta.adb (Task_Wrapper): Declare the exception registration
25834         record and initialize it by calling __gnat_install_SEH_handler.
25836 2005-02-09  Vincent Celier  <celier@adacore.com>
25838         * make.adb (Gnatmake): Do not fail when the main project has no object
25839         directory.
25841 2005-02-09  Doug Rupp  <rupp@adacore.com>
25843         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
25844         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
25845         [VMS]: Add translations for g-enblsp.adb.
25847         * s-asthan-vms.adb: Removed.
25848         * s-asthan-vms-alpha.adb: Added.
25850 2005-02-09  Pascal Obry  <obry@adacore.com>
25852         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
25853         (LIBGNAT_OBJS): Add seh_init.o.
25855 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
25857         PR ada/16592
25858         * Makefile.in: Link all gnat tools with -static-libgcc, since
25859         -shared-libgcc is now used by default on some systems (e.g. linux with
25860         recent binutils).
25861         Remove references to Makefile.prolog/generic, no longer used.
25863 2005-02-09  Vincent Celier  <celier@adacore.com>
25865         * prj-makr.adb (Process_Directory): Put file name in canonical case
25866         before matching against the patterns.
25867         If gnatname has been invoked as <prefix>-gnatname
25868         then invoke the compiler as <prefix>-gcc, not just "gcc".
25870 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
25872         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
25873         with expansion disabled. The actual subtype is needed among other
25874         places when the selected component appears in the context of a loop
25875         bound, and denotes a packed array.
25876         (Operator_Check): Always use the first subtype in the
25877         error message, to avoid the appearance of internal base types.
25878         (Transform_Object_Operation): Copy each actual in full
25879         to the parameter associations of the constructed call, rather than
25880         using the shallow copy mechanism of New_Copy_List. This ensures that
25881         the chaining of named associations is done properly.
25882         (Complete_Object_Operation): Rewrite node, rather than
25883         replacing it, so that we can trace back to the original selected
25884         component.
25886         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
25887         and calls that use object notation, if the called function is not
25888         declared  in a withed unit, place the elaboration constraint on the
25889         unit in the context that makes the function accessible.
25890         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
25891         imposes an elaboration constraint between two packages.
25893 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
25895         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
25896         views of a private type after handling its private dependents, to
25897         maintain proper stack discipline between entry and exit from the
25898         package.
25900 2005-02-09  Cyrille Comar  <comar@adacore.com>
25902         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
25903         Minor reformatting.
25905 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
25907         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
25908         fields for foreign threads.
25910 2005-02-09  Doug Rupp  <rupp@adacore.com>
25912         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
25913         recursion warnings when compiled with -gnatdm.
25915 2005-02-09  Robert Dewar  <dewar@adacore.com>
25917         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
25918         Slight fix to documentation of -gnaty with no parameters
25920         * xr_tabls.ads: Add ??? comment for missing overall comment
25922         * xsinfo.adb: Make default file name be sinfo.h, since this is what
25923         we now use by default.
25925         * xsnames.adb: Adjust end of file test to look for five space followed
25926         by '#' instead of six spaces. The format of xsnames.adb was modified
25927         in the last update.
25929         * a-numeri.ads: Add reference to AI-388 for greek letter pi
25930         identifier.
25932         * clean.adb: Minor reformatting.
25934         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
25935         gnatname.adb: Minor reformatting
25936         Add 2005 to copyright output when utility is run
25938         * csets.adb: Eliminate obsolete comment
25940         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
25941         Update comments.
25943         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
25945 2005-02-09  Sergey Rybin  <rybin@adacore.com>
25947         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
25948         the difference between compact and incompact layout and add the record
25949         representation clause to the example illustrating different layouts.
25950         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
25951         component clauses").
25953 2005-02-09  Florian Villoing  <villoing@adacore.com>
25955         * gnat_ugn.texi: Fix typos.
25956         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
25957         @file.
25958         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
25959         in the generated documentation.
25961 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
25963         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
25964         longer supported.
25965         Update linker wrapper when linking with non GNU C++.
25967 2005-02-09  Pascal Obry  <obry@adacore.com>
25969         * gnat_ugn.texi:
25970         Document the procedure to debug the DllMain routine on Windows.
25971         Add note about -funwind-tables and mixed Ada and C/C++ programming in
25972         ZCX mode.
25973         Document new BIND qualifer /RETURN_CODES=VMS.
25975 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
25977         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
25978         Edited gnatmetric chapter
25980 2005-02-09  Robert Dewar  <dewar@adacore.com>
25982         * gnat_rm.texi:
25983         Changes to document new wide wide character support
25984         For AI-285
25985         Update documentation on Normalize_Scalars and Initialize_Scalars
25987 2005-02-09  Pascal Obry  <obry@adacore.com>
25989         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
25991 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
25993         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
25994         from the VxWorks kernel) that is needed for getting the active
25995         priority of the different tasks.
25997         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
25998         Use a pragma Elaborate_Body in the spec file instead.
25999         Noticed by code reading.
26001 2005-02-09  Thomas Quinot  <quinot@adacore.com>
26003         * exp_util.ads: Minor correction in comment.
26005 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
26007         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
26008         since this procedure is now too complex to be worth inlining.
26010 2005-02-09  Richard Henderson  <rth@redhat.com>
26012         * utils.c (gnat_define_builtin): Remove.
26013         (gnat_install_builtins): Use build_common_builtin_nodes.
26015 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
26017         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26018         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
26019         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
26020         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
26021         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
26022         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
26023         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
26024         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
26025         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
26026         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
26027         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
26028         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
26029         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
26030         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
26031         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
26032         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
26033         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
26034         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
26035         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
26036         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
26037         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
26038         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
26039         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
26040         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
26041         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
26042         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
26043         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
26044         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
26045         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
26046         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
26047         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
26048         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
26049         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
26050         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
26051         library.
26053 2005-01-27  Laurent Guerby  <laurent@guerby.net>
26055         * Makefile.in: Fix a-intnam.ads from previous commit,
26056         add 2005 to copyright.
26057         * a-intman-rtems.ads: Renamed to...
26058         * a-intnam-rtems.ads:
26060 2005-01-27  Laurent Guerby  <laurent@guerby.net>
26062         * Makefile.in: Rename GNAT RTEMS specific files.
26063         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
26064         5rosinte.ads, 5rparame.adb: Replaced by files below.
26065         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
26066         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
26068 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
26069             Laurent Guerby  <laurent@guerby.net>
26071         PR ada/19488
26072         * 5rosinte.ads: Add No_Key constant.
26073         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
26074         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
26076 2005-01-26  Laurent Guerby  <laurent@guerby.net>
26078         PR ada/19414
26079         * i-cobol.adb (Valid_Numeric): Handle zero length case.
26081 2005-01-20  Richard Henderson  <rth@redhat.com>
26083         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
26084         a-intnam-linux.ads and system-linux-alpha.ads.
26085         * a-intnam-linux-alpha.ads: Remove file.
26086         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
26087         * system-linux-alpha.ads: New file.
26089 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
26091         PR ada/13470
26092         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
26093         set to the new string.
26095 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
26097         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
26098         to True.
26100 2005-01-18  Richard Henderson  <rth@redhat.com>
26102         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
26103         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
26104         for alpha-linux.
26105         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
26107 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
26109         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
26110         (GCC_ZCX_Support): Likewise.
26112 2005-01-11  Bastian Blank  <waldi@debian.org>
26114         * system-linux-s390.ads: Define Preallocated_Stacks.
26115         * system-linux-s390x.ads: Likewise.
26117 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
26119         * gnat_ugn.texi: Fix texi errors with null variables.
26121 2005-01-03  Thomas Quinot  <quinot@adacore.com>
26123         * gen-soccon.c: New utility program to generate g-soccon.ads
26124         automatically.
26126         * socket.c, gsocket.h: Split inclusion of system header files into a
26127         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
26129         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
26130         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
26131         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
26132         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
26133         should not be edited by hand anymore, but should be regenerated using
26134         gen-soccon.
26136 2005-01-03  Robert Dewar  <dewar@adacore.com>
26137             Ed Schonberg  <schonberg@adacore.com>
26138             Vincent Celier  <celier@adacore.com>
26140         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
26141         on/off, since this is an obsolescent feature, for which we now generate
26142         a warning.
26144         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
26145         warning mode is set and obsolescent usage of this attribute occurs.
26146         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
26147         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
26148         predates, and partly motivates, the adoption of the AI.
26149         Implement new Ada 2005 attribute Mod
26151         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
26152         attribute Mod.
26154         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
26156         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
26157         pragma restrictions.
26158         New entry for Ada 2005 attribute Mod.
26160         * par-prag.adb:
26161         Add recognition of new pragma Restrictions No_Dependence
26162         Recognize restriction No_Obsolescent_Features at parse time
26164         * bcheck.adb: Add circuitry for checking for consistency of
26165         No_Dependence restrictions.
26167         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
26168         restrictions.
26170         * restrict.ads, restrict.adb: Add subprograms to deal with
26171         No_Dependence restrictions.
26173         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
26174         restrictions.
26176         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
26177         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
26179         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
26180         dummy parameter to scng instantiation.
26181         Needed for new restriction No_Obsolescent_Features
26183         * scn.adb: (Obsolescent_Check): New procedure
26184         Needed for new restriction No_Obsolescent_Features
26186         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
26187         specified by AI-285, needed for implementation of AI-388 (adding greek
26188         pi to Ada.Numerics).
26189         Add new generic formal to scng, needed for new restriction
26190         No_Obsolescent_Features.
26192         * s-rident.ads: Add new restriction No_Obsolescent_Features.
26194         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
26195         restrictions lines.
26196         (Scan_ALI): When finding an unexpected character on an R line, raise
26197         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
26198         Ignore_Errors is True, default restrictions are set and scanning of the
26199         ALI file continues with the next line. Also, when Bad_R_Line is raised
26200         and Ignore_Errors is True, skip to the end of le line.
26202         * sem_ch10.adb: Check that explicit with's do not violate
26203         No_Dependence restrictions.
26204         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
26205         illegal context clauses containing child units of instance.
26207         * sem_prag.adb: Processing and checking for new No_Dependence
26208         restrictions.
26209         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
26210         analyze and check the External argument.
26212         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
26214 2005-01-03  Robert Dewar  <dewar@adacore.com>
26216         * atree.adb: Add a fifth component to entities
26217         This allows us to add 32 flags and four new fields
26219         * atree.ads: Add a fifth component to entities
26220         This allows us to add 32 flags and four new fields
26222         * einfo.ads, einfo.adb: Document new fields and new flags now available
26223         Add routines for printing new fields
26225         * treepr.adb: Call routines to print out additional fields if present
26227 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
26229         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
26230         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
26232         * Makefile.in: Add support to build shared Ada libraries on solaris x86
26233         Remove gpr2make, replaced by gprmake.
26234         Remove references to gnatmem and libaddr2line.
26235         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
26236         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
26237         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
26238         a-numaux-darwin.ads and a-numaux-darwin.adb
26239         Enable mlib-tgt-lynxos.adb on lynxos.
26241         * Make-lang.in: Remove rules for gpr2make.
26242         When generating sdefault.adb, do not call Relocate_Path
26243         on S3 for function Target_Name, as it is not a path.
26244         Remove references to gnatmem and libaddr2line.
26246         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
26247         files.
26249 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
26251         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
26252         address is incompatible with its base type alignment constraints when
26253         this can be decided statically.
26255 2005-01-03  Olivier Hainque  <hainque@adacore.com>
26257         * decl.c (compatible_signatures_p): New function. The intended purpose
26258         is to check if two function signatures for a call-site and a callee are
26259         compatible enough for the call to be valid. The underlying purpose is
26260         to check if a call to a mapped builtin is using the right interface.
26261         The current code actually does not check antyhing - this a placeholder
26262         for future refinements.
26263         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
26264         builtin calls for convention Intrinsic.
26266         * gigi.h (builtin_decl_for): Declare (new function).
26268         * utils.c (gnat_install_builtins): Install the target specific builtins.
26269         (builtin_decl_for): New function, provide a dummy body for now.
26271 2005-01-03  Geert Bosch  <bosch@adacore.com>
26273         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
26274         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
26275         (Pred): Implement in terms of Succ.
26277         * trans.c (convert_with_check): Reimplement conversion of float to
26278         integer.
26280 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
26281             Vincent Celier  <celier@adacore.com>
26283         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
26284         bounds can be negative, and must be declared Int, not Nat.
26286         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
26287         array is checked after using the index in the array.
26289         * makegpr.adb (Add_Switches): Check if there is a package for the
26290         processor. If there is no package, do not look for switches.
26292 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
26294         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
26295         generation of predefined stream operations (specs and bodies) should
26296         proceed. Under various restrictions these subprograms must not be
26297         generated.
26299 2005-01-03  Thomas Quinot  <quinot@adacore.com>
26301         * exp_dist.adb:
26302         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
26303         amount of PCS-specific code in RACW stubs generation.
26304         (Copy_Specification): Set Etype on copied formal parameter entities, as
26305         this information is needed for PolyORB stubs generation.
26306         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
26307         variable Dynamic_Async.
26308         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
26309         (Build_RPC_Receiver_Specification): Make generic again, as recent
26310         changes have allowed RPC receivers to have the same profile for both
26311         variants of the PCS.
26312         Reorganise RPC receiver generation to reduce differences between the
26313         structure of GARLIC and PolyORB RPC receivers.
26314         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
26315         PCS-specific.
26316         Simplify elaboration code for RCI packages.
26318         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
26319         generation to reduce differences between the structure of GARLIC and
26320         PolyORB RPC receivers.
26322         * s-stratt.adb: Fix typo in comment.
26324 2005-01-03  Thomas Quinot  <quinot@adacore.com>
26326         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
26327         copied from Make_Init_Call).
26329         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
26330         reads and assignments on a temporary variable declared with appropriate
26331         discriminants.
26333 2005-01-03  Robert Dewar  <dewar@adacore.com>
26335         * i-c.adb (To_C): Raise CE if string is null and Append_Null
26337 2005-01-03  Robert Dewar  <dewar@adacore.com>
26339         * i-cstrin.adb (Update): Do not append a null in form called with a
26340         String. This avoids unintended behavior.
26342 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
26344         PR ada/17527
26345         * init.c: Fix warnings on Free BSD section.
26347 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
26349         PR ada/16949
26350         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
26351         xsinfo.adb).
26353 2005-01-03  Vincent Celier  <celier@adacore.com>
26355         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
26356         libraries when Unique_Compile is True (-u switch).
26357         (Gnatmake): ditto.
26359 2005-01-03  Robert Dewar  <dewar@adacore.com>
26361         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
26362         upper case letter or underscore after W, as allowed by spec.
26364 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
26366         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
26367         darwin port by using proper type definitions from header files.
26368         Use SIGTERM instead of SIGABRT for SIGADAABORT.
26370 2005-01-03  Robert Dewar  <dewar@adacore.com>
26372         * par.adb: Enhance error message handling for configuration file
26373         pragmas.
26375 2005-01-03  Robert Dewar  <dewar@adacore.com>
26377         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
26378         removed during the previous update (test properly for case of dividing
26379         largest negative number by -1, which generates overflow).
26381 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
26382             Sergey Rybin  <rybin@adacore.com>
26384         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
26385         to use as the defining identifier for a formal package.
26386         (Remove_Parent): If the instance takes place within (an instance of)
26387         a sibling, preserve private declarations of common parent.
26389 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
26391         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
26392         to determine whether one of the operands is a fixed-point type for
26393         which a user-defined multiplication or division operation might be
26394         defined.
26396         * sem_res.adb (Valid_Conversion): The legality rules for conversions
26397         of access types are symmetric in Ada 2005: either designated type can
26398         be unconstrained.
26400 2005-01-03  Vincent Celier  <celier@adacore.com>
26402         * s-fileio.adb (Temp_File_Record): Change length of string component
26403         Name from L_tmpnam + 1 to max_path_len + 1.
26405 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
26407         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
26408         Self_Id.Deferral_Level = 0.
26409         (Do_Pending_Action): Move this function to the spec.
26411         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
26412         Do_Pending_Action explicitely when needed, in case we're using
26413         No_Abort restrictions.
26415         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
26416         deferral level since it will not get changed by the generated code.
26417         Keeping a default value of 1 would prevent some operations (e.g.
26418         select or delay) to proceed successfully.
26420 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
26421             Robert Dewar  <dewar@adacore.com>
26422             Cyrille Comar  <comar@adacore.com>
26424         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
26425         porting guide chapter (vms version).
26426         Revised doc title (removed "for native platforms") and subtitle.
26427         Add discussion on warning flag for obsolescent features. First we
26428         note that it applies to obsolete GNAT features, which was previously
26429         omitted. Second we contrast the behavior with that of the new
26430         Ada 2005 AI-368 restriction No_Obsolescent_Features.
26431         Preliminary rewriting of GNAT & libraries chapter in order to take
26432         into account default project locations & new project manager
26433         capabilities.
26435 2005-01-03  Robert Dewar  <dewar@adacore.com>
26437         * cstand.adb (Create_Operators): Clean up format and documentation of
26438         unary and binary operator result tables. No change in code, just
26439         reformatting and addition of comments.
26441         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
26442         sem_ch2.adb: Minor reformatting
26444         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
26445         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
26446         comments for Tree_Read and Tree_Write.
26448 2005-01-03  Pascal Obry  <obry@adacore.com>
26450         * exp_attr.ads: Minor reformatting.
26452 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
26454         * comperr.adb (Compiler_Abort): Add specialized message for GAP
26455         versions.
26457 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
26459         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
26460         whether the ancestor type is private, as may be the case with nested
26461         instantiations.
26463 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
26465         PR ada/19128
26466         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
26468 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
26470         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
26471         * utils2.c (build_unary_op): Likewise.
26473 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26475         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
26477 2004-12-19  Richard Henderson  <rth@redhat.com>
26479         * trans.c (gigi): Update gimplify_body call.
26481 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
26483         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
26485 2004-12-07  Ed Falis  <falis@adacore.com>
26487         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
26488         current task being suspended.
26490         * init.c (__gnat_clear_exception): added to reset VxWorks exception
26491         count.
26492         (__gnat_map_signal): removed test for current task being suspended.
26494 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
26496         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
26497         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
26498         targets (such as AAMP).
26500 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
26502         * atree.adb (Visit_Itype): Create a new name for the generated itype,
26503         because the back-end may otherwise treat it as a redefinition of the
26504         old symbol.
26506 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
26508         * back_end.adb (Scan_Back_End_Switches): Accept --param.
26510         * lang-specs.h: Accept --param.
26512 2004-12-07  Vincent Celier  <celier@adacore.com>
26514         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
26515         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
26516         Current_Body_Suffix => Ada_Body_Suffix).
26517         Take into account Externally_Built attribute.
26519         * clean.adb (In_Extension_Chain): Always return False when one of the
26520         parameter is No_Project.
26521         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
26522         Ada_Language_Index).
26523         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
26524         Process_Languages for procedure Parse).
26526         * gnatcmd.adb (Carg_Switches): New table.
26527         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
26528         Adapt to name changes in package Prj (Current_Spec_Suffix =>
26529         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
26531         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
26532         Header_Num and function Hash are now declared in package Prj,
26533         not Prj.Com.
26535         * prj.adb (Suffix_Of): New function.
26536         (Set (Suffix)): New procedure.
26537         (Hash): One function moved from Prj.Com
26538         (Is_Present, Language_Processing_Data_Of): New functions
26539         (Set): Two new procedures
26540         (Add_Language_Name, Display_Language_Name): New procedures
26542         * prj.ads: (Suffix_Of): New function
26543         (Set (Suffix)): New procedure
26544         Add several types and tables for multi-language support.
26545         (Header_Num): Type moved from Prj.Com
26546         (Hash): Two functions moved from Prj.Com
26547         (Is_Present, Language_Processing_Data_Of): New functions
26548         (Set): Two new procedures
26549         (Add_Language_Name, Display_Language_Name): New procedures
26550         (Naming): Component name changes:
26551         Current_Spec_Suffix => Ada_Spec_Suffix,
26552         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
26553         Impl_Suffixes, Supp_Suffixes.
26554         (Project_Data): New components: Externally_Built, Supp_Languages,
26555         First_Language_Processing, Supp_Language_Processing, Default_Linker,
26556         Default_Linker_Path.
26558         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
26559         new package Language_Processing with its attributes (Compiler_Driver,
26560         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
26561         Binder_Driver, Default_Linker).
26563         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
26564         (Header_Num): Type moved to package Prj
26566         * prj-env.adb: Adapt to name changes in package Prj
26567         (Current_Spec_Suffix => Ada_Spec_Suffix,
26568         Current_Body_Suffix => Ada_Body_Suffix).
26570         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
26571         default to the project path, except the "-" is one of the directories
26572         in env var ADA_PROJECT_PATH.
26573         (Current_Project_Path): Global variable, replacing Project_Path
26574         that was in the body of Prj.Part.
26575         (Project_Path): New function
26576         (Set_Project_Path): New procedure
26577         Initialize Current_Project_Path during elaboration of the package
26578         Remove dependency on Prj.Com, no longer needed
26580         * prj-ext.ads (Project_Path): New function
26581         (Set_Project_Path): New procedure
26583         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
26584         suffix is defined for language <lang>.
26585         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
26586         accessing directly the components of Naming.
26587         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
26588         Reorganise of this package.
26589         Break procedure Check in several procedures.
26591         * prj-nmsc.ads: Replace all procedures (Ada_Check,
26592         Other_Languages_Check and Language_Independent_Check) with a single
26593         procedure Check.
26595         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
26596         Process_Languages, no longer needed.
26598         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
26599         Current_Project_Path.
26600         Remove elaboration code, moved to the body of Prj.Ext
26601         Use new function Prj.Ext.Project_Path instead of old variable
26602         Project_Path.
26603         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
26604         When comparing with project paths on the stack, first put the resolved
26605         path in canonical case.
26606         (Parse_Single_Project): Set the path name of the project file in the
26607         tree to the normalized path.
26609         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
26610         parameter Process_Languages, no longer needed.
26611         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
26612         Other_Languages_Check.
26614         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
26615         to store the resolved canonical path of the project file.
26616         Remove dependency to Prj.Com, no longer needed
26618         * prj-util.adb: Adapt to name changes in package Prj
26619         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
26620         Ada_Body_Suffix).
26622         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
26623         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
26624         Externally_Built, Include_Option, Language_Processing.
26626         * makegpr.adb: Numerous changes due to changes in packages
26627         Prj and Prj.Nmsc.
26629         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
26630         default to the project path, except whe "-" is one of the directories
26631         in env var ADA_PROJECT_PATH.
26632         (Gnatls): In verbose mode, add the new section "Project Search Path:"
26634 2004-12-07  Robert Dewar  <dewar@adacore.com>
26636         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
26638         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
26639         set -gnatR3m mode.
26641         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
26642         flag. No longer needed now that we handle this in gnat1drv.adb.
26644         * repinfo.ads: Minor reformatting
26646 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26647             Olivier Hainque  <hainque@adacore.com>
26648             Eric Botcazou  <ebotcazou@adacore.com>
26650         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
26651         TYPE_SIZE_UNIT of result type if SIZE is not specified.
26652         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
26653         of a bitfield, which we know is useless and causes trouble because of
26654         alignment implications.
26656         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
26657         BSS sections.
26658         (process_attributes): Clear DECL_COMMON again when a section attribute
26659         is present.
26660         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
26661         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
26662         (create_field_decl): Special case ADDRESSABLE negative to mean
26663         "no bitfield creation", to be used by make_aligning_type. Don't
26664         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
26665         fields claimed addressable still have to be bitfields. Use
26666         value_factor_p instead of a raw binop construction to check for the
26667         position's alignment.
26669 2004-12-07  Geert Bosch  <bosch@adacore.com>
26671         * eval_fat.adb: Revert previous change.
26673 2004-12-07  Thomas Quinot  <quinot@adacore.com>
26674             Ed Schonberg  <schonberg@adacore.com>
26676         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
26677         with an implicit dereference as its prefix, use
26678         Insert_Explicit_Dereference instead of merely rewriting the prefix into
26679         an explicit dereference. This ensures that a reference to the original
26680         prefix is generated, if appropriate.
26682         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
26683         dereference is rewritten to an explicit one, generate a reference to
26684         the entity denoted by its prefix using the original prefix node, so
26685         the dereference can be properly recorded as a read of the denoted
26686         access value, if appropriate.
26688         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
26689         emitting 'assigned but never read' warning on a variable on the basis
26690         that it has an access type.
26691         (Check_References): Emit unreferenced warning when the scope is a
26692         subprogram body.
26694 2004-12-07  Robert Dewar  <dewar@adacore.com>
26695             Ed Schonberg  <schonberg@adacore.com>
26697         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
26698         intrinsic
26700         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
26701         leaving call unchanged.
26702         This deals with the case where the pragma Import specified
26703         an external name, to be handled by the back end.
26705         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
26706         subprogram which is Imported with convention Intrinsic if an
26707         External_Name argument is specified.
26708         (Process_Import_Or_Interface): Properly diagnose link name argument.
26709         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
26710         with Sem_Ch6.Cannot_Inline.
26711         (Process_Inline): Provide separate warning for inapplicable inline
26712         pragma.
26713         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
26714         treatment is uniform on different targets.
26716 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
26718         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
26719         construct is rewritten, preserve end label to permit source navigation.
26721 2004-12-07  Thomas Quinot  <quinot@adacore.com>
26723         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
26724         Specific_Build_Stub_Target): New subprograms.
26725         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
26726         the PCS implementation used, using the above PCS-customized subprograms.
26727         Minor reformatting.
26728         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
26729         for generation of DSA code targeted to the PolyORB PCS.
26730         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
26731         implementation of the partition communication subsystem in ancillary
26732         subprograms.
26733         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
26734         PolyORB_Support.Build_Stub_Type): New subrograms containing the
26735         PCS-specific part of Add_Stub_Type.
26736         (Insert_Partition_Check): Use runtime library function to perform
26737         E.4(19) check.
26739         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
26740         (RE_Same_Partition): New entity, from s-parint.
26742         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
26744 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
26746         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
26747         Output the copyright message on a separate line from the version
26748         message.
26750 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
26752         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
26753         compile-time warning.
26755 2004-12-07  Robert Dewar  <dewar@adacore.com>
26757         * g-regpat.adb: (Match): Change a misuse of or to or else
26759 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
26761         * lib-xref.adb:
26762         (Generate_Reference): Handle properly a reference to an entry formal,
26763          when an accept statement has a pragma Unreferenced for it.
26765         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
26766         and the Has_Pragma_Unreferenced flag for each formal before analyzing
26767         the body, to ensure that warnings are properly emitted for each accept
26768         statement of a given task entry.
26770 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
26772         * Makefile.in: Add support for foreign threads on VMS.
26774 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26776         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
26777         Remove.
26778         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
26780         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
26782         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
26783         exception.
26784         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
26786 2004-12-07  Robert Dewar  <dewar@adacore.com>
26788         * nlists.adb (Prepend_Debug): Remove parameters and nest within
26789         Prepend.
26790         (Remove_Next_Debug): Same fix
26792         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
26793         maintain back pointers now, though we did not used to, and comments
26794         were out of date).
26795         (Prepend): Remove pragma Inline.
26796         (Remove_Next): Same cleanup
26798 2004-12-07  Thomas Quinot  <quinot@adacore.com>
26800         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
26801         used to record an implicit dereference as a read operation on its
26802         prefix when operating under -gnatc. Necessary to avoid spurious
26803         'variable assigned but never read' warnings in that mode.
26804         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
26805         is a non-overloaded implicit dereference, call the above subprogram to
26806         ensure proper recording of references.
26808 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
26810         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
26811         to be resolved later as part of Analyze_Iteration_Scheme's call to
26812         Make_Index.
26814 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
26816         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
26817         prefix is not a scalar type, place error message on prefix, not on
26818         type entity.
26820 2004-12-07  Bernard Banner  <banner@adacore.com>
26822         * vxaddr2line.adb: Add support for x86 vxworks
26824 2004-12-07  Thomas Quinot  <quinot@adacore.com>
26826         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
26827         documentation of the behaviour of these functions when passed an IP
26828         address that has no record in the system hosts database and no reverse
26829         record in the DNS.
26831         * cstand.adb, a-tags.ads: Fix typos in comment.
26833 2004-12-07  Robert Dewar  <dewar@adacore.com>
26835         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
26836         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
26837         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
26838         s-poosiz.ads: Minor reformatting
26840         * make.adb: Minor reformatting
26841         Add some ??? comments asking for more comments
26843         * s-poosiz.adb: Minor reformatting
26844         Add comments on alignment requirement
26846         * sinfo.ads: Remove obsolete comment and fix typo.
26848 2004-12-07  Vincent Celier  <celier@adacore.com>
26849             Sergey Rybin  <rybin@adacore.com>
26851         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
26852         Files" with the new tool and package names.
26853         Reformatting to suppress most of the warnings for line too long
26854         Document the new section "Project Search Path:" in the output of
26855         gnatls -v.
26856         Add gnatmetric section
26858 2004-12-07  Vincent Celier  <celier@adacore.com>
26860         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
26861         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
26862         and -eit to -ept. Added qualifier
26863         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
26865 2004-11-27  Andreas Schwab  <schwab@suse.de>
26867         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
26869 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
26871         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
26872         internal implementation unit GNAT.Sockets.Thin,
26873         as their usage for sockets is non-portable (using the read and write
26874         functions from the system runtime library is fine on UNIX but won't
26875         work under Windows).
26877         * mingw32.h: Update copyright notice.
26879 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
26881         * ada-tree.h: Minor reformatting of previous change to avoid lines
26882         longer than 79 characters.
26884 2004-11-25  Olivier Hainque  <hainque@adacore.com>
26886         * tb-gcc.c: GCC infrastructure based implementation of
26887         __gnat_backtrace.
26889 2004-11-24  Steven Bosscher  <stevenb@suse.de>
26891         * misc.c (gnat_post_options): Don't clear
26892         flag_inline_functions.
26894 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
26896         PR ada/17986
26897         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
26898         tree.
26900 2004-11-21  Andreas Jaeger  <aj@suse.de>
26902         * stylesw.adb: Change Style_Check_Subprogram_Order to
26903         Style_Check_Order_Subprograms.
26905 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
26907         * adaint.h, adaint.c
26908         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
26909         to avoid warnings.
26910         Add also a cast to kill another warning.
26911         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
26912         parameter with the priority class of the parent process instead of
26913         always using the NORMAL_PRIORITY_CLASS.
26914         (__gnat_dup): New function.
26915         (__gnat_dup2): New function.
26916         (__gnat_is_symbolic_link): Enable the effective body of this
26917         function when __APPLE__ is defined.
26919         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
26920         Update comments.
26922 2004-11-18  Olivier Hainque  <hainque@adacore.com>
26924         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
26925         address of which may be used to represent "others" and "all others"
26926         choices in exception tables, instead of the current harcoded
26927         (void *)0 and (void *)1.
26928         (Setup_Exception): Do nothing in the GNAT SJLJ case.
26930         * gigi.h (others_decl, all_others_decl): New decls representing the
26931         new Others_Value and All_Others_Value objects.
26932         (struct attrib): Rename "arg" component as "args", since GCC expects a
26933         list of arguments in there.
26935         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
26936         corresponding objects exported by a-exexpr, instead of hardcoded dummy
26937         addresses.
26939         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
26940         others_decl and all_others_decl instead of hardcoded dummy addresses
26941         to represent "others" and "all others" choices, which is cleaner and
26942         more flexible with respect to the possible eh pointer encoding policies.
26944         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
26945         (process_attributes): Account for the naming change of the "args"
26946         attribute list entry component.
26948         * decl.c (build_attr_list): Rename into prepend_attributes to allow
26949         cumulating attributes for different entities into a single list.
26950         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
26951         attributes for the current entity and propagate first subtype
26952         attributes to other subtypes.
26953         <E_Procedure>: Attribute arguments are attr->args and not
26954         attr->arg any more.
26955         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
26956         argument provided, as this is what GCC expects. Use NULL_TREE instead
26957         of 0 for trees.
26959 2004-11-18  Robert Dewar  <dewar@adacore.com>
26961         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
26962         Minor reformatting througout (including new function specs)
26963         Add ??? comments asking for clarification.
26965 2004-11-18  Thomas Quinot  <quinot@adacore.com>
26967         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
26968         incomplete duplicate implementation of this subprogram from butil.
26970 2004-11-18  Thomas Quinot  <quinot@adacore.com>
26972         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
26973         procedures factors the common processing for building an RPC receiver
26974         for an RCI package or an RACW type.
26975         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
26976         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
26977         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
26978         in use.
26979         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
26980         Add_RACW_Features.
26981         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
26982         Add_RAST_Features.
26983         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
26984         distribution subprogram identifiers that are either subprogram numbers
26985         or strings.
26986         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
26987         string distribution identifiers assigned to a given subprogram.
26988         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
26989         (Add_RAS_Dereference_TSS): Add comments.
26990         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
26991         is not referenced yet because it will be used by the PolyORB DSA
26992         implementation.
26993         (Insert_Partition_Check): Remove fossile code.
26994         (First_RCI_Subprogram_Id): Document this constant.
26995         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
26996         RAS_Access TSS.
26997         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
26998         replaced with calls to Get_Library_Unit_Name_String. Previously there
26999         were several instances of the same code in different locations in the
27000         compiler; this checkin completes the replacement of all of these
27001         instances with calls to a common subprogram.
27002         Minor reformatting.
27004         * sem_dist.adb: Remove comment noting that RPC receiver generation
27005         should be disabled for RACWs that implement RASs.
27006         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
27008         * sem_util.ads, sem_util.adb (Has_Stream): New function
27009         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
27010         qualified name of a library unit into the name buffer.
27011         (Note_Possible_Modification): Generate a reference only
27012         if the context comes from source.
27014         * snames.ads (PCS_Names): New subtype corresponding to names of
27015         supported implementations of the Partition Communication Subsystem
27016         (PCS) (i.e. the runtime library support modules for the distributed
27017         systems annex).
27019 2004-11-18  Robert Dewar  <dewar@adacore.com>
27020             Ed Schonberg  <schonberg@adacore.com>
27022         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
27023         (Has_Rep_Pragma): New function
27024         (Has_Attribute_Definition_Clause): New function
27025         (Record_Rep_Pragma): Moved here from sem_ch13.adb
27026         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
27028         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
27030         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
27031         (Expand_Pragma_Psect_Object): New procedure
27032         These procedures contain the revised and cleaned up processing for
27033         these two pragmas. This processing was formerly in Sem_Prag, but
27034         is more appropriately moved here. The cleanup involves making sure
27035         that the pragmas are properly attached to the tree, and that no
27036         nodes are improperly shared.
27038         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
27039         pragmas to Exp_Prag, which is more appropriate.
27040         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
27041         check for duplicates Remove use of Is_Psected flag, no longer needed.
27042         Use new Make_String_Literal function with string.
27044         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
27045         that are functions return universal values, that have to be converted
27046         to the context type.
27047         Use new Make_String_Literal function with string.
27048         (Get_Stream_Convert_Pragma): New function, replaces the use of
27049         Get_Rep_Pragma, which had to be kludged to work in this case.
27051         * freeze.adb: Use new Has_Rep_Pragma function
27053         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
27054         function with string.
27055         Use new Has_Rep_Pragma function.
27057         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
27058         string argument.
27060 2004-11-18  Robert Dewar  <dewar@adacore.com>
27062         * errout.ads, errout.adb: (First_Sloc): New function
27064         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
27065         check (-gnatyx) instead of being included as a redundant construct
27066         warning.
27068         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
27069         Style_Check_Order_Subprograms.
27071         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
27072         stylesw.adb: Add Style_Check_Xtra_Parens
27074         * usage.adb: Add line for -gnatyx (check extra parens)
27076         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
27078 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
27079             Robert Dewar  <dewar@adacore.com>
27081         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
27082         discriminant of a constrained subtype, analyze the copy of the
27083         corresponding constraint, because in some cases it may be only
27084         partially analyzed.
27085         Removes long-lived ??? comments.
27087         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
27088         handled controlled or secondary-stack expressions within the
27089         iteration_scheme of a loop.
27091         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
27092         bounds that may contain functions calls, to prevent memory leaks when
27093         the bound contains a call to a function that uses the secondary stack.
27094         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
27095         generate temporaries for loop bounds that might contain function calls
27096         that require secondary stack and/or finalization actions.
27098         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
27099         selected component and the selector is overloadable (not just a
27100         function) treat as function call, Analyze_Call will disambiguate if
27101         necessary.
27102         (Analyze_Selected_Component): Do not generate an actual subtype for the
27103         selected component if expansion is disabled. The actual subtype is only
27104         needed for constraint checks.
27105         (Analyze_Allocator): If restriction No_Streams is set, then do
27106         not permit objects to be declared of a stream type, or of a
27107         composite type containing a stream.
27109         * restrict.ads: Remove the a-stream entry from Unit_Array, since
27110         No_Streams no longer prohibits with'ing this package.
27112         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
27113         discriminants, but the parent base has unknown discriminants, there is
27114         no discriminant constraint to inherit. Such a discrepancy can arise
27115         when the actual for a formal type with unknown discriminants is a
27116         similar private type whose full view has discriminants.
27117         (Analyze_Object_Declaration): If restriction No_Streams is set, then
27118         do not permit objects to be declared of a stream type, or of a
27119         composite type containing a stream.
27121 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
27123         * exp_dbug.ads: Update documentation to reflect simpler encoding for
27124         protected operations.
27126         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
27127         generated name, it complicates decoding in gdb and hinders debugging
27128         of protected operations.
27129         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
27130         flag for the protected entry barrier function.
27131         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
27132         flag for the protected entry function.
27134 2004-11-18  Nicolas Setton  <setton@adacore.com>
27136         * expect.c: Define __unix__ when __APPLE__ is defined.
27138         * Makefile.in: Inform the value of the variable GMEM_LIB in the
27139         Darwin-specific section.
27141         * lang-specs.h: Change the placement of the %1 marker.
27142         Works around the fact that gcc adds -fPIC by default under Darwin.
27144 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
27146         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
27147         type of the object with the packed array type, set the Analyzed flag
27148         on the object if it is an entity or simple indexed component, to avoid
27149         spurious type errors.
27151 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
27153         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
27154         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
27155         separate line from the version message.
27157 2004-11-18  Ed Falis  <falis@adacore.com>
27159         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
27160         vthreads.
27161         (init_float): Eliminate initialization of floating point status for
27162         AE653. The instructions have no effect for vThreads.
27164 2004-11-18  Vincent Celier  <celier@adacore.com>
27166         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
27167         gnatbind is invoked with -shared.
27169 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
27171         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
27172         for Detect_Blocking which is redundant with the check done within the
27173         procedure Protected_Single_Entry_Call.
27174         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
27175         Detect_Blocking which is redundant with the check done within the
27176         procedure Protected_Single_Entry_Call.
27178 2004-11-18  Vincent Celier  <celier@adacore.com>
27180         * makegpr.adb (Compile): Put the compiling switches (in package
27181         Compiler and on the command line) immediately after "-c", instead of
27182         at the end of the command line invocation of the compiler, when
27183         compiling a non-Ada file.
27184         (Build_Global_Archive): When there is no need to rebuild the archive,
27185         set Global_Archive_Exists, so that the archive is passed to the linker
27186         if one is needed.
27188 2004-11-18  Robert Dewar  <dewar@adacore.com>
27189             Sergey Rybin  <rybin@adacore.com>
27191         * gnat_ugn.texi:
27192         Remove extra paren check from list of checks for redundant constructs
27193         Add documentation of new -gnatyx style check (check extra parens)
27194         Remove paragraph about gnatelim debug options.
27196         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
27197         objects rather than forbidding dependencies on the package Ada.Streams.
27199         * sinfo.ads: Add ??? note that we should document pragmas passed to
27200         back end.
27202         * g-expect.ads: Fix a few typos in the comments.
27204 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
27206         * misc.c (gnat_handle_option): Use %< and %> for quoting in
27207         warning message.
27209 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
27211         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
27213 2004-11-07  Andreas Schwab  <schwab@suse.de>
27215         * Makefile.in (install-gnatlib): Remove spurious hyphen.
27217 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
27219         PR ada/18228
27220         * Makefile.in (darwin): Set soext to .dylib.
27222 2004-10-26  Vincent Celier  <celier@gnat.com>
27223             Thomas Quinot   <quinot@act-europe.fr>
27225         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
27226         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
27227         there is no use of GNAT.Sockets.Constants.
27228         Remove remaining pragma Import for C_Write
27229         Remove C_Read and C_Write from internal implementation unit
27230         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
27231         the read and write functions from the system runtime library is fine
27232         on UNIX but won't work under Windows).
27234         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
27235         (Check_Selector): Use C_Recv instead of C_Read.
27236         Selectors are the GNAT.Sockets abstraction to perform a select()
27237         call on a set of descriptors. To allow abortion of an ongoing
27238         select operation, some data is written to a dedicated socket that
27239         is always monitored.
27240         Under Windows, the write and read library functions cannot operate
27241         on sockets, so we need to use send and recv instead, which is portable
27242         across all supported platforms.
27244         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
27245         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
27246         (using the read and write functions from the system runtime library is
27247         fine on UNIX but won't work under Windows).
27249 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
27251         * mlib-tgt-darwin.adb: New file.
27253         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27254         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27255         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27256         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
27257         subprogram body.
27259         * Makefile.in: Add support for building shared libraries under Darwin.
27260         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
27261         the low level EH init subprogram to be called from __gnat_initialize.
27263         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
27264         indicates which options to pass to the archive indexer.
27266         * mlib-utl.adb: Add support for calling ranlib with additional
27267         options. This is needed for instance under Mac OS X.
27268         (Ranlib_Options): New global variable, used to store the potential
27269         options to pass to ranlib.
27270         (Ar): Use Ranlib_Options when spawning ranlib.
27271         (Initialize): Set the value of ranlib option.
27273 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
27275         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
27276         instead of 8K, to reflect the real potential needs for stack-checking
27277         in the ZCX case.
27279 2004-10-26  Pascal Obry  <obry@gnat.com>
27281         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
27283         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
27284         Windows only the initial thread stack size can be set so it is good to
27285         start we a low stack size.
27286         The OS will adjust the size as needed.
27288 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
27289             Nicolas Setton  <setton@act-europe.fr>
27291         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
27292         "__unix__" instead of "unix".
27293         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
27294         sections were just mistakenly ignored. The former is
27295         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
27296         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
27297         of hpux. This prevents an unwanted definition of the symbol
27298         convert_addresses in adaint.o.
27300 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
27302         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
27303         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
27305 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
27307         * a-filico.ads, a-filico.adb: fix incorrect header.
27309 2004-10-26  Javier Miranda  <miranda@gnat.com>
27311         * a-ststio.ads: Fix typo in identifier
27313 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
27315         * sem_ch4.adb: Minor reformatting.
27317 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27319         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
27320         enabled, check the result of unary and binary operations when the
27321         expression is the right-hand side of an assignment.
27323 2004-10-26  Vincent Celier  <celier@gnat.com>
27325         * clean.adb (Delete): Do not output warnings when in quiet output and
27326         not in verbose mode.
27327         (Force_Deletions): New Boolean flag, defaulted to False
27328         (Delete): Only delete a file if it is writable, and when
27329         Force_Deletions is True.
27330         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
27331         (Usage): Line for new switch -f
27332         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
27333         own.
27335 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
27337         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
27338         JM type only if its size matches that of the wrapper.  When a size is
27339         prescribed and the field is not aliased, remove the wrapper of a JM
27340         type only if the size is not greater than that of the packed array.
27341         (gnat_to_gnu_entity): Change the extension of packed array wrappers
27342         from LJM to JM.
27344 2004-10-26  Geert Bosch  <bosch@gnat.com>
27346         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
27347         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
27348         (Pred): Implement in terms of Succ.
27350 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27352         * exp_aggr.adb (Safe_Component): An aggregate component that is an
27353         unchecked conversion is safe for in-place use if the expression of the
27354         conversion is safe.
27355         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
27356         be expandable in place even if the aggregate does not come from source.
27357         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
27358         designated object of an allocator in place, rather than building it
27359         first on the stack. The previous scheme forces a full copy of the array,
27360         and may be altogether unsusable if the size of the array is too large
27361         for stack allocation.
27363 2004-10-26  Robert Dewar  <dewar@gnat.com>
27365         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
27366         compares if the component is atomic.
27368         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
27369         array assignment if the component type is atomic.
27371 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27372             Eric Botcazou  <ebotcazou@act-europe.fr>
27374         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
27375         is aliased and is a by_reference type, do not pass by copy.
27376         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
27377         detect whether the call is in the right side of an assignment or
27378         the expression of an object declaration.  Recurse on component
27379         association within aggregates.
27380         Call it in the condition that determines whether the temporary is
27381         necessary for correct stack-checking.
27383 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
27385         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
27386         RACW_Type, used in the PolyORB version.
27387         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
27388         version and the GARLIC version.
27390         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
27391         Rename RCI_Info to RCI_Locator for better consistency between the
27392         GARLIC and PolyORB versions of the distributed systems annex.
27393         (DSA_Implementation_Name): This enumeration lists the possible
27394         implementations of the Partition Communication Subsystem for the
27395         Distributed Systems Annex (DSA). The three available implementations
27396         are the dummy stub implementation (No_DSA), and two versions based on
27397         two different distribution runtime libraries: GARLIC and PolyORB. Both
27398         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
27399         technology.
27400         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
27401         that organization.
27403         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
27404         between the GARLIC and PolyORB versions of the distributed systems
27405         annex.
27406         Remove RE_Unbounded_Reclaim_Pool since it is unused.
27408 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
27410         * gnat1drv.adb: Suppress calling the back end when
27411         Frontend_Layout_On_Target is true.
27413 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
27415         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
27416         Set_Read_Only): New subprograms.
27417         These new routines allow the user to set or unset the Owner execute
27418         and Owner write permission flags on a file.
27420         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
27421         GNAT.OS_Lib.Set_Executable instead of rolling our own.
27423 2004-10-26  Matthew Gingell  <gingell@gnat.com>
27425         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
27427 2004-10-26  Pascal Obry  <obry@gnat.com>
27429         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
27430         memory before the faulting page we properly test the process read
27431         access for this address using appropriate Win32 routine.
27432         (HPUX sections): guard with "__hpux__" instead of "hpux".
27434 2004-10-26  Robert Dewar  <dewar@gnat.com>
27436         * lib-xref.adb (Generate_Reference): Don't complain about reference to
27437         entry parameter if pragma Unreferenced set, since we do not properly
27438         handle the case of multiple parameters.
27440 2004-10-26  Vincent Celier  <celier@gnat.com>
27442         * prj-env.adb: (Contains_ALI_Files): New Boolean function
27443         (Ada_Objects_Path.Add): For a library project, add to the object path
27444         the library directory only if there is no object directory or if the
27445         library directory contains ALI files.
27446         (Set_Ada_Paths.Add.Recursive_Add): Ditto
27448 2004-10-26  Vincent Celier  <celier@gnat.com>
27450         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
27451         extension of library projects.
27453         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
27454         path defaults to ".:<prefix>/lib/gnat".
27455         (Parse): For an extending all project, allow direct import of a project
27456         that is virtually extended.
27458         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
27459         the specified name is directly imported, return its ID. Otherwise, if
27460         an extension of this project is imported, return the ID of the
27461         extension.
27463 2004-10-26  Robert Dewar  <dewar@gnat.com>
27465         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
27466         (Sub3): New procedure, used by Scaled_Divide
27467         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
27468         correct more than one instance of failure to propagate carries
27469         correctly.
27470         (Double_Divide): Handle overflow case of largest negative number
27471         divided by minus one.
27473         * s-arit64.ads (Double_Divide): Document that overflow can occur in
27474         the case of a quotient value out of range.
27475         Fix comments.
27477 2004-10-26  Robert Dewar  <dewar@gnat.com>
27479         * s-bitops.adb (Bit_Eq): Remove redundant check.
27481         * s-bitops.ads: Minor comment updates
27482         Change some occurrences of Address to System.Address
27484         * s-carsi8.ads: Fix minor cut-and-paste error in comments
27486 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27488         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
27489         accessibility check to prefix that is a protected operation.
27491 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27493         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
27494         empty, post message on stub.
27496 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27497             Javier Miranda  <miranda@gnat.com>
27499         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
27500         current instance appears within a unit that is directly in the context
27501         of the main unit.
27502         Used to determine whether the body of the instance should be analyzed
27503         immediately after its spec, to make its subprogram bodies available
27504         for front-end inlining.
27505         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
27506         constraint is not allowed on the component type (AARM 12.5.3(3))
27508 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
27510         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
27511         'Storage_Pool): enhance, document & limit detection of non-sharable
27512         internal pools.
27514         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
27516         * s-pooglo.ads: Add more documentation now that this pool is properly
27517         documented.
27519 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27521         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
27522         or protected type with discriminants, do not constrain the
27523         corresponding record type if the subtype declaration has no
27524         discriminant constraints. This can be the case in source code, or in
27525         the subtype declaration created to rename an actual type within an
27526         instantiation.
27528 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27530         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
27531         different kind of stub (possibly wrong name for file), do not check
27532         for conformance.
27533         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
27534         includes call to some function that returns an unconstrained type, do
27535         not inline.
27537 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
27539         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
27540         appear in the code for the main unit. Dependencies among units in the
27541         context of the main unit are established when those other units are
27542         compiled. Otherwise spurious elaboration constraints can generate
27543         incorrect elaboration circularities.
27545 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
27546             Ed Schonberg   <schonberg@gnat.com>
27548         * sem_util.adb (Is_Aliased_View): Defend against the case where this
27549         subprogram is called with a parameter that is not an object name. This
27550         situation arises for some cases of illegal code, which is diagnosed
27551         later, and in this case it is wrong to call Is_Aliased, as that might
27552         cause a compiler crash.
27553         (Explain_Limited_Type): Refine previous fix to include
27554         inherited components of derived types, to provide complete information.
27556         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
27557         is the prival for a protected object.
27558         It is necessary to mark this entity as a variable, in addition to
27559         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
27560         modified to avoid checking the Aliased flag on entities that are not
27561         objects. (Checking that flag for non-objects is erroneous and could
27562         lead to a compiler crash).
27564 2004-10-26  Robert Dewar  <dewar@gnat.com>
27566         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
27567         X_Frac = 0.5, then we know that the number X must be positive.
27568         (Succ): Remove the same redundant test, and also fix the primary test
27569         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
27570         Minor reformatting
27571         (Decompose): Add fuller comments to spec
27573 2004-10-26  Pascal Obry  <obry@gnat.com>
27575         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
27576         validity (process must have read access). Set to 0 in all other cases.
27577         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
27578         violation on Win32.
27579         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
27580         segmentation violation.
27582 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
27584         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
27585         whose type is a constructed subtype of an aliased object with an
27586         unconstrained nominal subtype, convert the actual to the constructed
27587         subtype before taking its address.
27589 2004-10-26  Vincent Celier  <celier@gnat.com>
27591         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
27592         (Is_Path_Name_Case_Sensitive): New function
27594         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
27595         (Base_Name, Simple_Name, Current_Directory, Compose,
27596         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
27597         the result.
27599 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
27600             Vasiliy Fofanov  <fofanov@act-europe.fr>
27601             Vincent Celier   <celier@gnat.com>
27603         * gnat_ugn.texi: Generalize "finding memory problems" section into a
27604         "memory management issues" section and document some of the useful
27605         memory pools provided as part of the GNAT library.
27606         Remove "virtual" from declaration of A::method2 in
27607         the simple example of Ada/C++ mixed system.
27608         Library Projects may be virtually extended: their virtual extensions
27609         are not Library Projects.
27610         Added section on extending project hierarchies.
27612 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
27614         * adaint.c (__gnat_get_libraries_from_registry): Cast value
27615         to LPBYTE.
27616         (__gnat_portable_spawn): Remove const.
27618         * mingw32.h (MAXPATHLEN): Check for previous definition.
27620 2004-10-17  Matthias Klose  <doko@debian.org>
27622         * gnatvsn.ads: Set gnat library version to 4.0.
27624 2004-10-05  Vincent Celier  <celier@gnat.com>
27626         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
27628 2004-10-04  Laurent Guerby  <laurent@guerby.net>
27630         PR ada/15156
27631         * Makefile.in: Define and use RANLIB_FLAGS.
27633 2004-10-04  Pascal Obry  <obry@gnat.com>
27635         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
27636         other x86 platforms).
27638 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
27640         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
27641         in general and triggers stack alignment adjustment for thread entry
27642         points on targets where this is necessary.
27644 2004-10-04  Bernard Banner  <banner@gnat.com>
27646         PR ada/13897
27647         * Makefile.in: Add section for powerpc linux
27648         Add variant i-vxwork-x86.ads
27650         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
27652 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
27654         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
27655         table registration calls when need be. Ensures no reference to the crt
27656         ctors symbol are issued in the SJLJ case, which avoids possible
27657         undefined symbol errors in the case of modules to be statically linked
27658         with the kernel.
27660 2004-10-04  Javier Miranda  <miranda@gnat.com>
27662         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
27663         in-line the code corresponding to subprogram Analyze_Actuals. In
27664         addition, analyze the actuals only in case of subprogram call.
27666 2004-10-04  Ed Falis  <falis@gnat.com>
27668         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
27670 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
27672         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
27673         in the documentation.
27675 2004-10-04  Robert Dewar  <dewar@gnat.com>
27677         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
27678         IF and CASE.
27679         (Analyze_Block_Statement): Add circuitry to detect following dead code
27680         (Check_Unreachable_Code): Handle case of block exit
27682 2004-10-04  Robert Dewar  <dewar@gnat.com>
27684         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
27685         (XMatchD): Avoid warning for Logic_Error call
27687 2004-10-04  Robert Dewar  <dewar@gnat.com>
27689         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
27690         consider expressions buried within a procedure actual to be an actual.
27691         This caused some blowups with uses of packed slices within a procedure
27692         actual.
27694 2004-10-04  Robert Dewar  <dewar@gnat.com>
27696         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
27697         longer need to be initialized to zero.
27698         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
27699         initialized to zero.
27701         * checks.adb (Expr_Known_Valid): Packed arrays are now always
27702         considered valid, even if the representation is modular. That's correct
27703         now that we no longer initialize packed modular arrays to zero.
27705         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
27706         suffixes. These are now documented as the only cases in which the
27707         debugger ignores outer records.
27708         Previously, the spec allowed arbitrary suffixes for this purpose.
27709         Change name of LJM to JM for packed array pad records
27710         Create separate section on packed array handling, and add a whole new
27711         set of comments to this section describing the situation with packed
27712         modular types and justification requirements depending on endianness.
27714 2004-10-04  Robert Dewar  <dewar@gnat.com>
27716         * a-except.adb: Add a comment for last change
27718         * einfo.ads: Minor spelling correction in comment
27720         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
27722         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
27723         messages.
27725         * sem_util.ads: Minor comment update
27727 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
27729         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
27730         Inline_Always when in Configurable_Run_Time mode.
27732         * sem_prag.adb (Process_Convention): If entity is an inherited
27733         subprogram, apply convention to parent subprogram if in same scope.
27734         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
27735         when in Configurable_Run_Time mode.
27737 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
27739         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
27740         class_wide type after component list has been inherited.
27742 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
27744         * sem_ch12.adb (Check_Generic_Actuals): New predicate
27745         Denotes_Previous_Actual, to handle properly the case of a private
27746         actual that is also the component type of a subsequent array actual.
27747         The visibility status of the first actual is not affected when the
27748         second is installed.
27749         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
27750         make fully recursive the treatment of formals of packages declared
27751         with a box.
27752         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
27753         the above on exit from an instantiation.
27754         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
27755         current instantiation which is now complete.
27756         (Analyze_Package_Instantiation): No instantiated body is needed if the
27757         main unit is generic. Efficient, and avoid anomalies when a instance
27758         appears in a package accessed through rtsfind.
27760 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
27762         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
27763         do not generate a declaration for a temporary if the call is part of a
27764         library-level instantiation.
27766 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
27768         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
27769         searching for a limited component to flag.
27771         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
27772         expansion of Input, to account for the fact that the implicit call
27773         generated by the attribute reference must freeze the user-defined
27774         stream subprogram. This is only relevant to 'Input, because it can
27775         appear in an object declaration, prior to the body of the subprogram.
27777         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
27778         expansion can proceed and further errors uncovered.
27779         (Minor clean up): Fix cases of using | instead of \ for continuation
27780         messages.
27782 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27784         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
27786         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
27787         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
27788         Use gcc_assert and gcc_unreachable.
27790         * decl.c (gnat_to_gnu_entity, case object): Check and process a
27791         specified alignment before validating size.
27792         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
27793         stripped-down declaration for the type of the inner field when making
27794         a JM type.
27796         * utils.c (finish_record_type): Do not compute the size in units
27797         incrementally. Instead compute it once for the rep clause case.
27798         Use gcc_assert and gcc_unreachable.
27800 2004-10-04  Vincent Celier  <celier@gnat.com>
27802         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
27803         in file name.
27804         (Is_Valid_Path_Name): Take '/' as a directory separator.
27806 2004-10-04  Vincent Celier  <celier@gnat.com>
27808         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
27809         (Extended_Project) only if Extended_Project is defined, to avoid
27810         assertion error.
27811         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
27812         resolved path.
27813         (Parse_Single_Project): Ditto.
27815         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
27816         Add_To_Project_Path for virtual projects.
27818 2004-10-04  Vincent Celier  <celier@gnat.com>
27820         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27821         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27822         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27823         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
27824         parameter Options_2.
27826         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
27827         Build_Dynamic_Library with an empty Options_2.
27829         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
27830         default anymore.
27832         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
27833         directory separator, if any.
27834         (Gprmake): Do not allow mains on the command line for library projects.
27835         Do not attempt to link when the project is a library project.
27836         (Library_Opts): New table to store Library_Options.
27837         (Build_Library): If Library_Options is specified, pass these options
27838         when building a shared library.
27840 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
27842         * s-tposen.adb (Service_Entry): The object must be always unlocked at
27843         the end of this procedure now that the unlock operation was inserted
27844         by the expander.
27846 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
27848         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
27849         corresponding to the Preallocated_Stacks flags in System.
27850         (Get_Target_Parameters): Including the processing for
27851         Preallocated_Stacks.
27853         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
27854         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
27855         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
27856         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
27857         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
27858         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
27859         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
27860         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
27861         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
27862         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
27863         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
27864         used to signal whether the compiler creates the required stacks and
27865         descriptors for the different tasks (when True) or it is done by the
27866         underlying operating system at run time (when False).
27867         It is initially set to False in all targets.
27869         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
27870         if it is supported by the target.
27871         (Make_Task_Create_Call): Pass the stack address if it has been
27872         previously created. Otherwise pass a Null_Address.
27874         * snames.adb: Add _stack.
27876         * snames.ads: Add Name_uStack. Required to allow the expander to
27877         statically allocated task stacks.
27879         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
27880         Stack_Address argument.
27881         Check that its value is equal to Null_Address because this target does
27882         not support the static stack allocation.
27884 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
27886         * usage.adb: Change "pragma inline" to "pragma Inline" in information
27887         and error messages
27889 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
27891         * exp_dist.adb: Split declaration of asynchronous flag out of
27892         Add_RACW_Read_Attribute.
27893         Minor reformatting for better alignment with PolyORB version.
27894         Store the entity for the asynchronous flag of an RACW, rather than the
27895         expression, in the asynchronous flags table. This will allow this flag
27896         to be used in other subprograms beside Add_RACW_Read_Attribute.
27898 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
27900         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
27901         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27902         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
27903         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
27904         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
27905         sockets constant MSG_NOSIGNAL (Linux-specific).
27906         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
27907         all Send operations.
27908         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
27909         from trigerring SIGPIPE.
27910         Rename components to avoid clash with Ada 2005 possible reserved
27911         word 'interface'.
27912         (Check_Selector): When the select system call returns with an error
27913         condition, propagate Socket_Error to the caller.
27915 2004-10-01  Jan Hubicka  <jh@suse.cz>
27917         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
27919 2004-09-23  Robert Dewar  <dewar@gnat.com>
27921         PR ada/17540
27922         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
27923         instead do this at freeze time (we won't do it if there is an address
27924         clause).
27925         Change "pragma inline" to "pragma Inline" in information and error
27926         messages.
27927         Minor reformatting.
27929         * freeze.adb (Check_Address_Clause): Remove previous change, not the
27930         right way of doing things after all.
27931         (Freeze_Entity): For object, set Is_Public for imported entities
27932         unless there is an address clause present.
27934 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
27936         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
27937         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
27938         ensures proper handling of types with rep clauses, which might have
27939         their TYPE_SIZE set already.
27941 2004-09-21  Robert Dewar  <dewar@gnat.com>
27943         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
27944         packed array types in both little- and big-endian cases. This change
27945         ensures that we no longer count on the unused bits being initialized
27946         for such types (and in particular ensures that equality testing will
27947         only read the relevant bits).
27948         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
27949         These changes mean that we no longer need to initialize small packed
27950         arrays.
27951         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
27952         optimization to an LJM field as to its parent field.
27954         * ada-tree.h, trans.c, utils.c, utils2.c:
27955         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
27957 2004-09-20  Jan Hubicka  <jh@suse.cz>
27959         * utils.c (gnat_finalize): Remove.
27960         (end_subprog_body): Directly call cgraph_finalize_function;
27961         do not lower the nested functions.
27963 2004-09-20  Robert Dewar  <dewar@gnat.com>
27965         PR ada/17540
27966         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
27967         if an address clause is present, since that means that the Import
27968         should be ignored.
27970 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
27972         * 5tsystem.ads: Removed, no longer used.
27974 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
27975             Zack Weinberg  <zack@codesourcery.com>
27977         * ada-tree.def: Use tree_code_class enumeration constants
27978         instead of code letters.
27979         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
27980         Update for new tree-class enumeration constants.
27982 2004-09-17  Vincent Celier  <celier@gnat.com>
27984         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
27985         capabilities of the general project manager.
27987 2004-09-09  Vincent Celier  <celier@gnat.com>
27989         * a-direct.ads: Add pragma Ada_05
27990         (Directory_Entry_Type): Give default value to component Kind to avoid
27991         not initialized warnings.
27993         * a-direct.adb (Current_Directory): Remove directory separator at the
27994         end.
27995         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
27996         an existing directory.
27997         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
27998         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
27999         Convert the result to File_Size.
28001         * prj.ads: (Project_Error): New exception
28003         * prj-attr.adb: Except in procedure Initialize, Fail comes from
28004         Prj.Com, not from Osint.
28005         (Attrs, Package_Attributes): Tables moved to private part of spec
28006         (Add_Attribute, Add_Unknown_Package): Moved to new child package
28007         Prj.Attr.PM.
28008         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
28009         Prj.Project_Error after call to Fail.
28010         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
28011         Fail. Check that package name is not already in use.
28013         * prj-attr.ads: Comment updates to indicate that all subprograms may be
28014         used by tools, not only by the project manager, and to indicate that
28015         exception Prj.Prj_Error may be raised in case of problem.
28016         (Add_Unknown_Package, Add_Attribute): Moved to new child package
28017         Prj.Attr.PM.
28018         (Attrs, Package_Attributes): Table instantiations moved from the body to
28019         the private part to be accessible from Prj.Attr.PM body.
28021         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
28022         from new package Prj.Attr.PM.
28023         (Parse_Attribute_Declaration): Call Add_Attribute from new package
28024         Prj.Attr.PM.
28026         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
28028         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
28029         instead of Elaboration_Checks).
28031         * a-calend.adb: Minor reformatting
28033 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28035         * gigi.h (maybe_pad_type): New declaration.
28036         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
28038         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
28040         * cuintp.c: Convert to use buildN.
28042         * decl.c (maybe_pad_type): No longer static.
28043         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
28044         target pointer.
28045         Convert to use buildN.
28047         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
28048         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
28049         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
28050         RHS.
28051         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
28052         (gnat_gimplify_expr, case ADDR_EXPR): New case.
28053         Convert to use buildN.
28055         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
28056         TREE_READONLY for const.
28057         Convert to use buildN.
28059         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
28060         (create_var_decl): Refine when TREE_STATIC is set.
28061         Convert to use buildN.
28063 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
28065         * gnat_ugn.texi: Delete text relating to checking of ali and object
28066         consistency.
28068         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
28069         routines.
28071 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
28073         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
28074         pragmas recognized by GNAT.
28076         * gnat_rm.texi: Document pragma Detect_Blocking.
28078         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
28079         raise Program_Error if called from a protected operation.
28081         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
28082         the protected action nesting level.
28083         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
28084         protected action nesting level.
28085         (Unlock): When pragma Detect_Blocking is active decrease the protected
28086         action nesting level.
28088         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
28089         Protected_Action_Nesting.
28091         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
28092         Common_ATCB record. It contains the dynamic level of protected action
28093         nesting for each task. It is needed for checking whether potentially
28094         blocking operations are called from protected operations.
28095         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
28096         Detect_Blocking is active or not in the partition.
28098         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
28099         raise Program_Error if called from a protected operation.
28100         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
28101         Program_Error if called from a protected operation.
28102         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
28103         Program_Error if called from a protected operation.
28105         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
28106         raise Program_Error if called from a protected operation.
28108         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
28109         raise Program_Error if called from a protected operation, and increase
28110         the protected action nesting level.
28111         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
28112         Program_Error if called from a protected operation, and increase the
28113         protected action nesting level.
28114         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
28115         protected action nesting level.
28117         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
28118         raise Program_Error if called from a protected operation, and increase
28119         the protected action nesting level.
28120         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
28121         Program_Error if called from a protected operation, and increase the
28122         protected action nesting level.
28123         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
28124         raise Program_Error if called from a protected operation.
28125         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
28126         active, raise Program_Error if called from a protected operation.
28127         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
28128         protected action nesting level.
28130         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
28131         insertion of the statement raising Program_Error. The run time
28132         contains the required machinery for handling that.
28134         * sem_util.ads: Change comment associated to procedure
28135         Check_Potentially_Blocking_Operation.
28136         This procedure does not insert a call for raising the exception because
28137         that is currently done by the run time.
28139         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
28141         * init.c: Add the global variable __gl_detect_blocking that indicates
28142         whether pragma Detect_Blocking is active (1) or not (0). Needed for
28143         making the pragma available at run time.
28144         (__gnat_set_globals): Pass and update the detect_blocking parameter.
28146         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
28147         pragma Detect_Blocking is active.
28149         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
28151         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
28152         DB is found in the ali file. Any unit compiled with pragma
28153         Detect_Blocking active forces its effect in the whole partition.
28155         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
28156         Detect_Blocking is active and delay is called from a protected
28157         operation.
28159         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
28160         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
28161         Detect_Blocking is active (0 otherwise).
28162         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
28163         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
28164         otherwise).
28166 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
28168         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
28169         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
28170         package.
28172         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
28173         (Register_Receiving_Stub): Add Subp_Info formal parameter.
28174         Update API in placeholder implemetation of s-parint to reflect changes
28175         in distribution runtime library.
28177         * sem_ch3.adb (Expand_Derived_Record): Rename to
28178         Expand_Record_Extension.
28180         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
28181         primitive operations of potentially distributed object types that have
28182         non-controlling anonymous access formals.
28184         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
28185         subprogram.
28186         New implementation of expansion for remote access-to-subprogram types,
28187         based on the RACW infrastructure.
28188         This version of sem_dist is compatible with PolyORB/DSA as well as
28189         GLADE.
28191         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
28192         Asynchrronous that applies to a remote access-to-subprogram type, mark
28193         the underlying RACW type as asynchronous.
28195         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
28196          __gnat_using_gnu_linker to 1.
28198         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
28199         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
28200         GNAT.Perfect_Hash_Generators, and remove the empty
28201         GNAT.Perfect_Hash package.
28203         * atree.adb: Minor reformatting
28205         * exp_ch3.adb (Expand_Derived_Record): Rename to
28206         Expand_Record_Extension.
28207         (Build_Record_Init_Proc.Build_Assignment): The default expression in
28208         a component declaration must remain attached at that point in the
28209         tree so New_Copy_Tree copies it if the enclosing record type is derived.
28210         It is therefore necessary to take a copy of the expression when building
28211         the corresponding assignment statement in the init proc.
28212         As a side effect, in the case of a derived record type, we now see the
28213         original expression, without any rewriting that could have occurred
28214         during expansion of the ancestor type's init proc, and we do not need
28215         to go back to Original_Node.
28217         * exp_ch3.ads (Expand_Derived_Record): Rename to
28218         Expand_Record_Extension.
28220         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
28221         Returns the RACW type used to implement a remote access-to-subprogram
28222         type.
28223         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
28224         New subprograms. Used to create a proxy tagged object for a remote
28225         subprogram. The proxy object is used as the designated object
28226         for RAS values on the same partition (unless All_Calls_Remote applies).
28227         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
28228         System.Partition_Interface.Get_Unique_Remote_Pointer.
28229         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
28230         Renamed from Add_RAS_*_Attribute.
28231         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
28232         subprograms.
28233         New implementation of expansion for remote access-to-subprogram types,
28234         based on the RACW infrastructure.
28236         * exp_dist.ads (Copy_Specification): Update comment to note that this
28237         function can copy the specification from either a subprogram
28238         specification or an access-to-subprogram type definition.
28240 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
28242         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
28243         in an instance, between an explicit subprogram an one inherited from a
28244         type derived from an actual.
28246         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
28247         add a polling call if the subprogram is to be inlined by the back-end,
28248         to avoid repeated calls with multiple inlinings.
28250         * checks.adb (Apply_Alignment_Check): If the expression in the address
28251         clause is a call whose name is not a static entity (e.g. a dispatching
28252         call), treat as dynamic.
28254 2004-09-09  Robert Dewar  <dewar@gnat.com>
28256         * g-trasym.ads: Minor reformatting
28258         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
28259         packed arrays, since unused bits are expected to be zero for a
28260         comparison.
28262 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
28264         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
28265         comment.
28267 2004-09-09  Pascal Obry  <obry@gnat.com>
28269         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
28270         enable map file generation. Add the right option to generate the map
28271         file if Map_File is set to True.
28273         * gnatdll.adb (Gen_Map_File): New variable.
28274         (Syntax): Add info about new -m (Map_File) option.
28275         (Parse_Command_Line): Add support for -m option.
28276         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
28277         Minor reformatting.
28279 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
28281         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
28282         new gnatdist implementation.
28283         Define a subpackage isolating the output routines specific to this
28284         verbose mode.
28286 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
28288         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
28290         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
28292 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
28294         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
28295         internal unit.
28297         * opt.ads: Add Ada_Version_Runtime constant used to decide which
28298         version of the language is used to compile the run time.
28300 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
28302         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
28303         of variable length temporaries for function return now that the
28304         back-end and gigi support it.
28306 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28308         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
28310         * trans.c (struct stmt_group): Delete field GLOBAL.
28311         (gnat_init_stmt_group): Do not initialize it.
28312         (call_to_gnu): Use save_expr, not protect_multiple_eval.
28313         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
28314         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
28315         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
28316         (start_stmt_group): Likewise.
28317         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
28319         * utils2.c (ggc.h): Include.
28320         (build_call_raise): Call build_int_cst, not build_int_2.
28322         * utils.c (gnat_init_decl_processing): Fix arg to
28323         build_common_tree_nodes.
28324         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
28325         (gnat_define_builtin): Set built_in_decls.
28326         (init_gigi_decls): Call build_int_cst, not build_int_2.
28328         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
28329         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
28330         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
28331         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
28332         SET_TYPE_MODULE): Use them.
28333         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
28334         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
28335         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
28336         SET_TYPE_ADA_SIZE): Likewise.
28337         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
28338         (DECL_CONST_CORRESPONDING_VAR,
28339         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
28340         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
28341         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
28342         (TYPE_RM_SIZE_NUM): New macro.
28343         (TYPE_RM_SIZE): Modified to use above.
28345         * cuintp.c: (build_cst_from_int): New function.
28346         (UI_To_gnu): Use it.
28348         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
28349         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
28350         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
28351         MIN_EXPR for the size, copy it into new.
28353 2004-09-01  Robert Dewar  <dewar@gnat.com>
28355         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
28356         packed indexed component where array is an IN OUT formal. This
28357         generated garbage code previously.
28359         * gnat_ugn.texi: Document -fverbose-asm
28361         * gnat-style.texi: Minor updates (note that boolean constants and
28362         variables are joined with AND/OR rather than short circuit forms).
28364 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
28366         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
28367         it is an upward conversion of an untagged type with no representation
28368         change.
28370 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
28372         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
28373         System.Partition_Interface.
28375         * checks.adb (Apply_Access_Checks): Do not generate checks when
28376         expander is not active (but check for unset reference to prefix of
28377         dereference).
28379         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
28380         pragma Debug as an if statement with a constant condition, for
28381         consistent treatment of entity references contained within the
28382         enclosed procedure call.
28384 2004-09-01  Vincent Celier  <celier@gnat.com>
28386         * bindgen.adb: (Set_EA_Last): New procedure
28387         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
28388         Set_EA_Last.
28389         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
28390         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
28391         linked without errors.
28392         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
28393         ST and EA.
28394         (Gen_Exception_Table_C): Correct same bugs
28396         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
28398         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
28399         on Windows, make sure that the drive letter is in upper case.
28401         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
28402         Windows, when the drive letter is added and Case_Sensitive is True, the
28403         drive letter is forced to upper case.
28405         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
28406         to Options_2 for the call to MLib.Utl.Gcc.
28408         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
28409         directory separator when defining BASE_DIR.
28411 2004-09-01  Pascal Obry  <obry@gnat.com>
28413         * gprcmd.adb (Extend): Do not output trailing directory separator. This
28414         is not needed and it confuses Windows GNU/make which does not report
28415         directory terminated by a slash as a directory.
28416         (gprcmd): Idem for "pwd" internal command.
28418         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
28419         target names rewrite to fix regressions with recent version of
28420         GNU/make. Starting with GNU/make 3.80 the pipe character was not
28421         handled properly anymore.
28423 2004-09-01  Andreas Schwab  <schwab@suse.de>
28425         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
28426         * raise.c [!IN_RTS]: Undef abort.
28428 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
28430         * utils2.c (build_allocator): Use ssize_int.
28432         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
28434 2004-08-27  Andreas Schwab  <schwab@suse.de>
28436         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
28438 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
28439             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28441         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
28443 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
28445         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
28446         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28447         * utils.c (init_gigi_decls): Likewise.
28448         * utils2.c (build_call_raise, build_allocator): Likewise.
28450 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
28452         * utils.c (gnat_init_decl_processing): Adjust
28453         build_common_tree_nodes call.
28455 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
28457         * utils2.c (build_allocator): Use build_int_cst for negative
28458         size types.
28460 2004-08-18  Richard Henderson  <rth@redhat.com>
28462         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
28464 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
28466         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
28467         call.s
28468         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
28469         (gnat_to_gnu): Likewise.
28471 2004-08-16  Pascal Obry  <obry@gnat.com>
28473         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
28474         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
28475         option and not mdll anymore. Update comment.
28477 2004-08-16  Pascal Obry  <obry@gnat.com>
28479         * bld.adb (Put_Include_Project): Properly handle directory separators
28480         on Windows.
28482 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
28484         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
28485         decreasing the number of allocated junk nodes while searching for the
28486         appropriate subprogram.
28488 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
28490         * cuintp.c (UI_To_gnu): Use build_int_cst..
28491         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28492         * utils.c (init_gigi_decls): Likewise.
28493         * utils2.c (build_call_raise): Likewise.
28495 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
28497         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
28498         for a global aliased object with a variable size and an unconstrained
28499         nominal subtype, pretend there is no initializer if the one we have is
28500         incomplete, and avoid referencing an inexistant component in there. The
28501         part we have will be rebuilt anyway and the reference may confuse
28502         further operations.
28504 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
28506         * einfo.ads: Minor reformatting
28508         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
28509         restrictions in the ALI if we only want to warn about violations.
28511 2004-08-13  Vincent Celier  <celier@gnat.com>
28513         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
28514         when creating a new Unit_Record in table Units.
28516         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
28517         that are violated, if any.
28519         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
28520         add directory separator if path already ends with a directory separator.
28522 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
28524         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
28525         unit, this is an attempt to inline a construct that is not available in
28526         the current restricted mode, so abort rather than trying to continue.
28528         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
28529         discriminants that rename those of the parent, recover names of
28530         original discriminants for the constraint on the full view of the
28531         parent.
28532         (Complete_Private_Subtype): Do not create a subtype declaration if the
28533         subtype is an itype.
28535         * gnat_rm.texi: Added section on implementation of discriminated
28536         records with default values for discriminants.
28538 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
28540         PR ada/15601
28541         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
28542         the second operand is overloaded.
28544 2004-08-10  Richard Henderson  <rth@redhat.com>
28546         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
28547         add __builtin_alloca.
28549 2004-08-10  Richard Henderson  <rth@redhat.com>
28551         * config-lang.in (boot_language): Yes.
28553 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
28555         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
28556         from complaining on potential uninitialized reference.
28557         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
28558         new specification and test explicitly for non-zero return value.
28560         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
28561         returning C.int, to avoid using a derived boolean type.
28563         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
28564         Duplicate_Subexpr_No_Checks in preference to direct use of
28565         Remove_Side_Effects and New_Copy_Tree.
28566         Clear Comes_From_Source on prefix of 'Size attribute reference.
28568         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
28569         g-socthi-vxworks.adb: Change calls to
28570         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
28571         and test explicitly for non-zero return value.
28573         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
28574         (Is_Socket_In_Set): Declare imported function as returning C.int, to
28575         avoid using a derived boolean type.
28577 2004-08-09  Albert Lee  <lee@gnat.com>
28579         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
28581 2004-08-09  Pascal Obry  <obry@gnat.com>
28583         * gnat_ugn.texi: Document new way to build DLLs on Windows using
28584         GCC's -shared option.
28586         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
28587         Options_2 parameter (options put after object files).
28589 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
28591         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
28592         ignore overflows on low and high bounds of an index to also account for
28593         differences in signedness between sizetype and gnu_index_subtype.
28594         These are as legitimate as the ones caused by a lower TYPE_PRECISION
28595         on sizetype.
28597 2004-08-09  Robert Dewar  <dewar@gnat.com>
28599         * s-solita.ads, s-solita.adb: Minor reformatting
28601         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
28602         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
28603         obsolescent section
28604         Add note that No_Implicit_Conditionals does not suppress
28605         run time constraint checks.
28607         * vms_conv.ads: Minor reformatting
28609         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
28610         and necessary for following change).
28611         (Mark): Return new format Mark_Id containing sec stack address
28612         (Release): Use sec stack address from Mark_Id avoiding Self call
28614         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
28615         pointer (cleanup and necessary for following change).
28616         Define Mark_Id as record containing address of secondary stack, that way
28617         Release does not need to find the stack again, decreasing the number of
28618         calls to Self and improving efficiency.
28620         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
28622         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
28623         case variable into the individual case branches when possible.
28625         * sem_ch11.adb: Minor reformatting
28627         * prj.ads: Correct spelling of suffixs
28629         * prj-nmsc.adb: Minor reformatting
28630         Correct spelling suffixs throughout (also in identifiers)
28632         * freeze.adb: Minor spelling correction
28634         * exp_ch2.adb: Cleanups to handling of Current_Value
28635         (no functional effect).
28637         * bld.adb: Correct spelling of suffixs
28639         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
28641 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
28643         PR ada/15408
28644         * sem_ch7.adb (Install_Private_Declarations): In the body of the
28645         package or of a child, private entities are both immediately_visible
28646         and not hidden.
28648 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
28650         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
28651         there are no range checks on the value of the literal.
28653         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
28654         wrapped is the triggering alternative of an asynchronous select, action
28655         statements mustbe inserted before the select itself.
28657         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
28658         case where the prefix is a protected function call.
28659         (Resolve_Attribute, case 'Access): The attribute reference on a
28660         subprogram is legal in a generic body if the subprogram is declared
28661         elsewhere.
28663 2004-08-09  Vincent Celier  <celier@gnat.com>
28665         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
28666         languages, otherwise building the library may fail with unresolved
28667         symbols.
28668         (Compile_Sources): Do not build libraries if -c switch is used
28670         * gnatlink.adb (Process_Args): New switches -M and -Mmap
28671         (Write_Usage): If map file creation is supported, output new switches
28672         -M and -Mmap.
28673         (Gnatlink): When -M is specified, add the necessary switch(es) to the
28674         gcc call, when supported.
28676         * Makefile.in: Added indepsw.o to the object list for gnatlink
28677         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
28679         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
28680         indepsw.adb, indepsw.ads: New files.
28682 2004-08-09  Bernard Banner  <banner@gnat.com>
28684         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
28686         * Makefile.in: add section for vxworks x86
28688 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
28690         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
28691         per-object constrained components where the discriminant is of an
28692         Access type.
28693         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
28694         the parent initialization procedure for derived Unchecked_Unions.
28695         Instead, derived Unchecked_Unions build their own initialization
28696         procedure.
28697         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
28698         Check the body of the subprogram for details.
28699         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
28700         functions for derived Unchecked_Union types by introducing a condition.
28701         Allow the creation of TSS equality functions for Unchecked_Unions.
28702         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
28703         Add formal parameter Discr to function signature. Discr is used to
28704         control the generated case statement for Unchecked_Union types.
28705         (Make_Eq_If): Rename formal parameter Node to E in function signature.
28707         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
28708         Unchecked_Unions.
28709         Check the body of the subprogram for details.
28710         (Expand_Composite_Equality): Augment composite type equality to include
28711         correct handling of Unchecked_Union components.
28712         (Expand_N_In): Add condition to detect illegal membership tests when the
28713         subtype mark is a constrained Unchecked_Union and the expression lacks
28714         inferable discriminants, and build a Raise_Program_Error node.
28715         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
28716         to detect types that contain components of unconstrained Unchecked_Union
28717         subtype. Add condition to detect equality between types that have an
28718         unconstrained Unchecked_Union component, and build a Raise_Program_Error
28719         node. Add condition to detect equality between Unchecked_Union types
28720         that lack inferable discriminants, and build a Raise_Program_Error node.
28721         Otherwise build a TSS equality function call.
28722         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
28723         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
28724         with the operand lacking inferable discriminants, and build a Raise_
28725         Program_Error node.
28726         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
28727         composite equality.
28728         (Has_Inferable_Discriminants): Implement new predicate for objects and
28729         expressions of Unchecked_Union type. Check the body of subprogram for
28730         details.
28731         (Has_Unconstrained_UU_Components): Add function
28732         Component_Is_Unconstrained_UU. It is used to detect whether a single
28733         component is of an unconstrained Unchecked_Union subtype. Add function
28734         Variant_Is_Unconstrained_UU. It is used to detect whether a single
28735         component inside a variant is of an unconstrained Unchecked_Union type.
28737         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
28738         inferred discriminant values. Add condition to generate a case
28739         statement with an inferred discriminant as the switch.
28740         (Make_Component_List_Assign): Introduce a Boolean flag that determines
28741         the behaviour of the subprogram in the presence of an Unchecked_Union.
28742         Add condition to trigger the usage of the inferred discriminant value
28743         as the generated case statement switch.
28744         (Make_Field_Assign): Introduce a Boolean flag that determines the
28745         behaviour of the subprogram in the presence of an Unchecked_Union. Add
28746         condition to trigger the usage of the inferred discriminant value as
28747         the right-hand side of the generated assignment.
28749         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
28750         parameter generation when dealing with Unchecked_Unions.
28752         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
28753         checks for Unchecked_Unions.
28755         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
28757         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
28758         Raise_Program_Error nodes for the execution of Read and Write
28759         attributes of Unchecked_Union types and the execution of Input and
28760         Output attributes of Unchecked_Union types that lack default
28761         discriminant values.
28763         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
28764         Unchecked_Union. Add procedure Check_Component. It is used to inspect
28765         per-object constrained components of Unchecked_Unions for being
28766         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
28767         check individual components withing a variant.
28769         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
28770         comparison of Unchecked_Unions.
28771         (Resolve_Equality_OP): Remove guard that prevents equality between
28772         Unchecked_Unions.
28774         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
28775         of component subtypes for Unchecked_Union components.
28776         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
28777         since it is the actual subtype.
28779         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
28780         pass of Unchecked_Union subtypes as generic actuals to formal types
28781         that lack known_discriminant_parts or that are derived Unchecked_Union
28782         types, and do nothing. In any other case, produce an error message.
28784         * sem_ch3.adb (Analyze_Component_Declaration): Add function
28785         Contains_POC. It determines whether a constraint uses the discriminant
28786         of an enclosing record type.
28787         Add condition to detect per-object constrained component and set the
28788         appropriate flag.
28789         (Derived_Type_Declaration): Remove guard that prevents derivation from
28790         Unchecked_Union types.
28791         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
28792         Union subtypes.
28794         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
28795         references to Unchecked_Union discriminants.
28797         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
28798         formal generation when dealing with Unchecked_Unions.
28799         (Set_Actual_Subtypes): Add condition to prevent generation of actual
28800         subtypes for Unchecked_Unions.
28802         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
28803         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
28804         completions of discriminated partial views by Unchecked_Unions and
28805         produce an error message.
28807 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28809         * trans.c (struct stmt_group): New field, GLOBAL.
28810         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
28811         (struct elab_info): New struct.
28812         (elab_info_list, gnu_elab_proc_stack): New variables.
28813         (Compilation_Unit_to_gnu): New procedure.
28814         (gigi): Call it and also handle elaboration procs we've saved.
28815         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
28816         global field from parent.
28817         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
28818         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
28819         (start_stmt_group): Initialize global field from parent.
28820         (add_decl_expr): Set to global for current statement group.
28821         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
28822         post.
28824         * utils.c (global_bindings_p): True when no current_function_decl; no
28825         longer check current_binding_level.
28827 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
28829         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
28830         choice.
28832         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
28834 2004-08-06  Andreas Schwab  <schwab@suse.de>
28836         * utils.c (gnat_define_builtin): Remove second parameter of
28837         make_decl_rtl.
28838         (begin_subprog_body): Likewise.
28840 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
28842         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
28843         optimization, not supported by the tree-ssa back-end.
28845 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
28847         * s-mastop-irix.adb: Update comments.
28849         * a-except.adb (Exception_Information): Raise Constraint_Error if
28850         exception Id is Null_Id.
28851         This is required behavior, which is more reliably and clearly checked
28852         at the top level interface level.
28854 2004-07-26  Javier Miranda  <miranda@gnat.com>
28856         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
28857         call if a component has no default_expression and the box is used.
28859         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
28860         default_expression and you use box, it behaves as if you had declared a
28861         stand-alone object.
28862         (Resolve_Record_Aggregate): If a component has no default_expression and
28863         you use box, it behaves as if you had declared a stand-alone object.
28865         * sem_ch10.adb (Install_Siblings): Do not make visible the private
28866         entities of private-with siblings.
28868 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
28870         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
28871         for a component of an itype, set the parent pointer for analysis,
28872         there is no list in which to insert it.
28874         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
28875         bona-fide renamings, not for inherited operations.
28877         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
28878         actual for a formal that is an access parameter, create local
28879         finalization list even if the expression is not an aggregate.
28881 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
28883         PR ada/16213
28884         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
28885         Diagnose properly illegal subprogram renamings that are library units.
28887 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
28889         PR ada/15588
28890         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
28891         conversion rewritten as an unchecked conversion, check that original
28892         expression is a variable.
28894         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
28895         unchecked_conversion, create new node rather than rewriting in place,
28896         to preserve original construct.
28898 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28900         * gigi.h (gnat_expand_body): Deleted.
28902         * Make-lang.in: (trans.o): Depends on function.h.
28904         * misc.c: (gnat_expand_body): Moved to here.
28906         * trans.c (gnat_expand_body_1): Deleted.
28907         (gnat_expand_body): Moved from here.
28908         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
28909         (add_stmt): Check for marked visited with global_bindings_p.
28910         (gnat_gimplify_expr, case COMPONENT_REF): New case.
28911         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
28913         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
28914         VIEW_CONVERT_EXPR if not operation type.
28916         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
28917         fat pointer.
28919         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
28920         changes: reformatting of negation operators, removing unneeded
28921         inequality comparison with zero, converting equality comparisons with
28922         zero to negations, changing int/0/1 to bool/false/true, replace calls
28923         to gigi_abort with abort, and various other similar changes.
28925 2004-07-26  Vincent Celier  <celier@gnat.com>
28927         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
28928         "setup".
28930         * make.adb (Gnatmake): Fail when a library is not present and there is
28931         no object directory.
28933         * mlib-prj.adb (Check_Library): No need to check if the library needs
28934         to be rebuilt if there is no object directory, hence no object files
28935         to build the library.
28937         * opt.ads (Setup_Projects): New Boolean flag.
28939         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
28940         Location.
28941         Create directory when Kind /= "" and in "gnat setup". Report error if
28942         directory cannot be created.
28943         (Ada_Check): Create library interface copy dir if it does not exist
28944         and we are in "gnat setup".
28945         (Find_Sources): No error if in "gnat setup" and no Ada sources were
28946         found.
28947         (Language_Independent_Check): Create object directory, exec directory
28948         and/or library directory if they do not exist and we are in
28949         "gnat setup".
28951         * vms_conv.ads: (Command_Type): New command Setup.
28953         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
28955         * vms_data.ads: Add qualifiers/switches for new built-in command
28956         "setup".
28958 2004-07-25  Richard Henderson  <rth@redhat.com>
28960         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
28961         DECL_IGNORED_P on RESULT_DECL.
28963 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
28965         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
28966         allocation and potentially overflowing update with
28967         Tailored_Exception_Information. Use the sec-stack free procedural
28968         interface to output Exception_Information instead.
28970         * a-except.adb (To_Stderr): New subprogram for character, and string
28971         version moved from a-exextr to be visible from other separate units.
28972         (Tailored_Exception_Information): Remove the procedural version,
28973         previously used by the default Last_Chance_Handler and not any more.
28974         Adjust various comments.
28976         * a-exexda.adb: Generalize the exception information procedural
28977         interface, to minimize the use of secondary stack and the need for
28978         local buffers when the info is to be output to stderr:
28979         (Address_Image): Removed.
28980         (Append_Info_Character): New subprogram, checking for overflows and
28981         outputing to stderr if buffer to fill is of length 0.
28982         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
28983         (Append_Info_Address, Append_Info_Exception_Name,
28984         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
28985         Append_Info_Basic_Exception_Traceback,
28986         Append_Info_Exception_Information): New subprograms.
28987         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
28988         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
28989         Exception_Info_Maxlength, Exception_Name_Length,
28990         Exception_Message_Length): New subprograms.
28991         (Exception_Information): Use Append_Info_Exception_Information.
28992         (Tailored_Exception_Information): Use
28993         Append_Info_Basic_Exception_Information.
28994         Export services for the default Last_Chance_Handler.
28996         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
28997         other separate units.
28999 2004-07-20  Vincent Celier  <celier@gnat.com>
29001         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
29003 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
29005         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
29006         emit itype references for the designated types of component types that
29007         are declared outside of the full record declaration, and that may
29008         denote a partial view of that record type.
29010 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
29012         PR ada/15607
29013         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
29014         which is the designated type in an access component declaration, to the
29015         list of incomplete dependents of the parent type, to avoid elaboration
29016         issues with out-of-scope subtypes.
29017         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
29018         full view of the parent.
29020 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
29022         PR ada/15610
29023         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
29024         entities that are hidden, such as references to generic actuals
29025         outside an instance.
29027 2004-07-20  Javier Miranda  <miranda@gnat.com>
29029         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
29030         support to the new notation.
29031         (Analyze_Selected_Component): Add call to Try_Object_Operation.
29033 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
29035         * s-taprob.adb: Adding the elaboration code required for initializing
29036         the tasking soft links that are common to the full and the restricted
29037         run times.
29039         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
29040         restricted run time has been moved to the package
29041         System.Soft_Links.Tasking.
29043         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
29044         restricted run time has been moved to the package
29045         System.Soft_Links.Tasking.
29047         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
29049         * s-solita.ads, s-solita.adb: New files.
29051 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29053         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
29054         Case_Statement_to_gnu): Split off from gnat_to_gnu.
29055         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
29056         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
29057         Exception_Handler_to_gnu_zcx): Likewise.
29059 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
29061         * gigi.h (builtin_function): Declare.
29063 2004-07-15  Robert Dewar  <dewar@gnat.com>
29065         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
29066         reformatting
29068         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
29069         access values as an example of a warning.
29071         * gnat_rm.texi: Document new attribute Has_Access_Values
29073         * gnat-style.texi: Document that box comments belong on nested
29074         subprograms
29076         * sem_util.ads (Has_Access_Values): Improved documentation
29078         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
29080         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
29081         (Process_Interface_Name): Call to this new procedure
29082         (Set_Extended_Import_Export_External_Name): Call to this new procedure
29084         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
29086         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
29088         * einfo.ads: Minor comment typo fixed
29090 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
29092         * snames.adb: Add _atcb.
29094         * snames.ads: Add Name_uATCB.
29096         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
29097         (in the expanded code) when using the restricted run time.
29099         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
29100         a in parameter in order to allow ATCBs to be preallocated (in the
29101         expanded code).
29103         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
29104         order to allow ATCBs to be preallocated. In case of error, the ATCB is
29105         deallocated in System.Tasking.Stages.
29107         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
29108         order to allow ATCBs to be preallocated.
29110         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
29111         here. It was previously done in Initialize_ATCB.
29113         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
29115         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
29116         Restricted run time.
29118         * exp_ch3.adb: When using the Restricted run time, pass the
29119         preallocated Ada_Task_Control_Block when creating a task.
29121 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
29123         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
29124         function call that is itself an actual in an enclosing call, diagnose
29125         problem here rather than assuming that resolution will catch it.
29127         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
29128         the local copy of a generic unit for a formal package, and the generic
29129         is a child unit, install private part of ancestors before compiling
29130         private part of spec.
29132         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
29133         use scope entities rather than tree structures, to handle properly
29134         parent units that are instances rewritten as bodies for inlining
29135         purposes.
29137         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
29138         Remove_Parents): Handle properly a parent unit that is an
29139         instantiation, when the unit has been rewritten as a body for inlining
29140         purposes.
29142         * par.adb (Goto_List): Global variable to collect goto statements in a
29143         given unit, for use in detecting natural loops.
29145         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
29146         use in detecting natural loops.
29148         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
29149         backwards goto's, and rewrite as a infinite loop, to improve locality
29150         of temporaries.
29152         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
29153         subcomponent that includes an indexed reference, to prevent the
29154         generation of copies that would miscompile the desired assignment
29155         statement.
29156         (Build_Task_Image_Decls): Add a numeric suffix to
29157         generated name for string variable, to avoid spurious conflicts with
29158         the name of the type of a single protected object.
29160         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
29161         loop with an explicit exit statement, to avoid generating an
29162         out-of-range value with 'Succ leading to spurious constraint_errors
29163         when compiling with -gnatVo.
29165 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
29167         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
29168         might not be analyzed yet, even if its Etype is already set (case of an
29169         unchecked conversion built using Unchecked_Convert_To, for example).
29170         If the prefix has already been analyzed, this will be a nop anyway.
29172         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
29173         controller type, or an assignment of a record type with controlled
29174         components, copy only user data, and leave the finalization chain
29175         pointers untouched.
29177 2004-07-15  Vincent Celier  <celier@gnat.com>
29179         * make.adb (Collect_Arguments): Improve error message when attempting
29180         to compile a source not part of any project, when -x is not used.
29182         * prj.ads: (Defined_Variable_Kind): New subtype
29184         * prj-attr.adb (Register_New_Package): Two new procedures to register
29185         a package with or without its attributes.
29186         (Register_New_Attribute): Mew procedure to register a new attribute in a
29187         package.
29188         New attribute oriented subprograms: Attribute_Node_Id_Of,
29189         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29190         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29191         Next_Attribute.
29192         New package oriented subprograms: Package_Node_Id_Of,
29193         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29195         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
29196         type.
29197         (Package_Node_Id): Now a private, self initialized type
29198         (Register_New_Package): New procedure to register a package with its
29199         attributes.
29200         New attribute oriented subprograms: Attribute_Node_Id_Of,
29201         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29202         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29203         Next_Attribute.
29204         New package oriented subprograms: Package_Node_Id_Of,
29205         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29207         * prj-dect.adb (Parse_Attribute_Declaration,
29208         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
29210         * prj-makr.adb (Make): Parse existing project file before creating
29211         other files. Fail if there was an error during parsing.
29213         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
29214         new spec of Prj.Attr.
29216         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
29217         to new spec of Prj.Attr.
29219 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29221         * utils2.c: Fix typo in comment.
29223 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29225         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
29226         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
29228 2004-07-14  Andreas Schwab  <schwab@suse.de>
29230         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
29232 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29234         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
29235         object type.
29236         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
29237         TYPE_STUB_DECL.
29239         * misc.c (gnat_types_compatible_p): New function.
29240         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
29241         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
29243         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
29244         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
29245         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
29246         (mark_visited): Don't mark dummy type.
29247         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
29248         parameter, we must remove any LJM building from GNU_NAME.
29249         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
29250         (pos_to_constructor): Use int_const_binop.
29251         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
29252         PARM_DECL.
29254         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
29255         (gnat_pushlevel): Set TREE_USE on BLOCK node.
29256         (gnat_install_builtins): Add __builtin_memset.
29258 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
29260         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
29261         for a renaming, stabilize the initialization expression if we are at a
29262         local level.  At the local level, uses of the renaming may be performed
29263         by a direct dereference of the initializing expression, and we don't
29264         want possible variables there to be evaluated for every use.
29266         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
29267         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
29268         them on the way.  Account for the fact that we may introduce side
29269         effects in the process.
29271 2004-07-13  Richard Henderson  <rth@redhat.com>
29273         * misc.c (default_pass_by_ref): Use pass_by_reference.
29275 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
29277         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
29278         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
29280 2004-07-08  Richard Henderson  <rth@redhat.com>
29282         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
29283         commentary.
29285 2004-07-06  Vincent Celier  <celier@gnat.com>
29287         * vms_conv.ads: Minor reformatting.
29288         Alphabetical order for enumerated values of type Command_Type, to have
29289         the command in alphabetical order for the usage.
29291         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
29292         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
29294         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
29296         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
29297         (Add_Archive_Path): Only add the global archive if there is one.
29298         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
29299         or not any object file to put in the global archive, and don't build
29300         a global archive if there is none.
29301         (X_Switches): New table
29302         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
29303         in the X_Switches table, if any.
29304         (Initialize): Make sure the X_Switches table is empty
29305         (Scan_Arg): Record -X switches in table X_Switches
29307         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
29309         * make.adb: Minor comment fix
29311         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
29312         invoked with directory information, add the directory in front of the
29313         path.
29315         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
29316         invoked with directory information, add the directory in front of the
29317         path.
29319         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
29320         when Keep_Temporary_Files is False.
29321         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
29322         directory information, add the directory in front of the path.
29323         When not on VMS, handle new switch -dn before the command to set
29324         Keep_Temporary_Files to True.
29325         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
29326         everywhere.
29328         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
29329         invoked with directory information, add the directory in front of the
29330         path.
29332 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
29334         * snames.ads, snames.adb (Name_Stub): New name for the distributed
29335         systems annex.
29337         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
29338         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
29340         * g-socket.adb (To_Timeval): Fix incorrect conversion of
29341         Selector_Duration to Timeval for the case of 0.0.
29343         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
29344         documentation from Evolve_And_Then.
29346 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
29348         * s-taprop-tru64.adb, s-taprop-os2.adb,
29349         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
29351 2004-07-06  Robert Dewar  <dewar@gnat.com>
29353         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
29354         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
29355         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
29356         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
29357         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
29358         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
29359         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
29360         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
29361         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
29362         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
29363         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
29364         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
29365         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
29366         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
29367         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
29368         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
29369         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
29370         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
29371         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
29372         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
29373         vms_data.ads: Minor reformatting,
29374         Fix bad box comment format.
29376         * gnat_rm.texi: Fix minor grammatical error
29378         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
29380         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
29381         more cases of discriminated records to be recognized as not needing a
29382         secondary stack.
29383         (Has_Access_Values): New function.
29385         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
29387         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
29388         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
29389         with LRM terminology).
29390         Change terminology in comments primitive type => elementary type.
29392 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
29394         PR ada/15602
29395         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
29396         parameters do not impose any requirements on the presence of a body.
29398 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
29400         PR ada/15593
29401         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
29402         compilation unit and is in an open scope at the point of instantiation,
29403         assume that a body may be present later.
29405 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
29407         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
29408         Improve error message when specified size is not supported.
29410         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
29411         is never a primitive operation.
29413 2004-07-05  Andreas Schwab  <schwab@suse.de>
29415         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
29416         RECORD_OR_UNION_CHECK.
29417         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
29419 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
29421         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
29422         dependency on xgnatugn, instead build it via a submake.
29423         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
29425 2004-07-04  Richard Henderson  <rth@redhat.com>
29427         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
29429 2004-07-01  Richard Henderson  <rth@redhat.com>
29431         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
29432         * utils.c (max_size): Likewise.
29434 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29436         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
29437         and rest_of_type_compilation; add arg to create_*_decl.
29438         (annotate_decl_with_node): Deleted.
29439         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
29440         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
29441         (get_current_block_context, gnat_pushdecl): New declarations.
29442         (gnat_init_stmt_group): Likewise.
29443         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
29444         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
29445         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
29446         (gnat_init): Call gnat_init_stmt_group.
29447         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
29448         (gnu_pending_elaboration_list): Deleted.
29449         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
29450         (gigi): Rearrange initialization calls and move some to last above.
29451         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
29452         Delete calls to add_decl_expr; add arg to create_*_decl.
29453         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
29454         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
29455         begin_subprog_body and call it.
29456         Don't push and pop ggc context.
29457         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
29458         (add_stmt): Remove handling of DECL_EXPR from here.
29459         If not in function, mark visited.
29460         (add_decl_expr): Put global at top level.
29461         Check for cases of DECL_INITIAL we have to handle here.
29462         (process_type): Add extra arg to create_type_decl.
29463         (build_unit_elab): Rework to just gimplify.
29464         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
29465         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
29466         (get_pending_elaborations, pending_elaborations_p): Likewise.
29467         (push_pending_elaborations, pop_pending_elaborations): Likewise.
29468         (get_elaboration_location, insert_elaboration_list): Likewise.
29469         (gnat_binding_level): Renamed from ada_binding_level.
29470         (init_gnat_to_gnu): Don't clear pending_elaborations.
29471         (global_bindings_p): Treat as global if no current_binding_level.
29472         (set_current_block_context): New function.
29473         (gnat_pushdecl): Renamed from pushdecl; major rework.
29474         All callers changed.
29475         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
29476         (finish_record_type): Call call pushdecl for stub decl.
29477         (function_nesting_depth): Deleted.
29478         (begin_subprog_body): Delete obsolete code.
29479         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
29481 2004-06-28  Robert Dewar  <dewar@gnat.com>
29483         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29484         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
29485         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
29486         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29487         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
29489         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
29490         deal with problem of inefficient slices on machines with strict
29491         alignment, when the slice is a component of a composite.
29493         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
29494         machines, we need the check there as well.
29496 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
29498         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
29499         determine safe copying direction for overlapping slice assignments
29500         when component is controlled.
29502         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
29503         formal derived type in the actual for a formal package are visible in
29504         the enclosing instance.
29506 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
29508         PR ada/15600
29509         * sem_util.adb (Trace_Components): Diagnose properly an illegal
29510         circularity involving a private type whose completion includes a
29511         self-referential component.
29512         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
29513         renaming or an instantiation from an implicit derived operation.
29515 2004-06-28  Pascal Obry  <obry@gnat.com>
29517         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
29518         DLL.
29519         (Library_File_Name_For): Idem.
29521 2004-06-28  Matthew Gingell  <gingell@gnat.com>
29523         * g-traceb.ads: Add explanatory note on the format of addresses
29524         expected by addr2line.
29526 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
29528         * Makefile.in: Force debugging information on s-tasdeb.adb,
29529         a-except.adb and s-assert.adb needed by the debugger.
29531 2004-06-28  Vincent Celier  <celier@gnat.com>
29533         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
29534         Need_To_Build_Lib.
29535         (Gnatmake): Ditto.
29537         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
29539         * prj.adb: Minor reformatting
29540         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
29542         * prj.ads: Comment updates
29543         Minor reformatting
29544         (Project_Data): Change Flag1 to Need_To_Build_Lib.
29545         Remove Flag2: not used.
29547         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
29548         declaration.
29550         * gnat_ugn.texi: Put a "null;" declaration in one project file example
29552         * gnat_rm.texi: Document Empty declarations "null;".
29554         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
29555         front of the linker options.
29556         (Link_Foreign): Put the global archives and the libraries in front of
29557         the linker options.
29559 2004-06-28  Javier Miranda  <miranda@gnat.com>
29561         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
29562         (RTU_Loaded): Code cleanup
29563         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
29564         withed predefined units.
29566         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
29567         explicitly withed predefined units.
29568         Fix typo in comment
29570         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
29571         explicitly withed predefined units.
29573 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29575         * ada-tree.def (DECL_STMT): Deleted.
29576         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
29577         (DECL_STMT_VAR): Deleted.
29578         * decl.c: add_decl_stmt now add_decl_expr.
29579         * gigi.h: Likewise.
29580         * trans.c: Likewise.
29581         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
29582         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
29583         (add_stmt): Only handle padded type here.
29584         (add_stmt_with_node): Allow gnat_node to not be present.
29585         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
29586         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
29587         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
29588         make a SAVE_EXPR for the entire fat pointer.
29589         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
29590         (create_index_type): Make a DECL_EXPR.
29591         (end_subprog_body): Don't call allocate_struct_function here but
29592         do clear cfun.
29594 2004-06-25  Pascal Obry  <obry@gnat.com>
29596         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
29597         Relocatable from Build_Dynamic_Library call.
29599         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
29600         Relocatable are now synonym.
29602         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
29604         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
29605         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
29606         call.
29608         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
29609         Lib_Address and Relocatable.
29610         (Default_DLL_Address): Removed.
29612         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29613         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29614         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
29615         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
29616         (Default_DLL_Address): Removed.
29618         * mlib-tgt-mingw.adb: Ditto.
29619         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
29621         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
29622         the initial thread stack size.
29624         * a-strmap.ads: Move package L to private part as it is not used in
29625         the spec. Found while reading code.
29627 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
29629         * tracebak.c: Introduce support for a GCC infrastructure based
29630         implementation of __gnat_backtrace.
29632         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
29633         any more. Use accessors instead. This eases maintenance and relaxes
29634         some alignment constraints.
29635         (_GNAT_Exception structure): Remove the Ada specific fields
29636         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
29637         a-exexpr.adb.
29638         (is_handled_by, __gnat_eh_personality): Replace component references to
29639         exception structure by use of the new accessors.
29641         * init.c (__gnat_initialize): Adjust comments to match the just
29642         reverted meaning of the -static link-time option.
29644         * adaint.c (convert_addresses): Arrange not to define a stub for
29645         mips-irix any more, as we now want to rely on a real version from a
29646         recent libaddr2line.
29648         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
29649         the personality routine can use them and not have to rely on a C
29650         counterpart of the record anymore. This simplifies maintenance and
29651         relaxes the constraint of having Standard'Maximum_Alignment match
29652         BIGGEST_ALIGNMENT.
29653         Update comments, and add a section on the common header alignment issue.
29655 2004-06-25  Geert Bosch  <bosch@gnat.com>
29657         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
29658         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
29660 2004-06-25  Robert Dewar  <dewar@gnat.com>
29662         * gnat_rm.texi: Fix section on component clauses to indicate that the
29663         restriction on byte boundary placement still applies for bit packed
29664         arrays.
29665         Add comment on stack usage from Initialize_Scalars
29667         * gnat_ugn.texi: Add documentation for -gnatyLnnn
29669         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
29670         limiting nesting level.
29672         * usage.adb: Add line for -gnatyLnnn switch
29674         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
29675         sem_ch13.adb, exp_aggr.adb: Minor reformatting
29677         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
29678         type as well as on the subtype. This corrects a problem in freeze in
29679         setting alignments of atomic types.
29681         * sem_eval.ads: Minor comment typo fixed
29683         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
29684         level.  Minor reformatting.
29686         * fname.adb (Is_Predefined_File_Name): Require a letter after the
29687         minus sign. This means that file names like a--b.adb will not be
29688         considered predefined.
29690         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
29691         record Test new flag and give diagnostic for bad component clause.
29692         (Freeze_Entity): Set alignment of array from component alignment in
29693         cases where this is safe to do.
29695         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
29696         arrays.
29698         * cstand.adb: (Create_Standard): Set alignment of String to 1
29700         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
29702         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
29703         code in the common constrained array cases.
29705         * a-storio.adb: Change implementation to avoid possible alignment
29706         problems on machines requiring strict alignment (data should be moved
29707         as type Buffer, not type Elmt).
29709         * checks.adb (Apply_Array_Size_Check): Improve these checks by
29710         killing the overflow checks which we really do not need (64-bits is
29711         enough).
29713 2004-06-25  Vincent Celier  <celier@gnat.com>
29715         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
29716         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
29717         inconditionally for the main project.
29718         (Recursive_Add_Archives.Add_Archive_Path): New procedure
29719         (Link_Executables.Check_Time_Stamps): New procedure
29720         (Link_Executables.Link_Foreign): New procedure
29721         Changes made to reduce nesting level of this package
29722         (Check): New procedure
29723         (Add_Switches): When not in quiet output, check that a switch is not
29724         the concatenation of several valid switches. If it is, issue a warning.
29725         (Build_Global_Archive): If the global archive is rebuilt, linking need
29726         to be done.
29727         (Compile_Sources): Rebuilding a library archive does not imply
29728         rebuilding the global archive.
29729         (Build_Global_Archive): New procedure
29730         (Build_Library): New name for Build_Archive, now only for library
29731         project
29732         (Check_Archive_Builder): New procedure
29733         (Create_Global_Archive_Dependency_File): New procedure
29734         (Gprmake): Call Build_Global_Archive before linking
29735         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
29736         throughout.
29737         (Scan_Arg): Display the Copyright notice when -v is used
29739         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
29740         for gnatls.
29742         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
29743         COMPILE.
29744         Add new GNAT LIST qualifier /FILES=
29745         Added qualifier /DIRECTORY= to GNAT METRIC
29746         Added qualifier /FILES= to GNAT METRIC
29747         Added qualifier /FILES to GNAT PRETTY
29749         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
29750         to take into account both versions of the switch.
29752         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
29753         always be the last switch to the gcc driver. Disable switch storing so
29754         that switches automatically added by the gcc driver are not put in the
29755         ALI file.
29757         * prj.adb (Project_Empty): Take into account changes in components of
29758         Project_Data.
29760         * prj.ads (Languages_Processed): New enumaration value All_Languages.
29762         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
29763         used. Split Boolean component Ada_Sources_Present in two Boolean
29764         components Ada_Sources_Present and Other_Sources_Present.
29765         Minor reformatting
29767         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
29768         instead of Sources_Present.
29769         (Set_Ada_Paths.Add.Recursive_Add): Ditto
29771         * prj-nmsc.adb: Minor reformatting
29772         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
29773         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
29774         Check_Ada_Naming_Scheme.
29775         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
29776         throughout.
29778         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
29779         In_Limited.
29780         Make sure that all cycles where there is at least one "limited with"
29781         are detected.
29782         (Parse_Single_Project): New Boolean parameter In_Limited
29784         * prj-proc.adb (Recursive_Check): When Process_Languages is
29785         All_Languages, call first Prj.Nmsc.Ada_Check, then
29786         Prj.Nmsc.Other_Languages_Check.
29788         * prj-proc.adb (Process): Use Ada_Sources_Present or
29789         Other_Sources_Present (instead of Sources_Present) depending on
29790         Process_Languages.
29792         * lang-specs.h: Keep -g and -m switches in the same order, and as the
29793         last switches.
29795         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
29796         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
29797         False.
29798         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
29799         False.
29801         * lib.ads (Disable_Switch_Storing): New procedure.
29803         * make.adb: Modifications to reduce nesting level of this package.
29804         (Check_Standard_Library): New procedure
29805         (Gnatmake.Check_Mains): New procedure
29806         (Gnatmake.Create_Binder_Mapping_File): New procedure
29807         (Compile_Sources.Compile): Add switch -gnatez as the last option
29808         (Display): Never display -gnatez
29810         * Makefile.generic:
29811         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
29813         * gnatcmd.adb (Check_Project): New function
29814         (Process_Link): New procedure to reduce nesting depth
29815         (Check_Files): New procedure to reduce the nesting depth.
29816         For GNAT METRIC, include the inherited sources in extending projects.
29817         (GNATCmd): When GNAT LS is invoked with a project file and no files,
29818         add the list of files from the sources of the project file. If this list
29819         is too long, put it in a temp text files and use switch -files=
29820         (Delete_Temp_Config_Files): Delete the temp text file that contains
29821         a list of source for gnatpp or gnatmetric, if one has been created.
29822         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
29823         in the project file is too large, create a temporary text file that
29824         list them and pass it to the tool with "-files=<temp text file>".
29825         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
29827         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
29828         generated file is in not in Ada.
29830         * gnatls.adb: Remove all parameters And_Save that are no longer used.
29831         (Scan_Ls_Arg): Add processing for -files=
29832         (Usage): Add line for -files=
29834         * g-os_lib.adb (On_Windows): New global constant Boolean flag
29835         (Normalize_Pathname): When on Windows and the path starts with a
29836         directory separator, make sure that the resulting path will start with
29837         a drive letter.
29839         * clean.adb (Clean_Archive): New procedure
29840         (Clean_Project): When there is non-Ada code, delete the global archive,
29841         the archive dependency files, the object files and their dependency
29842         files, if they exist.
29843         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
29845 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
29847         * sinfo.ads: Fix typo in comment.
29849         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
29850         the TSS for remote access-to-subprogram types, since these TSS are
29851         always present once the type has been analyzed.
29852         (RAS_E_Dereference): Same.
29854         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
29855         reference raises Bad_Attribute, mark the reference as analyzed so the
29856         node (and any children resulting from rewrites that could have occurred
29857         during the analysis that ultimately failed) is not analyzed again.
29859         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
29861         * exp_dist.adb: Minor comment fix.
29863         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
29864         type is an anonymous access type, no unchecked deallocation of the
29865         allocated object can occur. If the object is controlled, attach it with
29866         a count of 1. This allows attachment to the Global_Final_List, if
29867         no other relevant list is available.
29868         (Get_Allocator_Final_List): For an anonymous access type that is
29869         the type of a discriminant or record component, the corresponding
29870         finalisation list is the one of the scope of the type.
29872 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
29874         * sem_ch3.adb (Replace_Type): When computing the signature of an
29875         inherited subprogram, use the first subtype if the derived type
29876         declaration has no constraint.
29878         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
29879         before applying previous optimization. Minor code cleanup.
29881         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
29882         placed at the beginning of an unpacked record without explicit
29883         alignment, a slice of it will be aligned and does not need a copy when
29884         used as an actual.
29886 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
29888         PR ada/15591
29889         PR ada/15592
29890         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
29891         reference is written with expressions mimicking parameters.
29893 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
29895         PR ada/15589
29896         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
29897         STEP 2a. The constraints of a full type declaration of a derived record
29898         type are checked for conformance with those declared in the
29899         corresponding private extension declaration. The message
29900         "not conformant with previous declaration" is emitted if an error is
29901         detected.
29903 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
29905         * g-traceb.ads: Document the need for -E binder switch in the spec.
29907         * g-trasym.ads: Document the need for -E binder switch in the spec.
29909 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
29911         * sem_prag.adb: Add handling of pragma Detect_Blocking.
29913         * snames.h, snames.ads, snames.adb: Add entry for pragma
29914         Detect_Blocking.
29916         * s-rident.ads: Change reference to pragma Detect_Blocking.
29918         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
29919         system.ads.
29921         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
29922         to indicate whether pragma Detect_Blocking is active.
29924         * par-prag.adb: Add entry for pragma Detect_Blocking.
29926         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
29927         of not handling WITH.
29928         Note that this replaces the previous update which was incorrect.
29930 2004-06-25  Javier Miranda  <miranda@gnat.com>
29932         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
29933         use-clauses to have a clean environment.
29935         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
29936         the installation of the use-clauses to stablish a clean environment in
29937         case of compilation of a separate unit; otherwise the call to
29938         use_one_package is protected by the barrier Applicable_Use.
29940         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
29941         the installation of the use-clauses to stablish a clean environment in
29942         case of compilation of a separate unit.
29943         (End_Use_Clauses): Minor comment cleanup.
29945 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
29947         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
29949 2004-06-23  Richard Henderson  <rth@redhat.com>
29951         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
29953 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29955         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
29956         now bool instead of int.
29957         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
29958         * trans.c (gnu_switch_label_stack): New function.
29959         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
29960         elaboration of renamed entity returns.
29961         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
29962         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
29963         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
29964         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
29965         DECL_SIZE_UNIT and simplify variable-sized case.
29966         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
29967         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
29968         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
29969         (build_unit_elab): Disable for now.
29970         * utils.c (mark_visited): New function.
29971         (pushdecl): Walk tree to call it for global decl.
29972         (update_pointer_to): Update all variants of pointer and ref types.
29973         Add arg to COMPONENT_REF.
29974         (convert): Likewise.
29975         Move check for converting between variants lower down.
29976         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
29977         (build_allocator): Don't force type of MODIFY_EXPR.
29978         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
29979         put_var_into_stack.
29981 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29983         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
29984         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
29985         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
29986         subprograms.
29987         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
29988         all callers changed.
29989         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
29990         the way that EXIT_STMT finds the loop label.
29991         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
29992         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
29993         (add_stmt): Use annotate_with_locus insted of setting directly.
29994         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
29995         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
29996         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
29997         (build_vms_descriptor): Add extra args to ARRAY_REF.
29998         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
29999         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
30000         New cases.
30001         (build_binary_op): Don't make explicit CONVERT_EXPR.
30002         Add extra rgs to ARRAY_REF.
30004 2004-06-14  Pascal Obry  <obry@gnat.com>
30006         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
30007         Windows.  Fix minor typo.
30009         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
30010         which is now supported on Windows. With this implementation using the
30011         Library Project feature is no different on Windows than on UNIX.
30013 2004-06-14  Vincent Celier  <celier@gnat.com>
30015         * makegpr.adb (Compile_Sources): Nothing to do when there are no
30016         non-Ada sources.
30018         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
30020         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
30021         found, show the project name and the path of the previously parsed
30022         project file.
30024 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
30026         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
30027         array, avoid copying the actual before the call.
30029 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
30031         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
30032         Instead, allocate memory on worst-case alignment assumptions, and then
30033         return an aligned address within the allocated zone.
30035 2004-06-14  Robert Dewar  <dewar@gnat.com>
30037         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
30038         elab entities in predefined units in No_Run_Time_Mode.
30039         (Gen_Adainit_C): Same fix
30040         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
30041         units in No_Run_Time_Mode
30042         (Gen_Elab_Calls_C): Same fix
30044         * symbols-vms-alpha.adb: Minor reformatting
30046         * g-debpoo.ads: Minor reformatting
30048         * lib.adb (In_Same_Extended_Unit): Version working on node id's
30050         * lib.ads (In_Same_Extended_Unit): Version working on node id's
30052         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
30053         working on nodes.
30055         * make.adb: Minor reformatting
30057         * par-ch12.adb: Minor reformatting
30059         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
30061         * prj-strt.adb: Minor reformatting
30063         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
30064         be more general.
30066         * sem_attr.adb: Minor reformatting
30068         * sem_ch7.adb: Minor reformatting
30070         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
30071         for type in the same unit as the object declaration.
30073         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
30074         static string expressions and not just string literals.
30075         Minor reformatting
30076         (Set_Warning): Reset restriction warning flag for restriction pragma
30077         Implement pragma Profile_Warnings
30078         Implement pragma Profile (Restricted)
30079         Give obolescent messages for old restrictions and pragmas
30081         * snames.h, snames.ads, snames.adb: Add new entry for pragma
30082         Profile_Warnings.
30084         * s-rident.ads: Add declarations for restrictions required by profile
30085         Restricted and profile Ravenscar.
30087         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
30089         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
30090         configuration pragmas.
30092 2004-06-11  Vincent Celier  <celier@gnat.com>
30094         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
30095         gnatsym, when symbol policy is Restricted.
30097         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
30098         gnatsym, when symbol policy is Restricted.
30100         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
30101         read the symbol file.
30102         (Finalize): Fail in symbol policy Restricted if a symbol in the original
30103         symbol file is not in the object files. Do not create a new symbol file
30104         when symbol policy is Restricted.
30106         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
30107         in Scng.
30109         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
30110         Restricted.
30111         (Usage): Line for new switch -R
30113         * make.adb (Initialize): When the platform is not VMS, add the
30114         directory where gnatmake is invoked in the front of the path, if
30115         gnatmake is invoked with directory information.  Change the Scan_Args
30116         while loop to a for loop.
30117         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
30118         if Depth is equal or greater than the proposed depth, there is nothing
30119         to do.
30120         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
30121         instead of 0.
30123         * prj.ads: Add new symbol policy Restricted.
30125         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
30126         with the new parameters Check_All_Labels and Case_Location.
30128         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
30129         (Library_Symbol_File needs to be defined).
30131         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
30132         and Case_Location If Check_All_Labels is True, check that all values of
30133         the string type are used, and output warning(s) if they are not.
30135         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
30136         and Case_Location.
30138         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
30140         * gnat_ugn.texi: Update documentation about the library directory in
30141         Library Projects.
30143         * makegpr.adb (Display_Command): In verbose mode, also display the
30144         value of the CPATH env var, when the compiler is gcc.
30145         (Initialize): Change the Scan_Args while loop to a for loop
30146         (Compile_Individual_Sources): Change directory to object directory
30147         before compilations.
30149         * symbols.ads: New symbol policy Restricted.
30151 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
30153         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
30154         is now taken care of internally in the Exception_Propagation package
30155         and does not require clients assistance any more.
30157         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
30158         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
30159         functions. Helpers to maintain a predicate required in the handling of
30160         occurrence transfer between tasks.
30161         This is now handled internally and does not require clients assistance
30162         for the setup/propagate separation anymore.
30163         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
30164         allocation strategy, handle the Setup_And_Not_Propagated predicate and
30165         document.
30167         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
30168         raise_after_setup, now that everything is handled internally within the
30169         setup/propagation engine.
30171 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
30173         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
30174         Add additional conditions for the case of an actual being a simple
30175         name or literal. Improve inlining by preventing the generation
30176         of temporaries with a short lifetime (one use).
30178 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
30180         PR ada/15587
30181         * einfo.ads: Minor comment updates for Has_Completion and
30182         E_Constant list of flags.
30184         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
30185         and constant redeclarations now set the Has_Completion flag of their
30186         defining identifiers.
30188         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
30189         Inspect_Deferred_Constant_Completion.
30190         Used to detect private deferred constants that have not been completed
30191         either by a constant redeclaration or pragma Import. Emits error message
30192         "constant declaration requires initialization expression".
30194         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
30195         completes a deferred constant.
30197 2004-06-11  Geert Bosch  <bosch@gnat.com>
30199         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
30201         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
30202         calculating exponent for scaling denormal numbers.
30203         (Leading_Part): Properly raise Constraint_Error for zero or negative
30204         Adjustment.
30205         (Remainder): Properly raise Constraint_Error for zero divisor.
30207 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
30209         * sem_util.adb: Minor reformatting.
30211         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
30212         dereference when accessing the entry parameter record.
30213         (Check_Array_Type): Always check for possible implicit dereference.
30214         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30215         Abort if a pointer is still present (denoting that an implicit
30216         dereference was left in the tree by the front-end).
30218         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
30219         dereference when accessing the entry parameter record.
30220         (Check_Array_Type): Always check for possible implicit dereference.
30221         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30222         Abort if a pointer is still present (denoting that an implicit
30223         dereference was left in the tree by the front-end).
30225 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
30227         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
30228         message, like the compiler itself does. Easier to parse the output.
30230         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
30232         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
30233         be base names, and not includes directories.
30235 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
30237         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
30238         so that dependencies are properly taken into account by make.
30240 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
30242         PR ada/15622
30243         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
30244         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
30246 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
30248         * Makefile.in (install-gnatlib): install target-specific run-time files.
30250         * Make-lang.in: Remove obsolete targets.
30252 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
30254         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
30255         specification, to catch misuses of program unit names.
30257         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
30258         superfluous conversions in an instance.
30260 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
30262         PR ada/15403
30263         * sem_ch12.adb (Save_References): If operator node has been folded to
30264         enumeration literal, associated_node must be discarded.
30266 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
30268         * s-stchop-vxworks.adb: Add required pragma Convention to
30269         Task_Descriptor because it is updated by a C function.
30271 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
30273         PR ada/15568
30274         * Makefile.in: Remove target specific SO_OPT on IRIX
30276 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30278         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
30279         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
30280         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
30281         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
30282         (STMT_STMT, USE_STMT): New statement codes.
30283         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
30284         * ada-tree.h: Reflect above changes.
30285         (struct tree_loop_id): Deleted.
30286         (union lang_tree_node, struct lang_decl, struct lang_type):
30287         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
30288         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
30289         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
30290         (IS_ADA_STMT): New macro.
30291         * decl.c (annotate_decl_with_node): New function.
30292         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
30293         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
30294         Call add_stmt_with_node to do needed assignments.
30295         Add call to update setjmp buffer directly, not via EXPR_STMT.
30296         (maybe_variable): Argment GNAT_NODE deleted.
30297         * gigi.h (maybe_variable): Likewise.
30298         (make_transform, add_stmt_with_node, set_block_for_group): New.
30299         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
30300         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
30301         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
30302         (set_lineno, set_lineno_from_sloc): Likewise.
30303         (record_code_position, insert_code_for): Likewise.
30304         (gnat_poplevel): Now returns void.
30305         (end_subprog_body): Now takes argument.
30306         * misc.c (cgraph.h, tree-inline.h): New includes.
30307         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
30308         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
30309         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
30310         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
30311         (gnat_parse_file): Don't set immediate_size_expand.
30312         Call cgraph functions.
30313         (gnat_expand_expr): Remove most cases.
30314         (record_code_position, insert_code_for): Remove from here.
30315         * trans.c (toplev.h, tree-gimple.h): Now included.
30316         (discard_file_names): Deleted.
30317         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
30318         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
30319         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
30320         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
30321         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
30322         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
30323         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
30324         (set_block_for_group, add_stmt_list): Likewise.
30325         (start_stmt_group): Renamed from start_block_stmt.
30326         (end_stmt_group): Likewise, from end_block_stmt.
30327         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
30328         (gigi): Don't set discard_file_names or call set_lineno.
30329         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
30330         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
30331         Numerous changes throughout to reflect new names and complete
30332         function-at-a-time implementation.
30333         (gnat_expand_stmt): Delete or comment out all cases.
30334         (process_inlined_subprograms): Use add_stmt.
30335         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
30336         call set_lineno; also remove unneeded block handling.
30337         (process_type): Remove unneeded block handling.
30338         (build_unit_elab): Remove calls to deleted functions.
30339         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
30340         (tree-dump.h): Likewise.
30341         (struct ada_binding_level): Add field jmpbuf_decl.
30342         (gnat_define_builtin, gnat_install_builtins): New.
30343         (gnat_gimplify_function, gnat_finalize): Likewise.
30344         (gnat_poplevel): No longer return BLOCK, set it instead.
30345         Remove code dealing with nested functions.
30346         (gnat_init_decl_processing): Also set size_type_node.
30347         Call gnat_install_builtins.
30348         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
30349         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
30350         Remove special-case for "main".
30351         (end_subprog_body): Add arg and rework for tree-ssa.
30352         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
30353         Add case for BOOLEAN_TYPE.
30354         * utils2.c (rtl.h): Now include.
30355         (build_call_raise): Test Debug_Flag_NN directly.
30356         (build_call_alloc_dealloc): Don't use local stack allocation for now.
30357         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
30358         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
30360 2004-06-07  Robert Dewar  <dewar@gnat.com>
30362         * a-direct.ads, einfo.ads: Minor comment updates
30364         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
30365         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30366         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
30367         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
30368         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
30370         * s-interr-sigaction.adb: Remove unreferenced variable
30371         (Attached_Interrupts).  Minor reformatting.
30372         Avoid use of variable I (replace by J).
30374         * par-ch10.adb: Fix text of one error message
30376         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
30377         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
30378         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
30379         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
30380         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
30381         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
30382         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
30383         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
30384         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
30385         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
30386         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
30387         2005 support.
30389 2004-06-07  Doug Rupp  <rupp@gnat.com>
30391         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
30393         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
30395         * mlib-tgt-vms-ia64.adb: New file.
30397         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
30398         Add mlib-tgt-vms-ia64.adb
30399         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
30400         Move to alpha specific ifeq section.
30401         Add VMS specific versions of symbols.adb
30402         Renaming of 5q vms files.
30404         * 5qsystem.ads renamed to system-vms_64.ads.
30406 2004-06-07  Vincent Celier  <celier@gnat.com>
30408         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
30409         explain that when a time of day corresponding to the non existing hour
30410         on the day switching to DST is specified, Split may return a different
30411         value for Seconds.
30413         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
30414         to GNAT PRETTY.
30416         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
30417         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
30419         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
30420         to False.
30421         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
30422         the linking options.
30423         (Build_Library.Check_Libs): On VMS, if there is a dependency on
30424         g-trasym.ads, set Gtrasymobj_Needed to True.
30426         * prj-attr.adb: Add new package Metrics for gnatmetric
30428         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
30429         canonical case to take into account files with upper case characters on
30430         Windows.
30431         (Ada_Check): Load the reference symbol file name in the name buffer to
30432         check it, not the symbol file name.
30434         * snames.ads, snames.adb: Add standard name Metrics (name of project
30435         file package for gnatmetric).
30437         * vms_conv.ads: Add Metric to Comment_Type
30439         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
30441         * vms_data.ads: Add qualifiers for GNAT METRIC
30443         * makegpr.adb (Link_Executables): Take into account the switches
30444         specified in package Linker of the main project.
30446 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
30448         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
30449         the index of the last element is Units.Last, not Units.Table'Last
30450         (which is usually not a valid index within the actually allocated
30451         storage for the table).
30453         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
30454         determines whether to generate a call to a checked storage pool
30455         Dereference action.
30456         Generate such a call only for a dereference that either comes from
30457         source, or is the result of rewriting a dereference that comes from
30458         source.
30460 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
30462         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
30464 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
30466         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
30467         file level, elaborate the stride for inner dimensions in alignment
30468         units, not bytes.
30470         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
30471         in a comment.
30473 2004-06-07  Javier Miranda  <miranda@gnat.com>
30475         * exp_ch6.adb: Correct wrong modification in previous patch
30477 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
30479         * g-trasym.ads: Corrected comment to properly reflect level of support
30480         on VMS.
30482 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
30484         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
30485         includes case of a variable referenced on the left hand side of an
30486         assignment, therefore remove redundant code. Variables and prefixes of
30487         indexed or selected components are now marked as referenced on left
30488         hand side. Warnings are now properly emitted when variables or prefixes
30489         are assigned but not read.
30491         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
30492         left hand side referenced variables. Private access types do not
30493         produce the warning "variable ... is assigned but never read".
30494         Add also additional checks to left hand side referenced variables.
30495         Aliased, renamed objects and access types do not produce the warning
30496         "variable ... is assigned but never read" since other entities may read
30497         the memory location.
30499 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
30501         * Makefile.in: In the powerpc/vxworks-specific section, restore
30502         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
30503         by mistake).
30505 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
30507         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
30508         predefined operators.
30509         Removes spurious type errors from g-trasym-vms.adb.
30511         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
30512         distinct from the operator appearing in the source, call appropriate
30513         routine to insert conversions when needed, and complete resolution of
30514         node.
30515         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
30516         interpretations for rewritten right operand.
30517         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
30518         the other operand is overloaded and the context is a type conversion.
30520 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30522         * ada-tree.def (BLOCK_STMT): Now has two operands.
30523         (BREAK_STMT): New.
30525         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
30527         * gigi.h: (gnat_poplevel): Now returns a tree.
30529         * trans.c (end_block_stmt): Add arg; all callers changed.
30530         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
30531         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
30532         (add_stmt): Set TREE_TYPE.
30533         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
30534         (gnat_expand_stmt, case BREAK_STMT): New case.
30536         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
30538 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
30540         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
30541         procedure Set_Stack_Size that is not needed.
30543 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
30545         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
30546         used for gnatpp input file and for the files upon which it depends
30548 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
30550         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
30552 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
30554         * gnatvsn.ads: Bump version numbers appropriately.
30555         Add new build type.
30557 2004-06-07  Pascal Obry  <obry@gnat.com>
30559         * gnat_ugn.texi: Improve comments about imported names and link names
30560         on Windows. Add a note about the requirement to use -k gnatdll's option
30561         when working with a DLL which has stripped stdcall symbols (no @nn
30562         suffix).
30564 2004-05-27  Vincent Celier  <celier@gnat.com>
30566         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
30567         COMMENTS_LAYOUT=UNTOUCHED
30569         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
30570         symbols-vms-alpha.adb
30572 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
30574         * sem.ads: Clarify documentation on checks suppression.
30576         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
30578 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
30580         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
30581         the case of multiple derivations.
30582         (Is_Object_Reference): For a selected component, verify that the prefix
30583         is itself an object and not a value.
30585         * sem_ch12.adb (Same_Instantiated_Constant): New name for
30586         Same_Instantiated_Entity.
30587         (Same_Instantiated_Variable): Subsidiary to
30588         Check_Formal_Package_Instance, to recognize actuals for in-out generic
30589         formals that are obtained from a previous formal package.
30590         (Instantiate_Subprogram_Body): Emit proper error when
30591         generating code and the proper body of a stub is missing.
30593         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
30594         has a universal interpretation, do the disambiguation here.
30596         * exp_ch4.adb (Expand_N_Type_Conversion,
30597         Expand_N_Unchecked_Type_Conversion): Special handling when target type
30598         is Address, to avoid typing anomalies when Address is a visible integer
30599         type.
30601         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
30602         to determine whether a subprogram should not be marked Pure, even when
30603         declared in a pure package.
30605 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
30607         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
30609         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
30610         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
30611         Update the documentation about the Ravenscar profile, following the
30612         definition found in AI-249.
30614         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
30615         setting the Profile (Ravenscar). This must be done in addition to
30616         setting the required restrictions.
30618         * rtsfind.ads: Add the set of operations defined in package
30619         Ada.Interrupts.
30621         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
30622         restriction.
30624 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
30626         lang-specs.h: Always require -c or -S and always redirect to /dev/null
30627         if -gnatc or -gnats is passed.
30629 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
30631         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
30632         a significant reference. Warnings are now properly emitted when a
30633         discriminated type is not referenced.
30635         * lib-xref.adb (Generate_Reference): A deferred constant completion,
30636         record representation clause or record type discriminant does not
30637         produce a reference to its corresponding entity. Warnings are now
30638         properly emitted when deferred constants and record types are not
30639         referenced.
30641 2004-05-27  Geert Bosch  <bosch@gnat.com>
30643         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
30644         Fixes ACATS Annex G tests.
30646 2004-05-27  Robert Dewar  <dewar@gnat.com>
30648         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
30649         handling WITH
30651 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
30653         * s-interr.adb (Server_Task): Take into account case of early return
30654         from sigwait under e.g. linux.
30656 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
30658         * gnat_ugn.texi: Add description for the new gnatpp options:
30659          -rnb - replace the original source without creating its backup copy
30660          -c0 - do not format comments
30662 2004-05-24  Geert Bosch  <bosch@gnat.com>
30664         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
30665         with 192 bits of precision, sufficient to reduce a double-extended
30666         arguments X with a maximum relative error of T'Machine_Epsilon, for X
30667         in -2.0**32 .. 2.0**32.
30668         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
30669         reduction by the processor, which only uses a 68-bit approximation of
30670         Pi.
30671         (Tan): Always reduce arguments and compute function either using
30672         the processor's fptan instruction, or by dividing sin and cos as needed.
30674 2004-05-24  Doug Rupp  <rupp@gnat.com>
30676         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
30677         gcc error on 32/64 bit VMS.
30679 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
30681         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
30682         since this is what we get for stack overflows although not documented
30683         as such.
30684         Document the issues which may require adjustments to our signal
30685         handlers.
30687 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
30689         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
30690         enclosing dynamic scope if the instantiation is within a generic unit.
30692 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
30694         * exp_dbug.ads: Fix typo.
30696         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
30697         Rename it to its proper name: system-linux-ia64.ads
30698         (stamp-gnatlib1): Remove extra target specific run time files when
30699         setting up the rts directory.
30701 2004-05-24  Javier Miranda  <miranda@gnat.com>
30703         * einfo.ads, einfo.adb (Limited_Views): Removed.
30704         (Limited_View): New attribute that replaces the previous one. It is
30705         now a bona fide package with the limited-view list through the
30706         first_entity and first_private attributes.
30708         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
30709         limited-private-with clause.
30710         (Install_Limited_Withed_Unit): Install the private declarations of a
30711         limited-private-withed package. Update the installation of the shadow
30712         entities according to the new structure (see Build_Limited_Views)
30713         (Build_Limited_Views): Replace the previous implementation of the
30714         limited view by a package entity that references the first shadow
30715         entity plus the first shadow private entity (required for limited-
30716         private-with clause)
30717         (New_Internal_Shadow_Entity): Code cleanup.
30718         (Remove_Limited_With_Clause): Update the implementation to undo the
30719         new work carried out by Build_Limited_Views.
30720         (Build_Chain): Complete documentation.
30721         Replace Ada0Y by Ada 0Y in comments
30722         Minor reformating
30724         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
30725         types the level of accessibility depends on the enclosing type
30726         declaration.
30728         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
30729         entities. Complete documentation of previous change.
30731 2004-05-24  Robert Dewar  <dewar@gnat.com>
30733         * namet.adb: Minor reformatting
30734         Avoid use of name I (replace by J)
30735         Minor code restructuring
30737         * sem_ch6.adb: Minor reformatting
30739         * lib-writ.adb: Do not set restriction as active if this is a
30740         Restriction_Warning case.
30742         * sem_prag.adb: Reset restriction warning flag if real pragma
30743         restriction encountered.
30745         * s-htable.adb: Minor reformatting
30746         Change rotate count to 3 in Hash (improves hash for small strings)
30748         * 5qsystem.ads: Add comments for type Address (no literals allowed).
30750         * gnat_ugn.texi: Add new section of documentation "Code Generation
30751         Control", which describes the use of -m switches.
30753 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
30755         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
30756         through the DECL_INITIAL for renamed variables.
30758 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
30760         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
30762 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
30764         * exp_dbug.ads: Correct comments concerning handling of overloading,
30765         since we no longer use $ anymore.
30767 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
30769         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
30770         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
30771         with illegal subunits.
30773 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
30775         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
30776         body with front-end inlining enabled, check whether an inline pragma
30777         appears immediately after the body and applies to it.
30779         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
30780         enabled and the pragma appears after the body of the subprogram.
30782 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30784         Part of function-at-a-time conversion
30786         * misc.c (adjust_decl_rtl): Deleted.
30787         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
30788         Define.
30790         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
30791         (add_decl_stmt, add_stmt, block_has_vars): New functions.
30792         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
30794         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
30795         when making a decl.
30796         (gnat_to_gnu_entity): Likewise.
30797         Use add_stmt to update setjmp buffer.
30798         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
30799         flush_addressof.
30800         No longer call adjust_decl_rtl.
30801         (DECL_INIT_BY_ASSIGN_P): New macro.
30802         (DECL_STMT_VAR): Likewise.
30804         * trans.c (gigi): Call start_block_stmt to make the outermost
30805         BLOCK_STMT.
30806         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
30807         Call start_block_stmt and end_block_stmt temporarily.
30808         Use gnat_expand_stmt instead of expand_expr_stmt.
30809         (add_decl_stmt): New function.
30810         (tree_transform): Call it.
30811         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
30812         (end_block_stmt): Set type and NULL_STMT.
30813         (gnat_expand_stmt): Make recursize call instead of calling
30814         expand_expr_stmt.
30815         (gnat_expand_stmt, case DECL_STMT): New case.
30816         (set_lineno_from_sloc): Do nothing if global.
30817         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
30818         (start_block_stmt, add_stmt, end_block_stmt): New functions.
30819         (build_block_stmt): Call them.
30820         (gnat_to_code): Don't expand NULL_STMT.
30821         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
30822         args.
30823         (tree_transform): Likewise.
30824         (tree_transform, case N_Null_Statement): Return NULL_STMT.
30825         (gnat_expand_stmt, case NULL_STMT): New case.
30826         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
30827         IF_STMT_TRUE.
30829         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
30830         TREE_ADDRESSABLE.
30832         * utils.c (create_var_decl): Do not call expand_decl or
30833         expand_decl_init.
30834         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
30835         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
30836         here.
30837         (struct e_stack): Add chain_next to GTY.
30838         (struct binding_level): Deleted.
30839         (struct ada_binding_level): New struct.
30840         (free_block_chain): New.
30841         (global_binding_level, clear_binding_level): Deleted.
30842         (global_bindings_p): Rework to see if no chain.
30843         (kept_level_p, set_block): Deleted.
30844         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
30845         new data structure and work directly on BLOCK node.
30846         (gnat_poplevel): Similarly.
30847         (get_decls): Look at BLOCK_VARS.
30848         (insert_block): Work directly on BLOCK node.
30849         (block_has_var): New function.
30850         (pushdecl): Rework for new binding structures.
30851         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
30852         poplevel.
30853         (build_subprog_body): Likewise.
30854         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
30856         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
30858         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
30859         (DECL_STMT_VAR): Likewise.
30861 2004-05-17  Robert Dewar  <dewar@gnat.com>
30863         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
30864         procedure
30866         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
30867         of restriction synonyums by using
30868         Restrict.Process_Restriction_Synonyms.
30870         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
30872         * s-restri.ads (Tasking_Allowed): Correct missing comment
30874         * s-rident.ads: Add entries for restriction synonyms
30876         * ali.adb: Fix some problems with badly formatted ALI files that can
30877         result in infinite loops.
30879         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
30880         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
30881         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30882         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
30883         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
30884         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
30885         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
30886         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
30887         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
30888         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
30889         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
30890         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
30891         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
30892         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
30893         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
30894         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
30895         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
30896         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
30897         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
30898         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
30899         to Task_Id (minor cleanup).
30901 2004-05-17  Vincent Celier  <celier@gnat.com>
30903         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
30904         directory separator.
30906         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
30907         project being extended, if Languages is not declared in extending
30908         project.
30910 2004-05-17  Javier Miranda  <miranda@gnat.com>
30912         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
30913         limited view of a visible sibling.
30915 2004-05-14  Robert Dewar  <dewar@gnat.com>
30917         * gnat_ugn.texi: Minor change to -gnatS documentation
30919         * sprint.adb: Remove some instances of Assert (False) and for this
30920         purpose replace them by output of a ??? string.
30922         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
30923         Assert (False).
30925         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
30926         flag processing. This was suppressing required dependencies in
30927         No_Run_Time mode and is not needed since the binder does not generate
30928         references for things in libgnat anyway.
30930         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
30931         warning.
30933 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
30935         * gnat_ugn.texi: Document AIX-specific issue with initialization of
30936         resolver library.
30938         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
30939         action for the case of an actual parameter in an init proc call.
30941 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
30943         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
30944         subtype, check visible entities in base type.
30946         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
30947         actions if the object is a renaming.
30949         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
30950         Check_Formal_Package_Instance, to determine more precisely when the
30951         formal and the actual denote the same entity.
30953 2004-05-14  Javier Miranda  <miranda@gnat.com>
30955         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
30957         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
30958         corresponding to a private_with must be removed from visibility; it
30959         will be made visible later, just before we analyze the private part of
30960         the package.
30961         (Check_Private_Child_Unit): Allow private_with clauses in public
30962         siblings.
30963         (Install_Siblings): Make visible the private entities of private-withed
30964         siblings.
30965         (Install_Withed_Unit): Do not install the private withed unit if we
30966         are compiling a package declaration and the Private_With_OK flag was
30967         not set by the caller. These declarations will be installed later,
30968         just before we analyze the private part of the package.
30970         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
30971         during the evaluation of the expression that initializes the object,
30972         decorate it with the expected type to avoid cascade errors.
30973         Code cleanup.
30975         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
30976         subprogram we have to install the private_with clauses after its
30977         specification has been analyzed (as documented in AI-262.TXT).
30979         * sem_ch8.adb (Has_Private_With): New function. Determines if the
30980         current compilation unit has a private with on a given entity.
30981         (Find_Direct_Name): Detect the Beaujolais problem described in
30982         AI-262.TXT
30984         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
30985         provides the functionality of the function Is_Ancestor that was
30986         previously available in sem_ch10. It has been renamed to avoid
30987         overloading.
30989         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
30991 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30993         * utils.c (build_vms_descriptor): Use SImode pointers.
30995 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
30997         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
30999 2004-05-14  GNAT Script  <nobody@gnat.com>
31001         * Make-lang.in: Makefile automatically updated
31003 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
31005         Renaming of target specific files for clarity
31007         * Makefile.in: Rename GNAT target specific files.
31009         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
31010         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
31011         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
31012         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
31013         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
31014         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
31015         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
31016         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
31017         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
31018         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
31019         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
31020         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
31021         51osinte.adb, 51osinte.ads, 51system.ads,
31022         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
31023         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
31024         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
31025         56tpopsp.adb, 57system.ads, 58system.ads,
31026         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
31027         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
31028         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
31029         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
31030         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
31031         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
31032         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
31033         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
31034         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
31035         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
31036         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
31037         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
31038         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
31039         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
31040         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
31041         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
31042         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
31043         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
31044         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
31045         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
31046         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
31047         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
31048         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
31049         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
31050         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
31051         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
31052         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
31053         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
31054         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
31055         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
31056         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
31057         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
31058         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
31059         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
31060         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
31061         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
31062         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
31063         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
31064         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
31065         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
31067         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
31068         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
31069         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
31070         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
31071         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
31072         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
31073         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
31074         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
31075         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
31076         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
31077         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
31078         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
31079         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
31080         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
31081         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
31082         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
31083         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
31084         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
31085         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
31086         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
31087         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
31088         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
31089         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
31090         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
31091         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
31092         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
31093         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
31094         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
31095         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
31096         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
31097         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
31098         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
31099         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
31100         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
31101         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
31102         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
31103         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
31104         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
31105         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
31106         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
31107         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
31108         s-osinte-vms.ads, s-osinte-vxworks.adb,
31109         s-osinte-vxworks.ads, s-osprim-mingw.adb,
31110         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
31111         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
31112         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
31113         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
31114         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
31115         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
31116         s-stchop-vxworks.adb, s-taprop-dummy.adb,
31117         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
31118         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
31119         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
31120         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
31121         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
31122         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
31123         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
31124         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
31125         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
31126         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
31127         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
31128         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
31129         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
31130         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
31131         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
31132         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
31133         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
31134         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
31135         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
31136         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
31137         system-irix-o32.ads, system-linux-x86_64.ads,
31138         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
31139         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
31140         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
31141         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
31142         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
31143         system-vxworks-mips.ads, system-vxworks-ppc.ads,
31144         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
31145         above.
31147 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
31149         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
31151 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
31153         Merge from tree-ssa-20020619-branch.
31155         * config-lang.in (boot_language, build_by_default): Set
31156         to no.
31157         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
31158         (max_size): Add static chain op for call_expr.
31160 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
31162         PR target/15331
31163         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
31165 2004-05-11  Roger Sayle  <roger@eyesopen.com>
31167         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
31168         COND_EXPR.
31170 2004-05-10  Doug Rupp  <rupp@gnat.com>
31172         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
31173         system.aux_dec.
31175         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
31177         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
31179         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
31180         Fixes undefined symbols in IA64 gnatlib.
31182         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
31184         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
31185         Short_Address). This will be moved to system.auxdec.
31187 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
31189         * sem_util.adb: Replace test for presence of a node that is always
31190         present with a call to Discard_Node.
31192         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
31193         Analyze on the library unit node after generation of distribution stub
31194         constructs.  The call was a no-op because Unit_Node has already been
31195         Analyzed, and the tree fragments for the distribution stubs are
31196         analyzed as they are inserted in Exp_Dist.
31197         Update comment regarding to distribution stubs to reflect that we
31198         do not generate stub in separate files anymore.
31200         * einfo.ads: Clarify the fact that a tagged private type has the
31201         E_Record_Type_With_Private Ekind.
31203         * erroutc.adb: Minor reformatting
31205         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
31206         values if line length is increased using -gnatyM (noticed during code
31207         reading).
31209         * eval_fat.adb: Minor reformatting
31210         Put spaces around exponentiation operator
31212 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
31214         PR ada/15005
31215         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
31216         has been rewritten as an explicit dereference, retrieve type of
31217         original node to check for possibly unconstrained record type.
31219 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
31221         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
31222         overriding, use the operation of the parent unconditionally.
31224         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
31225         operation when either operand is a literal, to avoid further
31226         ambiguities.
31228         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
31229         overridden by a previous explicit declaration, mark the previous entity
31230         as overriding.
31232         * sem_disp.adb (Check_Dispatching_Operation): New predicate
31233         Is_Visibly_Controlled, to determine whether a declaration of a
31234         primitive control operation for a derived type overrides an inherited
31235         one. Add warning if the explicit declaration does not override.
31237 2004-05-10  Vincent Celier  <celier@gnat.com>
31239         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
31240         some cases when the sources are no longer present.
31242         * make.adb (Collect_Arguments): Fail if an external source, not part
31243         of any project need to be compiled, when switch -x has not been
31244         specified.
31246         * makeusg.adb: Document new switch -x
31248         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
31249         defaulted to False.
31251         * switch-m.adb (Scan_Make_Switches): New switch -x
31253         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
31254         gnatmake switch -x.
31256         * gnat_ugn.texi: Document new gnatmake switch -x
31258 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
31260         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
31262         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
31263         (process_attributes): Likewise.
31265 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
31267         * s-inmaop.ads: Fix spelling mistake in one of the comments.
31269 2004-05-10  Robert Dewar  <dewar@gnat.com>
31271         * gnat_ugn.texi: Document that for config pragma files, the maximum
31272         line length is always 32767.
31274         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
31275         literals is now allowed.
31277         * gnat-style.texi: Remove statement about splitting long lines before
31278         an operator rather than after, since we do not follow this rule at all.
31279         Clarify rule (really lack of rule) for spaces around exponentiation
31281         * sem_elim.adb: Allow concatenation of string literals as well as a
31282         single string literal for pragma arguments.
31284         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
31286         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
31287         written for append case.
31289         * frontend.adb: Changes to avoid checking max line length in config
31290         pragma files.
31292         * g-os_lib.ads: Minor reformatting
31294         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
31295         wrong in any case. Instead use standard value. Noticed during code
31296         reading.
31298         * opt.ads (Max_Line_Length): New field, used to implement removal of
31299         limitation on length of lines when scanning config pragma files.
31301         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
31302         makeutl.ads, makeutl.adb: Minor reformatting
31304         * scn.adb: Do not check line length while scanning config pragma files
31305         Do not check line length while scanning out license information
31307         * scng.adb: Changes to avoid line length checks while parsing config
31308         pragma files.
31310 2004-05-10  GNAT Script  <nobody@gnat.com>
31312         * Make-lang.in: Makefile automatically updated
31314 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
31316         * osint.adb (Find_Program_Name): Fix handling of VMS version
31317         number.
31319 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
31321         * g-os_lib.ads (Invalid_Time): New constant
31323         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
31324         return OS_Time instead of time_t to match what is imported by Ada.
31325         Now return -1 if the file doesn't exist, instead of a random value
31327 2004-05-05  Robert Dewar  <dewar@gnat.com>
31329         * usage.adb: Add line for -gnatR?s switch
31331         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
31333         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
31334         and for Match (Data_First, Data_last)
31336         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
31337         written when we are dealing with multi-unit files.
31339 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
31341         * Makefile.in: Remove unused targets and variables.
31343 2004-05-05  Vincent Celier  <celier@gnat.com>
31345         * switch-m.adb: New gnatmake switch -eI
31347         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
31348         of new gnatmake switch -eInnn.
31350         * makegpr.adb: Take into account new parameters Index and Src_Index in
31351         Prj.Util.
31353         * clean.adb: Implement support for multi-unit sources, including new
31354         switch -i.
31356         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
31357         Src_Index.
31359         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
31360         (Extract_From_Q): New out parameter Index
31361         (Mark, Is_Marked): Subprograms moved to Makeutl
31362         (Switches_Of): New parameter Source_Index
31363         (Add_Switch): New parameter Index
31364         (Check): New parameter Source_Index
31365         (Collect_Arguments): New parameter Source_Index
31366         (Collect_Arguments_And_Compile): New parameter Source_Index
31367         (Compile): New parameter Source_Index
31368         Put subprograms in alphabetical order
31369         Add support for multi-source sources, including in project files.
31371         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
31372         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
31373         Make.
31375         * makeusg.adb: New gnatmake switch -eInnn
31377         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
31378         Prj.Util.Value_Of.
31380         * opt.ads (Main_Index): New variable, defaulted to 0.
31382         * osint.ads, osinte.adb (Add_File): New parameter Index
31383         (Current_Source_Index): New function
31385         * prj.adb: Take into account new components Index and Src_Index
31387         * prj.ads (String_Element): New component Index
31388         (Variable_Value): New component Index
31389         (Array_Element): New component Src_Index
31391         * prj-attr.adb: Indicate that optional index may be specified for
31392         attributes Main, Executable, Spec, Body and some of Switches.
31394         * prj-attr.ads (Attribute_Kind): New values for optional indexes
31395         (Attribute_Record): New component Optional_Index
31397         * prj-com.ads (File_Name_Data): New component Index
31399         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
31401         * prj-env.adb (Put): Output optional index
31403         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
31404         attributes Spec and Body.
31406         * prj-nmsc.adb: Process optional indexes
31408         * prj-pp.adb: Ouput "at" for optional indexes
31410         * prj-proc.adb: Take into account optional indexes
31412         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
31413         Optional_Index. For string literal,
31414         process optional index when Optional_Index is True.
31415         (Parse_Expresion): New Boolean parameter Optional_Index
31417         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
31418         (Set_Source_Index_Of): New procedure
31420         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
31421         index.
31423         * prj-util.ads (Executable_Of): New parameter Index
31424         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
31425         New parameter Src_Index, defaulted to 0.
31427 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
31429         PR ada/15257
31430         * sem_ch3.adb (Access_Definition): If this is an access parameter
31431         whose designated type is imported through a limited_with clause, do
31432         not add the enclosing subprogram to the list of private dependents of
31433         the type.
31435 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
31437         PR ada/15258
31438         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
31439         a limited_with clause, and the other is its non-limited view.
31441 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
31443         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
31445         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
31446         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
31447         Stand.Boolean_Literals to produce references to entities
31448         Standard_False and Standard_True from compile-time computed boolean
31449         values.
31451         * stand.ads (Boolean_Literals): New variable, provides the entity
31452         values for False and True, for use by the expander.
31454 2004-05-05  Doug Rupp  <rupp@gnat.com>
31456         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
31457         5vinmaop.adb: Unchecked convert Short_Address vice Address
31459         * adaint.c, raise.c: Caste CRTL function return value
31460         to avoid gcc error on 32/64 bit IVMS.
31462         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
31463         target = IA64/VMS.
31465         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
31467         * 5qsystem.ads (Address): Declare as Long_Integer
31468         (Short_Address): Declare as 32 bit subtype of Address
31469         Declare  abstract address operations to avoid gratuitous ambiguities.
31471 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
31473         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
31474         instead of the old Boolean_Entry_Barriers.
31475         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
31477 2004-05-05  GNAT Script  <nobody@gnat.com>
31479         * Make-lang.in: Makefile automatically updated
31481 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
31483         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
31485 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
31487         PR ada/15152
31488         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
31489         alone. Replacing object references by literals is inappropriate in a
31490         so low level context.
31492 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
31494         * a-exexpr.adb: Add comments
31496 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
31498         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
31499         declare the Ancestor_Tags array in Type_Specific_Data with a small size
31500         without risking a bounds check error when accessing one of its
31501         components.
31502         (Type_Specific_Data): Define Ancestor_Tags as a small array.
31503         This prevents us from hitting a limitation during the debug info
31504         generation when using stabs.
31506         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
31507         small array.
31508         This prevents us from hitting a limitation during the debug info
31509         generation when using stabs.
31511 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
31513         lang-specs.h: Remove -gnatz* from specs.
31515 2004-05-03  Vincent Celier  <celier@gnat.com>
31517         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
31519         * Make-lang.in, Makefile.in: Add gprmake
31521 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
31523         * sem_aggr.adb: Fix typo in comment.
31525 2004-05-03  Robert Dewar  <dewar@gnat.com>
31527         * make.adb: Minor reformatting
31529         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
31531         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
31532         so that it works when address is not a private type.
31534         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
31535         properly with rewritten unchecked conversions. This prevents
31536         order-of-elaboration issues that can otherwise arise.
31537         (Minimum_Size): Don't check size of access types under VMS
31539         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
31540         interpretations of integer literals as type System.Address.
31542         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
31543         (Is_Descendent_Of): New function
31545 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
31547         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31548         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
31549         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
31551         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
31552         of the old Max_Entry_Queue_Depth.
31554         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31555         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
31556         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
31558         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
31559         New entry for proper handling of Max_Entry_Queue_Depth.
31560         New entry for proper handling of No_Dynamic_Interrupts.
31562         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
31563         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31564         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
31565         the GNAT specific restriction Max_Entry_Queue_Depth.
31566         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
31567         the GNAT specific restriction No_Dynamic_Interrupts.
31569         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
31570         instead of the old Boolean_Entry_Barriers.
31571         Use the new restriction No_Dynamic_Attachment instead of the old
31572         No_Dynamic_Interrupts.
31574         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
31575         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31577         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
31578         of the old Max_Entry_Queue_Depth.
31580 2004-05-03  GNAT Script  <nobody@gnat.com>
31582         * Make-lang.in: Makefile automatically updated
31584 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
31586         * checks.adb (Enable_Range_Check): If the prefix of an index component
31587         is an access to an unconstrained array, perform check unconditionally.
31589 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31591         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
31592         Component_Clause.
31594 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
31596         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
31597         alternate stack setting. There was no support for the tasking cases
31598         and the changes eventually caused a number of side-effect failures in
31599         the non-tasking case too.
31601 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
31603         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
31604         -gnats is passed.
31606 2004-04-29  Vincent Celier  <celier@gnat.com>
31608         * make.adb (Gnatmake): Increase max size of argument array for
31609         gnatbind for the potential addition of -F.
31610         If there are Stand-Alone Library projects, invoke gnatbind with -F to
31611         be sure that elaboration flags will be checked.
31613         * switch-c.adb: Correct call to Scan_Pos for -gnateI
31615 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
31617         * sem_warn.adb (Check_References): Move '<access-variable> may be
31618         null' warning out of under Warn_On_No_Value_Assigned.
31620 2004-04-29  Ed Falis  <falis@gnat.com>
31622         * gnat_ugn.texi: Fixed texi error
31624 2004-04-29  Robert Dewar  <dewar@gnat.com>
31626         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
31627         abstract operations if they come from predefined files.
31629         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
31630         Dynamic, not RM).
31632         * s-addope.adb: Correct obvious error in mod function
31634 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
31636         * Makefile.in: Add target pairs for powerpc darwin*
31637         tasking support.
31639         * a-intnam-darwin.ads, s-osinte-darwin.adb,
31640         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
31642 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
31644         * Makefile.in: Add target macro definitions for s390*-linux*.
31645         * system-linux-s390.ads: New file.
31646         * system-linux-s390x.ads: New file.
31648 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
31650         * gnat_ugn.texi: Correct argument to @setfilename.
31652 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
31654         * a-exexpr.adb (Unwind_Word): New data type.
31655         (Unwind_Exception): Use it as type of Private1 and Private2.
31657         * raise.c (db_action_for): Fix debug printf.
31659 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
31661         * a-wtmoio.ads: Formal type must be a modular type, not a signed
31662         integer type.
31664 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31666         * decl.c (gnat_to_gnu_entity, case object): Call
31667         __builtin_update_setjmp_buf.
31669         * gigi.h (update_setjmp_buf): Deleted.
31670         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
31672         * misc.c: (update_setjmp_buf): Deleted.
31674         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
31675         around block of RTL.
31677         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
31679 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
31681         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
31682         subprogram for which no pragma All_Calls_Remote applies, store the
31683         address of the real subprogram in the underlying record type, so local
31684         dereferences do not go through the PCS.
31686 2004-04-26  Robert Dewar  <dewar@gnat.com>
31688         * i-c.ads: Add some type qualifications to avoid ambiguities when
31689         compiling with s-auxdec.ads and a non-private address type.
31691 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
31693         * Makefile.rtl: Fix error in previous check-in:
31694         Add s-addope.o to non tasking object list (rather than tasking object
31695         list).
31697 2004-04-26  Javier Miranda  <miranda@gnat.com>
31699         * sem_aggr.adb: Fix typo in comments
31700         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
31701         Required to check the null-exclusion attribute.
31703         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
31704         case of anonymous access types in record and array components. For a
31705         component definition the level is the same of the enclosing composite
31706         type.
31708         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
31709         that are anonymous access types the level of accessibility depends on
31710         the enclosing type declaration. In order to have this information, set
31711         the scope of the anonymous access type to the enclosing record type
31712         declaration.
31713         (Array_Type_Declaration): In case of components that are anonymous
31714         access types the level of accessibility depends on the enclosing type
31715         declaration. In order to have this information, set the scope of the
31716         anonymous access type to the enclosing array type declaration.
31718         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
31719         access type.
31721         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
31722         renaming of anonymous access-to-constant types allowed if and only if
31723         the renamed object is access-to-constant.
31725         * sem_util.adb (Type_Access_Level): In case of anonymous access types
31726         that are component_definition or discriminants of a nonlimited type,
31727         the level is the same as that of the enclosing component type.
31729 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
31731         * sem_elim.adb: Some minor code reorganization from code reading. Fix
31732         misprint in the function name (File_Name_Match).
31734 2004-04-23  Laurent Guerby  <laurent@guerby.net>
31736         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
31737         install.
31739 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
31741         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
31743 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
31745         * adaint.c (__gnat_try_lock): No longer requires that the parent
31746         directory be writable, the directory itself is enough.
31747         (gnat_is_absolute_path): Change profile, so that the call from
31748         GNAT.OS_Lib can be made more efficient.
31750         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
31751         from GNAT.OS_Lib can be made more efficient.
31753         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
31754         one copy of the file name. Found by code reading.
31756 2004-04-23  Vincent Celier  <celier@gnat.com>
31758         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
31759         Correct documentation on gnatmake switches transmitted to the compiler
31761         * ali.ads: Minor comment fix
31763 2004-04-23  Javier Miranda  <miranda@gnat.com>
31765         * sem_ch6.adb: (Confirming Types): Code cleanup
31767         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
31768         subprogram types: E_Anonymous_Access_Subprogram_Type and
31769         E_Anonymous_Access_Protected_Subprogram_Type.
31771 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
31773         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31774         whether a pragma All_Calls_Remote applies to the subprogram on which
31775         'Access is taken.
31776         No functional change is introduced by this revision; the new parameter
31777         will be used to allow calls to local RCI subprograms to be optimized
31778         to not use the PCS in the case where no pragma All_Calls_Remote applies,
31779         as is already done in the PolyORB implementation of the DSA.
31781         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31782         whether a pragma All_Calls_Remote applies to the subprogram on which
31783         'Access is taken.
31784         No functional change is introduced by this revision; the new parameter
31785         will be used to allow calls to local RCI subprograms to be optimized
31786         to not use the PCS in the case where no pragma All_Calls_Remote applies,
31787         as is already done in the PolyORB implementation of the DSA.
31789 2004-04-23  Robert Dewar  <dewar@gnat.com>
31791         * Makefile.rtl: Add entry for s-addope.o in run time library list
31792         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
31793         * s-addope.ads, s-addope.adb: New files.
31795         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
31796         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
31797         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
31798         System.Address to be non-private and signed.
31800         * sem_elim.adb: Minor reformatting (fairly extensive)
31801         Some minor code reorganization from code reading
31802         Add a couple of ??? comments
31804 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31806         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
31807         (tree_transform, case N_If_Statement): Remove non-determinism.
31809         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
31811 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
31813         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
31814         Eliminate' section.
31816         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
31817         no longer used as a parameter name for Eliminate pragma).
31819 2004-04-22  Laurent Guerby  <laurent@guerby.net>
31821         PR optimization/14984
31822         PR optimization/14985
31823         * trans.c (gigi): Fix non determinism leading to bootstrap
31824         comparison failures.
31826 2004-04-21  Pascal Obry  <obry@gnat.com>
31828         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
31829         passed to spawnvp() to properly handle program pathname with spaces on
31830         Win32.
31832 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
31834         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
31835         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
31836         unlocked in case of exceptions.
31838 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
31840         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
31841         This function does not exist anymore.
31843 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
31845         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
31847         * link.c: Move variables to the __gnat name space.
31849         * Makefile.in: list link.o explicitly when needed.
31851         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
31853 2004-04-21  Javier Miranda  <miranda@gnat.com>
31855         * einfo.adb (Original_Access_Type): New subprogram
31856         (Set_Original_Access_Type): New subprogram
31857         (Write_Field21_Name): Write the name of the new field
31859         * einfo.ads (Original_Access_Type): New field present in access to
31860         subprogram types.
31861         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
31862         E_Anonymous_Access_Protected_Subprogram_Type.
31864         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
31865         subprogram types.
31867         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
31868         to anonymous access to subprogram types.
31870         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
31871         to subprogram types.
31873         * sem_ch3.adb (Access_Definition): Complete decoration of entities
31874         corresponding to anonymous access to subprogram types.
31875         (Analyze_Component_Declaration): Add new actual to the call to
31876         subprogram replace_anonymous_access_to_protected_subprogram.
31877         (Array_Type_Declaration): Add new actual to the call to subprogram
31878         replace_anonymous_access_to_protected_subprogram.
31879         (Process_Discriminants): Add new actual to the call to subprogram
31880         replace_anonymous_access_to_protected_subprogram.
31881         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
31883         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
31884         formal.
31886         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
31887         access to subprogram types.
31889         * sem_util.adb (Has_Declarations): Addition of package_specification
31890         nodes.
31892 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
31894         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
31895         inlined flags to renamed entity only if in current unit.
31897 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
31899         * s-parint.ads: Add DSA implementation marker.
31901         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
31902         value of System.Partition_Interface.DSA_Implementation to determine
31903         what version of the distributed systems annex is available (no
31904         implementation, GLADE, or PolyORB).
31906 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
31908         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
31910 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31912         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
31913         with new type if alias sets differ.
31914         Fixes ACATS c41103b.
31916 2004-04-21  Vincent Celier  <celier@gnat.com>
31918         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
31919         Add array Lang_Args for the language specific compiling argument
31920         switches.
31922         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
31924 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
31926         * gnat_rm.texi: Update the descripton of the Eliminate pragma
31927         according to the recent changes in the format of the parameters of the
31928         pragma (replacing Homonym_Number with Source_Location).
31930 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
31932         * 5isystem.ads: Removed, unused.
31934         * gnat_rm.texi: Redo 1.13 change.
31936 2004-04-19  Robert Dewar  <dewar@gnat.com>
31938         * s-stoele.ads: Clean up definition of Storage_Offset (the new
31939         definition is cleaner, avoids the kludge of explicit Standard operator
31940         references, and also is consistent with a visible System.Address with
31941         no visible operations.
31943         * s-geveop.adb: Add declarations to avoid assumption of visible
31944         operations on type System.Address (since these might not be available
31945         if Address is a non-private type for which the operations
31946         are made abstract).
31948         * sem_eval.adb: Minor reformatting
31950         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
31951         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
31952         reformatting (new function spec format).
31954         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
31955         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
31956         s-caun64.adb: Add declarations to avoid assumption of visible
31957         operations on type System.Address (since these might not be available
31958         if Address is a non-private type for which the operations are made
31959         abstract).
31961         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
31963         * exp_intr.adb: Minor comment update
31965         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
31967         * 5omastop.adb: Add declarations to avoid assumption of visible
31968         operations on type System.Address (since these might not be available
31969         if Address is a non-private type for which the operations
31970         are made abstract).
31972 2004-04-19  Vincent Celier  <celier@gnat.com>
31974         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
31976         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
31977         defaulted to Ada.
31979         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
31980         defaulted to Ada.
31981         Call Check with Process_Languages.
31982         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
31983         with Process_Languages.
31984         (Recursive_Check): New Boolean parameter Process_Languages. Call
31985         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
31986         Process_Languages.
31988         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
31990         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
31991         parameter Ada_Main, defaulted to True.
31992         Check for Ada specific characteristics only when Ada_Main is True.
31994         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
31996         * prj.adb: (Project_Empty): Add new Project_Data components.
31998         * prj.ads: New types and tables for non Ada languages.
31999         (Project_Data): New components Languages, Impl_Suffixes,
32000         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
32001         Include_Path, Include_Data_Set.
32003         * prj-env.ads, prj-env.adb: Minor reformatting
32005         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
32006         Put subprograms in alphabetical order
32008         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
32009         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
32010         Opt.Follow_Links.
32012         * mlib-prj.adb: Back out modification in last version, as they are
32013         incorrect.
32014         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
32016         * make.adb: (Mains): Moved to package Makeutl
32017         (Linker_Opts): Moved to package Makeutl
32018         (Is_External_Assignment): Moved to package Makeutl
32019         (Test_If_Relative_Path): Moved to package Makeutl
32020         (Gnatmake): Move sorting of linker options to function
32021         Makeutl.Linker_Options_Switches.
32023         * makeutl.ads, makeutl.adb: New files.
32025         * Makefile.in: Add makeutl.o to the object files for gnatmake
32027         * makeusg.adb: Add line for new switch -eL.
32029         * gnatls.adb (Image): New function.
32030         (Output_Unit): If in verbose mode, output the list of restrictions
32031         specified by pragmas Restrictions.
32033         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
32034         Text_IO.
32036         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
32037         needed, to put it in the range 1970 (included) - 2026 (excluded).
32038         (Time_Of): Do not shift Unix_Min_Year (1970).
32039         Shift the date by multiple of 56 years, if needed, to put it in the
32040         range 1970 (included) - 2026 (excluded).
32042         * adaint.h, adaint.c (__gnat_set_executable): New function.
32044 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32046         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
32047         and pop GC context.
32048         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
32049         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
32050         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
32051         (tree_transform, case N_Code_Statement): Likewise.
32052         (gnat_expand_stmt, case LABEL_STMT): Don't look at
32053         LABEL_STMT_FIRST_IN_EH.
32054         (gnat_expand_stmt, case ASM_STMT): New case.
32056         * utils2.c (build_unary_op): Properly set TREE_READONLY of
32057         UNCONSTRAINED_ARRAY_REF.
32059         * utils.c (poplevel): Temporarily push/pop GC context around inline
32060         function expansion.
32062         * decl.c (maybe_variable): Properly set TREE_READONLY of
32063         UNCONSTRAINED_ARRAY_REF.
32064         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
32066         * ada-tree.def: (ASM_STMT): New.
32068         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
32069         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
32070         ASM_STMT_INPUT): New.
32071         (ASM_STMT_CLOBBER): Likewise.
32073 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
32075         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
32076         general rcheck mechanism to raise Program_Error for E.4(18), instead
32077         of a custom raiser in System.Partition_Interface.
32078         Part of general cleanup work before PolyORB integration.
32080         * snames.ads, snames.adb: Add new runtime library entities and names
32081         for PolyORB DSA.
32083         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
32084         exp_dist.
32085         (Build_Subprogram_Id): New subprogram provided by exp_dist
32086         Code reorganisation in preparation for PolyORB integration.
32088         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
32089         exp_dist.
32090         (Build_Subprogram_Id): New subprogram provided by exp_dist
32092         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
32093         actual parameter types for call to dereference of an
32094         access-to-subprogram type.
32096         * rtsfind.ads: Add new runtime library entities and names for PolyORB
32097         DSA.
32099         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
32100         instead, which has the same behaviour here since we never pass it a
32101         NULL pointer.
32103         * link.c (run_path_option, Solaris case): Use -Wl, as for other
32104         platforms.
32106         * Makefile.in: adjust object file lists for gnatlink and gnatmake
32107         to account for new dependency upon Interfaces.C.Strings + link.o
32108         For x86 FreeBSD, use 86numaux.
32110         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
32111         from Mlib.Tgt to Mlib.
32113         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
32114         target-independent.
32116         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
32117         target-specific versions of this subprogram, now implemented as a
32118         target-independent function in Mlib.
32120         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
32121         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
32122         (Linker_Library_Path_Option): Remove target-specific versions of this
32123         subprogram, now implemented as a target-independent function in Mlib.
32125         * atree.adb: (Allocate_Initialize_Node): New subprogram.
32126         Factors out node table slots allocation.
32127         (Fix_Parents): New subprogram.
32128         Encapsulate the pattern of fixing up parent pointers for syntactic
32129         children of a rewritten node.
32130         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
32131         (Rewrite): Use New_Copy when creating saved copy of original node.
32132         (Replace): Use Copy_Node to copy nodes.
32134 2004-04-19  Javier Miranda  <miranda@gnat.com>
32136         * sprint.adb (Sprint_Node_Actual): Give support to the new
32137         Access_To_Subprogram node available in Access_Definition nodes. In
32138         addition, give support to the AI-231 node fields: null-exclusion,
32139         all-present, constant-present.
32141         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
32143         * sinfo.ads, sinfo.adb:
32144         New field Access_To_Subprogram_Definition in Access_Definition nodes
32146         * sem_ch6.adb (Process_Formals): Move here the code that creates and
32147         decorates internal subtype declaration corresponding to the
32148         null-excluding formal. This code was previously in Set_Actual_Subtypes.
32149         In addition, carry out some code cleanup on this code. In case of
32150         access to protected subprogram call
32151         Replace_Anonymous_Access_To_Protected_Subprogram.
32152         (Set_Actual_Subtypes): Code cleanup.
32154         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
32155         Find_Type in case of anonymous access renamings. Add warning in case of
32156         null-excluding attribute used in anonymous access renaming.
32158         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
32159         subprogram
32161         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
32162         subprogram.
32163         (Access_Definition): In case of anonymous access to subprograms call
32164         the corresponding semantic routine to decorate the node.
32165         (Access_Subprogram_Declaration): Addition of some comments indicating
32166         some code that probably should be added here. Detected by comparison
32167         with the access_definition subprogram.
32168         (Analyze_Component_Declaration): In case of access to protected
32169         subprogram call Replace_Anonymous_Access_To_Protected.
32170         (Array_Type_Declaration): In case of access to protected subprogram call
32171         Replace_Anonymous_Access_To_Protected_Subprogram.
32172         (Process_Discriminants): In case of access to protected subprogram call
32173         Replace_Anonymous_Access_To_Protected_Subprogram.
32175         * par.adb (P_Access_Definition): New formal that indicates if the
32176         null-exclusion part was present.
32177         (P_Access_Type_Definition): New formal that indicates if the caller has
32178         already parsed the null-excluding part.
32180         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
32181         (P_Identifier_Declarations): Code cleanup and give support to renamings
32182         of anonymous access to subprogram types.
32183         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
32184         (P_Array_Type_Definition): Give support to AI-254.
32185         (P_Component_Items): Give support to AI-254.
32186         (P_Access_Definition): New formal that indicates if the header was
32187         already parsed by the caller.
32188         (P_Access_Type_Definition): New formal that indicates if the caller has
32189         already parsed the null-excluding part.
32191         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
32192         call to P_Access_Definition.
32194 2004-04-19  Geert Bosch  <bosch@gnat.com>
32196         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
32197         the delicate semantics of floating-point to integer conversion.
32198         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
32200         * eval_fat.adb (Machine_Mantissa): Moved to spec.
32201         (Machine_Radix): New function.
32203         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
32204         conversion checks.
32205         (Machine_Radix): New function also for use in conversion checks.
32207 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
32209         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
32211         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
32212         to decorate the access-to-protected subprogram and the equivalent type.
32214         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
32215         to anonymous access to subprogram types.
32217         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
32218         constant-folding, for legality checks in contexts that require an RM
32219         static expression.
32221         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
32222         temporary but stack checking is not enabled, increment serial number
32223         to so that symbol generation is consistent with and without stack
32224         checking.
32226         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
32227         independent on whether stack checking is enabled, caller must check
32228         the corresponding flag.
32230         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
32231         range checks.
32232         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
32233         parent if it has discriminants.
32234         (Build_Derived_Private_Type): Constructed full view does
32235         not come from source.
32236         (Process_Discriminants): Default discriminants on a tagged type are
32237         legal if this is the internal completion of a private untagged
32238         derivation.
32240         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
32241         no constraint checks, because it corresponds to an existing object.
32243         * sem_prag.adb (Process_Convention): Pragma applies
32244         only to subprograms in the same declarative part, i.e. the same unit,
32245         not the same scope.
32247         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
32248         ignore type mismatch on a numeric conversion if expression comes from
32249         expansion.
32251 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
32253         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
32254         Homonym_Number parameter, add processing for Source_Location parameter
32255         corresponding.
32256         (Check_Eliminated): Remove the check for homonym numbers, add the check
32257         for source location traces.
32259         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
32260         with Arg_Source_Location corresponding to the changes in the format of
32261         the pragma.
32263         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
32264         Eliminate pragma corresponding to the changes in the format of the
32265         pragma: Homonym_Number is replaced with Source_Location, two ways of
32266         distinguishing homonyms are mutially-exclusive.
32268 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
32270         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
32272         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
32273         No_Dollar_In_Label, no longer necessary, as it is always True.
32274         (Strip_Suffixes): Likewise.
32276 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
32278         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
32279         modulus for compatibility with size clause on targets with 16-bit
32280         Integer.
32282         * layout.adb (Discrimify): In the case of private types, set Vtyp to
32283         full type to fix type mismatches on calls to size functions for
32284         discriminant-dependent array components.
32286 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
32288         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
32289         lib.
32291 2004-04-19  Pascal Obry  <obry@gnat.com>
32293         * mdll-utl.adb (Locate): New version is idempotent.
32295 2004-04-17  Laurent Guerby  <laurent@guerby.net>
32297         PR ada/14988 (partial)
32298         * impunit.adb: Fix typo.
32300 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
32302         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
32303         and install-rts-cert targets.  Remove all gnatlib and gnattools
32304         targets and all other rts-* targets (moved to libada).  Remove (now)
32305         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
32306         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
32308 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32310         * trans.c (tree_transform): Shortcut returning error_mark_node for
32311         statements in annotate_only_mode.
32312         (tree_transform, case N_Label, case N_Return_Statement,
32313         N_Goto_Statement): Make statement tree instead of generating code.
32314         (tree_transform, case N_Assignment_Statement): No longer check
32315         type_annotate_only.
32316         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
32317         RETURN_STMT): New.
32318         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
32319         New fcns.
32320         (gnat_to_gnu): Collect any RTL generated and deal with it.
32321         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
32322         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
32323         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
32325         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
32327         * ada-tree.def (EXPR_STMT): Fix typo in name.
32328         (BLOCK_STMT, IF_STMT): New nodes.
32330         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
32331         LABEL_STMT_FIRST_IN_EH): New macros.
32332         (RETURN_STMT_EXPR): Likewise.
32334         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
32335         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
32337 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
32339         * atree.ads: Correct documentation on extended nodes.
32341         * link.c: Set run_path_option for FreeBSD.
32343 2004-04-08  Vincent Celier  <celier@gnat.com>
32345         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
32346         one of the ALI file, do not link with DEC lib.
32348         * par.adb Remove the last two characters ("%s" or "%b") when checking
32349         if a language defined unit may be recompiled.
32351 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
32353         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
32354         removal of abstract operation leaves no possible interpretation for
32355         expression.
32357         * sem_eval.adb (Eval_Qualified_Expression): Use
32358         Set_Raises_Constraint_Error on node when needed, so that it does not
32359         get optimized away by subsequent optimizations.
32361         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
32362         operands even when they are not wrapped in a type conversion.
32364 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
32366         * sem_prag.adb (Set_Exported): Warn about making static as result of
32367         export only when the export is coming from source. This may be not
32368         be true e.g. on VMS where we expand export pragmas for exception codes
32369         together with imported or exported exceptions, and we don't want the
32370         user to be warned about something he didn't write.
32372 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
32374         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
32375         duplication between normal entities and those declared as renamings.
32376         No functional change.
32378         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
32379         inline functions returning an unconstrained result.
32381 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
32383         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
32384         conform to what other front-ends do.
32386 2004-04-08  Doug Rupp  <rupp@gnat.com>
32388         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
32389         libraries.
32391 2004-04-06  Pascal Obry  <obry@gnat.com>
32393         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
32395         * osint.adb (Program_Name): Do not look past a directory separator.
32397 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
32399         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
32401         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
32402         requirement for preserving a copy of the original assignment node.
32404         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
32406 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
32408         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
32409         when supported.
32411 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
32413         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
32414         operator calls in functional notation, and apply
32415         Universal_Interpretation to operands, not to their type.
32417 2004-04-06  Robert Dewar  <dewar@gnat.com>
32419         * 5wdirval.adb: Minor reformatting
32421 2004-04-06  Ed Falis  <falis@gnat.com>
32423         * gnat_rm.texi: Improve a reference to the GCC manual
32425 2004-04-05  Vincent Celier  <celier@gnat.com>
32427         * adaint.h, adaint.c: Add function __gnat_named_file_length
32429         * impunit.adb: Add Ada.Directories to the list
32431         * Makefile.in: Add VMS and Windows versions of
32432         Ada.Directories.Validity package body.
32434         * Makefile.rtl: Add a-direct and a-dirval
32436         * mlib-tgt.ads: Minor comment update.
32438         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
32439         a-direct.ads, a-direct.adb: New files.
32441 2004-04-05  Vincent Celier  <celier@gnat.com>
32443         PR ada/13620
32444         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
32445         just to the compiler.
32447 2004-04-05  Robert Dewar  <dewar@gnat.com>
32449         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
32450         returned string is 1.
32452         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
32454         * eval_fat.ads: Minor reformatting
32456         * g-curexc.ads: Document that lower bound of returned string values
32457         is always one.
32459         * gnatlink.adb: Add ??? comment for previous change
32460         (need to document why this is VMS specific)
32462         * s-stoele.ads: Minor reformatting
32464         * tbuild.ads: Minor reformatting throughout (new function specs)
32466         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
32467         after WITH.
32469         * scng.adb: Minor reformatting
32471 2004-04-05  Geert Bosch  <bosch@gnat.com>
32473         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
32474         (Leading_Part): Still perform truncation to machine number if the
32475         specified radix_digits is greater or equal to machine_mantissa.
32477 2004-04-05  Javier Miranda  <miranda@gnat.com>
32479         * par-ch3.adb: Complete documentation of previous change
32480         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
32481         (aliased must appear before constant).
32483         * par-ch4.adb: Complete documentation of previous change.
32485         * par-ch6.adb: Complete documentation of previous change.
32487         * sinfo.ads: Fix typo in commment.
32489 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
32491         * sem_ch3.adb (Inherit_Components): If derived type is private and has
32492         stored discriminants, use its discriminants to constrain parent type,
32493         as is done for non-private derived record types.
32495         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
32496         Ada 2005 AI-310: an abstract non-dispatching operation is not a
32497         candidate interpretation in an overloaded call.
32499         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
32500         expression is Null and target type is not an access type (e.g. a
32501         non-private address type).
32503 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
32505         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
32506         statement whose right-hand side is an inlined call, save a copy of the
32507         original assignment subtree to preserve enough consistency for
32508         Analyze_Assignment to proceed.
32510         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
32511         complete assignment subtree which is now unnecessary, as the expansion
32512         of inlined call has been improved to preserve a consistent assignment
32513         tree.  Note_Possible_Modification must be called only
32514         after checks have been applied, or else unnecessary checks will
32515         be generated.
32517         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
32518         of explicit dereferences that do not Come_From_Source:
32519          - be selective on cases where we must go back to the dereferenced
32520            pointer (an assignment to an implicit dereference must not be
32521            recorded as modifying the pointer);
32522          - do not rely on Original_Node being present (Analyze_Assignment
32523            calls Note_Possible_Modification on a copied tree).
32525         * sem_warn.adb (Check_References): When an unset reference to a pointer
32526         that is never assigned is encountered, prefer '<pointer> may be null'
32527         warning over '<pointer> is never assigned a value'.
32529 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
32531         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
32532         the ABI.
32534 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
32536         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
32537         libexc. We currently don't reference anything in this library and
32538         linking it in triggers linker warnings we don't want to see.
32540         * init.c: Update comments.
32542 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32544         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
32545         * utils.c (create_field_decl): Likewise.
32546         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
32548 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
32550         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
32551         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
32552         Add info directory entry and category.
32554 2004-04-02  Jan Hubicka  <jh@suse.cz>
32556         * utils.c: Include function.h
32557         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
32559 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
32561         PR ada/14150
32562         * Make-lang.in: Clean up generation of documentation
32564         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
32566         * xgnatug.adb: Removed, replaced by xgnatugn.adb
32568         * xgnatugn.adb: Replaces xgnatug.adb
32570         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
32572         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
32574         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32575         gnat_ug_wnt.texi: Removed.
32577 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
32579         * utils2.c: Update copyright notice.
32581 2004-04-01  Robert Dewar  <dewar@gnat.com>
32583         * checks.adb: Minor reformatting throughout
32584         Note that prev checkin added RM reference to alignment warning
32586 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
32588         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
32589         non-static when building aggregate for bit-packed array.
32591         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
32592         function call that is itself the actual in a procedure call, build
32593         temporary for it.
32595         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
32596         a string literal, create a temporary for it, constant folding only
32597         handles scalars here.
32599 2004-04-01  Vincent Celier  <celier@gnat.com>
32601         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
32602         Error_Msg_SP): New empty procedures to instantiate the Scanner.
32603         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
32604         tokens.
32605         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
32606         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
32607         and get the checksum.
32609         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
32610         already in the Q.
32611         Increase the Marking_Label at the end of the Multiple_Main_Loop,
32612         instead of at the beginning.
32614         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
32615         directly.
32616         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
32617         on VMS.
32619         * osint.ads (Multi_Unit_Index_Character): New Character global variable
32621         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
32622         not '~' directly.
32624         * par.adb: Remove test on file name to detect language defined units.
32625         Add test on unit name, after parsing, to detect language defined units
32626         that are not compiled with -gnatg (except System.RPC and its children)
32628         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
32629         following units without style checking.
32631         * switch-c.adb: Change -gnatC to -gnateI
32633         * usage.adb: Document new switch -gnateInnn
32635         * scng.adb (Accumulate_Token_Checksum): New procedure
32636         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
32637         word or literal number.
32638         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
32639         numbers.
32641 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
32643         * a-tasatt.adb,
32644         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
32645         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
32646         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
32647         5vtpopde.adb: Add missing 'constant' keywords.
32649 2004-04-01  Javier Miranda  <miranda@gnat.com>
32651         * par-ch4.adb: (P_Allocator): Code cleanup
32653         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
32654         attribute.
32656         * sinfo.ads: Complete documentation of previous change
32658 2004-04-01  Pascal Obry  <obry@gnat.com>
32660         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
32661         only on VMS.  This special handling was done because an old GNU/ld bug
32662         on Windows which has been fixed.
32664 2004-04-01  GNAT Script  <nobody@gnat.com>
32666         * Make-lang.in: Makefile automatically updated
32668 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32670         * decl.c (gnat_to_gnu_entity, make_type_from_size):
32671         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
32672         * trans.c (tree_transform, convert_with_check): Likewise.
32673         * utils.c (gnat_signed_or_unsigned_type): Likewise.
32674         (build_vms_descriptor, unchecked_convert): Likewise.
32675         * utils2.c (nonbinary_modular_operation): Likewise.
32677 2004-03-29  Javier Miranda  <miranda@gnat.com>
32679         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
32680         (Install_Null_Excluding_Check): Local subprogram that determines whether
32681         an access node requires a runtime access check and if so inserts the
32682         appropriate run-time check.
32683         (Apply_Access_Check): Call Install_Null_Excluding check if required
32684         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
32686         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
32688         * einfo.ads: Fix typo in comment
32690         * exp_ch3.adb (Build_Assignment): Generate conversion to the
32691         null-excluding type to force the corresponding run-time check.
32692         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
32693         type to force the corresponding run-time check.
32695         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
32696         the null-excluding type to force the corresponding run-time check.
32698         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
32699         case of access types unless they have the null-excluding attribute.
32701         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
32702         part.
32704         * exp_util.ads: Fix typo in comment
32706         * par.adb (P_Null_Exclusion): New subprogram
32707         (P_Subtype_Indication): New formal that indicates if the null-excluding
32708         part has been scanned-out and it was present
32710         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
32712         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
32713         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
32714         type to force the corresponding run-time check
32715         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
32716         components
32717         (Resolve_Array_Aggregate): Carry out some static checks
32718         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
32720         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
32721         attribute must be set only if specified by means of the null-excluding
32722         part. In addition, we must also propagate the access-constant attribute
32723         if present.
32724         (Access_Subprogram_Declaration, Access_Type_Declaration,
32725         Analyze_Component_Declaration, Analyze_Object_Declaration,
32726         Array_Type_Declaration, Process_Discriminants,
32727         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
32728         and carry out some static checks.
32729         (Build_Derived_Access_Type): Set the null-excluding attribute
32730         (Derived_Type_Declaration, Process_Subtype): Carry out some static
32731         checks.
32733         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
32735         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
32737         * sem_ch6.adb (Process_Formals): Carry out some static checks.
32738         (Set_Actual_Subtypes): Generate null-excluding subtype if the
32739         null-excluding part was present; it is not required to be done here in
32740         case of anonymous access types.
32741         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
32742         value.
32744         * sem_res.adb (Resolve_Actuals): Carry out some static check
32745         (Resolve_Null): Allow null in anonymous access
32747         * sinfo.adb: New subprogram Null_Exclusion_Present
32748         All_Present and Constant_Present available on access_definition nodes
32750         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
32751         object_declaration, derived_type_definition, component_definition,
32752         discriminant_specification, access_to_object_definition,
32753         access_function_definition, allocator, access_procedure_definition,
32754         access_definition, parameter_specification, All_Present and
32755         Constant_Present flags available on access_definition nodes.
32757 2004-03-29  Robert Dewar  <dewar@gnat.com>
32759         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
32760         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
32761         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
32762         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
32763         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
32764         sem_prag.adb: Updates to handle multiple units/file
32766         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
32768         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
32769         sem_util.adb: Minor reformatting
32771         * sem_ch12.adb: Add comment for previous change
32773 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
32775         * osint.adb (Executable_Prefix): Set Exec_Name to the current
32776         executable name when not initialized. Otherwise, use its current value.
32778         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
32779         initialize it to another executable name than the current one. This
32780         allows to configure paths for an executable name (gnatmake) different
32781         from the current one (gnatdist).
32783 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
32785         * exp_ch6.adb (Expand_Call): A call to a function declared in the
32786         current unit cannot be inlined if it appears in the body of a withed
32787         unit, to avoid order of elaboration problems in gigi.
32789         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
32790         information for protected (wrapper) operation as well, to simplify gdb
32791         use.
32793         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
32794         protected body, indicate that the entity for the generated spec comes
32795         from source, to ensure that references are properly generated for it.
32796         (Build_Body_To_Inline): Do not inline a function that returns a
32797         controlled type.
32799         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
32800         apply convention to homonyms that are declared explicitly.
32802         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
32803         that renames an equality operator and the operands are overloaded,
32804         resolve them with the declared formal types, before rewriting as an
32805         operator.
32807 2004-03-29  GNAT Script  <nobody@gnat.com>
32809         * Make-lang.in: Makefile automatically updated
32811 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
32813         * memtrack.adb: Log realloc calls, which are treated as free followed
32814         by alloc.
32816 2004-03-25  Vincent Celier  <celier@gnat.com>
32818         * prj-makr.adb (Process_Directories): Detect when a file contains
32819         several units. Do not include such files in the config pragmas or
32820         in the naming scheme.
32822         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
32823         Resolve links only when not in Trusted_Mode.
32824         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
32825         Do not resolve links for the display names.
32827         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
32828         resolve links when computing the display names.
32830 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
32832         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
32833         attribute reference does not denote a subtype, it can be any
32834         expression that has a classwide type, potentially after an implicit
32835         dereference.  In particular, the prefix can be a view conversion for
32836         a classwide type (for which Is_Object_Reference holds), but it can
32837         also be a value conversion for an access-to-classwide type. In the
32838         latter case, there is an implicit dereference, and the original node
32839         for the prefix does not verify Is_Object_Reference.
32841         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
32842         conversion of a discriminant-dependent component of a mutable object
32843         is one itself.
32845 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
32847         * freeze.adb (Freeze_Entity): When an inherited subprogram is
32848         inherited, has convention C, and has unconstrained array parameters,
32849         place the corresponding warning on the derived type declaration rather
32850         than the original subprogram.
32852         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
32853         indication on renaming declaration, if formal has a box and actual
32854         is absent.
32856         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
32857         determine whether to generate an implicit or explicit reference to
32858         the renamed entity.
32860         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
32861         subprogram renaming comes from a defaulted formal subprogram in an
32862         instance.
32864 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
32866         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
32867         value expressions to ensure that calls within a component definition
32868         will be checked (since those are evaluated during the record type's
32869         elaboration).
32871 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
32873         * s-tpobop.adb: Code clean up:
32874         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
32875         code.
32876         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
32878 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
32880         * Makefile.in: Clean up in the ravenscar run time.
32882 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32884         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
32885         of No_Strict_Aliasing to build_pointer_type_for_mode.
32886         * utils.c (update_pointer_to): Walk pointer and ref chains.
32888 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
32890         * ali.ads: Fix Comment about Dynamic_Elab.
32892         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
32893         Has_RACW, Is_Generic, etc.)
32894         (Output_Object, Gnatls): Take into account ALI files not attached to
32895         an object.
32897 2004-03-22  Vincent Celier  <celier@gnat.com>
32899         * gprep.adb: Change all String_Access to Name_Id
32900         (Is_ASCII_Letter): new function
32901         (Double_File_Name_Buffer): New procedure
32902         (Preprocess_Infile_Name): New procedure
32903         (Process_Files): New procedure
32904         (Gnatprep): Check if output and input are existing directories.
32905         Call Process_Files to do the real job.
32907 2004-03-22  Robert Dewar  <dewar@gnat.com>
32909         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
32910         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
32912 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
32914         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
32915         case when the source contains only comments.
32917 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
32919         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
32920         declaration for a child subprogram body that acts as a spec, indicate
32921         that the entity in the declaration needs debugging information.
32923         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
32924         full view if the subtype is created for a constrained record component;
32925         gigi has enough information to construct the record, and there is no
32926         place in the tree for the declaration.
32928         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
32929         serial number for the dummy body that is built for analysis, to avoid
32930         inconsistencies in the generation of internal names when compiling
32931         with -gnatN.
32933 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
32935         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
32936         object.
32938 2004-03-22  GNAT Script  <nobody@gnat.com>
32940         * Make-lang.in: Makefile automatically updated
32942 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32944         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
32945         * trans.c (tree_transform, emit_index_check): Likewise.
32946         * utils.c (build_template): Likewise.
32947         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
32948         (maybe_unconstrained_array, unchecked_convert): Likewise.
32949         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
32950         (build_unary_op): Likewise.
32951         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
32952         (fill_vms_descriptor): Likewise.
32953         (build_call_alloc_dealloc): Likewise.
32954         ALIGN is unsigned.
32955         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
32957 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
32959         PR other/14630
32960         * gnat_ug.texi: Add info directory category and entry.
32961         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32962         gnat_ug_wnt.texi: Regenerate.
32964 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
32966         * ada-tree.h: Update copyright notice.
32967         Minor reformatting.
32969 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
32971         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
32972         as regular exception objects and not as mere integers representing the
32973         condition code.  The latter approach required some dynamics to mask off
32974         severity bits, which did not fit well into the GCC table based model.
32975         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
32976         exception data objects. We don't it and it would conflict with the other
32977         external symbol we have to generate for such exceptions.
32979         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
32980         the special code for VMS exceptions, since these are now represented
32981         as regular exceptions objects.
32983 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32985         * decl.c (debug_no_type_hash): Remove.
32986         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
32987         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
32989 2004-03-19  Laurent Guerby  <laurent@guerby.net>
32991         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
32992         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
32994 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32996         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
32997         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
32998         (TYPE_RM_SIZE_INT): Directly use type.values.
32999         (TREE_LOOP_ID): Clean up check.
33000         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
33001         TYPE_VALUES, not TYPE_FIELDS.
33002         * trans.c (convert_with_check): Delay access of bounds of basetype
33003         until sure is numeric.
33005 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
33007         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
33009         Code clean up:
33010         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
33011         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
33012         Specific.Set instead of direct call to e.g pthread_setspecific.
33014 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
33016         * adaint.c: Update comments.
33018         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
33019         GNATLIB_SHARED for FreeBSD.
33021 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
33023         * init.c [VxWorks]: Do not fix the stack size for the environment task.
33024         When needed (stack checking) the stack size is retrieved
33025         from the VxWorks kernel.
33027         * Makefile.in: Flag -nostdinc is required when building the run time
33028         for avoiding looking for files in the base compiler.
33029         Add the VxWorks specific version of the package body for
33030         System.Stack_checking.Operations (5zstchop.adb).
33032         * Make-lang.in: Add the object file for
33033         System.Stack_Checking.Operations.
33035         * Makefile.rtl: Add object file for the package
33036         System.Stack_Checking.Operations.
33038         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
33040         * s-stache.ads, s-stache.adb: Move the operations related to stack
33041         checking from this package to package System.Stack_Checking.Operations.
33042         This way, stack checking operations are only linked in the final
33043         executable when using the -fstack-check flag.
33045 2004-03-18  Doug Rupp  <rupp@gnat.com>
33047         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
33048         Reorganize ifeq's.
33050         * 5qsystem.ads, 5xcrtl.ads: New files.
33052 2004-03-18  Vincent Celier  <celier@gnat.com>
33054         * prj.adb (Reset): Reset hash table Files_Htable
33056         * prj-env.adb (Source_Paths, Object_Paths): New tables.
33057         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
33058         the procedures Add_To_Path_File.
33059         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
33060         making sure that each directory is present only once and, for object
33061         dirs, when a directory already present is added, the duplicate is
33062         removed and the directory is always put as the last in the table.
33063         Write the path files at the end of these accumulations.
33065         * prj-nmsc.adb (Record_Source): Add source file name in hash table
33066         Files_Htable for all sources.
33068         * prj-proc.adb (Process): Remove restrictions between not directly
33069         related extending projects.
33071 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
33073         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
33074         (Find_Sources): Minor speed optimization.
33076         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
33077         parameter Trusted_Mode.
33079 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
33081         * scn.adb (Determine_License): Take into account a degenerated case
33082         when the source contains only comments.
33084 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
33086         * sem_warn.adb (Check_References): For a warning on a selected
33087         component that does not come from source, locate an uninitialized
33088         component of the record type to produce a more precise error message.
33090 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
33092         * 3zsoccon.ads: Fix multicast options.
33094         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
33095         in the spec.
33097 2004-03-15  Robert Dewar  <dewar@gnat.com>
33099         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
33100         pragma used for a private type.
33102         * lib-xref.adb (Generate_Reference): Do not generate warning if
33103         reference is in a different unit from the pragma Unreferenced.
33105         * 5vtpopde.adb: Minor reformatting
33106         Fix casing of To_Task_ID
33108         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
33109         flag if we have an unchecked conversion to an access type in the same
33110         unit.
33112 2004-03-15  Geert Bosch  <bosch@gnat.com>
33114         * a-ngcoty.adb (Modulus): In alternate formula for large real or
33115         imaginary parts, use Double precision throughout.
33117         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
33118         we want to be able to compile run-time with -gnata for testing, but
33119         this may also be instantiated in user code that is compiled with -gnata.
33121 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
33123         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
33124         codes. Having a separate type for this is useful to enforce consistency
33125         throughout the various run-time units.
33126         (Exception_Data): Use Exception_Code for Import_Code.
33128         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
33129         Natural and Integer in various places.
33130         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
33131         with the severity bits masked off.
33132         (Register_VMS_Exception): Handle the additional exception data pointer
33133         argument.
33135         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
33136         component, now reflected by an exported accessor.
33137         (is_handled_by): New routine to compute whether the propagated
33138         occurrence matches some handler choice specification. Extracted out of
33139         get_action_description_for, and expanded to take care of the VMS
33140         specifities.
33141         (get_action_description_for): Use is_handled_by instead of an explicit
33142         complex condition to decide if the current choice at hand catches the
33143         propagated occurrence.
33145         * raise.h (Exception_Code): New type for C.
33147         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
33148         System.Standard_Library.Exception_Code, to allow references from the
33149         pragma import/export expander.
33151         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
33152         New accessors to allow easy access to GNAT exception data
33153         characteristics.
33154         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
33155         redundant Handled_By_Others component, helper for the personality
33156         routine which will now be able to call the appropriate exception data
33157         accessor instead.
33159         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
33160         component of Standard_Exception_Type to be the closest possible to
33161         Exception_Code in System.Standard_Library, that we cannot get at this
33162         point. Expand a ??? comment to notify that this type node should
33163         probably be rewritten later on.
33165         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
33166         registration call to include a pointer to the exception object in the
33167         arguments.
33169         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
33170         instead of int and explicit bitmasks.
33172 2004-03-15  Vincent Celier  <celier@gnat.com>
33174         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
33175         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
33177         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
33178         longer needed now that it is in the spec of
33179         System.Tasking.Task_Attributes.
33181         * adaint.h, adaint.c: (__gnat_create_output_file): New function
33183         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
33185         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
33187         * make.adb (Gnatmake): Do not check the executable suffix; it is being
33188         taken care of in Scan_Make_Arg.
33189         (Scan_Make_Arg): Add the executable suffix only if the argument
33190         following -o, in canonical case, does not end with the executable
33191         suffix.  When in verbose mode and executable file name does not end
33192         with executable suffix, output the executable name, in canonical case.
33194         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
33195         to avoid warnings when instantiating Ada.Task_Attributes.
33196         Minor reformating.
33198         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
33199         in the correct order.
33201         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
33202         redirect standard output and error to a file for the invocation of the
33203         compiler, then read the file.
33205         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
33206         directory, instead of the Value.
33207         (Find_Source_Dirs): Remove useless code & comments.
33209 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
33211         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
33212         tagged type is inherited, and the parent operation is not frozen yet,
33213         force generation of a freeze node for the inherited operation, so the
33214         corresponding dispatch entry is properly initialized.
33215         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
33216         when looking for user-defined equality operation.
33218         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
33219         boolean when locating primitive equality of tagged component.
33221         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
33222         bit-aligned field and the right-hand side a string literal, introduce
33223         a temporary before expanding assignment into a loop.
33225         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
33226         priority in full, to ensure that any expanded subepxressions of it are
33227         elaborated in the scope of the init_proc.
33229         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
33230         after object declaration, skipping over code that may have been
33231         generated for validity checks.
33233         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
33234         discriminants, ignore the known discriminants of its full view, if
33235         any, to check legality.
33237         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
33238         component if type has unknown discriminants.
33239         (Analyze_Private_Extension_Declaration): Discriminant constraint is
33240         null if type has unknown discriminants.
33242         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
33243         for end label when present.
33245         * s-fileio.adb (Open): When called with a C_Stream, use given name for
33246         temporary file, rather than an empty string.
33248 2004-03-15  Ed Falis  <falis@gnat.com>
33250         * s-thread.adb: Removed, no longer used.
33252 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33254         * decl.c (target.h): Now include.
33255         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
33256         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
33257         (validate_size): For POINTER_TYPE, get smallest size permitted on
33258         machine.
33260         * fe.h: Sort Einfo decls and add Set_Mechanism.
33262         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
33263         (ada/decl.o): Depends on target.h.
33265         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
33266         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
33268 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
33270         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
33272         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
33273         Insert_Dereference_Action when rewriting an implicit dereference into
33274         an explicit one, this will be taken care of during expansion of the
33275         explicit dereference.
33276         (Expand_N_Slice): Same. Always do the rewriting, even for the case
33277         of non-packed slices, since the dereference action generated by
33278         expansion of the explicit dereference is needed in any case.
33279         (Expand_N_Selected_Component): When rewriting an implicit dereference,
33280         analyze and resolve the rewritten explicit dereference so it is seen
33281         by the expander.
33282         (Insert_Dereference_Action): This procedure is now called only for the
33283         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
33284         dereferences that do not come from source (including explicit
33285         dereferences resulting from rewriting implicit ones), but do not
33286         recursively insert a check for the dereference nodes contained within
33287         the check.
33288         (Insert_Dereference_Action): Clarify and correct comment.
33290 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
33292         PR ada/14131
33293         Move language detection to the top level.
33294         * config-lang.in: Build by default.
33296 2004-03-05  Robert Dewar  <dewar@gnat.com>
33298         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
33300         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
33301         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
33302         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
33303         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
33304         unchecked conversion to spec to avoid warnings.
33306         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
33307         to Task_ID
33309         * 7stpopsp.adb: Correct casing in To_Task_ID call
33311         * a-strsea.ads, a-strsea.adb: Minor reformatting
33313         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
33315         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
33316         Adjust Max_Msg_Length to be clearly large enough.
33318         * fe.h: Define In_Same_Source_Unit
33320         * osint.adb: Add pragma Warnings Off to suppress warnings
33321         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
33322         aliasing warnings.
33324         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
33326         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
33328         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
33330         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
33332         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
33334         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
33335         node. We now do generate them for gcc back end.
33337         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
33338         warning.
33340         * sinput-c.adb: Fix bad name in header.
33341         Add pragma Warnings Off to suppress aliasing warning.
33343         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
33345         * snames.h, snames.ads, snames.adb: Add entry for pragma
33346         No_Strict_Aliasing.
33348 2004-03-05  Vincent Celier  <celier@gnat.com>
33350         * prj-com.ads: Add hash table Files_Htable to check when a file name
33351         is already a source of another project.
33353         * prj-nmsc.adb (Record_Source): Before recording a new source, check
33354         if its file name is not already a source of another project. Report an
33355         error if it is.
33357         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
33358         source file name, call gnatpp with all the sources of the main project.
33360         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
33361         of file names.
33363         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
33364         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
33365         /RUNTIME_SYSTEM=, converted to --RTS=
33366         /NOTABS, converted to -notabs
33368 2004-03-05  Pascal Obry  <obry@gnat.com>
33370         * make.adb: Minor reformatting.
33372 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
33374         Part of implemention of AI-262.
33375         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
33377         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
33378         procedure.
33380         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
33381         when component type is a partially constrained class-wide subtype.
33382         (Constrain_Discriminated_Type): If parent type has unknown
33383         discriminants, a constraint is illegal, even if full view has
33384         discriminants.
33385         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
33386         with unknown discriminants whose full view is a discriminated record.
33388         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
33389         flag, to handle properly derivations of tagged types with unknown
33390         discriminants.
33391         (Analyze_Package_Spec, Analyze_Package_Body): Install
33392         Private_With_Clauses before analyzing private part or body.
33394         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
33395         Has_Discriminants can be true for a given type (documentation).
33397 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
33399         * s-restri.ads: Fix license (GPL->GMGPL).
33401         * s-tassta.adb: Minor reformatting.
33403         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33404         by calls to Exit_One_ATC_Level, since additional clean up is performed
33405         by this function.
33407         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33408         by calls to Exit_One_ATC_Level, since additional clean up is performed
33409         by this function.
33411 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33413         * trans.c: Reflect GCC changes to fix bootstrap problem.
33414         Add warning for suspicious aliasing unchecked conversion.
33416 2004-03-05  GNAT Script  <nobody@gnat.com>
33418         * Make-lang.in: Makefile automatically updated
33420 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
33422         * ali.adb (Read_Instantiation_Instance): Do not modify the
33423         current_file_num when reading information about instantiations, since
33424         this corrupts files in later references.
33426 2004-03-02  Vincent Celier  <celier@gnat.com>
33428         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
33429         before checking if it is read-only.
33431         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
33432         of SRC_DIRS and eliminate duplicates.
33434         * gprcmd.adb: Replace command "path" with command "path_sep" to return
33435         the path separator.
33436         (Usage): Document path_sep
33438         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
33439         C++ compiler. No need for a script.
33440         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
33441         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
33442         subst.
33444         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
33445         where there are Ada sources.
33446         (Set_Ada_Paths): Only add to the include path the source dirs of project
33447         with Ada sources.
33448         (Add_To_Path): Add the Display_Values of the directories, not their
33449         Values.
33451         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
33452         data.
33454         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
33455         is not No_Name.
33456         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
33457         Value is canonicalized.
33458         (Language_Independent_Check): Do not copy Value to Display_Value when
33459         canonicalizing Value.
33461         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
33462         path to find limited with cycles.
33463         (Parse_Single_Project): Use canonical cased path to find the end of a
33464         with cycle.
33466 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
33468         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
33469         and not a child unit.
33471         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
33472         appear in a with_clause.
33474         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
33475         only happen in type_annotate mode, do not try to elaborate it.
33477         * exp_util.adb (Force_Evaluation): If expression is a selected
33478         component on the left of an assignment, use a renaming rather than a
33479         temporary to remove side effects.
33481         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
33482         inlined instance body, which is analyzed before the end of the
33483         enclosing scope.
33485 2004-03-02  Robert Dewar  <dewar@gnat.com>
33487         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
33488         sem_ch4.adb: Use new feature for substitution of keywords in VMS
33490         * errout.ads, errout.adb: Implement new circuit for substitution of
33491         keywords in VMS.
33493         * sem_case.adb (Analyze_Choices): Place message properly when case is
33494         a subtype reference rather than an explicit range.
33496         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
33498 2004-03-02  Doug Rupp  <rupp@gnat.com>
33500         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
33502 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
33504         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
33506 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33508         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
33509         BLKmode bitfield.
33511 2004-02-25  Robert Dewar  <dewar@gnat.com>
33513         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33514         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
33515         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
33516         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
33517         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
33518         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
33519         the defining instance of the type to avoid aliasing problems.
33520         Fix copyright header.  Fix bad comments in package header.
33522         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
33524 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
33526         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
33527         rewritten as references when aliased through an address clause.
33529         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
33530         whether call can be interpreted as an indirect call to the result of a
33531         parameterless function call returning an access subprogram.
33533 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
33535         Code clean up:
33536         * exp_ch7.adb (Make_Clean): Remove generation of calls to
33537         Unlock[_Entries], since this is now done by Service_Entries directly.
33539         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
33541         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
33542         Requeue_Call for better code readability. Change spec and update calls:
33543         PO_Service_Entries now unlock the PO on exit.
33544         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
33545         PO_Service_Entries.
33547         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
33549         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
33551 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
33553         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
33554         protected subprogram call and analyzing the result of such expanding
33555         in case when the called protected subprogram is eliminated.
33557         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
33558         names.
33560 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
33562         * Makefile.in: Clean ups.
33564 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
33566         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
33567         protected operations if original subprogram is flagged as eliminated.
33568         (Expand_N_Subprogram_Body): For a protected operation, create
33569         discriminals for next operation before checking whether the operation
33570         is eliminated.
33572         * exp_ch9.adb (Expand_N_Protected_Body,
33573         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
33574         for internal protected operations if the original subprogram is
33575         eliminated.
33577         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
33578         declared in a single protected object.
33580 2004-02-23  Vincent Celier  <celier@gnat.com>
33582         * prj-attr.adb: Make attribute Builder'Executable an associative array,
33583         case insensitive if file names are case insensitive, instead of a
33584         standard associative array.
33586         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
33587         them as case insensitive on platforms where the file names are case
33588         sensitive.
33590         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
33591         project file has already been parsed that canonical path are compared.
33593 2004-02-23  Robert Dewar  <dewar@gnat.com>
33595         * sinput-c.ads: Correct bad unit title in header
33597         * freeze.adb: Minor reformatting
33599 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33601         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
33602         nonaddressable COMPONENT_REF that is removing padding that we are
33603         taking the address of, take the address of the padded record instead
33604         if item is variable size.
33606 2004-02-20  Robert Dewar  <dewar@gnat.com>
33608         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
33610 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
33612         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
33613         itype references for the constrained designated type of a component
33614         whose base type is already frozen.
33616 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
33618         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
33619         avoid GCC warnings.
33621 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
33623         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
33624         identifier for a phantom package that rewrites the formal package
33625         declaration with a box. The Add semantic decorations for the defining
33626         identifier from the original node (that represents the formal package).
33628 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
33630         * Make-lang.in (ada/stamp-sdefault): Use the top level
33631         move-if-change.
33633 2004-02-19  Richard Henderson  <rth@redhat.com>
33635         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
33637 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
33639         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
33640         Scan_ALI can be used for multiple ALI files without reinitializing
33641         between calls.
33643 2004-02-18  Robert Dewar  <dewar@gnat.com>
33645         * debug.adb: Minor reformatting.
33647 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33649         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
33650         to zero if there is an address clause.
33652 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
33654         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
33656 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
33658         * layout.adb (Layout_Component_List): Revise generation of call to
33659         discriminant-checking function to pass selections of all of the type's
33660         discriminants rather than just the variant-controlling discriminant.
33662 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
33664         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
33665         fail in the current setup and triggers spurious system error messages.
33666         Pretend it occurred and failed instead.
33668 2004-02-18  Vincent Celier  <celier@gnat.com>
33670         * bld.adb: Mark FLDFLAGS as saved
33671         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
33672         it is not the root project.  Put each directory to be
33673         extended between double quotes to prevent it to be expanded on Windows.
33674         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
33675         the project file. Set them back to their initial values if they have not
33676         been set in the project file.
33678         * gprcmd.adb: (Gprdebug, Debug): New global variables
33679         (Display_Command): New procedure
33680         (Usage): Document new command "linkopts"
33681         Call Display_Command when env var GPRDEBUG has the value "TRUE"
33682         Implement new command "linkopts"
33683         Remove quotes that may be around arguments for "extend"
33684         Always call Normalize_Pathname with arguments formatted for the platform
33686         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
33687         Change @echo to @$(display) in target clean to be able to clean silently
33689         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
33691         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
33692         canonical case.
33694         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
33695         = Extending_All when current project is an extending all project.
33697         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
33698         set to True only for LINK command, after Unix switch -o.
33699         (Process_Arguments): Set Output_File_Expected to True for LINK command
33700         after Unix switch -o. When Output_File_Expected is True, never add an
33701         extension to a file name.
33703         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
33704         option file name, only to the --for-linker= switch.
33705         (Option_File_Name): If option file name do not end with ".opt", append
33706         "/OPTIONS".
33708 2004-02-18  GNAT Script  <nobody@gnat.com>
33710         * Make-lang.in: Makefile automatically updated
33712 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
33714         * Make-lang.in (stamp-sdefault): Do not depend on
33715         move-if-change.
33717 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
33719         * config-lang.in: Disable Ada by default until probe logic for
33720         a bootstrap Ada compiler can be moved to the top level configure
33721         script.
33723 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
33725         * decl.c (components_to_record): Don't claim that the internal fields
33726         we make to hold the variant parts are semantically addressable, because
33727         they are not.
33729         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
33730         adjust the comment describing the modular type form when we can use it.
33731         (Install_PAT): Account for the Esiz renaming.
33733         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
33734         sc_onstack context indication before raising the exception to which
33735         the signal is mapped. Allows better handling of later signals possibly
33736         triggered by the resumed user code if the exception is handled.
33738 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
33740         * 5zinit.adb: Removed, no longer used.
33742 2004-02-12  Robert Dewar  <dewar@gnat.com>
33744         * ali.adb: Remove separating space between parameters on R line. Makes
33745         format consistent with format used by the binder for Set_Globals call.
33747         * atree.ads, atree.adb: Minor reformatting (new function header format)
33749         * bindgen.adb: Add Run-Time Globals documentation section containing
33750         detailed documentation of the globals passed from the binder file to
33751         the run time.
33753         * gnatls.adb: Minor reformatting
33755         * init.c (__gnat_set_globals): Add note pointing to documentation in
33756         bindgen.
33758         * lib-writ.ads, lib-writ.adb: Remove separating space between
33759         parameters on R line.
33760         Makes format consistent with format used by the binder for Set_Globals
33761         call.
33763         * osint.ads: Add 2004 to copyright notice
33764         Minor reformatting
33766         * snames.ads: Correct capitalization of FIFO_Within_Priorities
33767         Noticed during code reading, documentation issue only
33769         * usage.adb: Remove junk line for obsolete C switch
33770         Noticed during code reading
33772 2004-02-12  Vincent Celier  <celier@gnat.com>
33774         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
33775         extend for each directory, so that multiple /** directories are
33776         extended individually.
33777         (Recursive_Process): Set the default for LANGUAGES to ada
33779         * gprcmd.adb: Define new command "ignore", to do nothing.
33780         Implement new comment "path".
33782         * Makefile.generic: Suppress output when SILENT is set
33783         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
33784         used, so that the correct compiler is invoked.
33785         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
33786         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
33788 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
33790         * Makefile.in: Clean ups and remove obsolete targets.
33792 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
33794         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
33795         predicate declared in exp_util.
33797         * exp_util.adb: Add comments.
33799         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
33800         visibility before compiling context of the subunit.
33802         * sem_res.adb (Check_Parameterless_Call): If the context expects a
33803         value but the name is a procedure, do not attempt to analyze as a call,
33804         in order to obtain more telling diagnostics.
33806         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
33807         'Access on parameterless function calls.
33808         (Normalize_Actuals): For a parameterless function call with missing
33809         actuals, defer diagnostic until resolution of enclosing call.
33811         * sem_util.adb (Wrong_Type): If the context type is an access to
33812         subprogram and the expression is a procedure name, suggest a missing
33813         'attribute.
33815 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
33816             Nathanael Nerode  <neroden@gcc.gnu.org>
33818         PR ada/6637
33819         PR ada/5911
33820         Merge with libada-branch:
33821         * config-lang.in: Build libada only when ada is built.
33823 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
33825         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
33826         for a tagged type, verify that both formals have the same type.
33828         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
33829         temporary when the formal is an in-parameter and the actual a possibly
33830         unaligned slice.
33832         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
33833         when expansion is disabled, to ensure proper name capture with
33834         overloaded literals.  Condition can be of any boolean type, resolve
33835         accordingly.
33837         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
33838         renaming is for a formal subprogram with a default operator name, and
33839         there is a usable operator that is visible at the point of
33840         instantiation.
33842 2004-02-09  Robert Dewar  <dewar@gnat.com>
33844         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
33845         rewrite to ignore errors in ali files, intended to allow tools downward
33846         compatibility with new versions of ali files.
33848         * ali.ads: Add new parameter Ignore_Errors
33850         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
33851         duplicating the error message giving the file with restrictions.
33853         * debug.adb: Add debug flag I for gnatbind
33855         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
33856         operators for the case where the operator is a defining operator.
33858         * exp_ch3.adb: Minor reformatting (new function spec format).
33860         * exp_ch4.adb: Add comment for previous change, and make minor
33861         adjustment to loop to always check for improper loop termination.
33862         Minor reformatting throughout (new function spec format).
33864         * gnatbind.adb: Implement -di debug flag for gnatbind
33866         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
33868         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
33870         * lib-load.adb: Fix bad assertion.
33871         Found by testing and code reading.
33872         Minor reformatting.
33874         * lib-load.ads: Minor reformatting.
33876         * lib-writ.adb: There is only one R line now.
33878         * lib-writ.ads: Add documentation on making downward compatible changes
33879         to ali files so old tools work with new ali files.
33880         There is only one R line now.
33881         Add documentation on format incompatibilities (with special GPS note)
33883         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
33885         * par-load.adb: Minor reformatting
33887         * sem_ch8.adb: Fix to error message from last update
33888         Minor reformatting and restructuring of code from last update
33890         * par-prag.adb, snames.adb, snames.ads, snames.h,
33891         sem_prag.adb: Implement pragma Profile.
33893         * stylesw.adb: Implement -gnatyN switch to turn off all style check
33894         options.
33896         * usage.adb: Add line for -gnatyN switch
33898         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
33900 2004-02-09  Albert Lee  <lee@gnat.com>
33902         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
33904 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
33906         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
33907         slices.
33909         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
33910         is nested in an instance that is not frozen yet, to avoid
33911         order-of-elaboration problems in gigi.
33913         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
33914         body the attribute is legal.
33916 2004-02-09  Robert Dewar  <dewar@gnat.com>
33918         * s-rident.ads: Minor comment correction
33920         * targparm.adb: Remove dependence on uintp completely. There was
33921         always a bug in Make in that it called Targparm before initializing
33922         the Uint package. The old code appeared to get away with this, but
33923         the new code did not! This caused an assertion error in gnatmake.
33925         * targparm.ads: Fix bad comment, restriction pragmas with parameters
33926         are indeed fully supported.
33928 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
33930         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
33932 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
33934         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
33935         with targetm.calls.promote_prototypes.
33937 2004-02-04  Robert Dewar  <dewar@gnat.com>
33939         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
33940         ali.ads, gprcmd.adb: Minor reformatting
33942         * bindgen.adb: Output restrictions string for new style restrictions
33943         handling
33945         * impunit.adb: Add s-rident.ads (System.Rident) and
33946         s-restri (System.Restrictions)
33948         * lib-writ.adb: Fix bug in writing restrictions string (last few
33949         entries wrong)
33951         * s-restri.ads, s-restri.adb: Change name Restrictions to
33952         Run_Time_Restrictions to avoid conflict with package name.
33953         Add circuit to read and acquire run time restrictions.
33955 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
33957         * restrict.ads, restrict.adb: Use the new restriction
33958         No_Task_Attributes_Package instead of the old No_Task_Attributes.
33960         * sem_prag.adb: No_Task_Attributes is a synonym of
33961         No_Task_Attributes_Package.
33963         * snames.ads, snames.adb: New entry for proper handling of
33964         No_Task_Attributes.
33966         * s-rident.ads: Adding restriction No_Task_Attributes_Package
33967         (AI-00249) that supersedes the GNAT specific restriction
33968         No_Task_Attributes.
33970 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
33972         * sem_prag.adb:
33973         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
33974          body, an identifier may be wrapped in an unchecked conversion.
33976 2004-02-04  Vincent Celier  <celier@gnat.com>
33978         * lib-writ.ads: Comment update for the W lines
33980         * bld.adb: (Expression): An empty string list is static
33982         * fname-uf.adb: Minor comment update
33984         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
33986         * gnatbind.adb: Initialize Cumulative_Restrictions with the
33987         restrictions on the target.
33989 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
33991         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
33992         gen_rtx.
33994 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
33996         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
33998 2004-02-02  Vincent Celier  <celier@gnat.com>
34000         * gprcmd.adb (Check_Args): If condition is false, print the invoked
34001         comment before the usage.
34002         Gprcmd: Fail when command is not recognized.
34003         (Usage): Document command "prefix"
34005         * g-md5.adb (Digest): Process last block.
34006         (Update): Do not process last block. Store remaining characters and
34007         length in Context.
34009         * g-md5.ads (Update): Document that several call to update are
34010         equivalent to one call with the concatenated string.
34011         (Context): Add fields to allow new Update behaviour.
34013         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
34014         defaulted to False.
34015         When May_Fail is True and no existing file can be found, return No_File.
34017         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
34018         functions.
34020         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
34021         spec file name instead on the W line.
34023 2004-02-02  Robert Dewar  <dewar@gnat.com>
34025         * ali.adb: Read and acquire info from new format restrictions lines
34027         * bcheck.adb: Add circuits for checking restrictions with parameters
34029         * bindgen.adb: Output dummy restrictions data
34030         To be changed later
34032         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
34033         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
34034         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
34035         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
34036         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
34038         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
34039         the warning message on access to possibly uninitialized variable S)
34040         Minor changes for new restrictions handling.
34042         * gnatbind.adb: Minor reformatting
34043         Minor changes for new restrictions handling
34044         Move circuit for -r processing here from bcheck (cleaner)
34046         * gnatcmd.adb, gnatlink.adb: Minor reformatting
34048         * lib-writ.adb: Output new format restrictions lines
34050         * lib-writ.ads: Document new R format lines for new restrictions
34051         handling.
34053         * s-restri.ads/adb: New files
34055         * Makefile.rtl: Add entry for s-restri.ads/adb
34057         * par-ch3.adb: Fix bad error messages starting with upper case letter
34058         Minor reformatting
34060         * restrict.adb: Major rewrite throughout for new restrictions handling
34061         Major point is to handle restrictions with parameters
34063         * restrict.ads: Major changes in interface to handle restrictions with
34064         parameters. Also generally simplifies setting of restrictions.
34066         * snames.ads/adb: New entry for proper handling of No_Requeue
34068         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
34069         restriction counting.
34070         Other minor changes for new restrictions handling
34072         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
34073         Restriction_Warnings now allows full parameter notation
34074         Major rewrite of Restrictions for new restrictions handling
34076 2004-02-02  Javier Miranda  <miranda@gnat.com>
34078         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
34079         syntax rule for object renaming declarations.
34080         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
34081         component definitions.
34083         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
34084         components.
34085         (Array_Type_Declaration): Give support to access components. In addition
34086         it was also modified to reflect the name of the object in anonymous
34087         array types. The old code did not take into account that it is possible
34088         to have an unconstrained anonymous array with an initial value.
34089         (Check_Or_Process_Discriminants): Allow access discriminant in
34090         non-limited types.
34091         (Process_Discriminants): Allow access discriminant in non-limited types
34092         Initialize the new Access_Definition field in N_Object_Renaming_Decl
34093         node.  Change Ada0Y to Ada 0Y in comments
34095         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
34096         equality operators.
34097         Change Ada0Y to Ada 0Y in comments
34099         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
34100         renamings Change Ada0Y to Ada 0Y in comments
34102         * sem_type.adb (Find_Unique_Type): Give support to the equality
34103         operators for universal access types
34104         Change Ada0Y to Ada 0Y in comments
34106         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
34108         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
34109         field.
34110         (N_Object_Renaming_Declaration): Addition of Access_Definition field
34111         Change Ada0Y to Ada 0Y in comments
34113         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
34114         component definition and object renaming nodes
34115         Change Ada0Y to Ada 0Y in comments
34117 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
34119         * restrict.adb: Use the new restriction identifier
34120         No_Requeue_Statements instead of the old No_Requeue for defining the
34121         restricted profile.
34123         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
34124         No_Requeue_Statements.
34126         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
34127         that supersedes the GNAT specific restriction No_Requeue. The later is
34128         kept for backward compatibility.
34130 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
34132         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
34133         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
34134         pragma and fix incorrect ones.
34136         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
34137         warning if the pragma is redundant.
34139 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
34141         * 5staprop.adb: Add missing 'constant' keywords.
34143         * Makefile.in: use consistent value for SYMLIB on
34144         platforms where libaddr2line is supported.
34146 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34148         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
34149         annotating types.
34151 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
34153         * init.c (__gnat_install_handler): Setup an alternate stack for signal
34154         handlers in the environment thread. This allows proper propagation of
34155         an exception on stack overflows in this thread even when the builtin
34156         ABI stack-checking scheme is used without support for a stack reserve
34157         region.
34159         * utils.c (create_field_decl): Augment the head comment about bitfield
34160         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
34161         here, because the former is not accurate enough at this point.
34162         Let finish_record_type decide instead.
34163         Don't make a bitfield if the field is to be addressable.
34164         Always set a size for the field if the record is packed, to ensure the
34165         checks for bitfield creation are triggered.
34166         (finish_record_type): During last pass over the fields, clear
34167         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
34168         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
34169         from DECL_BIT_FIELD.
34171 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
34173         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
34174         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
34175         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
34177 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34179         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
34181         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
34182         (ZCX_By_Default): Likewise.
34183         (Front_End_ZCX_Support): Likewise.
34185         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
34186         (Initialize_Lock): Mark Level unreferenced.
34187         (Sleep): Mark Reason unreferenced.
34188         (Timed_Sleep): Likewise.
34189         (Wakeup): Likewise.
34190         (Exit_Task): Use Result.
34191         (Check_No_Locks): Mark Self_ID unreferenced.
34193         * 5gtasinf.adb (New_Sproc): Make Attr constant.
34194         (Bound_Thread_Attributes): Make Sproc constant.
34195         (New_Bound_Thread_Attributes): Likewise.
34197 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
34199         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
34200         one-dimensional array an slice assignments, when component type is
34201         controlled.
34203         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
34204         component type is controlled, and control_actions are in effect, use
34205         TSS procedure rather than generating inline code.
34207         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
34208         arrays with controlled components.
34210 2004-01-26  Vincent Celier  <celier@gnat.com>
34212         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
34213         command line for the non VMS case.
34215         * gnatlink.adb (Process_Binder_File): When building object file, if
34216         GNU linker is used, put all object paths between quotes, to prevent ld
34217         error when there are unusual characters (such as '!') in the paths.
34219         * Makefile.generic: When there are sources in Ada and the main is in
34220         C/C++, invoke gnatmake with -B, instead of -z.
34222         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
34223         from VMS_Conversion.
34224         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
34225         specification of argument file on the command line.
34227 2004-01-26  Bernard Banner  <banner@gnat.com>
34229         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
34231 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
34233         * snames.adb: Update copyright notice.
34234         Add info on slice assignment for controlled arrays.
34236 2004-01-23  Robert Dewar  <dewar@gnat.com>
34238         * exp_aggr.adb: Minor reformatting
34240         * exp_ch9.adb: Minor code clean up
34241         Minor reformatting
34242         Fix bad character in comment
34244         PR ada/13471
34245         * targparm.adb (Get_Target_Parameters): Give clean abort error on
34246         unexpected end of file, along with more detailed message.
34248 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34250         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
34251         PAT.
34253         * decl.c (copy_alias_set): New function.
34254         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
34256 2004-01-23  Doug Rupp  <rupp@gnat.com>
34258         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
34259         lib$${file} in case subsequent character is not a separator.
34261 2004-01-23  Vincent Celier  <celier@gnat.com>
34263         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
34264         when the GCC version is at least 3.
34266         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
34267         Remove all "Opt.", to prepare for opt split
34269         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
34270         Extends_All. Set to True when the project parsed is an extending all
34271         project. Fails for importing an extending all project only when the
34272         imported project is an extending all project.
34273         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
34274         depending on the value of Extends_All returned.
34276         * prj-proc.adb (Process): Check that no project shares its object
34277         directory with a project that extends it, directly or indirectly,
34278         including a virtual project.
34279         Check that no project extended by another project shares its object
34280         directory with another also extended project.
34282         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
34283         Kind = N_With_Clause
34285         * prj-tree.ads: Minor reformatting
34286         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
34288 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
34290         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
34291         applies to a type with an incomplete view, use full view in Name of
34292         clause, for consistency with uses of Get_Attribute_Definition_Clause.
34294 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
34296         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
34297         SCHED_RR, since other values are not supported by this policy.
34298         (Initialize): Move initialization of mutex attribute to package
34299         elaboration, to prevent early access to this variable.
34301         * Makefile.in: Remove mention of Makefile.adalib, unused.
34303         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
34304         1ssecsta.ads: Removed, unused.
34306 2004-01-21  Javier Miranda  <miranda@gnat.com>
34308         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
34309         entity if already built in the current scope.
34311         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
34312         reminder in internal scopes. Required for nested limited aggregates.
34314 2004-01-21  Doug Rupp  <rupp@gnat.com>
34316         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
34317         VMS. Replace all occurences of libgnat- and libgnarl- with
34318         libgnat$(hyphen) and libgnarl$(hyphen).
34319         Fixed shared library build problem on VMS.
34321 2004-01-21  Robert Dewar  <dewar@gnat.com>
34323         * mlib-prj.adb: Minor reformatting
34325 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
34327         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
34328         'constant' keywords for declaration of pointers that are not modified.
34330         * exp_pakd.adb: Fix English in comment.
34332 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
34334         PR ada/10889
34335         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
34336         copy all attributes of the parent, including the foreign language
34337         convention.
34339 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
34341         PR ada/10565
34342         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
34343         for 'delay until' statement.
34345 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
34347         * Make-lang.in: Replace $(docdir) with doc.
34348         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
34349         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
34350         to use consistent MAKEINFO rule.
34351         (ada.man, ada.srcman): Dummy entry.
34352         (ADA_INFOFILES): Define.
34353         (ada.info, ada.srcinfo): New rules.
34355 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
34357         * utils.c: Update copyright notice, missed in previous change.
34359 2004-01-19  Vincent Celier  <celier@gnat.com>
34361         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
34362         args if Bind is True. Set First_ALI, if not already done.
34363         (Build_Library): For Stand Alone Libraries, extract from one ALI file
34364         an eventual --RTS switch, for gnatbind, and all backend switches +
34365         --RTS, for linking.
34367 2004-01-19  Robert Dewar  <dewar@gnat.com>
34369         * sem_attr.adb, memtrack.adb: Minor reformatting
34371 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
34373         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
34374         that rename enumeration literals. This is properly done in sem_eval.
34376         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
34377         to functions that rename enumeration literals.
34379         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
34380         functions that rename enumeration literals.
34382 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
34384         * Make-lang.in (utils.o): Depend on target.h.
34385         * utils.c: Include target.h.
34386         (process_attributes): Use targetm.have_named_sections instead
34387         of ASM_OUTPUT_SECTION_NAME.
34389 2004-01-16  Andreas Jaeger  <aj@suse.de>
34391         * Makefile.in: Add $(DESTDIR).
34393 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
34395         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
34396         also when not defining if a Size clause applies. That information is
34397         not to be ignored.
34399 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
34401         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
34402         symbolic links for the shared gnat run time when needed.
34404 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
34406         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
34407         for writing, and terminate with an error message if not.
34409 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
34411         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
34412         warning on an access to subprogram in an instance, when the target
34413         type is declared in the same generic unit.
34414         (Eval_Attribute): If 'access is known to fail accessibility check,
34415         rewrite as a raise statement.
34417 2004-01-15  GNAT Script  <nobody@gnat.com>
34419         * Make-lang.in: Makefile automatically updated
34421 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
34423         * Make-lang.in (ada.srcextra): Dummy entry.
34425 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
34427         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
34429 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
34431         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
34432         components that are initialized with aggregates.
34434 2004-01-13  Vincent Celier  <celier@gnat.com>
34436         * gnatlink.adb (Process_Binder_File): To find directory of shared
34437         libgcc, if "gcc-lib" is not a subdirectory, look for the last
34438         subdirectory "lib" in the path of the shared libgnat or libgnarl.
34440         * make.adb (Gnatmake): If GCC version is at least 3, link with
34441         -shared-libgcc, when there is at least one shared library project.
34443         * opt.ads (GCC_Version): New integer constant.
34445         * adaint.c (get_gcc_version): New function.
34447 2004-01-13  Robert Dewar  <dewar@gnat.com>
34449         * sem_dist.adb, sem_res.adb, sem_util.adb,
34450         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
34451         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
34453 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
34455         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
34456         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
34457         declarations.
34459 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
34461         * misc.c: Remove trailing spaces.
34462         Update copyright notice missed in previous change.
34464         PR ada/13572
34465         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
34466         prefix/share/make
34468         * Makefile.generic: Update copyright.
34469         Add license notice.
34471         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
34472         of prefix/share/make.
34474         * Makefile.prolog: Update copyright.
34475         Add license notice.
34477 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
34479         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
34480         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
34481         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
34482         instead of String.
34484         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
34485         signature.
34487 2004-01-12  Javier Miranda  <miranda@gnat.com>
34489         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
34490         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
34491         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
34492         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
34493         Component_Definition node.
34495 2004-01-12  Ed Falis  <falis@gnat.com>
34497         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
34499 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
34501         * link.c: Change default libgnat kind to STATIC for FreeBSD.
34503 2004-01-12  Bernard Banner  <banner@gnat.com>
34505         * Makefile.in: map 86numaux to a-numaux for x86_64
34507 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
34509         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
34510         generated to rename a generic actual, go to the actual itself, the
34511         subtype is not a user-visible entity.
34513         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
34514         part is a private subtype, reset the visibility of its full view, if
34515         any, to be consistent.
34517         PR ada/13417
34518         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
34519         to use a generic package G as a formal package for another generic
34520         declared within G.
34522 2004-01-12  Robert Dewar  <dewar@gnat.com>
34524         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
34526         * usage.adb: Remove mention of obsolete -gnatwb switch
34527         Noticed during code reading
34529 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
34531         * 1ssecsta.adb: Minor changes for -gnatwa warnings
34533 2004-01-12  GNAT Script  <nobody@gnat.com>
34535         * Make-lang.in: Makefile automatically updated
34537 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
34539         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
34541 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34543         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
34545 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
34547         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
34548         Update comment and copyright date.
34549         * stamp-xgnatug: Delete.
34551 2004-01-05  Robert Dewar  <dewar@gnat.com>
34553         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
34554         be modified by the binder generated main program if the -D switch is
34555         used.
34557         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
34558         imported functions (since now we expect this to be done for imported
34559         functions)
34561         * 5vtaprop.adb: Add several ??? for sections requiring more comments
34562         Minor reformatting throughout
34564         * 5zinit.adb: Minor reformatting
34565         Add 2004 to copyright date
34566         Minor changes to avoid -gnatwa warnings
34567         Correct some instances of using OR instead of OR ELSE (noted while
34568         doing reformatting)
34570         * sprint.adb: Minor updates to avoid -gnatwa warnings
34572         * s-secsta.ads, s-secsta.adb:
34573         (SS_Get_Max): New function to obtain high water mark for ss stack
34574         Default_Secondary_Stack is not a constant since it may be modified by
34575         the binder generated main program if the -D switch is used.
34577         * switch-b.adb: New -Dnnn switch for binder
34579         * switch-c.adb:
34580         Make -gnatg imply all warnings currently in -gnatwa
34582         * vms_conv.adb: Minor reformatting
34583         Add 2004 to copyright notice
34584         Add 2004 to printed copyright notice
34586         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
34587         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
34588         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
34589         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
34590         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
34591         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
34592         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
34593         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
34594         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
34595         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
34596         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
34597         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
34598         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
34599         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
34600         checks.adb, clean.adb, cstand.adb, einfo.ads,
34601         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
34602         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
34603         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
34604         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
34605         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
34606         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
34607         Minor reformatting and code clean ups.
34608         Minor changes to prevent -gnatwa warnings
34610         * ali.adb: Minor reformatting and cleanup of code
34611         Acquire new SS indication of secondary stack use from ali files
34613         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
34614         (since now we expect this to be done for imported functions)
34616         * bindgen.adb: Generate call to modify default secondary stack size if
34617         -Dnnn switch given
34619         * bindusg.adb: Add line for new -D switch
34621         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
34622         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
34623         Add circuitry for both records and arrays to avoid gigi
34624         processing if the type involved has non-bit-aligned components
34626         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
34627         N_String_Literal node always references an E_String_Literal_Subtype
34628         entity. This may not be true in the future.
34629         (Possible_Bit_Aligned_Component): Move processing of
34630         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
34632         * exp_ch6.adb (Expand_Thread_Body): Pick up
34633         Default_Secondary_Stack_Size as variable so that we get value modified
34634         by possible -Dnnn binder parameter.
34636         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
34637         (Type_May_Have_Bit_Aligned_Components): New function.
34639         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
34640         (Type_May_Have_Bit_Aligned_Components): New function.
34642         * fe.h: (Set_Identifier_Casing): Fix prototype.
34643         Add declaration for Sem_Elim.Eliminate_Error_Msg.
34644         Minor reformatting.
34646         * freeze.adb (Freeze_Entity): Add RM reference to error message about
34647         importing constant atomic/volatile objects.
34648         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
34649         unless explicit Pure_Function pragma given, to avoid insidious bug of
34650         call to non-pure imported function getting eliminated.
34652         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
34653         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
34654         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
34655         Add 2004 to printed copyright notice
34657         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
34658         stack used.
34660         * Makefile.rtl: Add entry for g-sestin.o
34661         g-sestin.ads: New file.
34663         * mdll.adb: Minor changes to avoid -gnatwa warnings
34665         * mlib-tgt.adb: Minor reformatting
34667         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
34668         New switch Sec_Stack_Used (GNAT, GNATBIND)
34669         Make Default_Secondary_Stack_Size a variable instead of a constant,
34670         so that it can be modified by the new -Dnnn bind switch.
34672         * rtsfind.adb (Load_Fail): Give full error message in configurable
34673         run-time mode if all_errors mode is set. This was not done in the case
34674         of a file not found, which was an oversight.
34675         Note if secondary stack unit is used by compiler.
34677         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
34678         ineffective elaborate all pragmas on non-visible packages (this
34679         happened when a renamed subprogram was called). Now the elaborate all
34680         always goes on the package containing the renaming rather than the one
34681         containing the renamed subprogram.
34683         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
34684         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
34686         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
34687         has an Etype that references an E_String_Literal.
34688         (Eval_String_Literal): Avoid assumption that N_String_Literal node
34689         always references an E_String_Literal_Subtype entity. This may not
34690         be true in the future.
34692         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
34693         pragma location.
34695         * sem_res.adb (Resolve): Specialize msg for function name used in proc
34696         call.
34698 2004-01-05  Ed Falis  <falis@gnat.com>
34700         * g-debuti.adb: Replaced direct boolean operator with short-circuit
34701         form.
34703 2004-01-05  Vincent Celier  <celier@gnat.com>
34705         * bld.adb: Minor comment updates
34706         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
34707         of Item_Name).
34709         * make.adb (Gnatmake): Special process for files to compile/check when
34710         -B is specified. Fail when there are only foreign mains in attribute
34711         Main of the project file and -B is not specified. Do not skip bind/link
34712         steps when -B is specified.
34714         * makeusg.adb: Document new switch -B
34716         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
34718         * switch-m.adb: (Scan_Make_Switches): Process -B switch
34720         * vms_data.ads: Add new GNAT PRETTY qualifier
34721         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
34723 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34725         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
34726         case.
34728         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
34729         Set_Identifier_Casing.
34731         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
34732         has size that overflows.
34734 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
34736         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
34737         -gnatwa warning on static condition.
34739 2004-01-05  Doug Rupp  <rupp@gnat.com>
34741         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
34743 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
34745         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
34746         all attributes, including read-only attribute.
34748 2004-01-05  Pascal Obry  <obry@gnat.com>
34750         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
34751         library naming scheme.
34753         * mlib-prj.adb (Build_Library): Generate different names for the static
34754         or dynamic version of the GNAT runtime. This is needed to support the
34755         new shared library naming scheme.
34756         (Process_Binder_File): Add detection of shared library in binder file
34757         based on the new naming scheme.
34759         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
34760         scheme for the shared runtime libraries.
34762         * Makefile.in:
34763         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
34764         scheme.
34765         (install-gnatlib): Do not create symlinks for shared libraries.
34766         (gnatlib-shared-default): Idem.
34767         (gnatlib-shared-dual-win32): New target. Not used for now as the
34768         auto-import feature does not support arrays/records.
34769         (gnatlib-shared-win32): Do not create copy for the shared libraries.
34770         (gnatlib-shared-vms): Fix shared runtime libraries names.
34772         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
34773         dependent runtime shared library name.
34775 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
34777         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
34778         than the object.
34780 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
34782         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
34783         protected objects when allocator has a subtype indication, not a
34784         qualified expression. Note that qualified expressions may have to be
34785         checked when limited aggregates are implemented.
34787         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
34788         pure, emit warning.
34789         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
34790         subprogram is imported, remove warning.
34792 2004-01-05  Geert Bosch  <bosch@gnat.com>
34794         * s-poosiz.adb: Update copyright notice.
34795         (Allocate): Use Task_Lock to protect against concurrent access.
34796         (Deallocate): Likewise.
34798 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
34800         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
34801         comment.
34803 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
34805         * gnat_ug.texi: Force a CVS commit by updating copyright.
34806         * gnat_ug_vxw.texi: Regenerate.
34807         * gnat_ug_wnt.texi: Regenerate.
34808         * gnat_ug_vms.texi: Regenerate.
34809         * gnat_ug_unx.texi: Regenerate.
34811 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
34813         * trans.c: Remove uses of "register" specifier in
34814         declarations of local variables.
34816 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
34818         * stamp-xgnatug: New stamp file.
34819         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
34820         (ada/doctools/xgnatug): Add $(build_exeext).
34821         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
34822         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
34824 2003-12-17  Ed Falis  <falis@gnat.com>
34826         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
34827         eliminate warning.
34829         * a-exextr.adb: Add context clause for
34830         Ada.Exceptions.Last_Chance_Handler.
34832 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
34834         * cstand.adb (Create_Standard): Change the way how the declaration of
34835         the Duration type is created (making it the same way as it is for all
34836         the other standard types).
34838 2003-12-17  Robert Dewar  <dewar@gnat.com>
34840         * s-crtl.ads: Fix header format
34841         Change Pure to Preelaborate
34843 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
34845         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
34846         the expression type only if it is declared in the current unit.
34848         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
34849         are universal and already analyzed, as can occur in constrained
34850         subcomponents that depend on discriminants, when one constraint is a
34851         subtype mark.
34853         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
34854         type Any_Fixed is legal as the argument of a conversion, if only one
34855         fixed-point type is in context.
34857 2003-12-17  GNAT Script  <nobody@gnat.com>
34859         * Make-lang.in: Makefile automatically updated
34861 2003-12-15  Robert Dewar  <dewar@gnat.com>
34863         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
34864         sec stack size.
34866 2003-12-15  Vincent Celier  <celier@gnat.com>
34868         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
34869         (Gnatchop): Do not set failure status when reporting the number of
34870         warnings.
34872 2003-12-15  Doug Rupp  <rupp@gnat.com>
34874         * s-ctrl.ads: New file.
34876         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
34878         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
34879         (GNATBIND_OBJS): Add ada/s-crtl.o.
34881         * Makefile.in [VMS]: Clean up ifeq rules.
34883         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
34884         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
34885         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
34886         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
34887         s-tasdeb.adb: Update copyright.
34888         Import System.CRTL.
34889         Make minor modifications to use System.CRTL declared functions instead
34890         of importing locally.
34892 2003-12-15  GNAT Script  <nobody@gnat.com>
34894         * Make-lang.in: Makefile automatically updated
34896 2003-12-11  Ed Falis  <falis@gnat.com>
34898         * 5zinit.adb: Clean up.
34900         * 5zintman.adb (Notify_Exception): replaced case statement with a call
34901         to __gnat_map_signal, imported from init.c to support
34902         signal -> exception mappings that depend on the vxWorks version.
34904         * init.c:
34905         Created and exported __gnat_map_signal to support signal -> exception
34906         mapping that is dependent on the VxWorks version.
34907         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
34909 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
34911         * 5wosinte.ads: Link with -mthreads switch.
34913 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
34915         * init.c (__gnat_install_handler [NetBSD]): Set
34916         __gnat_handler_installed, as done on all other platforms.
34917         Remove duplicated code.
34919 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
34921         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
34923 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
34925         * sinfo.ads: Fix inconsistent example code in comment.
34927 2003-12-11  Robert Dewar  <dewar@gnat.com>
34929         * a-tiinau.adb: Add a couple of comments
34931         * sem_ch3.adb: Minor reformatting
34933         * sem_prag.adb:
34934         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
34935         Minor reformatting throughout
34937 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
34939         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
34940         bounds of a loop, create a separate block in order to generate proper
34941         cleanup actions to prevent memory leaks.
34943         * sem_res.adb (Resolve_Call): After a call to
34944         Establish_Transient_Scope, the call may be rewritten and relocated, in
34945         which case no further processing is needed.
34947         * sem_util.adb: (Wrong_Type): Refine previous fix.
34948          Fixes ACATS regressions.
34950         PR ada/13353
34951         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
34952         be inlined.
34954 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
34956         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
34957         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
34958         obsolete files.
34960         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
34961         (rts-zfp): Ditto.
34963 2003-12-08  Robert Dewar  <dewar@gnat.com>
34965         * 7sintman.adb: Minor reformatting
34967         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
34968         standard linker options to get standard libraries linked. We now plan
34969         to provide dummy versions of these libraries to match the appropriate
34970         configurable run-time (e.g. if a library is not needed at all, provide
34971         a dummy empty library).
34973         * targparm.ads: Configurable_Run_Time mode no longer affects linker
34974         options (-L parameters and standard libraries). What we plan to do is
34975         to provide dummy libraries where the libraries are not required.
34977         * gnatbind.adb: Minor comment improvement
34979 2003-12-08  Javier Miranda  <miranda@gnat.com>
34981         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
34982         aggregate in the parent. Otherwise constants with limited aggregates
34983         are not supported. Add new formal to pass the component type (Ctype).
34984         It is required to call the corresponding IP subprogram in case of
34985         default initialized components.
34986         (Gen_Assign): In case of default-initialized component, generate a
34987         call to the IP subprogram associated with the component.
34988         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
34989         of aggregate with default initialized components.
34990         (Has_Default_Init_Comps): Improve implementation to recursively check
34991         all the present expressions.
34993         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
34994         to indicate that the initialization call corresponds to a
34995         default-initialized component of an aggregate.
34996         In case of default initialized aggregate with tasks this parameter is
34997         used to generate a null string (this is just a workaround that must be
34998         improved later). In case of discriminants, this parameter is used to
34999         generate a selected component node that gives access to the discriminant
35000         value.
35002         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
35003         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
35004         allocated aggregates with default-initialized components.
35006         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
35007         the box notation is used in positional aggregates.
35009 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
35011         * lib.ads: Fix typo in comment
35013 2003-12-08  Vincent Celier  <celier@gnat.com>
35015         * prj.adb (Project_Empty): New component Unkept_Comments
35016         (Scan): Remove procedure; moved to Prj.Err.
35018         * prj.ads (Project_Data): New Boolean component Unkept_Comments
35019         (Scan): Remove procedure; moved to Prj.Err.
35021         * prj-dect.adb: Manage comments for the different declarations.
35023         * prj-part.adb (With_Record): New component Node
35024         (Parse): New Boolean parameter Store_Comments, defaulted to False.
35025         Set the scanner to return ends of line and comments as tokens, if
35026         Store_Comments is True.
35027         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
35028         comments are associated with these nodes. Store the node IDs in the
35029         With_Records.
35030         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
35031         With_Records.
35032         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
35033         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
35034         current project. Call Tree.Restore afterwards. Set the various nodes
35035         for comment storage (Next_End, End_Of_Line, Previous_Line,
35036         Previous_End).
35038         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
35039         defaulted to False.
35041         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
35042         to False. When Truncated is True, truncate the string, never go to the
35043         next line.
35044         (Write_End_Of_Line_Comment): New procedure
35045         (Print): Process comments for nodes N_With_Clause,
35046         N_Package_Declaration, N_String_Type_Declaration,
35047         N_Attribute_Declaration, N_Typed_Variable_Declaration,
35048         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
35049         Process nodes N_Comment.
35051         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
35052         without comments and there are some comments, set the flag
35053         Unkept_Comments to True.
35054         (Scan): If there are comments, set the flag Unkept_Comments to True and
35055         clear the comments.
35056         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
35057         (Next_End_Nodes: New table
35058         (Comment_Zones_Of): New function
35059         (Scan): New procedure; moved from Prj. Accumulate comments in the
35060         Comments table and set end of line comments, comments after, after end
35061         and before end.
35062         (Add_Comments): New procedure
35063         (Save, Restore, Seset_State): New procedures
35064         (There_Are_Unkept_Comments): New function
35065         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
35066         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
35067         procedures.
35068         (First_Comment_After, First_Comment_After_End): New functions
35069         (First_Comment_Before, First_Comment_Before_End): New functions
35070         (Next_Comment): New function
35071         (End_Of_Line_Comment, Follows_Empty_Line,
35072         Is_Followed_By_Empty_Line): New functions
35073         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
35074         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
35075         (Set_Next_Comment): New procedure
35076         (Default_Project_Node): Associate comment before if the node can store
35077         comments.
35079         * scans.ads (Token_Type): New enumeration value Tok_Comment
35080         (Comment_Id): New global variable
35082         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
35083         defaulted to False.
35084         (Scan): Store position of start of comment. If comments are tokens, set
35085         Comment_Id and set Token to Tok_Comment when scanning a comment.
35086         (Set_Comment_As_Token): New procedure
35088         * sinput-p.adb: Update Copyright notice
35089         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
35090         that no longer exists.
35092 2003-12-08  Javier Miranda  <miranda@gnat.com>
35094         * sem_aggr.adb: Add dependence on Exp_Tss package
35095         Correct typo in comment
35096         (Resolve_Aggregate): In case of array aggregates set the estimated
35097         type of the aggregate before calling resolve. This is needed to know
35098         the name of the corresponding IP in case of limited array aggregates.
35099         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
35100         in case of default initialized array components.
35102         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
35103         types. Required to give support to limited aggregates in generic
35104         formals.
35106 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
35108         * sem_ch3.adb (Check_Initialization): For legality purposes, an
35109         inlined body functions like an instantiation.
35110         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
35111         until bounds are analyzed, to diagnose premature use of type.
35113         * sem_util.adb (Wrong_Type): Improve error message when the type of
35114         the expression is used prematurely.
35116 2003-12-08  GNAT Script  <nobody@gnat.com>
35118         * Make-lang.in: Makefile automatically updated
35120 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
35122         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
35123         they are automatically generated by Make-lang.in and cause nothing but
35124         maintenance troubles.
35126 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
35128         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
35129         version of this unit).
35131 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
35133         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
35134         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
35135         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
35136         the body of System.Interrupt_Management common to several targets.
35137         Update copyright notice when appropriate.
35139         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
35140         constant.
35142         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
35143         to ensure that the kernel fills in the interrupted context structure
35144         before calling a signal handler, which is necessary to be able to
35145         unwind past it. Update the copyright notice.
35147 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
35149         * a-elchha.ads: New file.
35151         * a-elchha.adb: New default last chance handler. Contents taken from
35152         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
35154         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
35155         is moved to a-elchha.adb to provide a target-independent default last
35156         chance handler.
35158         * Makefile.rtl: Add a-elchha.o
35160         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
35162 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
35164         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
35165         declared in an instance, do not inline the call if the instance is not
35166         frozen yet, to prevent order of elaboration problems.
35168         * sem_prag.adb: Add comments for previous fix.
35170 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
35172         * g-table.adb: Use the right variable in Set_Item.
35173         Update copyright notice.
35175 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
35177         * Makefile.in: Remove unused rules.
35179 2003-12-05  Vincent Celier  <celier@gnat.com>
35181         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
35182         -nostdlib. Not needed here after all.
35184 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
35186         PR ada/11724
35187         * adaint.h, adaint.c, g-os_lib.ads:
35188         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
35189         on some platforms (including FreeBSD), it is a 64 bit value.
35190         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
35192 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
35194         * gnatvsn.ads (Library_Version): Now contain only the relevant
35195         version info.
35196         (Verbose_Library_Version): New constant.
35198         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
35199         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
35200         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
35202         * gnatlbr.adb: Clean up: replace Library_Version by
35203         Verbose_Library_Version.
35205         * make.adb, lib-writ.adb, exp_attr.adb:
35206         Clean up: replace Library_Version by Verbose_Library_Version.
35208         * 5lintman.adb: Removed.
35210         * Makefile.in:
35211         Update and simplify computation of LIBRARY_VERSION.
35212         Fix computation of GSMATCH_VERSION.
35213         5lintman.adb is no longer used: replaced by 7sintman.adb.
35215 2003-12-03  Robert Dewar  <dewar@gnat.com>
35217         * exp_ch5.adb:
35218         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
35219         name. Modified to consider small non-bit-packed arrays as troublesome
35220         and in need of component-by-component assigment expansion.
35222 2003-12-03  Vincent Celier  <celier@gnat.com>
35224         * lang-specs.h: Process nostdlib as nostdinc
35226         * back_end.adb: Update Copyright notice
35227         (Scan_Compiler_Arguments): Process -nostdlib directly.
35229 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
35231         * Makefile.in:
35232         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
35233         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
35234         included in HIE_NONE_TARGET_PAIRS.
35236 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
35238         * sem_attr.adb:
35239         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
35240         is legal in an instance, because legality is cheched in the template.
35242         * sem_prag.adb:
35243         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
35244         appplied to an unchecked conversion of a formal parameter.
35246         * sem_warn.adb:
35247         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
35248         variables.
35250 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
35252         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
35253         routines. The second one is new functionality to deal with backtracing
35254         through signal handlers.
35255         (unwind): Split into the two separate subroutines above.
35256         Update the documentation, and deal properly with sizeof (REG) different
35257         from sizeof (void*).
35259 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
35261         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
35262         so that the debugger can reliably access the value of the parameter,
35263         and therefore is able to display the exception name when an exception
35264         breakpoint is reached.
35266 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
35268         * fmap.adb: Fix typo in warning message.
35270         * g-socket.ads, g-socket.adb: Make Free a visible instance of
35271         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
35273 2003-12-01  Vincent Celier  <celier@gnat.com>
35275         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
35276         ther is no Afile.
35277         (Build_Library): Get the switches only if Default_Switches is declared
35278         in package Binder.
35280 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
35282         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
35283         actuals that are indexed components, reanalyze actual to ensure that
35284         packed array references are properly expanded.
35286         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
35287         attempted assignment to a discriminant.
35289 2003-12-01  Robert Dewar  <dewar@gnat.com>
35291         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
35292         reformatting.
35294         * switch-c.adb: Minor reformatting of comments
35296 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
35298         * Makefile.in: Clean ups.
35300 2003-12-01  GNAT Script  <nobody@gnat.com>
35302         * Make-lang.in: Makefile automatically updated
35304 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
35306         * 5wsystem.ads: Disable zero cost exception, not ready yet.
35308 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
35310         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
35311         to force serialization.
35313 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
35315         * g-socket.ads, g-socket.adb:
35316         Clarify documentation of function Stream. Introduce a Free procedure
35317         to release the returned Stream once it becomes unused.
35319         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
35321 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
35323         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
35324         since NT 4 cannot handle timeout values that are too large,
35325         e.g. DWORD'Last - 1.
35327 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
35329         * exp_ch4.adb:
35330         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
35331         in procedure calls and whose expansion must be deferred.
35333         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
35334         is in exp_ch4.
35336         * sem_ch3.adb:
35337         (Build_Derived_Array_Type): Create operator for unconstrained type
35338         if ancestor is unconstrained.
35340 2003-11-26  Vincent Celier  <celier@gnat.com>
35342         * make.adb (Project_Object_Directory): New global variable
35343         (Change_To_Object_Directory): New procedure
35344         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
35345         of Change_Dir directly. Do not change working directory to object
35346         directory of main project after each compilation.
35347         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
35348         directly.
35349         Change to object directory of main project before binding step.
35350         (Initialize): Initialize Project_Object_Directory to No_Project
35352         * mlib-prj.adb:
35353         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
35354         binding a Stand-Alone Library.
35356         * output.adb: Update Copyright notice
35357         (Write_Char): Output buffer when full
35359 2003-11-26  Robert Dewar  <dewar@gnat.com>
35361         * sem_ch13.adb: (Check_Size): Reset size if size is too small
35363         * sem_ch13.ads:
35364         (Check_Size): Fix documentation to include bit-packed array case
35366         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
35368         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
35370         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
35372 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
35374         PR ada/13142
35375         * utils.c (init_gigi_decls): Change name of built-in setjmp to
35376         __builtin_setjmp, since this is apparently needed by recent
35377         non Ada changes.
35379 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35381         * adadecode.c: Only include ctype.h if not IN_GCC.
35382         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
35384 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
35386         * Makefile.in:
35387         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
35388         signals and interrupts.
35390         * 5zintman.ads: New File.
35392         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
35393         add exception signals to the set of unmasked signals.
35395         * 5ztaprop.adb:
35396         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
35397         between signals and interrupts.
35398         Add to Unblocked_Signal_Mask the set of signals that are in
35399         Keep_Unmasked.
35401         * 7sinmaop.adb:
35402         Adding a check to see whether the Interrupt_ID we want to unmask is in
35403         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
35404         reason is that the index type of the Keep_Unmasked array is not always
35405         Interrupt_ID; it may be a subtype of Interrupt_ID.
35407 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
35409         * exp_util.adb:
35410         (Remove_Side_Effects): Condition constantness of object created for a
35411          an unchecked type conversion on the constantness of the expression
35412          to ensure the correct value for 'Constrained when passing components
35413          of view-converted class-wide objects.
35415 2003-11-24  Robert Dewar  <dewar@gnat.com>
35417         * par-load.adb (Load): Improve handling of misspelled and missing units
35418         Removes several cases of compilation abandoned messages
35420         * lib.adb: (Remove_Unit): New procedure
35422         * lib.ads: (Remove_Unit): New procedure
35424         * lib-load.adb: Minor reformatting
35426 2003-11-24  Vincent Celier  <celier@gnat.com>
35428         * make.adb:
35429         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
35430         (Marking_Label): Label to mark processed source files. Incremented for
35431         each executable.
35432         (Gnatmake): Increase Marking_Labet for each executable
35433         (Is_Marked): Compare against marking label
35434         (Mark): Mark with marking label
35436 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
35438         * s-thread.ads:
35439         Move the declaration of the TSD for System.Threads to System.Soft_Links.
35440         Add some comments.
35442         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
35443         (rts-cert): build a single relocatable object for the run-time lib.
35444         Fix perms.
35446 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
35448         * Make-lang.in:
35449         Use gnatls rather than gcc to obtain the location of GNAT RTL for
35450         crosstools build.
35452 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
35454         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
35455         can not use it as before (that is, as a variable) when dumping it into
35456         the tree file. Add a local variable to store the result of this
35457         function and to be used as the string to be written into the tree.
35459         * scn.adb (Initialize_Scanner): Add comments explaining the recent
35460         changes.
35462         * sinput.adb (Source_First, Source_Last): In case of
35463         Internal_Source_File, replace returning attributes of
35464         Internal_Source_Ptr (which is wrong) with returning attributes of
35465         Internal_Source.
35467 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
35469         * sem_ch3.adb:
35470         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
35471         used for implicit concatenation operators.
35472         Code cleanup.
35474         * sem_elab.adb:
35475         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
35476         task bodies that are in the scope of a Suppress pragma.
35477         (Check_A Call): Use the flag to prevent spurious elaboration checks.
35479         * sinfo.ads, sinfo.adb:
35480         New flag No_Elaboration_Check on function/procedure calls, to properly
35481         suppress checks on calls in task bodies that are within a local suppress
35482         pragma.
35484         * exp_ch4.adb:
35485         (Expand_Concatenate_Other): Use the proper integer type for the
35486         expression for the upper bound, to avoid universal_integer computations
35487         when possible.
35489 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
35491         * .cvsignore: Delete.
35493 2003-11-21  Andreas Schwab  <schwab@suse.de>
35495         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
35497 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
35499         * 5wsystem.ads: Enable zero cost exception.
35501 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
35503         * 5ztiitho.adb: Remove an unreferenced variable.
35505 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
35507         * adaint.c: For FreeBSD, use mkstemp.
35509 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
35511         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
35513 2003-11-21  Robert Dewar  <dewar@gnat.com>
35515         * bld.adb: Remove useless USE of gnatvsn
35517         * gnatchop.adb: Minor reformatting
35518         Clean up version handling to be more consistent
35520         * gnatxref.adb: Minor reformatting
35522         * gprcmd.adb: Minor reformatting
35523         Fix output of copyright to be more consistent with other tools
35525 2003-11-21  Vincent Celier  <celier@gnat.com>
35527         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
35529 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
35531         * atree.adb (Initialize): Add initializations for global variables
35532         used in New_Copy_Tree.
35534         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
35535         Internal_Source_File as the actual).
35536         Put the set of statements creating Any_Character before the set of
35537         statements creating Any_Array to have Any_Character fully initialized
35538         when it is used in creating Any_Array.
35540         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
35541         not call Scan in case if the actual is Internal_Source_File
35542         Add 2003 to copyright note.
35544         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
35545         processing Internal_Source_File.
35547         * types.ads: Add the constant Internal_Source_File representing the
35548         source buffer for artificial source-code-like strings created within
35549         the compiler (the definition of Source_File_Index is changed).
35551 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
35553         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
35554         56system.ads: New file, FreeBSD version.
35556 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
35558         * Make-lang.in (ada.extraclean): Delete.
35560 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
35562         * gnatmem.adb: Clean up verbose output.
35564         * gprcmd.adb: Change copyright to FSF.
35566 2003-11-19  Vincent Celier  <celier@gnat.com>
35568         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
35569         and Version (ignored).
35571         * symbols.ads: (Policy): New type
35572         (Initialize): New parameter Reference, Symbol_Policy and
35573         Library_Version.
35574         Remove parameter Force.
35575         Minor reformatting.
35577         * snames.ads, snames.adbadb: New standard names
35578         Library_Reference_Symbol_File and Library_Symbol_Policy
35580         * mlib-prj.adb:
35581         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
35582         project.
35584         * mlib-tgt.adb:
35585         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
35587         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
35589         * prj.adb: (Project_Empty): New component Symbol_Data
35591         * prj.ads: (Policy, Symbol_Record): New types
35592         (Project_Data): New component Symbol_Data
35594         * prj-attr.adb:
35595         New attributes Library_Symbol_File, Library_Symbol_Policy and
35596         Library_Reference_Symbol_File.
35598         * prj-nmsc.adb:
35599         (Ada_Check): When project is a Stand-Alone library project, process
35600         attribute Library_Symbol_File, Library_Symbol_Policy and
35601         Library_Reference_Symbol_File.
35603         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
35604         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
35605         5sml-tgt.adb (Build_Dynamic_Library): New parameter
35606         Symbol_Data (ignored).
35608         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
35609         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
35610         functions Option_File_Name and Version_String. Set new options of
35611         gnatsym related to symbol file, symbol policy and reference symbol
35612         file.
35614         * 5vsymbol.adb:
35615         Extensive modifications to take into account the reference symbol file,
35616         the symbol policy, the library version and to put in the symbol file the
35617         minor and major IDs.
35619         * bld.adb (Process_Declarative_Items): Put second argument of
35620         gprcmd to_absolute between single quotes, to avoid problems with
35621         Windows.
35623         * bld-io.adb: Update Copyright notice.
35624         (Flush): Remove last character of a line, if it is a back slash, to
35625         avoid make problems.
35627         * gnatsym.adb:
35628         Implement new scheme with reference symbol file and symbol policy.
35630         * g-os_lib.ads: (Is_Directory): Clarify comment
35632 2003-11-19  Robert Dewar  <dewar@gnat.com>
35634         * atree.adb: Move New_Copy_Tree global variables to head of package
35636         * errout.adb: Minor reformatting
35638 2003-11-19  Javier Miranda  <miranda@gnat.com>
35640         * sem_ch4.adb: (Diagnose_Call): Improve error message.
35641         Add reference to Ada0Y (AI-50217)
35643         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
35644         sem_util.adb: Add reference to AI-50217
35646         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
35648         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
35650         * sem_aggr.adb: Complete documentation of AI-287 changes
35652         * par-ch4.adb: Document previous changes.
35654         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
35655         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
35656         Ada0Y (AI-50217)
35658         * exp_aggr.adb: Add references to AI-287 in previous changes
35660 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
35662         * exp_ch6.adb:
35663         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
35664         in the rewriting is the result of an inlined call.
35666         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
35667         parameter is a type conversion, use original node to construct the
35668         post-call assignment, because expression may have been rewritten, e.g.
35669         if it is a packed array.
35671         * sem_attr.adb:
35672         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
35673         body, just as it is in an instance.
35674         Categorization routines
35676         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
35677         Instantiate_Object): Set proper sloc reference for message on missing
35678         actual.
35680 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
35682         * Makefile.in: Add FreeBSD libgnat pairs.
35684         * usage.adb: Fix typo in usage message.
35686 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
35688         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
35689         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
35690         pragma Thread_Body.
35691         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
35693         * s-thread.adb: This file is now a dummy implementation of
35694         System.Thread.
35696 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
35698         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
35700 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
35702         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35703         instanciation references in the parent type description.
35705 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35707         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
35709         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
35710         TYPE_PRECISION directly from esize.
35712 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
35714         * cstreams.c:
35715         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
35717         * init.c: Initialization routines for FreeBSD
35719         * link.c: Link info for FreeBSD
35721         * sysdep.c: Add the case of FreeBSD
35723 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
35725         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
35726         already called in System.Threads.
35728         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
35729         environment task, as it has been moved to System.Threads.Initialization.
35731 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
35733         * adaint.c (__gnatlib_install_locks): Only reference
35734         __gnat_install_locks on VMS, since other platforms can avoid using
35735         --enable-threads=gnat
35737 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
35739         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
35741         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
35742         TYPE_PACKED_ARRAY_TYPE_P.
35743         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
35745         Part of PR ada/12806
35746         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
35747         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
35749 2003-11-17  Vincent Celier  <celier@gnat.com>
35751         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
35752         to False.
35753         Do not set exit status to Failure when Warning is True.
35754         (Gnatchop): Make errors "no compilation units found" and
35755         "no source files written" warnings only.
35757         * make.adb (Gnatmake): When using a project file, set
35758         Look_In_Primary_Dir to False.
35759         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
35760         and Local_Configuration_Pragmas in the project where they are declared
35761         not an extending project which might have inherited them.
35763         * osint.adb (Locate_File): If Name is already an absolute path, do not
35764         look for a directory.
35766         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
35767         -gnats (Check_Syntax) is used, issue only a warning, not an error.
35769         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
35770         in objects of type Variable_Value.
35772         * prj.ads: (Variable_Value): New component Project
35774         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
35775         is in a project extended by Project.
35777         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
35778         Project of Variable_Values to this new parameter value.
35779         (Expression): Set component Project of Variable_Values.
35780         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
35781         Set the component Project in array elements.
35783 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
35785         * errout.adb: (Initialize): Add initialization for error nodes.
35787         * sem_ch12.adb (Initialize): Add missing initializations for
35788         Exchanged_Views and Hidden_Entities.
35790 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
35792         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
35793         already instantiated tree for use in subsequent inlining.
35794         (Analyze_Associations, Instantiate_Formal_Subprogram,
35795         Instantiate_Object): improve error message for mismatch in
35796         instantiations.
35798         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
35799         instantiations of subprograms declared in instances.
35801 2003-11-17  Javier Miranda  <miranda@gnat.com>
35803         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
35804         executed only under the Extensions_Allowed flag.
35806 2003-11-17  Robert Dewar  <dewar@gnat.com>
35808         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
35809         zeroes suppressed.
35810         (Address_Image): Fix bug of returning 0x instead of 0x0
35811         Minor reformatting (function specs).
35813         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
35814         (missed case of 33-63)
35816         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
35818         * s-thread.adb: Add comments for pragma Restriction
35820         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
35821         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
35823 2003-11-17  Ed Falis  <falis@gnat.com>
35825         * s-thread.adb: Added No_Tasking restriction for this implementation.
35827 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
35829         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35830         instanciation references in the parent type description.
35832 2003-11-17  GNAT Script  <nobody@gnat.com>
35834         * Make-lang.in: Makefile automatically updated
35836 2003-11-16  Jason Merrill  <jason@redhat.com>
35838         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
35839         and TAGS files that include them for each front end.
35841 2003-11-14  Andreas Jaeger  <aj@suse.de>
35843         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
35844         is the canonical version.
35845         * misc.c (gnat_handle_option): Likewise.
35847         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
35849         * 5nsystem.ads: New file for x86_64-linux-gnu.
35851 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
35853         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
35855         * comperr.adb: Fix logic in previous change.
35857 2003-11-13  Vincent Celier  <celier@gnat.com>
35859         * 5bml-tgt.adb (Build_Dynamic_Library): Use
35860         Osint.Include_Dir_Default_Prefix instead of
35861         Sdefault.Include_Dir_Default_Name.
35863         * gnatlbr.adb: Update Copyright notice
35864         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
35865         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
35866         instead of Sdefault.Object_Dir_Default_Name
35868         * gnatlink.adb:
35869         (Process_Binder_File): Never suppress the option following -Xlinker
35871         * mdll-utl.adb:
35872         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
35873         Sdefault.Object_Dir_Default_Name.
35875         * osint.ads, osint.adb:
35876         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
35877         Minor reformatting.
35879         * vms_conv.ads: Minor reformating
35880         Remove GNAT STANDARD and GNAT PSTA
35882         * vms_conv.adb:
35883         Allow GNAT MAKE to have several files on the command line.
35884         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
35885         Sdefault.Object_Dir_Default_Name.
35886         Minor Reformating
35887         Remove data for GNAT STANDARD
35889         * vms_data.ads:
35890         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
35891         Remove data for GNAT STANDARD
35892         Remove options and documentation for -gnatwb/-gnatwB: these warning
35893         options no longer exist.
35895 2003-11-13  Ed Falis  <falis@gnat.com>
35897         * 5zthrini.adb: (Init_RTS): Made visible
35899         * 5zthrini.adb:
35900         (Register): Removed unnecessary call to taskVarGet that checked whether
35901          an ATSD was already set as a task var for the argument thread.
35903         * s-thread.adb:
35904         Updated comment to reflect that this is a VxWorks version
35905         Added context clause for System.Threads.Initialization
35906         Added call to System.Threads.Initialization.Init_RTS
35908 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
35910         * 5zthrini.adb:
35911         (Init_RTS): New procedure, for the initialization of the run-time lib.
35913         * s-thread.adb:
35914         Remove dependancy on System.Init, so that this file can be used in the
35915         AE653 sequential run-time lib.
35917 2003-11-13  Robert Dewar  <dewar@gnat.com>
35919         * bindgen.adb: Minor reformatting
35921 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
35923         * checks.adb:
35924         (Apply_Discriminant_Check): Do no apply check if target type is derived
35925         from source type with no applicable constraint.
35927         * lib-writ.adb:
35928         (Ensure_System_Dependency): Do not apply the style checks that may have
35929         been specified for the main unit.
35931         * sem_ch8.adb:
35932         (Find_Selected_Component): Further improvement in error message, with
35933         RM reference.
35935         * sem_res.adb:
35936         (Resolve): Handle properly the case of an illegal overloaded protected
35937         procedure.
35939 2003-11-13  Javier Miranda  <miranda@gnat.com>
35941         * exp_aggr.adb:
35942         (Has_Default_Init_Comps): New function to check the presence of
35943         default initialization in an aggregate.
35944         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
35945         extension aggregate of a limited record. In addition, a new formal
35946         was added to do not initialize the record controller (if any) during
35947         this recursive expansion of ancestors.
35948         (Init_Controller): Add support for limited record components.
35949         (Expand_Record_Aggregate): In case of default initialized components
35950         convert the aggregate into a set of assignments.
35952         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
35953         describing the new syntax.
35954         Nothing else needed to be done because this subprogram delegates part of
35955         its work to P_Precord_Or_Array_Component_Association.
35956         (P_Record_Or_Array_Component_Association): Give support to the new
35957         syntax for default initialization of components.
35959         * sem_aggr.adb:
35960         (Resolve_Aggregate): Relax the strictness of the frontend in case of
35961         limited aggregates.
35962         (Resolve_Record_Aggregate): Give support to default initialized
35963         components.
35964         (Get_Value): In case of default initialized components, duplicate
35965         the corresponding default expression (from the record type
35966         declaration). In case of default initialization in the *others*
35967         choice, do not check that all components have the same type.
35968         (Resolve_Extension_Aggregate): Give support to limited extension
35969         aggregates.
35971         * sem_ch3.adb:
35972         (Check_Initialization): Relax the strictness of the front-end in case
35973         of aggregate and extension aggregates. This test is now done in
35974         Get_Value in a per-component manner.
35976         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
35977         expression corresponds to a limited aggregate. This test is now done
35978         in Get_Value.
35980         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
35981         Box_Present flag.
35983         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
35984         present in an N_Component_Association node
35986 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
35988         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
35989         type-conformant entry only if they are homographs.
35991 2003-11-13  GNAT Script  <nobody@gnat.com>
35993         * Make-lang.in: Makefile automatically updated
35995 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35997         * adadecode.c: Use <> form of include for ctype.h.
35998         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
36000 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36002         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
36003         Works around PR middle-end/6552.
36005 2003-11-10  Ed Falis  <falis@gnat.com>
36007         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
36009         * 5zinit.adb: (Install_Handler): Moved back to spec
36010         (Install_Signal_Handlers): Deleted
36012         * 5zthrini.adb: Added context clause for System.Storage_Elements
36013         (Register): Only handles creation of taskVar; initialization moved to
36014         Thread_Body_Enter.
36015         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
36016         Added declaration of environment task secondary stack and
36017         initialization.
36019         * s-thread.adb: Implement bodies for thread body processing
36021         * s-thread.ads:
36022         Added comment identifying supported targets for pragma Thread_Body.
36024 2003-11-10  Pascal Obry  <obry@gnat.com>
36026         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
36027         GNAT_MAX_PATH_LEN.
36029         * s-fileio.adb:
36030         (Open): Properly check for string length before copying into the buffer.
36031         Raises Name_Error if buffer is too small. Note that this was a potential
36032         buffer overflow.
36034 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
36036         * bindgen.adb, comperr.adb: Code clean ups.
36037         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
36039 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
36041         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
36043 2003-11-10  Vincent Celier  <celier@gnat.com>
36045         * gprcmd.adb:
36046         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
36047         installation.
36049         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
36051         * prj.adb: (Project_Empty): Add new boolean component Virtual
36053         * prj.ads: (Virtual_Prefix): New constant string
36054         (Project_Data): New boolean component Virtual
36056         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
36057         a library project is extended by a virtual extending project.
36059         * prj-part.adb:
36060         Modifications throughout to implement extending-all project, including:
36061         (Virtual_Hash, Processed_Hash): New hash tables
36062         (Create_Virtual_Extending_Project): New procedure
36063         (Look_For_Virtual_Projects_For): New procedure
36065         * prj-proc.adb:
36066         (Process): After checking the projects, if main project is an
36067         extending-all project, set the object directory of all virtual extending
36068         project to the object directory of the main project.
36069         Adjust error message when a virtual extending project has the same
36070         object directory as an project being extended.
36071         (Recursive_Process): If name starts with the virtual prefix, set Virtual
36072         to True in the project data.
36074         * prj-tree.adb:
36075         (Default_Project_Node): Add new boolean component Extending_All
36076         (Is_Extending_All): New function
36077         (Set_Is_Extending_All): New procedure
36079         * prj-tree.ads: (Is_Extending_All): New function
36080         (Set_Is_Extending_All): New procedure
36081         (Project_Node_Record): New boolean component Extending_All
36083         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
36085         * vms_data.ads:
36086         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
36088         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
36089         "gprcmd prefix" to define it.
36091 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
36093         * einfo.ads: Fix a typo and remove an extraneous word in comments.
36095         * lib-load.adb:
36096         (Create_Dummy_Package_Unit): Set the scope of the entity for the
36097         created dummy package to Standard_Standard, not to itself, to
36098         defend other parts of the front-end against encoutering a cycle in
36099         the scope chain.
36101         * sem_ch10.adb:
36102         (Analyze_With_Clause): When setting the entities for the successive
36103         N_Expanded_Names that constitute the name of a child unit, do not
36104         attempt to go further than Standard_Standard in the chain of scopes.
36105         This case arises from the placeholder units created by
36106         Create_Dummy_Package_Unit in the case of a with_clause for a
36107         nonexistent child unit.
36109 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
36111         * exp_ch6.adb:
36112         (Expand_Thread_Body): Place subprogram on scope stack, so that new
36113         declarations are given the proper scope.
36115         * sem_ch13.adb:
36116         (Check_Expr_Constants): Reject an expression that contains a constant
36117         created during expansion, and that appears after the object to which
36118         the address clause applies.
36120         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
36121         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
36122         that uses 'Range of a function call with controlled components, so
36123         that the function result can be finalized before starting the loop.
36125         * sem_ch8.adb:
36126         (Find_Selected_Component): Improve error message when prefix is
36127         an implicit dereference of an incomplete type.
36129 2003-11-10  Robert Dewar  <dewar@gnat.com>
36131         * opt.ads: New Print_Standard flag for -gnatS switch
36133         * sem_ch13.adb: Remove some additional checks for unaligned arrays
36135         * cstand.adb (Create_Standard): Print out package standard if -gnatS
36136         switch set
36138         * debug.adb: Update doc for -gnatds to discuss relationship with new
36139         -gnatS flag
36141         * sinfo.adb: Add new field Entity_Or_Associated_Node
36143         * sinfo.ads: Add new field Entity_Or_Associated_Node
36144         Update documentation for Associated_Node and Entity fields to clarify
36145         relationship and usage.
36147         * sprint.adb:
36148         (Write_Id): Properly process Associated_Node field in generic template
36150         * switch-c.adb:
36151         Recognize new -gnatS switch for printing package Standard
36152         This replaces gnatpsta
36154         * usage.adb:
36155         Add line for  new -gnatS switch for printing package Standard
36156         This replaces gnatpsta
36158 2003-11-10  Andreas Jaeger  <aj@suse.de>
36160         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
36161         integer.
36163 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
36165         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
36166         by gnat1.
36168 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
36170         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
36171         no longer needed.
36173         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
36175         * sysdep.c: Add handling of cygwin.
36177 2003-11-10  GNAT Script  <nobody@gnat.com>
36179         * Make-lang.in: Makefile automatically updated
36181 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
36183         PR 12950
36184         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
36185         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
36186         Replace GNAT_ROOT by GCC_ROOT.
36188         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
36190 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
36192         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
36193         and update for changed meaning of GET_MODE_BITSIZE.
36195 2003-11-04  Doug Rupp  <rupp@gnat.com>
36197         * sysdep.c: Problem discovered during IA64 VMS port.
36198         [VMS] #include <unixio.h> to get proper prototypes.
36200         * adaint.c:
36201         Issues discovered/problems fixed during IA64 VMS port.
36202         [VMS] #define _POSIX_EXIT for proper semantics.
36203         [VMS] #include <unixio.h> for proper prototypes.
36204         [VMS] (fork): #define IA64 version.
36205         (__gnat_os_exit): Remove unnecessary VMS specific code.
36207 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36209         Part of PR ada/12806
36210         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
36211         tree, not integer.
36213         * decl.c:
36214         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
36215         not integer.
36217         * targtyps.c, decl.c, misc.c,
36218         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
36219         routines to work around change in FP sizing semantics in GCC.
36221         * utils.c:
36222         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
36224         * gigi.h: (enumerate_modes): New function.
36226         * Make-lang.in: (ada/misc.o): Add real.h.
36228         * misc.c: (enumerate_modes): New function.
36230 2003-11-04  Robert Dewar  <dewar@gnat.com>
36232         * 3vtrasym.adb: Minor reformatting
36233         Use terminology encoded/decoded name, rather than C++ specific notion
36234         of mangling (this is the terminology used throughout GNAT).
36236         * einfo.h: Regenerated
36238         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
36240         * exp_ch6.adb:
36241         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
36243         * par-prag.adb: Add dummy entry for Thread_Body pragma
36245         * rtsfind.ads:
36246         Add entries for System.Threads entities for thread body processing
36248         * sem_attr.adb:
36249         (Analyze_Pragma, Access attributes): Check these are not applied to a
36250         thread body, since this is not permitted
36252         * sem_prag.adb: Add processing for Thread_Body pragma.
36253         Minor comment fix.
36255         * sem_res.adb:
36256         (Resolve_Call): Check for incorrect attempt to call a thread body
36257          procedure with a direct call.
36259         * snames.ads, snames.adb: Add entry for Thread_Body pragma
36260         Add names associated with thread body expansion
36262         * snames.h: Add entry for Thread_Body pragma
36264         * s-thread.adb: Add entries for thread body processing
36265         These are dummy bodies so far
36267         * s-thread.ads: Add documentation on thread body handling.
36268         Add entries for thread body processing.
36270 2003-11-04  Javier Miranda  <miranda@gnat.com>
36272         * sem_ch10.adb:
36273         (Build_Limited_Views): Return after posting an error in case of limited
36274         with_clause on subprograms, generics, instances or generic renamings
36275         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
36276         on subprograms, generics, instances or generic renamings
36278 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
36280         * raise.c (setup_to_install): Correct mistake in last revision; two
36281         arguments out of order.
36283         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
36284         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
36285         notice, missed in previous change.
36286         Remove trailing blanks and other style errors introduced in previous
36287         change.
36289 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
36291         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
36292         rid of the wrapper for a LJM type, ensuring we don't do that if the
36293         field is addressable.  This avoids potential low level type view
36294         mismatches later on, for instance in a by-reference argument passing
36295         process.
36297 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36299         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
36300         aligned at byte boundary.
36302 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
36304         * decl.c (components_to_record): Do not delete the empty variants from
36305         the end of the union type.
36307 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
36309         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
36310         operation for a derived type, an explicit declaration may use a local
36311         subtype of Boolean.
36313 2003-11-04  Vincent Celier  <celier@gnat.com>
36315         * make.adb (Gnatmake): Allow main sources on the command line with a
36316         library project when it is only for compilation (no binding or
36317         linking).
36319 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36321         * Makefile.in: Remove many duplicate variables.
36323 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
36325         * Make-lang.in (dvi): Move targets to $(docobjdir).
36326         (gnat_ug_vms.dvi): Simplify rule and adjust target.
36327         (gnat_ug_wnt.dvi): Likewise.
36328         (gnat_ug_unx.dvi): Likewise.
36329         (gnat_ug_vxw.dvi): Likewise.
36330         (gnat_rm.dvi): Likewise.
36331         (gnat-style.dvi): Likewise.
36333 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
36335         * gigi.h: Missed commit from update for C90.
36337 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
36339         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
36341 2003-10-31  Andreas Schwab  <schwab@suse.de>
36343         * raise.c (get_action_description_for): Fix typo in last change.
36345 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
36347         PR ada/12761
36348         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
36349         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
36351 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
36353         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
36354         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
36355         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
36356         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
36357         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
36359 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
36361         * 3vtrasym.adb:
36362         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
36363         numbers when symbol name is too long.
36365 2003-10-30  Ed Falis  <falis@gnat.com>
36367         * g-signal.ads, g-signal.adb: New files
36369         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
36371         * Makefile.rtl: Introduce GNAT.Signals
36373 2003-10-30  Robert Dewar  <dewar@gnat.com>
36375         * freeze.adb: Minor reformatting
36377         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
36379         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
36380         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
36381         New handling of Id_Check parameter to improve recognition of keywords
36382         used as identifiers.
36383         Update copyright notice to include 2003
36385 2003-10-29  Robert Dewar  <dewar@gnat.com>
36387         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
36388         sem_ch10.adb: Minor reformatting
36390         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
36391         (Expand_Assign_Record): Test right hand side for bit unaligned as well
36393 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
36395         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
36396         Support for TBK$SYMBOLIZE-based symbolic traceback.
36398 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
36400         * exp_disp.adb:
36401         Revert previous change, that did not work well when pragma No_Run_Time
36402         was used in conjunction with a run-time other than ZFP.
36404 2003-10-29  Vincent Celier  <celier@gnat.com>
36406         * make.adb:
36407         (Gnatmake): When there are no Ada mains in attribute Main, disable the
36408          bind and link steps only is switch -z is not used.
36410 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
36412         * Makefile.generic: Remove duplicated setting of CC.
36414         * Makefile.prolog: Set CC to gcc by default, to override make's
36415         default (cc).
36417         * einfo.h: Regenerated.
36419 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
36421         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
36422         current body, after compiling subunit.
36424         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
36425         when in deleted code, because gigi needs properly ordered freeze
36426         actions to annotate types.
36428         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
36429         prevent the premature freezing of record type that contains
36430         subcomponents with a private type that does not yet have a completion.
36432 2003-10-29  Javier Miranda  <miranda@gnat.com>
36434         * sem_ch12.adb:
36435         (Analyze_Package_Instantiation): Check that instances can not be used in
36436         limited with_clauses.
36438         * sem_ch8.adb:
36439         (Analyze_Package_Renaming): Check that limited withed packages cannot
36440         be renamed. Improve text on error messages related to limited
36441         with_clauses.
36443         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
36445         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
36446         Update copyright notice.
36448         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
36449         (Install_Limited_Context_Clauses): New subprogram that isolates all the
36450         checks required for limited context_clauses and installs the limited
36451         view.
36452         (Install_Limited_Withed_Unit): Complete its documentation.
36453         (Analyze_Context): Check that limited with_clauses are only allowed in
36454         package specs.
36455         (Install_Context): Call Install_Limited_Context_Clauses after the
36456         parents have been installed.
36457         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
36458         package as 'From_With_Type'; this mark indicates that the limited view
36459         is installed. Used to check bad usages of limited with_clauses.
36460         (Build_Limited_Views): Do not add shadow entities to the scope's list
36461         of entities. Do not add real entities to the Non_Limited_Views chain.
36462         Improve error notification.
36463         (Remove_Context_Clauses): Remove context clauses in two phases:
36464         limited views first and regular views later (to maintain the
36465         stack model).
36466         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
36467         its visible entities.
36469 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
36471         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
36472         with any type that Is_Fixed_Point_Type.
36474         * sinfo.ads: Fix documentation for Associated_Node attribute.
36476 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
36478         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
36479         both '-gnatc' and '-gnatt' are specified.
36481         * atree.adb (Initialize): Add initialization for Node_Count (set to
36482         zero).
36484 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36486         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
36487         do not consider as Pure.
36489         Part of implementation of function-at-a-time:
36491         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
36492         (tree_transform): Add new argument to build_component_ref.
36493         (tree_transform, case N_Assignment_Statement): Make and return an
36494         EXPR_STMT.
36495         (tree_transform): If result IS_STMT, set flags and return it.
36496         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36498         * utils2.c (build_simple_component_ref, build_component_ref): Add new
36499         arg, NO_FOLD_P.
36500         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
36501         (build_allocator): Likewise.
36503         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
36504         Add new arg to build_component_ref.
36505         (maybe_unconstrained_array, unchecked_convert): Likewise.
36507         * ada-tree.def (EXPR_STMT): New code.
36509         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
36511         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
36512         build_component_ref calls.
36514         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
36516         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36517         (build_component_ref): Add new argument, NO_FOLD_P.
36519 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
36521         * Makefile.generic: Add missing substitution on object_deps handling.
36523         PR ada/5909
36524         * Make-lang.in (check-ada): Enable ACATS test suite.
36526 2003-10-27  Robert Dewar  <dewar@gnat.com>
36528         * exp_ch3.adb:
36529         (Freeze_Array_Type): We do not need an initialization routine for types
36530         derived from String or Wide_String. They should be treated the same
36531         as String and Wide_String themselves. This caused problems with the
36532         use of Initialize_Scalars.
36534         * exp_ch5.adb:
36535         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
36536         composites. This allows use of component clauses that are not byte
36537         aligned.
36539         * sem_prag.adb:
36540         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
36541         is an attempt to pack an array of atomic objects.
36543         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
36545 2003-10-27  Pascal Obry  <obry@gnat.com>
36547         * g-dirope.adb:
36548         (Basename): Check for drive letters in a pathname only on DOS based OS.
36550 2003-10-27  Vincent Celier  <celier@gnat.com>
36552         * make.adb:
36553         (Gnatmake): When unable to change dir to the object dir, display the
36554         content of the parent dir of the obj dir, to try to understand why this
36555         happens.
36557 2003-10-27  GNAT Script  <nobody@gnat.com>
36559         * Make-lang.in: Makefile automatically updated
36561 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
36563         * sem_ch12.adb:
36564         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
36565         should not be done in Save/Restore_Scope_Stack, because it is performed
36566         locally.
36568         * sem_ch8.adb:
36569         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36570         whether use clauses should be removed/restored.
36572         * sem_ch8.ads:
36573         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36574         whether use clauses should be removed/restored.
36576 2003-10-26  Andreas Jaeger  <aj@suse.de>
36578         * Makefile.in: Remove duplicated lines.
36580 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
36582         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
36583         minimize the differences with ACT tree.
36585         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
36586         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
36587         Gnatvsn.Gnat_Static_Version_String to reduce differences between
36588         ACT and FSF trees.
36590 2003-10-24  Pascal Obry  <obry@gnat.com>
36592         PR ada/12014
36593         * adadecode.c (ostrcpy): New function.
36594         (__gnat_decode): Use ostrcpy of strcpy.
36595         (has_prefix): Set first parameter a const.
36596         (has_suffix): Set first parameter a const.
36597         Update copyright notice. Fix source name in header.
36598         Removes a trailing space.
36600 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
36602         * exp_disp.adb:
36603         Remove the test against being in No_Run_Time_Mode before generating a
36604         call to Register_Tag. It is redundant with the test against the
36605         availability of the function Register_Tag.
36607 2003-10-24  Vincent Celier  <celier@gnat.com>
36609         * g-catiio.adb: (Month_Name): Correct spelling of February
36611         * make.adb: (Mains): New package
36612         (Initialize): Call Mains.Delete
36613         (Gnatmake): Check that each main on the command line is a source of a
36614         project file and, if there are several mains, each of them is a source
36615         of the same project file.
36616         (Gnatmake): When a foreign language is specified in attribute Languages,
36617         no main is specified on the command line and attribute Mains is not
36618         empty, only build the Ada main. If there is no Ada main, just compile
36619         the Ada sources and their closure.
36620         (Gnatmake): If a main is specified on the command line with directory
36621         information, check that the source exists and, if it does, that the path
36622         is the actual path of a source of a project.
36624         * prj-env.adb:
36625         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
36626         Full_Path is True, return the full path instead of the simple file name.
36627         (Project_Of): New function
36629         * prj-env.ads:
36630         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
36631         defaulted to False.
36632         (Project_Of): New function
36634 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
36636         * Makefile.generic:
36637         Ensure objects of main project are always checked and rebuilt if needed.
36638         Set CC to gcc by default.
36639         Prepare new handling of link by creating a global archive (not activated
36640         yet).
36642         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36643         stringt.h: Update copyright notice. Remove trailing blanks.
36644         Fix source name in header.
36646 2003-10-24  Robert Dewar  <dewar@gnat.com>
36648         * sem_ch12.adb: Minor reformatting
36650         * sem_ch3.adb:
36651         Minor reformatting (including new function return style throughout)
36653         * sem_ch3.ads:
36654         Minor reformatting (including new function return style throughout)
36656 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
36658         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36659         stringt.h: Update copyright notice. Remove trailing blanks.
36660         Fix source name in header.
36662 2003-10-24  GNAT Script  <nobody@gnat.com>
36664         * Make-lang.in: Makefile automatically updated
36666 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
36668         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
36669         stringt.h: Convert to ISO C90 declarations and definitions.
36671 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
36673         PR ada/11978
36674         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
36675         External_Tag attribute definition clauses.
36677 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
36679         PR ada/7613
36680         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
36681         child unit, generate a fully qualified name to avoid spurious errors
36682         when the context contains renamings of different child units with
36683         the same simple name.
36685         * exp_dbug.ads: Add documentation on name qualification for renamings
36686         of child units.
36688 2003-10-23  Robert Dewar  <dewar@gnat.com>
36690         * g-regpat.ads, g-regpat.adb: Minor reformatting
36692 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
36694         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
36696 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36698         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
36699         Machine call.
36701         * urealp.h: (Machine): Update to proper definition.
36703 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
36705         * init.c, adaint.c: Minor reformatting.
36707 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
36709         * adaint.c (w32_epoch_offset): Define static const at file level.
36710         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
36711         rather than t_create, t_access in call to GetFileTime. Use union
36712         to convert between FILETIME and  unsigned long long.
36713         (__gnat_file_time_name): Test for invalid file handle.
36714         (__gnat_set_filetime_name): Support win32 targets using
36715         w32api SetFileTime.
36717 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
36719         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
36721         * ctrl_c.c (__gnat_int_handler): Remove declaration.
36723         * decl.c (creat_concat_name):  Const-ify prefix.
36725         * adaint.c: Include ctype.h if __MINGW32__.
36726         (__gnat_readlink): Mark arguments as possibly unused.
36727         (__gnat_symlink): Likewise.
36728         (__gnat_is_symbolic_link): Likewise.
36729         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
36730         declaration
36731         (__gnat_file_time_name): Don't declare struct stat statbuf when
36732         not needed.
36733         (__gnat_is_absolute_path): Add parenthesis around condition of
36734         'if' statement to avoid warning.
36735         (__gnat_plist_init): Specify void as parameter.
36736         (plist_enter): Likewise.
36737         (plist_leave): Likewise.
36738         (remove_handle): Make static. Initialize prev.
36740 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
36742         PR ada/10110
36743         * Makefile.in: Disable build of gnatpsta.
36744         * cstreams.c (__gnat_full_name): Minor improvements and clean up
36745         of previous change.
36747 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36749         * tracebak.c (MAX): Avoid redefinition warning.
36751         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
36752         Change msg to const char *.
36753         (__gnat_install_handler): Remove ss, unused.
36754         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
36755         to const char *.
36756         * cstreams.c (__gnat_full_name): Declare p only when used.
36757         (__gnat_full_name) [sgi] Return buffer.
36759 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
36761         * mingw32.h: New file.
36762         * gnat_wrapper.adb: New file.
36764 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
36766         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
36767         string match a pre compiled regular expression (the corresponding
36768         version of the function working on a raw regular expression)
36769         Fix typos in various comments
36770         Update copyright notice in spec
36772 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
36774         * exp_ch3.adb:
36775         (Component_Needs_Simple_Initialization): Return False when the type is a
36776         packed bit array. Revise spec comments to document this case.
36778         * exp_prag.adb:
36779         (Expand_Pragma_Import): Set any expression on the imported object to
36780         empty to avoid initializing imported objects (in particular this
36781         covers the case of zero-initialization of bit arrays).
36782         Update copyright notice.
36784 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
36786         * sem_ch12.adb:
36787         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
36788         a subunit is missing.
36789         (Instantiate_Subprogram_Body): If body of function is missing, set type
36790         of return expression explicitly in dummy body, to prevent cascaded
36791         errors when a subunit is missing.
36792         Fixes PR 5677.
36794         * sem_ch3.adb:
36795         (Access_Subprogram_Declaration): Verify that return type is valid.
36796         Fixes PR 8693.
36798         * sem_elab.adb:
36799         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
36800         generic.
36801         Fixes PR 12318.
36803         * sem_util.adb:
36804         (Corresponding_Discriminant): If the scope of the discriminant is a
36805         private type without discriminant, use its full view.
36806         Fixes PR 8247.
36808 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
36810         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
36811         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
36812         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
36813         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
36814         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
36815         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
36816         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
36817         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
36818         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
36819         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
36820         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
36821         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
36822         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
36823         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
36824         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
36825         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
36826         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
36827         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
36828         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
36829         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
36830         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
36831         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
36832         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
36833         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
36834         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
36835         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
36836         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
36837         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
36838         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
36839         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
36840         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
36841         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
36842         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
36843         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
36844         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
36845         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
36846         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
36847         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
36848         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
36849         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
36850         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
36851         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
36852         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
36853         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
36854         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
36855         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
36856         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
36857         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
36858         vms_conv.ads, vms_conv.adb, vms_data.ads,
36859         vxaddr2line.adb: Files added. Merge with ACT tree.
36861         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
36862         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
36863         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
36864         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
36865         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
36866         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
36867         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
36868         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
36869         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
36870         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
36872         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
36873         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
36874         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
36875         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
36876         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
36877         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
36878         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
36879         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
36880         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
36881         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
36882         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
36883         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
36884         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
36885         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
36886         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
36887         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
36888         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
36889         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
36890         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
36891         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
36892         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
36893         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
36894         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
36895         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
36896         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
36897         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
36898         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
36899         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
36900         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
36901         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
36902         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
36903         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
36904         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
36905         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
36906         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
36907         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
36908         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
36909         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
36910         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
36911         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
36912         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
36913         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
36914         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
36915         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
36916         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
36917         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
36918         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
36919         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
36920         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
36921         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
36922         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
36923         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
36924         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
36925         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
36926         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
36927         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
36928         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
36929         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
36930         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
36931         checks.adb, checks.ads, cio.c, comperr.adb,
36932         comperr.ads, csets.adb, cstand.adb, cstreams.c,
36933         debug_a.adb, debug_a.ads, debug.adb, decl.c,
36934         einfo.adb, einfo.ads, errout.adb, errout.ads,
36935         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
36936         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
36937         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
36938         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
36939         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
36940         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
36941         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
36942         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
36943         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
36944         fe.h, fmap.adb, fmap.ads, fname.adb,
36945         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
36946         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
36947         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
36948         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
36949         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
36950         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
36951         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
36952         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
36953         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
36954         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
36955         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
36956         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
36957         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
36958         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
36959         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
36960         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
36961         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
36962         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
36963         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
36964         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
36965         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
36966         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
36967         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
36968         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
36969         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
36970         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
36971         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
36972         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
36973         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
36974         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
36975         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
36976         layout.adb, lib.adb, lib.ads, lib-list.adb,
36977         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
36978         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
36979         link.c, live.adb, make.adb, make.ads,
36980         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
36981         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
36982         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
36983         misc.c, mkdir.c, mlib.adb, mlib.ads,
36984         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
36985         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
36986         namet.adb, namet.ads, namet.h, nlists.ads,
36987         nlists.h, nmake.adt, opt.adb, opt.ads,
36988         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
36989         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
36990         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
36991         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
36992         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
36993         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
36994         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
36995         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
36996         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
36997         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
36998         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
36999         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
37000         prj-util.adb, prj-util.ads, raise.c, raise.h,
37001         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
37002         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
37003         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
37004         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
37005         scans.ads, scn.adb, scn.ads, s-crc32.adb,
37006         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
37007         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
37008         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
37009         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
37010         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
37011         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
37012         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
37013         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
37014         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
37015         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
37016         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
37017         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
37018         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
37019         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
37020         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
37021         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
37022         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
37023         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
37024         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
37025         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
37026         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
37027         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
37028         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
37029         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
37030         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
37031         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
37032         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
37033         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
37034         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
37035         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
37036         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
37037         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
37038         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
37039         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
37040         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
37041         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
37042         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
37043         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
37044         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
37045         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
37046         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
37047         stringt.adb, stringt.ads, stringt.h, style.ads,
37048         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
37049         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
37050         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
37051         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
37052         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
37053         table.adb, table.ads, targparm.adb, targparm.ads,
37054         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
37055         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
37056         ttypes.ads, types.ads, types.h, uintp.adb,
37057         uintp.ads, uintp.h, uname.adb, urealp.adb,
37058         urealp.ads, urealp.h, usage.adb, utils2.c,
37059         utils.c, validsw.adb, validsw.ads, widechar.adb,
37060         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
37061         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
37062         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
37063         gnatvsn.ads: Merge with ACT tree.
37065         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
37067 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
37069         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
37070         (gnat_ug_vmx.info): Likewise.
37071         (gnat_ug_vxw.info): Likewise.
37072         (gnat_ug_wnt.info): Likewise.
37073         (gnat_rm.info): Likewise.
37074         (gnat-style.info): Likewise.
37076         * Make-lang.in (ada.install-info): Remove target.
37077         (info): New target.
37078         (install-info): Likewise.
37079         (gnat_ug_unx.info): Simplify rule.
37080         (gnat_ug_vmx.info): Likewise.
37081         (gnat_ug_vxw.info): Likewise.
37082         (gnat_ug_wnt.info): Likewise.
37083         (gnat_rm.info): Likewise.
37084         (gnat-style.info): Likewise.
37086 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
37088         * Make-lang.in: Replace uses of $(target_alias) with
37089         $(target_noncanonical).
37090         * ada/Makefile.in: Remove unused mention of $(target_alias).
37092 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
37094         * Make-lang.in (ada.info): Replace with ...
37095         (info): ... this.
37096         (ada.dvi): Replace with ...
37097         (dvi): ... this.
37099 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
37101         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
37102         initialize dconstp5 and dconstmp5.
37104 2003-09-28  Richard Henderson  <rth@redhat.com>
37106         * trans.c (tree_transform): Update call to expand_asm_operands.
37108 2003-09-21  Richard Henderson  <rth@redhat.com>
37110         * trans.c, utils.c: Revert.
37112 2003-09-21  Richard Henderson  <rth@redhat.com>
37114         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
37115         change to const.
37117 2003-09-04  Michael Matz  <matz@suse.de>
37119         * misc.c: Include "target.h".
37120         * Make-lang.in (misc.o): Add dependency on target.h.
37122 2003-09-03  DJ Delorie  <dj@redhat.com>
37124         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
37125         hook.
37127 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
37129         * Makefile.in: Update substitutions to match changes to
37130         configure.  Use include directives instead of @-insertions
37131         to read in host and target fragments.  Add a rule to
37132         regenerate ada/Makefile.
37134 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
37136         * lang-options.h: Remove.
37137         * lang.opt: Add help text.
37139 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
37141         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
37142         calls.
37144 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
37146         * misc.c (gnat_handle_option): Don't handle filenames.
37148 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
37150         * Make-lang.in: Replace PWD with PWD_COMMAND.
37151         * Makefile.adalib: Likewise.
37152         * Makefile.in: Likewise.
37154 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
37156         * misc.c (gnat_argv): Revert last change.
37157         (gnat_handle_option, gnat_init_options): Copy arguments.
37159 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
37161         * misc.c (gnat_argv): Make const.
37163 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
37165         * misc.c (save_argc, save_argv): Keep non-static!
37167 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
37169         * misc.c (save_argc, save_argv): Make static.
37170         (gnat_init_options): New prototype.
37171         (gnat_init_options): Update.
37173 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
37175         * gnat_ug.texi: Remove unlikely characters from @vars.
37176         * gnat_ug_vms.texi: Regenerate.
37178 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
37180         * misc.c (record_code_position): Adjust emit_note call.
37182 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
37184         * misc.c (gnat_handle_option): Don't check for missing arguments.
37186 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
37188         * utils.c (end_subprog_body): Adjust expand_function_end call.
37190 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
37192         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
37193         Bind_Main_Program.
37195 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
37197         * lang.opt: Declare Ada.
37198         * misc.c (gnat_init_options): Update.
37200 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
37202         * utils.c (begin_subprog_body): Adjust init_function_start call.
37204 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
37206         * Make-lang.in: Update to use options.c and options.h.
37207         * misc.c: Include options.h not aoptions.h.
37208         (gnat_handle_option): Abort on unrecognized switch.
37209         (gnat_init_options): Request Ada switches.
37211 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
37213         * lang.opt: Add -Wall.
37214         * misc.c (gnat_handle_option): Handle it.
37216 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
37218         * misc.c (gnat_handle_option): Fix warnings.
37220 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
37222         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
37224 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
37226         * Make-lang.in: Update to handle command-line options.
37227         * lang.opt: New file.
37228         * misc.c: Include aoptions.h.
37229         (cl_options_count, cl_options): Remove.
37230         (gnat_handle_option): New.
37231         (gnat_decode_option): Remove.
37232         (LANG_HOOKS_DECODE_OPTION): Remove.
37233         (LANG_HOOKS_HANDLE_OPTION): Override.
37235 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
37237         * init.c, misc.c, trans.c, utils.c: Remove dead code.
37239 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
37241         * Makefile.in: Replace "host_canonical" with "host" for autoconf
37242         substitution.
37244 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
37246         * Make-lang.in: Update.
37247         * misc.c: Include opts.h. Define cl_options_count and cl_options.
37249 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
37251         * misc.c (gnat_init_options): Update.
37253 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
37255         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
37256         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
37257         __attribute__ ((__unused__)).
37259 2003-06-05  Jan Hubicka  <jh@suse.cz>
37261         * Make-lang.in:  Add support for stageprofile and stagefeedback
37263 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
37265         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
37266         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
37268 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
37270         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
37271         Remove non-VMS directive.
37272         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
37273         alternatives.
37274         (Examples of gnatls Usage): Remove VMS alternative.
37276 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
37278         PR ada/9953
37279         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
37280         and turn ZCX_By_Default back to False since the underlying support
37281         is not quite there yet.
37283 2003-06-01  Andreas Jaeger  <aj@suse.de>
37285         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
37286         and ROUND_TYPE_SIZE_UNIT.
37288 2003-05-22   Geert Bosch  <bosch@gnat.com>
37290         * gnat_rm.texi : Remove reference to Ada Core Technologies.
37292 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
37294         * trans.c (tree_transform): Use location_t and input_location
37295         directly.
37296         (build_unit_elab): Likewise.
37297         * utils.c (create_label_decl): Likewise.
37299 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
37301         * trans.c (tree_transform, build_unit_elab,
37302         set_lineno): Rename lineno to input_line.
37303         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
37304         end_subprog_body): Likewise.
37305         * utils2.c (build_call_raise): Likewise.
37307 2003-05-01  Laurent Guerby  <guerby@acm.org>
37309         PR ada/10546
37310         * 5iosinte.ads: Increase pthread_cond_t size to match recent
37311         LinuxThread and NPTL version, merge from ACT.
37313 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
37315         * utils.c (convert): No need to clear TREE_CST_RTL.
37317 2003-04-23   Geert Bosch  <bosch@gnat.com>
37319         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37320         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
37321         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
37322         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
37323         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
37324         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
37325         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
37326         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
37327         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
37328         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
37329         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
37330         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
37331         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
37332         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
37333         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
37334         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
37335         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
37336         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
37337         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
37338         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
37339         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
37340         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
37341         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
37342         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
37343         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
37344         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
37345         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
37346         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
37347         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
37348         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
37349         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
37350         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
37351         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
37352         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
37353         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
37354         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
37355         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
37356         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
37357         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
37358         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
37359         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
37360         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
37361         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
37362         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
37363         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
37364         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
37365         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
37366         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
37367         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
37368         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
37369         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
37370         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
37371         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
37372         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
37373         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
37374         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
37375         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
37376         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
37377         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
37378         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
37379         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
37380         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
37381         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
37382         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
37383         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
37384         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
37385         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
37386         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
37387         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
37388         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
37389         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
37390         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
37391         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
37392         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
37393         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
37394         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
37395         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
37396         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
37397         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
37398         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
37399         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
37400         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
37401         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
37402         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
37403         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
37404         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
37405         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
37406         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
37407         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
37408         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
37409         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
37410         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
37411         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
37412         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
37413         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
37414         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
37415         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
37416         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
37417         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
37418         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
37419         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
37420         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
37421         ali.adb, ali.ads, alloc.ads, argv.c,
37422         atree.adb, atree.ads, atree.h, aux-io.c,
37423         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
37424         binde.adb, binde.ads, binderr.adb, binderr.ads,
37425         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
37426         butil.adb, butil.ads, cal.c, calendar.ads,
37427         casing.adb, casing.ads, ceinfo.adb, checks.adb,
37428         checks.ads, cio.c, comperr.adb, comperr.ads,
37429         config-lang.in, csets.adb, csets.ads, csinfo.adb,
37430         cstand.adb, cstand.ads, cuintp.c, debug.adb,
37431         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
37432         dec-io.ads, dec.ads, deftarg.c, directio.ads,
37433         einfo.adb, einfo.ads, elists.adb, elists.ads,
37434         elists.h, errno.c, errout.adb, errout.ads,
37435         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
37436         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
37437         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
37438         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
37439         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
37440         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
37441         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
37442         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
37443         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
37444         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
37445         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
37446         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
37447         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
37448         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
37449         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
37450         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
37451         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
37452         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
37453         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
37454         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
37455         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
37456         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
37457         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
37458         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
37459         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
37460         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
37461         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
37462         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
37463         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
37464         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
37465         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
37466         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
37467         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
37468         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
37469         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
37470         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
37471         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
37472         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
37473         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
37474         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
37475         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
37476         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
37477         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
37478         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
37479         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
37480         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
37481         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
37482         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
37483         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
37484         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
37485         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
37486         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
37487         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
37488         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
37489         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
37490         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
37491         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
37492         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
37493         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
37494         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
37495         lib.adb, lib.ads, live.adb, live.ads,
37496         machcode.ads, make.adb, make.ads, makeusg.adb,
37497         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
37498         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
37499         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
37500         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
37501         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
37502         mlib.ads, namet.adb, namet.ads, nlists.adb,
37503         nlists.ads, opt.adb, opt.ads, osint-b.adb,
37504         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
37505         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
37506         osint.ads, output.adb, output.ads, par-ch10.adb,
37507         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
37508         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
37509         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
37510         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
37511         par-tchk.adb, par-util.adb, par.adb, par.ads,
37512         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
37513         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
37514         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
37515         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
37516         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
37517         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
37518         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
37519         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
37520         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
37521         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
37522         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
37523         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
37524         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
37525         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
37526         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
37527         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
37528         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
37529         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
37530         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
37531         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
37532         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
37533         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
37534         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
37535         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
37536         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
37537         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
37538         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
37539         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
37540         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
37541         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
37542         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
37543         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
37544         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
37545         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
37546         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
37547         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
37548         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
37549         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
37550         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
37551         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
37552         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
37553         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
37554         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
37555         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
37556         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
37557         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
37558         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
37559         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
37560         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
37561         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
37562         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
37563         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
37564         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
37565         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
37566         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
37567         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
37568         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
37569         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
37570         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
37571         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
37572         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
37573         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
37574         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
37575         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
37576         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
37577         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
37578         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
37579         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
37580         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
37581         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
37582         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
37583         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
37584         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
37585         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
37586         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
37587         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
37588         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
37589         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
37590         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
37591         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
37592         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
37593         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
37594         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
37595         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
37596         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
37597         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
37598         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
37599         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
37600         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
37601         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
37602         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
37603         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
37604         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
37605         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
37606         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
37607         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
37608         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
37609         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
37610         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
37611         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
37612         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
37613         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
37614         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
37615         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
37616         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
37617         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
37618         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
37619         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
37620         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
37621         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
37622         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
37623         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
37624         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
37625         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
37626         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
37627         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
37628         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
37629         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
37630         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
37631         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
37632         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
37633         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
37634         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
37635         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
37636         snames.ads, sprint.adb, sprint.ads, stand.adb,
37637         stand.ads, stringt.adb, stringt.ads, style.adb,
37638         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
37639         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
37640         switch-m.ads, switch.adb, switch.ads, system.ads,
37641         table.adb, table.ads, targparm.adb, targparm.ads,
37642         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
37643         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
37644         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
37645         ttypef.ads, ttypes.ads, types.adb, types.ads,
37646         uintp.adb, uintp.ads, uname.adb, uname.ads,
37647         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
37648         usage.adb, usage.ads, validsw.adb, validsw.ads,
37649         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
37650         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
37651         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
37652         formatting and other trivial changes from ACT.
37654 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
37656         * gigi.h, utils2.c (build_constructor):
37657         Rename gnat_build_constructor. Use build_constructor.
37658         * decl.c (gnat_to_gnu_entity)
37659         * trans.c (tree_transform, pos_to_constructor, extract_values)
37660         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
37661         (unchecked_convert)
37662         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
37663         (fill_vms_descriptor):
37664         Update to match.
37666 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
37668         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
37669         * misc.c (gnat_tree_size): New function.
37670         (LANG_HOOKS_TREE_SIZE): Override.
37672 2003-04-03  Jason Merrill  <jason@redhat.com>
37674         * misc.c (gnat_adjust_rli): #if 0.
37676 2003-03-31   Geert Bosch  <bosch@gnat.com>
37678         PR ada/10020
37679         * link.c : Fix misspelled "const" keyword
37681 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
37683         PR c++/7086
37684         * utils2.c: Adjust calls to put_var_into_stack.
37686 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
37688         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
37690 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
37692         * misc.c (gnat_init): Update for new prototype.
37694 2003-03-05  Olivier Hainque  <hainque@gnat.com>
37696         ada/9961
37697         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
37698         warning, and fix return type for the IN_RTS && !SJLJ case.
37700 2003-03-04  Tom Tromey  <tromey@redhat.com>
37702         * Make-lang.in (ada.tags): New target.
37704 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
37706         ada/9911
37707         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
37708         wrapper, which name remains constant whatever underlying GCC
37709         scheme.
37711         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
37712         the stable interface needed for a-except.
37714 2003-03-02  Andreas Jaeger  <aj@suse.de>
37716         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37717         gnat_ug_wnt.texi: Regenerate.
37719 2003-03-02  Laurent Guerby  <guerby@acm.org>
37721         * Makefile.in (install-gnatlib): Match previous change there
37722         so it works.
37724 2003-02-28  Andreas Schwab  <schwab@suse.de>
37726         * Make-lang.in (install-gnatlib): Change to ada directory before
37727         running make instead of using ada/Makefile directly.
37729 2003-02-18  Ben Elliston  <bje@redhat.com>
37731         Part of PR ada/9406
37732         * gnat_ug.texi (Binder output file): Grammar fix.
37734 2003-02-18  Ben Elliston  <bje@redhat.com>
37736         PR other/7350
37737         * 5qtaprop.adb (Sleep): Fix typo in comment.
37739 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
37741         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
37742         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37743         gnat_ug_wnt.texi: Regenerate.
37745 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
37747         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
37748         be created if necessary.
37749         (ada.install-common): Let $(DESTDIR)$(bindir) be created
37750         if necessary.  Remove erroneous and redundant gnatchop
37751         installation commands.  Test for gnatdll before attempting
37752         to install it.
37753         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
37754         and gnatdll from all plausible locations.
37756 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
37758         * utils2.c (build_unary_op): Don't check flag_volatile.
37759         * gnat_ug.texi: Remove -fvolatile from example.
37760         * gnat_ug_vxw.texi: Likewise.
37762 2003-01-29  Laurent Guerby  <guerby@acm.org>
37764         PR ada/8344
37765         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
37766         * Makefile.in: match previous change.
37767         * Make-lang.in: match previous change.
37769 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
37771         * 5rosinte.ads: Add SIGXCPU.
37772         * 5rtpopsp.adb: New file.
37773         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
37774         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
37775         specific file 5rtpopsp.adb.
37776         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
37777         is likely needed for all newlib targets.
37778         * init.c: Add RTEMS specific version of __gnat_initialize().
37780 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37782         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
37784 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
37786         * init.c (__gnat_error_handler): Make msg const.
37788         * gmem.c (convert_addresses): Move declaration ...
37789         * adaint.h: ... here.
37790         * adaint.c (convert_addresses): Adapt addrs type to match
37791         prototype.
37793         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
37795 2003-01-24  Andreas Schwab  <schwab@suse.de>
37797         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
37798         size_t to avoid warning.
37800 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
37802         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
37804 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
37806         * gnat_rm.texi: Remove RCS version number.
37808         * ada-tree.h (union lang_tree_node): Add chain_next option.
37810 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
37812         * Make-lang.in (ada.install-info, ada.install-common,
37813         ada.uninstall): Prepend $(DESTDIR) to the destination
37814         directory in all (un)installation commands.
37815         * Makefile.in (install-gnatlib, install-rts): Ditto.
37817 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
37819         * gnat_rm.texi, gnat_ug.texi: Use @copying.
37820         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37821         gnat_ug_wnt.texi: Regenerate.
37823 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
37825         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
37826         only.
37827         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
37828         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
37829         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
37830         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
37831         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
37832         $(srcdir)/doc/include/gcc-common.texi.
37834 2002-12-15   Geert Bosch  <bosch@gnat.com>
37836         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
37838 2002-12-14   Geert Bosch  <bosch@gnat.com>
37840         PR ada/5690
37841         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
37842         case of a body created for a Renaming_As_Body, on which
37843         conformance checks are not performed.
37845 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
37847         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
37848         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
37849         not already included.
37850         * Make-lang.in: Update dependencies.
37852 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
37853         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
37854         solution to buffer overflow bug on GNU/Linux.
37856 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
37858         PR ada/5856
37859         PR ada/6919
37860         * bindgen.adb: Remove all references to Public_Version.
37861         * comperr.adb: Remove all references to Public_Version and
37862         GNATPRO_Version; correct bug reporting instructions.
37863         * comperr.ads: Change to match bug box.
37864         * gnatvsn.ads: Remove all references to Public version and
37865         GNATPRO version.
37867 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
37869         PR ada/6919
37870         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
37871         GNU/Linux.
37873         PR ada/6558
37874         * config-lang.in: Remove diff_excludes.
37876 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
37878         PR ada/8358
37879         * trans.c (gnu_pending_elaboration_lists): New GC root.
37880         (build_unit_elab): Use..
37882 2002-10-30   Geert Bosch  <bosch@gnat.com>
37884         PR ada/6558
37885         * misc.c : Include optabs.h
37887         * Make-lang.in (misc.o): Add dependency on optabs.h
37889 2002-10-29   Geert Bosch  <bosch@gnat.com>
37891         PR ada/6558
37892         * Make-lang.in (gnatbind): Depend on CONFIG_H
37894 2002-10-29  Geert bosch  <bosch@gnat.com>
37896         PR ada/6558
37897         * misc.c: Unrevert misc.c (1.13)
37899 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
37901         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
37902         maintainership comments.
37904 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
37906         PR ada/5904
37907         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
37908         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
37909         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
37910         7staprop.adb: Correct statements in comments about
37911         maintainership of GNAT.
37913         PR ada/5904
37914         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
37915         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
37916         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
37917         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
37918         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
37919         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
37920         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
37921         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
37922         comments about maintainership of GNAT.
37924         PR ada/6919 (forward port of patch for PR ada/5904)
37925         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
37926         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
37927         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
37928         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
37929         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
37930         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
37931         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
37932         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
37933         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
37934         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
37935         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
37936         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
37937         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
37938         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
37939         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
37940         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
37941         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
37942         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
37943         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
37944         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
37945         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
37946         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
37947         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
37948         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
37949         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
37950         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
37951         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
37952         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
37953         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
37954         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
37955         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
37956         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
37957         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
37958         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
37959         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
37960         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
37961         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
37962         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
37963         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
37964         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
37965         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
37966         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
37967         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
37968         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
37969         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
37970         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
37971         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
37972         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
37973         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
37974         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
37975         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
37976         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
37977         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
37978         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
37979         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
37980         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
37981         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
37982         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
37983         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
37984         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
37985         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
37986         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
37987         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
37988         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
37989         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
37990         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
37991         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
37992         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
37993         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
37994         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
37995         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
37996         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
37997         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
37998         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
37999         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
38000         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
38001         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
38002         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
38003         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
38004         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
38005         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
38006         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
38007         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
38008         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
38009         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
38010         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
38011         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
38012         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
38013         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
38014         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
38015         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
38016         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
38017         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
38018         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
38019         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
38020         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
38021         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
38022         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
38023         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
38024         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
38025         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
38026         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
38027         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
38028         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
38029         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
38030         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
38031         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
38032         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
38033         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
38034         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
38035         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
38036         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
38037         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
38038         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
38039         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
38040         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
38041         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
38042         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
38043         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
38044         par-endh.adb par-labl.adb par-load.adb par-prag.adb
38045         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
38046         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
38047         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
38048         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
38049         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
38050         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
38051         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
38052         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
38053         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
38054         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
38055         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
38056         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
38057         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
38058         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
38059         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
38060         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
38061         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
38062         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
38063         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
38064         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
38065         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
38066         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
38067         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
38068         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
38069         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
38070         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
38071         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
38072         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
38073         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
38074         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
38075         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
38076         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
38077         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
38078         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
38079         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
38080         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
38081         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
38082         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
38083         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
38084         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
38085         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
38086         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
38087         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
38088         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
38089         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
38090         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
38091         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
38092         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
38093         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
38094         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
38095         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
38096         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
38097         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
38098         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
38099         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
38100         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
38101         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
38102         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
38103         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
38104         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
38105         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
38106         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
38107         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
38108         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
38109         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
38110         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
38111         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
38112         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
38113         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
38114         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
38115         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
38116         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
38117         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
38118         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
38119         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
38120         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
38121         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
38122         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
38123         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
38124         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
38125         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
38126         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
38127         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
38128         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
38129         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
38130         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
38131         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
38132         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
38133         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
38134         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
38135         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
38136         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
38137         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
38138         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
38139         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
38140         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
38141         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
38142         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
38143         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
38144         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
38145         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
38146         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
38147         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
38148         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
38149         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
38150         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
38151         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
38152         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
38153         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
38154         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
38155         stringt.ads stringt.h style.adb style.ads stylesw.adb
38156         stylesw.ads switch.adb switch.ads sysdep.c system.ads
38157         table.adb table.ads targparm.adb targparm.ads targtyps.c
38158         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
38159         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
38160         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
38161         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
38162         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
38163         usage.ads utils.c utils2.c validsw.adb validsw.ads
38164         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
38165         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
38166         xtreeprs.adb: Correct statements in comments about maintainership
38167         of GNAT.
38169 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
38171         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
38172         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
38173         * gnatvsn.ads: Gnat_Version_String is now a function.
38174         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
38175         copy the C version_string into a String and return it.
38176         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
38177         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
38178         Remove pragma Ident (Gnat_Version_String).  If this was the
38179         sole use of package Gnatvsn, remove the with statement too.
38180         * gnat1drv.adb: Tweak -gnatv output.
38182 2002-09-17  Richard Henderson  <rth@redhat.com>
38184         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
38185         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
38186         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
38187         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
38188         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
38189         and real_2expN instead of a loop.
38190         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
38191         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
38193 2002-08-25  Andre Leis  <a.leis@gmx.net>
38194             David Billinghurst  <David.Billinghurst@riotinto.com>
38196         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
38198 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38200         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
38201         Remove $(CONFIG_H) dependency.
38203 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
38205         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
38207 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38209         * adadecode.c (ada_demangle): Use xstrdup in lieu of
38210         xmalloc/strcpy.
38211         * misc.c (gnat_decode_option): Likewise.
38213 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
38215         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
38216         function approach did not work well because of a side effect (the
38217         function call could reallocate the table which was being indexed
38218         using its result). Fixes ada/4851. [RESURRECTED]
38220 2002-07-01  Roger Sayle  <roger@eyesopen.com>
38222         * ada/utils.c (builtin_function): Accept an additional parameter.
38224 2002-06-28  Andreas Jaeger  <aj@suse.de>
38226         PR ada/7144
38227         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
38228         <adi@thur.de>.
38230 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38232         * Makefile.in (SHELL): Set to @SHELL@.
38234 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38236         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
38237         array size calculation.
38239 2002-06-04  Andreas Jaeger  <aj@suse.de>
38241         * Make-lang.in (gnatbind): Readd rule that has been lost in last
38242         patch.
38244 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
38246         Merge from pch-branch:
38248         * config-lang.in (gtfiles): Add ada-tree.h.
38249         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
38250         (SET_TYPE_MODULUS): New.
38251         (SET_TYPE_INDEX): New.
38252         (SET_TYPE_DIGITS_VALUE): New.
38253         (SET_TYPE_RM_SIZE): New.
38254         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
38255         (SET_TYPE_ADA_SIZE): New.
38256         (SET_TYPE_ACTUAL_BOUNDS): New.
38257         (SET_DECL_CONST_CORRESPONDING_VAR): New.
38258         (SET_DECL_ORIGINAL_FIELD): New.
38259         (TREE_LOOP_ID): Correct typo.
38260         * decl.c: Use new macros.
38261         * utils.c: Include debug.h, use new macros.
38262         * utils2.c: Use new macros.
38264         * ada-tree.h: Update all macros for new tree description.
38265         (struct tree_loop_id): New.
38266         (union lang_tree_node): New.
38267         (struct lang_decl): New.
38268         (struct lang_type): New.
38269         * misc.c (gnat_mark_tree): Delete.
38270         (LANG_HOOKS_MARK_TREE): Delete.
38271         * trans.c (tree_transform): No longer any need to cast
38272         for TREE_LOOP_ID.
38274         * utils.c (struct language_function): New dummy structure.
38276         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
38277         (misc.o): Likewise.
38278         (utils.o): Likewise; also gtype-ada.h.
38279         * Make-lang.in (gnat1): Add dependency on s-gtype.
38280         (gnatbind): Add dependency on $(CONFIG_H).
38281         * utils.c: Correct last #include.
38282         (stuct e_stack): Remove unnecessary 'static'.
38283         (mark_e_stack): Remove unused prototype.
38285         * scn-nlit.adb: Remove whitespace after version number to
38286         keep lines under 80 chars.
38287         * snames.adb: Likewise.
38288         * treepr.ads: Likewise.
38290         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
38291         (misc.o): Likewise.
38292         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
38293         * config-lang.in (gtfiles): New.
38294         * decl.c: Use gengtype for roots.
38295         * gigi.h: Use gengtype for roots.
38296         * trans.c: Use gengtype for roots.
38297         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
38299 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
38301         * misc.c (gnat_init): Adjust setting of internal_error_function.
38303 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
38305         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
38306         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38307         gnat_ug_wnt.texi: Regenerate.
38309 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
38311         * 5ntaprop.adb (with System.OS_Primitives): Remove.
38313         * cstreams.c (max_path_len): Move from here ...
38314         * adaint.c (__gnat_max_path_len): ... to here.
38315         * adaint.c (__gnat_max_path_len): Declare.
38316         * g-dirope.adb (Max_Path): Adjust.
38317         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
38318         * i-cstrea.ads (max_path_len): Adjust.
38319         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
38320         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
38322         * Makefile.in, Make-lang.in: Documentation is now built in
38323         Make-lang.in.  Store Info and generated Texinfo files in the
38324         source directory.
38325         * gnat_ug.texi: Remove CVS keywords, correct version number.
38326         Set file name correctly.
38328         * gnat_ug_*.texi: Add.
38329         * .cvsignore: Ignore generated Texinfo files.
38331 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
38333         * ada.h: Add MI guard macro.
38334         (SUBTYPE): Define constants with an anonymous enum, not static
38335         const variables.
38336         (IN): Cast constants to appropriate type before use.
38338 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
38340         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
38341         (experimental)".
38343 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38345         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
38346         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
38347         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
38348         (ALL_ADA_CFLAGS): Likewise.
38349         (ADA_INCLUDES): Likewise.
38350         Adapt for new working dir.
38351         (GNATBIND): Use Makefile.in version.
38352         (.SUFFIXES): Copy from Makefile.in.
38353         (ada-warn): Define.
38354         (.adb.o, .ads.o): Copy from Makefile.in.
38355         Added $(OUTPUT_OPTION).
38356         (GNAT1_C_OBJS): Moved from Makefile.in.
38357         Prefix with ada subdir.
38358         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
38359         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
38360         Adapt for new working dir.
38361         (EXTRA_GNATBIND_OBJS): Likewise.
38362         (ADA_BACKEND): Moved from Makefile.in.
38363         Renamed to avoid conflict with global BACKEND.
38364         Use that one.
38365         (TARGET_ADA_SRCS): Moved from Makefile.in.
38366         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
38367         Use ADA_BACKEND.
38368         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
38369         (ada_extra_files): Moved from Makefile.in.
38370         Prefix with ada subdir.
38371         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
38372         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
38373         (ada/nmake.ads): Likewise.
38374         (update-sources): Moved from Makefile.in.
38375         Prefix with ada subdir.
38376         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
38377         (ADA_TREE_H): Likewise.
38378         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
38379         (ada/memtrack.o): Likewise.
38380         (ada/adadecode.o): Likewise.
38381         Update dependencies.
38382         (ada/adaint.o): New.
38383         (ada/argv.o): Moved from Makefile.in.
38384         Prefix with ada subdir.
38385         Update dependencies.
38386         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
38387         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
38388         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
38389         Prefix with ada subdir.
38390         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
38391         (GNAT DEPENDENCIES): Regenerate.
38392         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
38393         toplevel Makefile.in.
38394         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
38395         (TARGET_ADA_SRCS): Removed.
38396         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
38397         (GNATBIND_OBJS): Likewise.
38398         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
38399         (BACKEND): Removed.
38400         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
38401         (TREE_H): Likewise.
38402         (ada_extra_files): Likewise.
38403         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
38404         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
38405         (update-sources): Likewise.
38406         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
38407         (ADA_TREE_H): Likewise.
38408         (adadecoce.o): Likewise.
38409         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
38410         (GNAT DEPENDENCIES): Likewise.
38412 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38414         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
38415         * Makefile.in: Likewise.
38417 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
38419         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
38420         Restore $(CONFIG_H) and prefix.o dependencies.
38421         (ada.stage[1-4]): Depend on stage?-start.
38423         * Makefile.in (b_gnatb.c): Depend on interfac.o.
38425 2002-05-02  Jim Wilson  <wilson@redhat.com>
38427         * utils.c (finish_record_type): Change record_size to record_type.
38429 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
38431         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
38432         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
38433         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
38435 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
38437         * misc.c (gnat_parse_file): Update.
38439 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
38441         * misc.c (gnat_init): Don't set lang_attribute_common.
38443 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
38445         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
38447 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
38449         * gnat_ug.texi: New file.
38451         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
38452         instead of gfdl.texi
38454         * xgnatug.adb, ug_words: New files.
38456         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
38457         gnat_rm and gnat-style manuals.
38459 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
38461         * gigi.h (incomplete_type_error): Remove.
38462         * utils.c (incomplete_type_error): Remove.
38464 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
38466         * trans.c (tree_transform): Add has_scope argument to
38467         expand_start_stmt_expr.
38469 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
38471         * gigi.h (truthvalue_conversion): Rename.
38472         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
38473         * trans.c (tree_transform): Update.
38474         * utils2.c (truthvalue_conversion): Rename, update.
38475         (build_binary_op, build_unary_op): Update.
38477 2002-04-04  Laurent Guerby  <guerby@acm.org>
38479         * make.adb: Implement -margs, remove restriction about file name placement.
38480         * makeusg.adb: Documentation update.
38481         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
38482         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
38484 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
38486         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
38487         (builtin_function): Similarly.
38489 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
38491         * decl.c (gnat_to_gnu_entity): Update.
38492         * gigi.h (mark_addressable): Rename.
38493         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
38494         * trans.c (tree_transform): Update.
38495         * utils.c (create_var_decl): Update.
38496         * util2.c (build_binary_op, build_unary_op,
38497         fill_vms_descriptor): Update.
38498         (mark_addressable): Rename, update.
38500 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
38502         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
38503         Rename.
38504         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
38505         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
38506         * trans.c (tree_transform, convert_with_check): Update.
38507         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
38508         Rename.
38510 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
38512         * gigi.h (finish_incomplete_decl): Rename.
38513         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
38514         * utils.c (gnat_init_decl_processing): Don't set hook.
38515         (finish_incomplete_decl): Rename.
38517 2002-03-29  Andreas Schwab  <schwab@suse.de>
38519         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
38520         directory.
38522 2001-03-28  Robert Dewar  <dewar@gnat.com>
38524         * checks.ads:
38525         (Remove_Checks): New procedure
38527         * checks.adb:
38528         (Remove_Checks): New procedure
38530         * exp_util.adb:
38531         Use new Duplicate_Subexpr functions
38532         (Duplicate_Subexpr_No_Checks): New procedure
38533         (Duplicate_Subexpr_No_Checks_Orig): New procedure
38534         (Duplicate_Subexpr): Restore original form (checks duplicated)
38535         (Duplicate_Subexpr): Call Remove_Checks
38537         * exp_util.ads:
38538         (Duplicate_Subexpr_No_Checks): New procedure
38539         (Duplicate_Subexpr_No_Checks_Orig): New procedure
38540         Add 2002 to copyright notice
38542         * sem_util.adb: Use new Duplicate_Subexpr functions
38544         * sem_eval.adb:
38545         (Eval_Indexed_Component): This is the place to call
38546         Constant_Array_Ref and to replace the value. We simply merge
38547         the code of this function in here, since it is now no longer
38548         used elsewhere. This fixes the problem of the back end not
38549         realizing we were clever enough to see that this was
38550         constant.
38551         (Expr_Val): Remove call to Constant_Array_Ref
38552         (Expr_Rep_Val): Remove call to Constant_Array_Ref
38553         Minor reformatting
38554         (Constant_Array_Ref): Deal with string literals (patch
38555         suggested by Zack Weinberg on the gcc list)
38557 2001-03-28  Ed Schonberg  <schonber@gnat.com>
38559         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
38560         Duplicate_Subexpr_Move_Checks.
38562         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
38563         Duplicate_Subexpr_Move_Checks.
38565         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
38566         value of array exists before retrieving it (it may a private
38567         protected component in a function).
38569 2002-03-28   Geert Bosch  <bosch@gnat.com>
38571         * prj-pp.adb : New file.
38573         * prj-pp.ads : New file.
38575 2002-03-28  Andreas Jaeger  <aj@suse.de>
38577         * Makefile.in (stamp-sdefault): Fix path for Makefile.
38579 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
38581         * misc.c (gnat_expand_expr): Move prototype.
38583 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
38585         * misc.c (insert_default_attributes): Remove.
38587 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
38589         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
38590         (gnat_init): Don't set hook.
38591         (gnat_expand_expr): Fix prototype.
38593 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
38595         * misc.c (ggc_p): Remove.
38597 2002-03-27  Geert Bosch  <bosch@gnat.com>
38599         * prj-makr.ads, prj-makr.adb : New files.
38601 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
38603         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
38604         (lang_mark_tree): Make static, rename.
38606 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
38608         * misc.c (maybe_build_cleanup): Remove.
38610 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
38612         * gigi.h (yyparse): Remove.
38614 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
38616         From Ben Brosgol  <brosgol@gnat.com>
38617         * gnat_rm.texi: Sync with ACT version.
38619 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
38621         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
38622         (gnat_init): Remove old hook.
38624 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
38626         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
38627         (yyparse): Rename gnat_parse_file.
38629 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
38631         Delete all lines containing "$Revision:".
38632         * xeinfo.adb: Don't look for revision numbers.
38633         * xnmake.adb: Likewise.
38634         * xsinfo.adb: Likewise.
38635         * xsnames.adb: Likewise.
38636         * xtreeprs.adb: Likewise.
38638 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38640         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
38641         gnat_tree_code_name): Delete.
38642         (tree_code_type, tree_code_length, tree_code_name): Define.
38643         (gnat_init): Don't try to copy into the various tree_code
38644         arrays.
38646 2002-03-11  Richard Henderson  <rth@redhat.com>
38648         * Makefile.in (.NOTPARALLEL): Add fake tag.
38650 2002-03-07  Geert Bosch  <bosch@gnat.com>
38652         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
38653         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
38654         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
38655         switch-m.adb, switch-m.ads : New files.
38657 2002-03-07  Geert Bosch  <bosch@gnat.com>
38659         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
38660         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
38661         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
38662         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
38663         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
38664         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
38665         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
38666         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
38667         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
38668         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
38669         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
38670         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
38671         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
38672         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
38673         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
38674         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
38675         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
38676         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
38677         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
38678         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
38679         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
38680         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
38681         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
38682         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
38683         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
38684         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
38685         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
38686         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
38687         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
38688         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
38689         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
38690         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
38691         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
38692         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
38693         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
38694         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
38695         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
38696         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
38697         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
38698         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
38699         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
38700         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
38701         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
38702         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
38703         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
38704         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
38705         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
38706         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
38707         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
38708         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
38709         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
38710         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
38711         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
38712         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
38713         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
38714         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
38715         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
38716         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
38717         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
38718         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
38719         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
38720         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
38721         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
38722         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
38723         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
38724         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
38725         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
38726         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
38727         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
38728         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
38729         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
38730         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
38731         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
38732         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
38733         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
38734         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
38735         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
38736         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
38737         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
38738         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
38739         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
38740         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
38741         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
38742         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
38743         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
38744         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
38745         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
38746         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
38747         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
38748         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
38749         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
38750         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
38751         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
38752         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
38753         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
38754         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
38755         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
38757         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
38758         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
38759         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
38760         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
38762         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
38763         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
38765         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
38766         to mdll-fil.ad[bs] and mdll-util.ad[bs]
38768         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
38769         from mdllfile.ad[bs] and mdlltool.ad[bs]
38771 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38773         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
38774         lieu of explicit sizeof/sizeof.
38776 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
38778         * misc.c (copy_lang_decl): Remove.
38780 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
38782         * misc.c: Delete traditional-mode-related code copied from the
38783         C front end but not used, or used only to permit the compiler
38784         to link.
38786 2002-02-07  Richard Henderson  <rth@redhat.com>
38788         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
38789         * adaint.h (__gnat_to_gm_time): Update prototype.
38791 2002-01-30  Richard Henderson  <rth@redhat.com>
38793         * trans.c (tree_transform) [N_Loop_Statement]: Use
38794         expand_exit_loop_top_cond.
38796 2001-12-23  Richard Henderson  <rth@redhat.com>
38798         * utils.c (end_subprog_body): Push GC context around
38799         rest_of_compilation for nested functions.
38801 2001-12-23  Richard Henderson  <rth@redhat.com>
38803         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
38805 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
38807         * gnat-style.texi (Declarations and Types): Remove ancient style
38808         rule which was mandated by code generation issues.
38810         * gnat-style.texi (header): Add @dircategory, @direntry.
38811         (title page): Remove date.
38812         (general) Add @./@: where approriate, and two spaces after the
38813         full stop at the end of a sentence.  Use @samp markup when
38814         referring concrete lexical entities (keywords, attribute names
38815         etc.), and @syntax for ARM grammar elements. Use @r for English
38816         text in comments.  Use @emph for emphasis.  Change "if-statements"
38817         etc. to "if statements" (without @samp). Break long lines.  Make
38818         casing of section names consistent.
38819         (Identifiers): Use @samp markup for variable names.
38820         (Comments): Use @samp markup for comment characters. Line-end
38821         comments may follow any Ada code, not just statements.  Fix
38822         misspelling of "Integer" as "integer".
38823         (Loop statements): Do not use variable name "I", use "J".
38824         (Subprogram Declarations): Document alignment.
38825         (Subprogram Bodies, Block statements): Document empty line before
38826         "begin".
38828 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
38830         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
38831         function approach did not work well because of a side effect (the
38832         function call could reallocate the table which was being indexed
38833         using its result). Fixes ada/4851.
38835 2001-12-19  Robert Dewar  <dewar@gnat.com>
38837         * bindgen.adb: Minor reformatting
38839         * cstand.adb: Minor reformatting
38841         * fmap.adb: Minor reformatting
38842         Change name from Add for Add_To_File_Map (Add is much too generic)
38843         Change Path_Name_Of to Mapped_Path_Name
38844         Change File_Name_Of to Mapped_File_Name
38845         Fix copyright dates in header
38847         * fmap.ads:
38848         Change name from Add for Add_To_File_Map (Add is much too generic)
38849         Change Path_Name_Of to Mapped_Path_Name
38850         Change File_Name_Of to Mapped_File_Name
38851         Fix copyright dates in header
38853         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
38854         Add use clause for Fmap.
38856         * make.adb: Minor reformatting
38858         * osint.adb: Minor reformatting.  Change of names in Fmap.
38859         Add use clause for Fmap.
38861         * prj-env.adb: Minor reformatting
38863         * prj-env.ads: Minor reformatting
38865         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
38866         error found (there were odd exceptions to this general rule in
38867         -gnatec/-gnatem processing)
38869 2001-12-19  Olivier Hainque  <hainque@gnat.com>
38871         * raise.c (__gnat_eh_personality): Exception handling personality
38872         routine for Ada.  Still in rough state, inspired from the C++ version
38873         and still containing a bunch of debugging artifacts.
38874         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
38875         inspired from the C++ library.
38877         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
38878         exception handling integration.
38880 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
38882         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
38883         (HIE_SOURCES): Add s-secsta.ad{s,b}.
38884         (HIE_OBJS): Add s-fat*.o
38885         (RAVEN_SOURCES): Remove files that are no longer required. Add
38886         interrupt handling files.
38887         (RAVEN_MOD): Removed, no longer needed.
38889 2001-12-19  Robert Dewar  <dewar@gnat.com>
38891         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
38892         Add 2001 to copyright date
38894         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
38895         need to force universal inlining for these cases.
38897 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
38899         * s-taprob.adb: Minor clean ups so that this unit can be used in
38900         Ravenscar HI.
38902         * exp_ch7.adb: Allow use of secondary stack in HI mode.
38903         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
38905 2001-12-19  Vincent Celier  <celier@gnat.com>
38907         * prj-tree.ads (Project_Node_Record): Add comments for components
38908         Pkg_Id and Case_Insensitive.
38910 2001-12-19  Pascal Obry  <obry@gnat.com>
38912         * g-socket.adb: Minor reformatting. Found while reading code.
38914 2001-12-19  Robert Dewar  <dewar@gnat.com>
38916         * prj-tree.ads: Minor reformatting
38918 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
38920         * config-lang.in (diff_excludes): Remove.
38922 2001-12-17  Ed Schonberg  <schonber@gnat.com>
38924         * sem_res.adb (Resolve_Selected_Component): do not generate a
38925         discriminant check if the selected component is a component of
38926         the argument of an initialization procedure.
38928         * trans.c (tree_transform, case of arithmetic operators): If result
38929         type is private, the gnu_type is the base type of the full view,
38930         given that the full view itself may be a subtype.
38932 2001-12-17  Robert Dewar  <dewar@gnat.com>
38934         * sem_res.adb: Minor reformatting
38936         * trans.c (tree_transform, case N_Real_Literal): Add missing third
38937         parameter in call to Machine (unknown horrible effects from this
38938         omission).
38940         * urealp.h: Add definition of Round_Even for call to Machine
38941         Add third parameter for Machine
38943 2001-12-17  Ed Schonberg  <schonber@gnat.com>
38945         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
38946         predefined units in No_Run_Time mode.
38948 2001-12-17  Richard Kenner  <kenner@gnat.com>
38950         * misc.c (insn-codes.h): Now include.
38952 2001-12-17  Olivier Hainque  <hainque@gnat.com>
38954         * a-except.adb: Preparation work for future integration of the GCC 3
38955         exception handling mechanism
38956         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
38957         to factorize previous code sequences and make them externally callable,
38958         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
38959         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
38960         Use the new notification routines.
38962 2001-12-17  Emmanuel Briot  <briot@gnat.com>
38964         * prj-tree.ads (First_Choice_Of): Document the when others case
38966 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
38968         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
38969         HI-E mode, in order to support Ravenscar profile properly.
38971         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
38972         mode on 32 bits targets.
38974 2001-12-17  Vincent Celier  <celier@gnat.com>
38976         * fmap.adb: Initial version.
38978         * fmap.ads: Initial version.
38980         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
38981         If search is successfully done, add to mapping.
38983         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
38985         * make.adb:
38986         (Gnatmake): Add new local variable Mapping_File_Name.
38987          Create mapping file when using project file(s).
38988          Delete mapping file before exiting.
38990         * opt.ads (Mapping_File_Name): New variable
38992         * osint.adb (Find_File): Use path name found in mapping, if any.
38994         * prj-env.adb (Create_Mapping_File): New procedure
38996         * prj-env.ads (Create_Mapping_File): New procedure.
38998         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
38999         (Mapping_File)
39001         * usage.adb: Add entry for new switch -gnatem.
39003         * Makefile.in: Add dependencies for fmap.o.
39005 2001-12-17  Ed Schonberg  <schonber@gnat.com>
39007         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
39008         is a package instantiation rewritten as a package body.
39009         (Install_Withed_Unit): Undo previous change, now redundant.
39011 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
39013         * layout.adb:
39014         (Compute_Length): Move conversion to Unsigned to callers.
39015         (Get_Max_Size): Convert Len expression to Unsigned after calls to
39016         Compute_Length and Determine_Range.
39017         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
39018         Compute_Length and Determine_Range.
39019         Above changes fix problem with length computation for supernull arrays
39020         where Max (Len, 0) wasn't getting applied due to the Unsigned
39021         conversion used by Compute_Length.
39023 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
39025         * rtsfind.ads:
39026         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
39027          System.Secondary_Stack.
39028         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
39029          in HI-E mode.
39030         Remove unused entity RE_Exception_Data.
39032         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
39034         * rident.ads (No_Secondary_Stack): New restriction.
39036 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
39038         * gnat_rm.texi: Fix minor typos. Found while reading the section
39039         regarding "Bit_Order Clauses" that was sent to a customer.
39040         Very interesting documentation!
39042 2001-12-17  Robert Dewar  <dewar@gnat.com>
39044         * sem_case.adb (Choice_Image): Avoid creating improper character
39045         literal names by using the routine Set_Character_Literal_Name. This
39046         fixes bombs in certain error message cases.
39048 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
39050         * a-reatim.adb: Minor reformatting.
39052 2001-12-17  Ed Schonberg  <schonber@gnat.com>
39054         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
39055         case where the formal is an extension of another formal in the current
39056         unit or in a parent generic unit.
39058 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
39060         * s-tposen.adb: Update comments.  Minor reformatting.
39061         Minor code clean up.
39063         * s-tarest.adb: Update comments.  Minor code reorganization.
39065 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
39067         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
39068         when Java_VM.
39070 2001-12-17  Robert Dewa  <dewar@gnat.com>
39072         * exp_attr.adb: Minor reformatting
39074 2001-12-17  Ed Schonberg  <schonber@gnat.com>
39076         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
39077         derivations nested within a child unit: verify that the parent
39078         type is declared in an outer scope.
39080 2001-12-17  Robert Dewar  <dewar@gnat.com>
39082         * sem_ch12.adb: Minor reformatting
39084 2001-12-17  Ed Schonberg  <schonber@gnat.com>
39086         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
39087         warning if current unit is a predefined one, from which bodies may
39088         have been deleted.
39090 2001-12-17  Robert Dewar  <dewar@gnat.com>
39092         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
39093         Fix header format. Add 2001 to copyright date.
39095         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
39096         which caused CE during compilation if checks were enabled.
39098 2001-12-17  Vincent Celier  <celier@gnat.com>
39100         * make.adb:
39101         (Switches_Of): New function
39102         (Test_If_Relative_Path): New procedure
39103         (Add_Switches): Use new function Switches_Of
39104         (Collect_Arguments_And_Compile): Use new function Switches_Of.
39105         When using a project file, test if there are any relative
39106         search path. Fail if there are any.
39107         (Gnatmake): Only add switches for the primary directory when not using
39108         a project file. When using a project file, change directory to the
39109         object directory of the main project file. When using a project file,
39110         test if there are any relative search path. Fail if there are any.
39111         When using a project file, fail if specified executable is relative
39112         path with directory information, and prepend executable, if not
39113         specified as an absolute path, with the exec directory.  Make sure
39114         that only one -o switch is transmitted to the linker.
39116         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
39118         * prj-nmsc.adb:
39119         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
39120         when using a non standard naming scheme.
39121         (Check_Ada_Naming_Scheme): Make sure that error messages
39122         do not raise exceptions.
39123         (Is_Illegal_Append): Return True if there is no dot in the suffix.
39124         (Language_Independent_Check): Check the exec directory.
39126         * prj.adb (Project_Empty): Add new component Exec_Directory
39128         * prj.ads:
39129         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
39130         (Project_Data): Add component Exec_Directory
39132         * snames.adb: Updated to match snames.ads revision 1.215
39134         * snames.ads: Added Exec_Dir
39136 2001-12-17  Robert Dewar  <dewar@gnat.com>
39138         * make.adb: Minor reformatting
39140         * prj-nmsc.adb: Minor reformatting
39142         * snames.adb: Updated to match snames.ads
39144         * snames.ads: Alphebetize entries for project file
39146 2001-12-17  Ed Schonberg  <schonber@gnat.com>
39148         * trans.c (process_freeze_entity): Do nothing if the entity is a
39149         subprogram that was already elaborated.
39151 2001-12-17  Richard Kenner  <kenner@gnat.com>
39153         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
39154         and Esize if object is referenced via pointer.
39156 2001-12-17  Ed Schonberg  <schonber@gnat.com>
39158         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
39159         is discrete before analyzing choices.
39161 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
39163         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
39164         containing the name of the Ada Main Program. This string is mainly
39165         intended for the debugger.
39166         (Gen_Output_File_C): Do the equivalent change when generating a C file.
39168 2001-12-17  Robert Dewar  <dewar@gnat.com>
39170         * ali.adb: Set new Dummy_Entry field in dependency entry
39172         * ali.ads: Add Dummy_Entry field to source dependency table
39174         * bcheck.adb (Check_Consistency): Ignore dummy D lines
39176         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
39178         * lib-writ.ads: Document dummy D lines for missing files.
39180         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
39182 2001-12-17  Robert Dewar  <dewar@gnat.com>
39184         * ali.adb: Type reference does not reset current file.
39186         * ali.adb: Recognize and scan renaming reference
39188         * ali.ads: Add spec for storing renaming references.
39190         * lib-xref.ads: Add documentation for handling of renaming references
39192         * lib-xref.adb: Implement output of renaming reference.
39194         * checks.adb:
39195         (Determine_Range): Document local variables
39196         (Determine_Range): Make sure Hbound is initialized. It looks as though
39197          there could be a real problem here with an uninitialized reference
39198          to Hbound, but no actual example of failure has been found.
39200 2001-12-17  Laurent Pautet  <pautet@gnat.com>
39202         * g-socket.ads:
39203         Fix comment of Shutdown_Socket and Close_Socket. These functions
39204         should not fail silently because if they are called twice, this
39205         probably means that there is a race condition in the user program.
39206         Anyway, this behaviour is consistent with the rest of this unit.
39207         When an error occurs, an exception is raised with the error message
39208         as exception message.
39210 2001-12-17  Robert Dewar  <dewar@gnat.com>
39212         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
39213         that it happens before modification of Sloc values for -gnatD.
39215         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
39216         so that it happens before modification of Sloc values for -gnatD.
39218         * switch.adb: Minor reformatting
39220 2001-12-15  Richard Henderson  <rth@redhat.com>
39222         * sem_ch7.adb: Wrap comment.
39224 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
39226         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
39227         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
39228         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
39229         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
39230         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
39231         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
39232         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
39233         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
39234         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
39235         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
39236         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
39237         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
39238         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
39239         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
39240         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
39241         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
39242         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
39243         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
39244         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
39245         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
39246         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
39247         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
39248         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
39249         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
39250         spelling errors.
39252 2001-12-14  Vincent Celier  <celier@gnat.com>
39254         * osint.adb(Create_Debug_File): When an object file is specified,
39255         put the .dg file in the same directory as the object file.
39257 2001-12-14  Robert Dewar  <dewar@gnat.com>
39259         * osint.adb: Minor reformatting
39261         * lib-xref.adb (Output_Instantiation): New procedure to generate
39262         instantiation references.
39264         * lib-xref.ads: Add documentation of handling of generic references.
39266         * ali.adb (Read_Instantiation_Ref): New procedure to read
39267         instantiation references
39269         * ali.ads: Add spec for storing instantiation references
39271         * bindusg.adb: Minor reformatting
39273         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39275         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39277         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39279         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39281         * csets.ads:
39282         Fix header format
39283         Add 2001 to copyright date
39284         Add entry for Latin-5 (Cyrillic ISO-8859-5)
39286 2001-12-14  Matt Gingell  <gingell@gnat.com>
39288         * adaint.c: mktemp is a macro on Lynx and can not be used as an
39289         expression.
39291 2001-12-14  Richard Kenner  <kenner@gnat.com>
39293         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
39294         if operand is CONSTRUCTOR.
39296 2001-12-14  Ed Schonberg  <schonber@gnat.com>
39298         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
39299         before emiting check on right-hand side, so that exception information
39300         is correct.
39302 2001-12-14  Richard Kenner  <kenner@gnat.com>
39304         * utils.c (create_var_decl): Throw away initializing expression
39305         if just annotating types and non-constant.
39307 2001-12-14  Vincent Celier  <celier@gnat.com>
39309         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
39310         Default_Ada_...
39312         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39313         Remove functions.
39314         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
39316         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39317         Remove functions.
39318         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
39320 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
39322         * ChangeLog: Remove piece of diff output.
39324 2001-12-14  Geert Bosch  <bosch@gnat.com>
39326         * config-lang.in: Update copyright notice
39328         * layout.adb: Remove commented out code.
39330         * mdllfile.ads: Update copyright notice. Fix header format.
39332         * sem_case.ads: Likewise.
39334         * sem_ch3.adb: Minor reformatting.
39336 2001-12-12  Geert Bosch  <bosch@gnat.com>
39338         * freeze.ads: Update copyright date.
39340         * g-comlin.ads: Minor reformatting.
39342         * gnat-style.texi: Fix typo.
39344 2001-12-12  Geert Bosch  <bosch@gnat.com>
39346         *  einfo.h: Regenerate.
39348 2001-12-12  Ed Schonberg  <schonber@gnat.com>
39350         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
39351         on known node types, rather than untyped fields. Further cleanups.
39353 2001-12-12  Robert Dewar  <dewar@gnat.com>
39355         * sem_ch12.adb:
39356         (Save_Entity_Descendant): Minor comment update.
39357         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
39358          of an N_Attribute_Reference node. As per note below, this does not
39359         eliminate need for Associated_Node in attribute ref nodes.
39360         (Associated_Node): Documentation explicitly mentions attribute
39361         reference nodes, since this field is used in such nodes.
39363         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
39365 2001-12-12  Robert Dewar  <dewar@gnat.com>
39367         * s-stalib.adb: Add more comments on with statements being needed
39369         * par-ch12.adb: Minor reformatting
39371         * prj-dect.ads: Fix copyright header
39373         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
39374         inputs fit in 32 bits, but the result still overflows.
39376         * s-fatgen.ads: Minor comment improvement
39378 2001-12-12  Ed Schonberg  <schonber@gnat.com>
39380         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
39381         formal derived type, look for an inherited component from the full
39382         view of the parent, if any.
39384 2001-12-12  Robert Dewar  <dewar@gnat.com>
39386         * checks.ads (Apply_Alignment_Check): New procedure.
39388         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
39389         ensure that the alignment of objects with address clauses is
39390         appropriate, and raise PE if not.
39392         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
39393         Exp_Pakd.Known_Aligned_Enough
39395         * mdllfile.ads: Minor reformatting
39397         * mlib-fil.ads: Minor reformatting
39399 2001-12-12  Ed Schonberg  <schonber@gnat.com>
39401         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
39402         fix to any component reference if enclosing record has non-standard
39403         representation.
39405 2001-12-12  Vincent Celier  <celier@gnat.com>
39407         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
39408         Iteration
39410 2001-12-12  Ed Schonberg  <schonber@gnat.com>
39412         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
39413         sem_attr.
39415 2001-12-12  Robert Dewar  <dewar@gnat.com>
39417         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
39419 2001-12-12  Emmanuel Briot  <briot@gnat.com>
39421         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
39422         and it adds dependencies to system.io.
39424 2001-12-12  Pascal Obry  <obry@gnat.com>
39426         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
39427         variable name.
39429 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39431         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
39432         that is the parent of other generics, the instance body replaces the
39433         instance node.  Retrieve the instance of the spec, which is the one
39434         that is visible in clients and within the body.
39436 2001-12-11  Vincent Celier  <celier@gnat.com>
39438         * gnatmain.adb: Initial version.
39440         * gnatmain.ads: Initial version.
39442         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
39444         * snames.adb: Updated to match snames.ads.
39446         * snames.ads: Added Gnatstub.
39448 2001-12-11  Vincent Celier  <celier@gnat.com>
39450         * prj-attr.adb (Initialization_Data): Change name from
39451         Initialisation_Data.
39453 2001-12-11  Emmanuel Briot  <briot@gnat.com>
39455         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
39456         + and * applied to backslashed expressions like \r.
39458 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
39460         * g-os_lib.ads: String_List type added, Argument_List type is now
39461         subtype of String_List.
39463 2001-12-11  Robert Dewar  <dewar@gnat.com>
39465         * g-os_lib.ads: Change copyright to FSF
39466         Add comments for String_List type
39468 2001-12-11  Vincent Celier  <celier@gnat.com>
39470         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
39471         string to the buffer).
39473 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39475         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
39476         sem_attr.
39478         * sem_attr.adb: Simplify previous fix for Address.
39479         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
39480         to avoid anomalies where the bound of the type appears to raise
39481         constraint error.
39483 2001-12-11  Robert Dewar  <dewar@gnat.com>
39485         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
39486         handled.
39488 2001-12-11  Ed Schonber   <schonber@gnat.com>
39490         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
39491         renamed unit before checking for recursive instantiations.
39493 2001-12-11  Emmanuel Briot  <briot@gnat.com>
39495         * prj.ads: Add comments for some of the fields.
39497 2001-12-11  Robert Dewar  <dewar@gnat.com>
39499         * lib-xref.adb (Output_Refs): Don't output type references outside
39500         the main unit if they are not otherwise referenced.
39502 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39504         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
39505         code and diagnose additional illegal uses
39507         * sem_util.adb (Is_Object_Reference): An indexed component is an
39508         object only if the prefix is.
39510 2001-12-11  Vincent Celier  <celier@gnat.com>
39512         * g-diopit.adb: Initial version.
39514         * g-diopit.ads: Initial version.
39516         * g-dirope.adb:
39517         (Expand_Path): Avoid use of Unbounded_String
39518         (Find, Wildcard_Iterator): Moved to child package Iteration
39520         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
39522 2001-12-11  Robert Dewar  <dewar@gnat.com>
39524         * sem_attr.adb: Minor reformatting
39526 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39528         * sem_ch3.adb: Clarify some ???.
39530 2001-12-11  Robert Dewar  <dewar@gnat.com>
39532         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
39533         Exp_Pakd.Known_Aligned_Enough
39535         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
39536         version is moved to Exp_Ch13.
39538 2001-12-11  Robert Dewar  <dewar@gnat.com>
39540         * einfo.ads: Minor reformatting
39542         * exp_ch5.adb: Add comment for previous.change
39544         * ali.adb: New interface for extended typeref stuff.
39546         * ali.ads: New interface for typeref stuff.
39548         * checks.adb (Apply_Alignment_Check): New procedure.
39550         * debug.adb: Add -gnatdM for modified ALI output
39552         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
39554         * lib-xref.adb: Extend generation of <..> notation to cover
39555         subtype/object types. Note that this is a complete rewrite,
39556         getting rid of the very nasty quadratic algorithm previously
39557         used for derived type output.
39559         * lib-xref.ads: Extend description of <..> notation to cover
39560         subtype/object types. Uses {..} for these other cases.
39561         Also use (..) for pointer types.
39563         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
39565         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
39566         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
39568 2001-12-11  Vincent Celier  <celier@gnat.com>
39570         * gnatcmd.adb:
39571         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
39572         Changed /BIND_ONLY to /ACTIONS=BIND
39573         Changed /LINK_ONLY to /ACTIONS=LINK
39575 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39577         * sem_ch8.adb (Find_Selected_Component): improved search for a
39578         candidate package in case of error.
39580         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
39581         chain back on scope stack before reinstalling use clauses.
39583         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
39584         is enabled, do not kill the code for the condition, to preserve
39585         warning.
39587 2001-12-11  Robert Dewar  <dewar@gnat.com>
39589         * checks.adb (Insert_Valid_Check): Apply validity check to expression
39590         of conversion, not to result of conversion.
39592 2001-12-11  Ed Schonberg  <schonber@gnat.com>
39594         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
39595         before freezing parent. If the declarations are mutually recursive,
39596         an access to the current record type may be frozen before the
39597         derivation is complete.
39599 2001-12-05  Vincent Celier  <celier@gnat.com>
39601         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
39602         -c /COMPILE_ONLY, -l /LINK_ONLY
39604         * opt.ads:
39605         (Bind_Only): New Flag
39606         (Link_Only): New flag
39608         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
39609         and -l (Link_Only)
39611         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
39613         * make.adb:
39614         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
39615         (Gnatmake): Set the step flags. Only perform a step if the
39616         corresponding step flag is True.
39617         (Scan_Make_Arg): Reset the bind and link step flags when -u
39618         or -gnatc has been specified.
39620 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39622         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
39623         get bounds from right operand.
39625         * sem_eval.adb: Minor reformatting
39627         * exp_util.adb (Make_Literal_Range): use bound of literal rather
39628         than Index'First, its lower bound may be different from 1.
39630         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
39631         and C48009J
39633 2001-12-05  Vincent Celier  <celier@gnat.com>
39635         * prj-nmsc.adb Minor reformatting
39637         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
39638         set and libraries are not supported.
39640 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39642         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
39643         private view explicitly, so the back-end can treat as a global
39644         when appropriate.
39646 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39648         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
39649          unit, always replace instance node with new body, for ASIS use.
39651 2001-12-05  Vincent Celier  <celier@gnat.com>
39653         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
39654         libraries are not supported and both attributes Library_Name and
39655         Library_Dir are specified.
39657         * prj-proc.adb (Expression): Set location of Result to location of
39658         first term.
39660         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
39661         (prj-nmsc is now importing MLib.Tgt)
39663         * prj-proc.adb: Put the change indicated above that was forgotten.
39665 2001-12-05  Robert Dewar  <dewar@gnat.com>
39667         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
39669 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39671         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
39672         constraint, introduce explicit subtype declaration and derive from it.
39674         * sem_ch3.adb: Minor reformatting
39676 2001-12-05  Robert Dewar  <dewar@gnat.com>
39678         * checks.adb (Determine_Range): Increase cache size for checks.
39679         Minor reformatting
39681         * exp_ch6.adb: Minor reformatting
39682         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
39683         a parameter whose root type is System.Address, since treating such
39684         subprograms as pure in the code generator is almost surely a mistake
39685         that will lead to unexpected results.
39687         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
39688         change handling of conversions.
39690         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
39692 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39694         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
39695         aggregate with static wrong size, attach generated Raise node to
39696         declaration.
39698 2001-12-05  Robert Dewar  <dewar@gnat.com>
39700         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
39701         Fixes compilation abandoned bomb in B24009B.
39703 2001-12-05  Ed Schonberg  <schonber@gnat.com>
39705         * sem_ch12.adb:
39706         Document use of Associated_Node on Selected_Components.
39707         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
39708         to clarify use of untyped descendant fields.
39710 2001-12-05  Robert Dewar  <dewar@gnat.com>
39712         * prj-dect.ads: Add ??? comment
39713         Add 2001 to copyright notice (was not done in after all)
39715         * prj-part.adb: Minor reformatting. Reword one awkward error message.
39717         * prj.ads: Minor reformatting throughout, and add some ??? comments
39719         * snames.ads: Minor reformatting
39721 2001-12-05  Geert Bosch  <bosch@gnat.com>
39723         * snames.adb: Autoupdate
39725 2001-12-05  Vincent Celier  <celier@gnat.com>
39727         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
39729         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
39731         * prj-env.adb: Minor comment changes (modifying -> extends).
39733         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
39735         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
39736         Tok_Extends.
39738         * prj.adb (Initialize): Change Modifying to Extends.
39740         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
39742         * prj.ads: Minor comment change (Modifying -> extending).
39744         * snames.ads: Change modifying to extends.
39746 2001-12-05  Robert Dewar  <dewar@gnat.com>
39748         * sem_warn.adb: Remove stuff for conditionals, we are not going to
39749         do this after all.
39751         * sem_warn.ads: Remove stuff for conditionals, we are not going to
39752         do this after all.  Add 2001 to copyright notice
39754 2001-12-04  Geert Bosch  <bosch@gnat.com>
39756         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
39758 2001-12-04  Robert Dewar  <dewar@gnat.com>
39760         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
39761         location if we already have errors. Stops some cases of cascaded
39762         errors.
39764         * errout.adb: Improve comment.
39766 2001-12-04  Robert Dewar  <dewar@gnat.com>
39768         * sem_ch12.adb:
39769         (Analyze_Formal_Type_Definition): Defend against Error.
39770         (Analyze_Formal_Subprogram): Defend against Error.
39772         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
39773         remove following semicolon if present. Removes cascaded error.
39775 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
39777         * bindgen.adb:
39778         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
39779          exceptions equals 0.
39780         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
39781         Fixes PIWG E tests (which have to be run with -gnatL).
39783 2001-12-04  Robert Dewar  <dewar@gnat.com>
39785         * einfo.ads: Minor reformatting
39787 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39789         * einfo.ads: Block_Node points to the identifier of the block, not to
39790         the block node itself, to preserve the link when the block is
39791         rewritten, e.g. within an if-statement with a static condition.
39793         * inline.adb (Cleanup_Scopes): recover block statement from block
39794         entity using new meaning of Block_Node.
39796         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
39797         identifier of block node, rather than to node itself.
39799 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
39801         * layout.adb:
39802         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
39803         (Discrimify): Go back to setting the Etypes of the selected component
39804         because the Vname component does not exist at this point and will
39805         fail name resolution. Also set Analyzed.
39806         Remove with and use of Sem_Res.
39808 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
39810         * Makefile.in: (HIE_SOURCES): add s-fat*.
39812 2001-12-04  Robert Dewar  <dewar@gnat.com>
39814         * sem_attr.adb:
39815         (Compile_Time_Known_Attribute): New procedure.
39816         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
39817          proper range check.
39819 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39821         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
39822         processing discriminants to diagnose illegal default values.
39824 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39826         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
39827         access discriminant within a type extension that constrains its
39828         parent discriminants.
39830 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39832         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
39833         is malformed, use instance of Any_Id to allow analysis to proceed.
39835         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
39836         type definition is illegal.
39837         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
39838         misplaced.
39840 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39842         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
39843         constants.
39845 2001-12-04  Robert Dewar  <dewar@gnat.com>
39847         * errout.adb: Minor reformatting
39849 2001-12-04  Robert Dewar  <dewar@gnat.com>
39851         * exp_util.adb: Minor reformatting from last change
39853         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
39854         which is a rewriting of an expression, traverse the original
39855         expression to remove warnings that may have been posted on it.
39857 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39859         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
39860         record that has other packed components.
39862 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
39864         * adaint.c: Minor cleanups.
39866 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
39868         * adaint.c: Do not use utime.h on vxworks.
39870 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
39872         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
39873         more confusion than it solves.
39875 2001-12-04  Geert bosch  <bosch@gnat.com>
39877         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
39879 2001-12-04  Geert Bosch  <bosch@gnat.com>
39881         * Makefile.in (update-sources): New target.
39882         For use by gcc_release script.
39884 2001-12-04  Ed Schonberg  <schonber@gnat.com>
39886         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
39887         a configuration pragma, it is now legal wherever a pragma can appear.
39889 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
39891         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
39892         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
39893         is now @CROSS@ -DIN_GCC; update comment.
39895 2001-12-04  Robert Dewar  <dewar@gnat.com>
39897         * einfo.adb (Has_Pragma_Pure_Function): New flag.
39898         Fix problem that stopped ceinfo from working
39900         * einfo.ads (Has_Pragma_Pure_Function): New flag.
39902         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
39904 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
39906         * gnatchop.adb:
39907         (File_Time_Stamp): New procedure.
39908         (Preserve_Mode): New boolean.
39909         (Write_Unit): Pass time stamp.
39910         Implement -p switch (preserve time stamps).
39912         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
39914         * gnatchop.adb: Do usage info for -p switch
39916         * adaint.h (__gnat_set_file_time_name): New function
39918         * adaint.c (__gnat_set_file_time_name): Implement
39920         * adaint.h: Fix typo
39922 2001-12-03  Robert Dewar  <dewar@gnat.com>
39924         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
39925         have Associated_Node.
39927 2001-12-03  Robert Dewar  <dewar@gnat.com>
39929         * prj-proc.adb: Minor reformatting
39931         * make.adb: Minor reformatting
39933 2001-12-03  Geert Bosch  <bosch@gnat.com>
39935         * make.adb: Minor reformatting.
39937 2001-12-03 Robert Dewar  <dewar@gnat.com>
39939         * sem_ch12.adb: Minor reformatting
39941 2001-12-03  Ed Schonberg  <schonber@gnat.com>
39943         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
39944         push Standard on the stack before analyzing the instance body,
39945         in order to have a clean visibility environment.
39947         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
39949 2001-12-03  Ed Schonberg  <schonber@gnat.com>
39951         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
39952         instantiation of a body that contains an inlined body.
39954 2001-12-03  Ed Schonberg  <schonber@gnat.com>
39956         * sem_ch12.adb:
39957         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
39958         to prevent freezing within formal packages.
39959         (Freeze_Subprogram_Body): If body comes from another instance that
39960         appeared before its own body, place freeze node at end of current
39961         declarative part, to prevent a back-end crash.
39962         (Inline_Instance_Body): Handle properly a package instance within
39963         a subprogram instance that is a child unit.
39965 2001-12-01  Graham Stott  <grahams@redhat.com>
39967         * Makefile.in (misc.o): Add missing $(srcdir) prefix
39968         and add optabs.h dependency.
39970         * misc.c: Include optabs.h
39971         (gnat_tree_code_type): Make static and const.
39972         (gnat_tree_code_length): Likewise.
39973         (gnat_tree_code_name): Likewise.
39974         (update_setjmp_buf): Obtain operands mode from insn_data.
39976 2001-11-29  Richard Henderson  <rth@redhat.com>
39978         * init.c: Remove obsolete dwarf2 frame.h section.
39980 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
39982         * Make-lang.in (ada.generated-manpages): New dummy target.
39984 2001-11-29  Ed Schonberg  <schonber@gnat.com>
39986         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
39987         into Command, an array conversion is illegal here. Uncovered by
39988         ACATS B460005.
39990 2001-11-28  Geert Bosch  <bosch@gnat.com>
39992         * init.c: Minor whitespace changes.
39994 2001-11-28  Doug Rupp  <rupp@gnat.com>
39996         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
39997         signal stack.
39999 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
40001         * misc.c (gnat_expand_constant): Move declaration above
40002         definition of lang_hooks.
40003         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
40004         (gnat_init): lang_expand_constant no longer exists.
40006         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
40007         always have vprintf.
40008         (gnat_init): Always call set_internal_error_function.
40010 2001-11-27  Andreas Jaeger  <aj@suse.de>
40012         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
40014 2001-11-27  Laurent Guerby  <guerby@acm.org>
40016         * Makefile.in: Regenerate Ada dependencies.
40018 2001-11-26  Richard Henderson  <rth@redhat.com>
40020         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
40021         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
40022         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
40024 2001-11-25  Laurent Guerby  <guerby@acm.org>
40026         * sysdep.c (rts_get_*): Fix style.
40028 2001-11-19  Laurent Guerby  <guerby@acm.org>
40030         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
40031         since it is of no apparent use and cause warnings.
40033 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
40035         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
40036         static too.
40037         (gnat_init): Don't return NULL.
40038         (finish_parse): Remove.
40040 2001-11-17  Laurent Guerby  <guerby@acm.org>
40042         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
40043         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
40044         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
40045         * lang-spec.h: Add missing struct field to silence warnings.
40046         * sysdep.c (rts_get_*): Provide K&R prototype.
40047         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
40048         * traceback.c (Unlock_Task, Lock_Task): Likewise.
40049         * tracebak.c (__gnat_backtrace): Remove unused variable.
40050         * utils.c (end_subprog_body): Move to K&R style.
40052 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
40054         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
40056 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
40058         * misc.c (gnat_init): Change prototype.  Include the
40059         functionality of the old init_parse and init_decl_processing.
40060         (gnat_init_decl_processing): New prototype.
40061         (init_parse): Remove.
40062         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
40064 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
40066         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
40067         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
40068         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
40069         set_yydebug): Remove.
40071 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
40073         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
40074         (struct lang_hooks): Constify.
40075         (language_string, lang_identify): Remove.
40076         * utils.c (init_decl_processing): Update.
40078 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
40080         * misc.c: Include langhooks-def.h.
40081         * Makefile.in: Update.
40083 2001-10-30  Robert Dewar  <dewar@gnat.com>
40085         * style.adb:
40086         (Check_Identifier): Rewrite circuit to be compatible with use of letters
40087         in the upper half of ASCII.
40088         (Check_Identifier): Minor reformatting
40090 2001-10-30  Geert Bosch  <bosch@gnat.com>
40092         * (Associated_Node, Set_Associated_Node): Do not check for
40093         Freeze_Entity.
40095 2001-10-30  Robert Dewar  <dewar@gnat.com>
40097         * a-reatim.ads: Minor reformatting
40099 2001-10-30  Robert Dewar  <dewar@gnat.com>
40101         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
40102         undocumented declarations.
40104 2001-10-30  Pascal Obry  <obry@gnat.com>
40106         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
40107         to the binder and linker.
40108         Minor style fix.
40110         * mdll.ads: Fix layout.  Update copyright notice.
40112         * mdll.adb: Fix layout.  Update copyright notice.
40114 2001-10-30  Robert Dewar  <dewar@gnat.com>
40116         * usage.adb: Minor fix to output for -gnaty.
40118 2001-10-30  Ed Schonberg  <schonber@gnat.com>
40120         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
40121         to accommodate all its possible values.
40123         * a-reatim.adb (Split): Special-case handling of Time_Span_First
40124         and of small absolute values of T.
40126 2001-10-30  Richard Kenner  <kenner@gnat.com>
40128         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
40129         set_mem_attributes since not needed and wrong if RESULT if a REG;
40130         fixes ACATS failures.
40132 2001-10-30  Geert Bosch  <bosch@gnat.com>
40134         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
40135         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
40137 2001-10-30  Robert Dewar  <dewar@gnat.com>
40139         * bindusg.adb: Undocument -f switch.
40141         * gnatcmd.adb: Remove /FULL_ELABORATION.
40143         * opt.ads (Force_RM_Elaboration_Order): Document that this is
40144         obsolescent.
40146         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
40148         * gnatbind.adb: Minor update of warning msg.
40150 2001-10-30  Vincent Celier  <celier@gnat.com>
40152         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
40153         for project file switches (-P (/PROJECT_FILE=),
40154          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
40155         or MEDIUM or HIGH)
40157 2001-10-30  Geert Bosch  <bosch@gnat.com>
40159         * decl.c: Minor whitespace fixes.
40161 2001-10-30  Richard Kenner  <kenner@gnat.com>
40163         * utils2.c (build_allocator): Test for SIZE overflow in array case too
40165 2001-10-30  Geert Bosch  <bosch@gnat.com>
40167         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
40168         Found due to GCC 3.0 warning of using uninitialized value.
40170         * layout.adb:
40171         (Get_Max_Size): Use variant record for tracking value/expression.
40172          Makes logic clearer and prevents warnings for uninitialized variables.
40173         (Layout_Array_Type): Use variant record for tracking value/expression.
40174          Makes logic clearer and prevents warnings for uninitialized variables.
40176 2001-10-30  Robert Dewar  <dewar@gnat.com>
40178         * lib.adb: Minor reformatting
40180         * s-taprop.ads: Minor reformatting
40182 2001-10-29  Laurent Guerby  <guerby@acm.org>
40184         * init.c:
40185         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
40186         const.
40187         (_gnat_error_handler): Make MSG const.
40189 2001-10-29  Richard Kenner  <kenner@gnat.com>
40191         * sysdep.c: Fix localtime_r problem on LynxOS.
40192         Also remove #elif to avoid warnings.
40194         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
40195         used by this.
40197         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
40199 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
40201         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
40202         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
40203         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
40204         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
40205         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
40206         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
40207         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
40208         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
40209         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
40210         types.ads, urealp.adb: Fix spelling errors.
40212 2001-10-27  Laurent Guerby  <guerby@acm.org>
40214         * trans.c (gigi): Fix non determinism leading to bootstrap
40215         comparison failures for debugging information.
40217 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
40219         * gnat_rm.texi: Use @./@: where appropriate.
40221 2001-10-26  Robert Dewar  <dewar@gnat.com>
40223         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
40225 2001-10-26  Richard Kenner  <kenner@gnat.com>
40227         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
40229 2001-10-26  Richard Kenner  <kenner@gnat.com>
40231         * decl.c (validate_size): Modify message for bad size to avoid
40232         implication that compiler is modifying the size.
40234 2001-10-26  Robert Dewar  <dewar@gnat.com>
40236         * prj-util.adb: Minor reformatting. Fix bad header format.
40238 2001-10-26  Robert Dewar  <dewar@gnat.com>
40240         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
40242         * sinfo.ads: Clarify use of Associated_Node (documentation only).
40244         * sem_ch12.adb: Change Node4 to Associated_Node. Change
40245         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
40246         much more narrowly in places where needed. These are cleanups.
40248 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
40250         * 5zosinte.ads (null_pthread): new constant.
40252         * 5ztaprop.adb:
40253         (Initialize_TCB): Initialize thread ID to null, to be able to verify
40254          later that this field has been set.
40255         (Finalize_TCB): ditto.
40256         (Suspend_Task): Verify that the thread ID is not null before using it.
40257         (Resume_Task): ditto.
40259         * s-tasdeb.adb:
40260         (Resume_All_Tasks): Lock the tasks list before using it.
40261         (Suspend_All_Tasks): ditto.
40263 2001-10-26  Richard Kenner  <kenner@gnat.com>
40265         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
40266         Make constant variant of designated type for Is_Access_Constant.
40267         Call update_pointer_to with main variant.
40269         * trans.c (process_freeze_entity, process_type):
40270         Call update_pointer_to on main variant.
40272         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
40273         If main variant, update all other variants.
40275         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
40276         TREE_STATIC.
40278 2001-10-26  Robert Dewar  <dewar@gnat.com>
40280         * prj-util.adb: Minor reformatting
40282 2001-10-26  Robert Dewar  <dewar@gnat.com>
40284         * prj-util.adb: Minor reformatting
40286 2001-10-26  Robert Dewar  <dewar@gnat.com>
40288         * prj-attr.adb: Minor reformatting throughout
40290 2001-10-26  Robert Dewar  <dewar@gnat.com>
40292         * prj-attr.ads: Minor reformatting
40293         Add ??? comment (this whole spec has almost no comments)
40295 2001-10-26  Vincent Celier  <celier@gnat.com>
40297         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
40298         ("//") that precede the drive letter on Interix.
40300 2001-10-26  Geert Bosch  <bosch@gnat.com>
40302         * gnat_rm.texi: Add GNAT Reference Manual.
40304 2001-10-25  Robert Dewar  <dewar@gnat.com>
40306         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
40307         is Error. Similar change for other renaming cases.
40309 2001-10-25  Robert Dewar  <dewar@gnat.com>
40311         * s-atacco.ads: Add pragma Inline_Always for functions.
40312         Fix header format. Add copyright 2001
40314 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40316         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
40317         return Error rather than Empty so that analysis can proceed.
40319 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40321         * sem_util.adb (Enter_Name): better handling of cascaded error
40322         messages when a unit appears in its own context.
40324 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40326         * sem_util.adb (Defining_Entity): in case of error, attach created
40327         entity to specification, so that semantic analysis can proceed.
40329 2001-10-25  Robert Dewar  <dewar@gnat.com>
40331         * sem_util.adb
40332         (Defining_Entity): Deal with Error.
40333         (Process_End_Label): Deal with bad end label for.
40335 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40337         * sem_elab.adb (Check_A_Call): refine message when call is in an
40338         instance but callee is not declared in the generic unit.
40340 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40342         * sem_elab.adb (Check_A_Call): check for renaming before finding the
40343         enclosing unit, which may already be different from the calling unit.
40345 2001-10-25  Geert Bosch  <bosch@gnat.com>
40347         * 4gintnam.ads: fix header format.
40349 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40351         * sem_res.adb (Resolve_Call): if the call is actually an indexing
40352         operation on the result of a parameterless call, perform elaboration
40353         check after the node has been properly rewritten.
40355         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
40356         inlined within the generic tree, the defining identifier is not a
40357         compilation_unit.
40359 2001-10-25  Ed Schonberg  <schonber@gnat.com>
40361         * sem_res.adb (Resolve): special-case resolution of Null in an
40362          instance or an inlined body to avoid view conflicts.
40364         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
40365          compatibility by retrieving the access type of the generic copy.
40367 2001-10-25  Robert Dewar  <dewar@gnat.com>
40369         * sem_ch3.adb:
40370         (Analyze_Number_Declaration): Handle error expression.
40371         (Signed_Integer_Type_Declaration): Handle error bound.
40372         (Analyze_Subtype_Indication): Handle error range.
40374         * sem_util.adb (Get_Index_Bounds): Check for Error.
40376 2001-10-25  Robert Dewar  <dewar@gnat.com>
40378         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
40379         in no run time mode.
40381 2001-10-25  Pascal Obry  <obry@gnat.com>
40383         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
40384         mode case for ALLOC case.
40386         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
40387         all platforms. Improvement of last change.
40389 2001-10-25  Robert Dewar  <dewar@gnat.com>
40391         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
40393 2001-10-25  Geert Bosch  <bosch@gnat.com>
40395         * osint.adb (Is_Relative): Remove duplicate.
40397 2001-10-25  Pascal Obry  <obry@gnat.com>
40399         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
40400         pathnames in UNIX and DOS style with drive letter.
40401         (Is_Relative): new routine.
40403         * osint.adb: Minor reformatting
40405         * osint.adb (Is_Relative): implementation using
40406         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
40408 2001-10-25  Pascal Obry  <obry@gnat.com>
40410         * g-dirope.adb (Basename): correctly compute offset between the
40411         original Path and the translated one.
40413         * g-dirope.adb: (Base_Name): add some comments.
40415 2001-10-25  Robert Dewar  <dewar@gnat.com>
40417         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
40418         in HIE mode, avoids compilation abandoned message
40420         * exp_imgv.adb: Correct typo in previous change
40422         * exp_imgv.adb: Correct typo in previous change (not my day!)
40424 2001-10-25  Robert Dewar  <dewar@gnat.com>
40426         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
40428 2001-10-25  Pascal Obry  <obry@gnat.com>
40430         * g-awk.ads: Move all pragma inlines next to the routine
40431          declarations. This is more uniform with other GNAT spec.
40433 2001-10-22  Geert Bosch  <bosch@gnat.com>
40435         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
40437 2001-10-19  Geert Bosch  <bosch@gnat.com>
40439         * Makefile.in (tools, gnattools): Remove gnatmem.
40441 2001-10-17  Richard Henderson  <rth@redhat.com>
40443         * Makefile.in (misc.o): Depend on langhooks.h.
40444         * misc.c: Include it.
40445         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
40446         (LANG_HOOKS_DECODE_OPTION): New.
40447         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
40449 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
40451         * trans.c (tree_transform): Adjust to recent change in
40452         expand_asm_operands to implement named asm operands.
40454 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40456         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
40457         renaming of discriminant for mutable record type.
40459 2001-10-11  Robert Dewar  <dewar@gnat.com>
40461         * validsw.adb: Properly save -gnatVn status.
40463 2001-10-11  Robert Dewar  <dewar@gnat.com>
40465         * usage.adb: Add lines for V switch.
40467         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
40468         (/VALIDITY_CHECKING).
40470 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40472         * sem_type.adb (Add_One_Interp): an operator for a type declared in
40473         an extension of System is known to be visible.
40475 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40477         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
40478         properly. Fixes regression on ACATS C34005G.
40480 2001-10-11  Robert Dewar  <dewar@gnat.com>
40482         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
40483         loop in generic instance, since this is likely not very useful.
40485 2001-10-11  Robert Dewar  <dewar@gnat.com>
40487         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
40488         the error message for high integrity mode.
40490         * rtsfind.adb (RTE): Give message if we try to find an entity that
40491         is not available in high integrity mode.
40493         * rtsfind.ads:
40494         (OK_To_Use_In_HIE_Mode): New array.
40495         (RTE): May return Empty in high integrity mode.
40497         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
40498         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
40500         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
40501         unit if not inlined always and in no runtime mode. Fixes problem
40502         caused by new Rtsfind changes.
40504         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
40505         body is deleted.
40507         * rtsfind.adb (RTE): Make sure we do not try to load unit after
40508         giving message for entity not available in high integrity mode.
40510 2001-10-11  Pascal Obry  <obry@gnat.com>
40512         * impunit.adb: Add GNAT.CRC32.
40514 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40516         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
40517         properly the case where one universal operand in a non-static
40518         exponentiation of a real literal.
40520 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40522         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
40523         clause, return the gobal finalization list, for lack of anthing else.
40525 2001-10-11  Ed Schonberg  <schonber@gnat.com>
40527         * exp_ch7.adb (Make_Transient_Block): if statement is within
40528         exception handler, always use new transient scope to place Clean
40529         procedure.
40531 2001-10-11  Pascal Obry  <obry@gnat.com>
40533         * Makefile.in:
40534         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40535         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40536         (GNATLS_RTL_OBJS): add g-crc32.o
40537         (GNATMAKE_RTL_OBJS): add g-crc32.o
40539         * ali-util.adb:
40540         (CRC_Match): new function.
40541         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
40542         instead of the previous simple checksum algorithm.
40543         (Time_Stamp_Mismatch): use CRC_Match for comparison.
40544         (Set_Source_Table): idem.
40546         * ali-util.ads:
40547         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
40548         instead of simple checksum.
40549         (CRC_Match): new function.
40550         (CRC_Error): new constant.
40552         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
40553         a CRC now and not a simple checksum. A CRC uses lower-case hex
40554         letters, fixes ambiguity in parsing.
40556         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
40557         is what this variable will store.
40559         * bcheck.adb: Change reference to chechsum in comments by CRC.
40560         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
40561         rename All_Checksum_Match to All_CRC_Match. Change due to API
40562         renaming since now GNAT does not use a simple checksum but a
40563         CRC using GNAT.CRC32.
40565         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
40566         now and not anymore a simple checksum.
40568         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
40569         places.
40571         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
40573         * scans.adb:
40574         (Restore_Scan_State): rename Checksum to CRC.
40575         (Save_Scan_State): idem.
40577         * scans.ads:
40578         With GNAT.CRC32.
40579         (Checksum): rename to CRC.
40580         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
40582         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
40583         GNAT.CRC32).  Update copyright notice.
40585         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
40586         GNAT.CRC32).  Update copyright notice.
40588         * scn.adb:
40589         (Accumulate_Checksum): removed.
40590         (Update): new procedure. Add a wide-character into the CRC.
40592         * sinput-l.adb:
40593         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
40594         (Load_File): fix initialization of S (change Source_Checksum to
40595         Source_CRC)
40597         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
40598         Source_CRC in S initialization.
40600         * sinput.adb (Source_Checksum): renamed to Source_CRC.
40602         * sinput.ads (Source_Checksum): renamed to Source_CRC.
40603         Update comments for the CRC.
40605         * types.adb (Hex): Use lowercase for the letter part.
40607         * types.ads (Get_Hex_String): Returns the hexadecimal representation
40608         for a word. This is currently used only for CRC. In previous version,
40609         the checksum was using a representation with all letter being
40610         upper-case. With the new implementation (using CRC) we do not remove
40611         the 32th bit of the CRC, so we can have an upper-case starting letter
40612         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
40613         It is ambigous since the CRC was optional and could be followed by
40614         options like EB, EE. So now this routines uses lower-case letter for
40615         the hexadecimal representation. Strange enough only lower case letters
40616         where checked in Scan_ALI (even if this was not a possible case).
40618         * gnatvsn.ads (Library_Version): changed to 3.15a.
40620         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
40621         for the compiler.
40623         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
40624         for the compiler.
40626         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
40627         Add 2001 to copyright notice
40628         (Accumulate_Checksum): Modify to use System.CRC32.
40630         * ali-util.ads: Redo changes of previous revision to continue to use
40631         the word Checksum. Add 2001 to copyright notice.
40633         * ali.adb: Undo some of previous changes, not needed.
40634         Keep the change for lower case letters in the checksum.
40636         * ali.ads: Undo previous change not needed.
40638         * bcheck.adb: Undo most of previous change, not needed.
40639         But do use Checksums_Match for checksum comparison.
40641         * gnatls.adb: Undo most of previous change, not needed.
40642         But do use Checksums_Match for comparing checksums.
40644         * lib-load.adb: Undo previous change, not needed.
40646         * lib-writ.adb: Undo previous change, not needed.
40648         * lib-writ.ads: Document that checksums use lower case,
40649         not upper case letters.
40651         * scans.adb: Undo previous change, not needed
40653         * scans.ads: Undo previous change, not needed.
40655         * scn-nlit.adb: Undo previous changes, not needed.
40657         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
40659         * scn.adb:
40660         (Accumulate_Checksum): Use System.CRC32.
40661         (Initialize_Checksum): New procedure.
40662         Remove other changes of previous revision.
40664         * sinput-p.adb: Undo previous change, not needed.
40666         * sinput.adb: Undo previous change, not needed.
40668         * sinput-l.adb: Undo previous change, not needed.
40670         * sinput.ads: Undo previous change, not needed.  Keep only comment
40671         on new checksum algorithm
40673         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
40674         Also remove a-tags and a-stream from GNAT sources.
40676         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
40678         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
40680 2001-10-11  Geert Bosch  <bosch@gnat.com>
40682         * einfo.h: Regenerate.
40684         * nmake.ads: Regenerate.
40686         * nmake.adb: Regenerate.
40688         * sinfo.h: Regenerate.
40690         * treeprs.adb: Regenerate.
40692 2001-10-10  Geert Bosch  <bosch@gnat.com>
40694         * gnat-style.texi: New file describing coding guidelines for Ada.
40696 2001-10-10  Ed Schonberg  <schonber@gnat.com>
40698         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
40699         is Flag174.
40701 2001-10-10  Geert Bosch  <bosch@gnat.com>
40703         * snames.ads: Add new names for project facility.
40705         * snames.adb: Update to reflect snames.ads changes.
40707         * snames.h: Update to reflect snames.ads changes.
40709 2001-10-10  Vincent Celier  <celier@gnat.com>
40711         * make.adb:
40712         (Add_Switches): reflect the changes for the switches attributes
40713         Default_Switches indexed by the programming language,
40714         Switches indexed by the file name.
40715         (Collect_Arguments_And_Compile): Idem.
40716         Reflect the attribute name changes.
40718         * prj-attr.adb:
40719         (Initialisation_Data): Change the names of some packages and
40720         attributes.
40721         (Initialize): process case insensitive associative arrays.
40723         * prj-attr.ads:
40724         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
40726         * prj-dect.adb:
40727         (Parse_Attribute_Declaration): For case insensitive associative
40728          arrays, set the index string to lower case.
40730         * prj-env.adb:
40731         Reflect the changes of the project attributes.
40733         * prj-nmsc.adb:
40734         Replace Check_Naming_Scheme by Ada_Check and
40735         Language_Independent_Check.
40737         * prj-nmsc.ads:
40738         Replaced Check_Naming_Scheme by 2 procedures:
40739         Ada_Check and Language_Independent_Check.
40741         * prj-proc.adb:
40742         (Process_Declarative_Items): For case-insensitive associative
40743         arrays, set the index string to lower case.
40744         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
40745         Prj.Nmsc.Check_Naming_Scheme.
40747         * prj-tree.adb:
40748         (Case_Insensitive): New function
40749         (Set_Case_Insensitive): New procedure
40751         * prj-tree.ads:
40752         (Case_Insensitive): New function
40753         (Set_Case_Insensitive): New procedure
40754         (Project_Node_Record): New flag Case_Insensitive.
40756         * prj-util.adb:
40757         (Value_Of): new function to get the string value of a single
40758         string variable or attribute.
40760         * prj-util.ads:
40761         (Value_Of): new function to get the string value of a single
40762         string variable or attribute.
40764         * prj.adb:
40765         (Ada_Default_Spec_Suffix): New function
40766         (Ada_Default_Impl_Suffix): New function
40767         Change definitions of several constants to reflect
40768         new components of record types.
40770         * prj.ads:
40771         (Naming_Data): Change several components to reflect new
40772         elements of naming schemes.
40773         (Project_Data): New flags Sources_Present and
40774         Language_Independent_Checked.
40775         (Ada_Default_Spec_Suffix): New function.
40776         (Ada_Default_Impl_Suffix): New function.
40778         * snames.ads:
40779         Modification of predefined names for project manager: added
40780         Implementation, Specification_Exceptions, Implementation_Exceptions,
40781         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
40782         Default_Switches, _Languages, Builder, Cross_Reference,
40783         Finder. Removed Body_Part, Specification_Append, Body_Append,
40784         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
40785         Gnatlink.
40787         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40788         Add comments.
40790         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
40791         not that it is Nil_Variable_Value.
40793         * prj.ads: Add ??? for uncommented declarations
40795 2001-10-10  Ed Schonberg  <schonber@gnat.com>
40797         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
40798         constant, do not indicate possible modification, so that gigi can
40799         treat it as a bona fide constant.
40801 2001-10-10  Robert Dewar  <dewar@gnat.com>
40803         * sem_prag.adb: Add processing for pragma External.
40805         * snames.ads: Add entry for pragma External.
40807         * par-prag.adb: Add pragma External.
40809         * snames.adb: Updated to match snames.ads.
40811 2001-10-10  Ed Schonberg  <schonber@gnat.com>
40813         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
40814         a dynamic task if the allocator appears in an indexed assignment
40815         or selected component assignment.
40817         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
40818         For a dynamic task in an assignment statement, use target of
40819         assignment to generate meaningful name.
40821 2001-10-10  Ed Schonberg  <schonber@gnat.com>
40823         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
40824         a generic package.
40826         * einfo.ads: Body_Entity is also defined for generic package.
40827         Documentation change only
40829         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
40830         others_choice for a discriminated component initialization,
40831         convert discriminant references into the corresponding discriminals.
40833         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
40834         only if original type is private and expression has to be wrapped
40835         in a conversion.
40837         * checks.adb:
40838         (Apply_Constraint_Check): Do not perform length check
40839         if expression is an aggregate with only an others_choice.
40840         (Length_N_Cond): two references to the same in_parameter
40841         (typically the discriminal in an init_proc) denote the same value.
40842         Two useful optimization uncovered by bugfixes above.
40844 2001-10-10  Robert Dewar  <dewar@gnat.com>
40846         * xeinfo.adb: Change int to char in translation of enumeration types.
40847         This fixes a problem in the C representation of component alignment.
40848         Add 2001 to copyright notice
40850 2001-10-10  Richard Kenner  <kenner@gnat.com>
40852         * decl.c: (validate_size): Do check size of object of integral type
40853         if it is a packed array type.
40855 2001-10-10  Richard Kenner  <kenner@gnat.com>
40857         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
40858         VAR_DECL for constant if not Is_Public but -O0.
40860 2001-10-10  Richard Kenner  <kenner@gnat.com>
40862         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
40864 2001-10-10  Geert Bosch  <bosch@gnat.com>
40866         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
40867         use '/' as switch character, allowing for absolute file names.
40869 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
40871         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
40872         FSF address.
40874 2001-10-08  Geert Bosch  <bosch@gnat.com>
40876         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
40877         Automatically build utilities when files need to be regenerated.
40879 2001-10-08  Geert Bosch  <bosch@gnat.com>
40881         * xsnames.adb: New utility for updating snames.ads and snames.adb
40883 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
40885         * Make-lang.in (ADAFLAGS): Add -W -Wall.
40886         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
40887         (gnat1): Also depend on attribs.o.
40888         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
40889         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
40890         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
40891         (ADAFLAGS): Add -W -Wall.
40892         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
40893         take out CFLAGS.
40895         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
40896         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
40897         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
40898         Use $(ADAC), not $(CC), as compilation command.
40900         (gnattools): Depend directly on tools to build, don't use
40901         recursive make.
40902         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
40904         * einfo.h, sinfo.h: New files (autogenerated).
40906 2001-10-08  Richard Henderson  <rth@redhat.com>
40908         * comperr.adb (Abort_In_Progress): New.
40909         (Compiler_Abort): Use it to prevent recursion.
40911 2001-10-08  Robert Dewar  <dewar@gnat.com>
40913         * atree.adb: Set Error_Posted in Error node, helps error recovery.
40915         * par-endh.adb (Output_End_Expected): We should also not test
40916         Error_Posted on the Error node, since now it is always set.
40918         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
40919         to help error recovery. Part of general work on 9407-004.
40921         * par.adb: Add ??? for misuse of error
40923         * sem_res.adb:
40924         (Resolve): Defend against Error, fixes 9407-003.
40925         (Resolve_Discrete_Subtype_Indication): Defend against Error.
40927         * sinfo.ads (N_Error): Now has Etype field (which will be set
40928         to Any_Type to help error recovery).
40930 2001-10-08  Richard Kenner  <kenner@gnat.com>
40932         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
40933         Consistently set MEM attributes from expression; fixes
40934         bootstrap failure on x86.
40936 2001-10-08  Geert Bosch  <bosch@gnat.com>
40938         * 5oosinte.adb: Add 2001 to copyright notice.
40940 2001-10-08  Geert Bosch  <bosch@gnat.com>
40942         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
40944         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
40946 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
40948         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
40950 2001-10-05  Geert Bosch  <bosch@gnat.com>
40952         * adaint.h: Small formatting fix.
40954 2001-10-04  Geert Bosch  <bosch@gnat.com>
40956         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
40957         Arg is int, not FILE *, in dummy version of functions.
40959         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
40960         Arg is int, not FILE *.
40962 2001-10-04  Geert Bosch  <bosch@gnat.com>
40964         * 3lsoccon.ads: Added file, missed with initial check ins.
40966         * 4lintnam.ads: Fix header format.
40967         Change Linux to GNU/Linux.
40969         * 5iosinte.adb: Change Linux to GNU/Linux.
40971         * 5iosinte.ads: Change Linux to GNU/Linux.
40973         * 5itaprop.adb: Change Linux to GNU/Linux.
40975         * 5itaspri.ads: Change Linux to GNU/Linux.
40976         Update copyright notice.
40978         * 5lintman.adb: Change Linux to GNU/Linux.
40980         * 5lml-tgt.adb: Change Linux to GNU/Linux.
40982         * 5losinte.ads: Change Linux to GNU/Linux.
40984         * 5lsystem.ads: Change Linux to GNU/Linux.
40986         * 5qosinte.adb: Change Linux to GNU/Linux.
40988         * 5qosinte.ads: Change Linux to GNU/Linux.
40990         * 5qparame.ads: Change Linux to GNU/Linux.
40992         * 5qtaprop.adb: Change Linux to GNU/Linux.
40994         * 5qtaspri.ads: Change Linux to GNU/Linux.
40995         Add 2001 to copyright notice.
40997         * 5vintman.ads: Change Linux to GNU/Linux.
40998         Fix header format.  Add 2001 to copyright notice.
41000         * g-soccon.ads: Change Linux to GNU/Linux.
41002         * g-trasym.ads: Change Linux to GNU/Linux.
41003         Add 2001 to copyright notice.
41005         * memtrack.adb: Change Linux to GNU/Linux.
41007         * s-intman.ads: Change Linux to GNU/Linux.
41008         Add 2001 to copyright notice.  Fix header format.
41010         * s-stache.adb: Change Linux to GNU/Linux.
41012         * adaint.c: Change Linux to GNU/Linux.
41014         * cio.c: Change Linux to GNU/Linux.
41016         * cstreams.c: Change Linux to GNU/Linux.
41018         * init.c: Change Linux to GNU/Linux.
41020         * gmem.c: Change Linux to GNU/Linux.
41022         * tracebak.c: Change Linux to GNU/Linux.
41025 2001-10-02  Geert Bosch  <bosch@gnat.com>
41027         * misc.c (insert_default_attributes): Add dummy version.